# getSecFilingText

**Identifier:** `predictleads_getSecFilingText`

**Provider:** [PredictLeads](https://kirha.com/providers/predictleads.md)

Read the text of one SEC filing by its PredictLeads filing id, in chunks. Use it after getCompanySecFilings to read what a 10-K, 10-Q or 8-K says.

## Run it with the CLI

```bash
kirha tools run predictleads_getSecFilingText \
  --input '{
    "filingId": "<filingId>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "predictleads_getSecFilingText",
  "input": {
    "filingId": "<filingId>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "filingId": {
      "description": "Filing id returned by getCompanySecFilings",
      "pattern": "^[0-9a-f-]{8,64}$",
      "type": "string"
    },
    "length": {
      "default": 20000,
      "maximum": 40000,
      "minimum": 500,
      "type": "integer"
    },
    "offset": {
      "description": "Character position to start from",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "filingId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "companyDomain": {
      "type": "string"
    },
    "companyName": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "filedOn": {
      "type": "string"
    },
    "filingId": {
      "type": "string"
    },
    "formType": {
      "type": "string"
    },
    "nextOffset": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "reportDate": {
      "type": "string"
    },
    "sourceUrl": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "totalLength": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "filingId",
    "totalLength",
    "offset",
    "text"
  ],
  "type": "object"
}
```

## Related tools

Other PredictLeads tools that this tool refers to, or that refer to it.

- [`getCompanySecFilings`](https://kirha.com/providers/predictleads/getCompanySecFilings.md)

-----

[All PredictLeads tools](https://kirha.com/providers/predictleads.md) · [< Back to tools list](https://kirha.com/tools.md)