> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# SEC API (sec-api.io)

> SEC EDGAR filings as JSON from sec-api.io: filing search, full-text search, insider trades (Forms 3/4/5), 13F institutional holdings, XBRL-to-JSON financials, filing section extraction and ticker/CIK/CUSIP mapping.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/sec-api.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=343faee353348f69900a74ffa03b23d5)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`SEC_API_KEY`

Endpoints

10

Auth

Key in header

[Vendor docs](https://sec-api.io/docs)

&#x20;·&#x20;

[Pricing](https://sec-api.io/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `SEC_API_KEY` | required | a sec-api.io API key (from your sec-api.io user profile) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* The key goes in the Authorization header as-is, with no Bearer prefix (or as ?token=).
* Search endpoints are POSTs with a JSON body \{query, from, size, sort}; query is Lucene syntax over the documented fields of each dataset.

## Endpoints

POST

Search filings

Filing metadata (form type, company, tickers, filedAt, links, data files) for EDGAR filings of any form type.

[Open](#sec-api-filings-search)

POST

Full-text search filings

Search the text of filings and exhibits.

[Open](#sec-api-filings-fulltext)

POST

Search insider trades

Forms 3, 4 and 5 as structured JSON: issuer, reporting owner, relationship and each transaction.

[Open](#sec-api-insider-search)

POST

Search 13F holdings

Institutional managers' 13F holdings per filing, searchable by manager CIK, holding ticker, CUSIP or put/call.

[Open](#sec-api-form13f-holdings)

POST

Search 13F cover pages

13F filing cover pages, searchable by fields such as crdNumber.

[Open](#sec-api-form13f-coverpages)

GET

Convert a filing's XBRL to JSON

The XBRL financial data of one filing (e.g. a 10-K or 10-Q) as JSON.

[Open](#sec-api-xbrl-json)

GET

Extract a filing section

The text or HTML of one item (e.g. 1A Risk Factors, 7 MD\&A) of a 10-K, 10-Q or 8-K.

[Open](#sec-api-filings-extract-item)

GET

Resolve a ticker

Company name, CIK, CUSIP, exchange, sector and industry for a ticker.

[Open](#sec-api-mapping-ticker)

GET

Find companies by name

Companies whose name matches, with ticker, CIK and CUSIP.

[Open](#sec-api-mapping-name)

GET

Resolve a CIK

Tickers and company details registered under a CIK.

[Open](#sec-api-mapping-cik)

### Search filings

POST

`/`

`sec-api.filings.search`

Filing metadata (form type, company, tickers, filedAt, links, data files) for EDGAR filings of any form type.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>Lucene-syntax query over filing fields, field:value with AND/OR/NOT, wildcards and \[a TO b] ranges. Example `ticker:TSLA AND formType:"10-K"`</td></tr>

    <tr>
      <td>
        `from`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Offset of the first result; default 0, at most 10000.
      </td>
    </tr>

    <tr>
      <td>
        `size`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per call; default 50, at most 50.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Sort objects; default \[\{"filedAt":\{"order":"desc"}}].
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/query-api) · Same job: [Companies House](https://docs.webrouter.net/data-apis/companies-house.md#companies-house-filings-list), [Corpo API](https://docs.webrouter.net/data-apis/corpoapi.md#corpoapi-company-documents), [EDINET](https://docs.webrouter.net/data-apis/edinet.md#edinet-documents-list), [FEC (OpenFEC)](https://docs.webrouter.net/data-apis/fec.md#fec-filings-search), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-filings-list), [OpenCorporates](https://docs.webrouter.net/data-apis/opencorporates.md#opencorporates-companies-filings)

```python Python theme={null}
router.call_data_api("sec-api.filings.search", {'query': 'ticker:TSLA AND formType:"10-K"'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.filings.search", params={"query": "ticker:TSLA AND formType:\"10-K\""})
```

> [!NOTE]
>
> * A read over POST. At most 10,000 results per query: page by raising from by size, and split larger sets into filedAt or periodOfReport date ranges.
> * query is at most 3,500 characters.

### Full-text search filings

POST

`/full-text-search`

`sec-api.filings.fulltext`

Search the text of filings and exhibits.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>Words or quoted phrases, ANDed by default; supports OR, NOT/-, and \* wildcards. Example `"substantial doubt"`</td></tr>

    <tr>
      <td>
        `formTypes`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Form types to include, e.g. \["8-K", "10-Q"]; default all.
      </td>
    </tr>

    <tr>
      <td>
        `ciks`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Filer CIKs as strings; leading zeros optional; default all.
      </td>
    </tr>

    <tr>
      <td>
        `startDate`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        yyyy-mm-dd; default 30 days ago.
      </td>
    </tr>

    <tr>
      <td>
        `endDate`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        yyyy-mm-dd; default today.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Page number as a string, from "1"; 100 results per page, at most page 100.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/full-text-search-api) · Same job: [Companies House](https://docs.webrouter.net/data-apis/companies-house.md#companies-house-filings-list), [Corpo API](https://docs.webrouter.net/data-apis/corpoapi.md#corpoapi-company-documents), [EDINET](https://docs.webrouter.net/data-apis/edinet.md#edinet-documents-list), [FEC (OpenFEC)](https://docs.webrouter.net/data-apis/fec.md#fec-filings-search), [Fiscal.ai](https://docs.webrouter.net/data-apis/fiscal-ai.md#fiscal-ai-filings-list), [OpenCorporates](https://docs.webrouter.net/data-apis/opencorporates.md#opencorporates-companies-filings)

```python Python theme={null}
router.call_data_api("sec-api.filings.fulltext", {'query': '"substantial doubt"'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.filings.fulltext", params={"query": "\"substantial doubt\""})
```

> [!NOTE]
>
> * A read over POST. The default window is only the last 30 days; set startDate for older filings.
> * When total.relation is gte the match count exceeds 10,000; narrow dates or CIKs.

### Search insider trades

POST

`/insider-trading`

`sec-api.insider.search`

Forms 3, 4 and 5 as structured JSON: issuer, reporting owner, relationship and each transaction.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>Lucene-syntax query over filing fields, field:value with AND/OR/NOT, wildcards and \[a TO b] ranges. Example `issuer.tradingSymbol:TSLA`</td></tr>

    <tr>
      <td>
        `from`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Offset of the first result; default 0, at most 10000.
      </td>
    </tr>

    <tr>
      <td>
        `size`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per call; default 50, at most 50.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Sort objects; default \[\{"filedAt":\{"order":"desc"}}].
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/insider-ownership-trading-api)

```python Python theme={null}
router.call_data_api("sec-api.insider.search", {'query': 'issuer.tradingSymbol:TSLA'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.insider.search", params={"query": "issuer.tradingSymbol:TSLA"})
```

> [!NOTE]
>
> * A read over POST. At most 10,000 results per query: page by raising from by size, and split larger sets into filedAt or periodOfReport date ranges.
> * Transaction codes: nonDerivativeTable.transactions.coding.code:P is an open-market purchase, S a sale.

### Search 13F holdings

POST

`/form-13f/holdings`

`sec-api.form13f.holdings`

Institutional managers' 13F holdings per filing, searchable by manager CIK, holding ticker, CUSIP or put/call.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>Lucene-syntax query over filing fields, field:value with AND/OR/NOT, wildcards and \[a TO b] ranges. Example `cik:1633901 AND periodOfReport:[2023-01-01 TO 2023-12-31]`</td></tr>

    <tr>
      <td>
        `from`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Offset of the first result; default 0, at most 10000.
      </td>
    </tr>

    <tr>
      <td>
        `size`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per call; default 50, at most 50.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Sort objects; default \[\{"filedAt":\{"order":"desc"}}].
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/form-13-f-filings-institutional-holdings-api)

```python Python theme={null}
router.call_data_api("sec-api.form13f.holdings", {'query': 'cik:1633901 AND periodOfReport:[2023-01-01 TO 2023-12-31]'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.form13f.holdings", params={"query": "cik:1633901 AND periodOfReport:[2023-01-01 TO 2023-12-31]"})
```

> [!NOTE]
>
> * A read over POST. At most 10,000 results per query: page by raising from by size, and split larger sets into filedAt or periodOfReport date ranges.
> * Find who holds a stock with holdings.ticker:TSLA or holdings.cusip:\<cusip>.

### Search 13F cover pages

POST

`/form-13f/cover-pages`

`sec-api.form13f.coverpages`

13F filing cover pages, searchable by fields such as crdNumber.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>Lucene-syntax query over filing fields, field:value with AND/OR/NOT, wildcards and \[a TO b] ranges. Example `crdNumber:105129`</td></tr>

    <tr>
      <td>
        `from`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Offset of the first result; default 0, at most 10000.
      </td>
    </tr>

    <tr>
      <td>
        `size`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per call; default 50, at most 50.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Sort objects; default \[\{"filedAt":\{"order":"desc"}}].
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/form-13-f-filings-institutional-holdings-api)

```python Python theme={null}
router.call_data_api("sec-api.form13f.coverpages", {'query': 'crdNumber:105129'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.form13f.coverpages", params={"query": "crdNumber:105129"})
```

> [!NOTE]
>
> * A read over POST. At most 10,000 results per query: page by raising from by size, and split larger sets into filedAt or periodOfReport date ranges.

### Convert a filing's XBRL to JSON

GET

`/xbrl-to-json`

`sec-api.xbrl.json`

The XBRL financial data of one filing (e.g. a 10-K or 10-Q) as JSON.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `htm-url`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        URL of the filing (.htm/.html) or its index page.
      </td>
    </tr>

    <tr>
      <td>
        `xbrl-url`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        URL of the XBRL instance .xml (from dataFiles in filings.search).
      </td>
    </tr>

    <tr><td>`accession-no`</td><td>string</td><td>query</td><td>Accession number. Example `0001564590-21-004599`</td></tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/xbrl-to-json-converter-api) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-income-statement), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-financials), [Corpo API](https://docs.webrouter.net/data-apis/corpoapi.md#corpoapi-company-financials), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-fees-summary), [Explorium AgentSource](https://docs.webrouter.net/data-apis/explorium.md#explorium-businesses-financial-indicators), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-financials-search)

```python Python theme={null}
router.call_data_api("sec-api.xbrl.json", {'accession-no': '0001564590-21-004599'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.xbrl.json", params={"accession-no": "0001564590-21-004599"})
```

> [!NOTE]
>
> * Pass exactly one of htm-url, xbrl-url or accession-no.

### Extract a filing section

GET

`/extractor`

`sec-api.filings.extract_item`

The text or HTML of one item (e.g. 1A Risk Factors, 7 MD\&A) of a 10-K, 10-Q or 8-K.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `url`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        URL of the 10-K, 10-Q or 8-K (.htm or .txt).
      </td>
    </tr>

    <tr><td>`item` required</td><td>string</td><td>query</td><td>One item. 10-K: 1, 1A, 1B, 1C, 2, 3, 4, 5, 6, 7, 7A, 8, 9, 9A, 9B, 10-15. 10-Q: part1item1-part1item4, part2item1, part2item1a, part2item2-part2item6. 8-K: e.g. 1-1, 2-2, 5-2, signature. Example `1A`</td></tr>
    <tr><td>`type`</td><td>string</td><td>query</td><td>text (default) or html. One of `text`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/sec-filings-item-extraction-api) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-fetch), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-llm-context), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch)

### Resolve a ticker

GET

`/mapping/ticker/{ticker}`

`sec-api.mapping.ticker`

Company name, CIK, CUSIP, exchange, sector and industry for a ticker.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `ticker`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `TSLA`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/mapping-api) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-companies-top), [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-company-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-companies-search), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-symbol-search), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-organizations-search)

```python Python theme={null}
router.call_data_api("sec-api.mapping.ticker", {'ticker': 'TSLA'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.mapping.ticker", params={"ticker": "TSLA"})
```

### Find companies by name

GET

`/mapping/name/{name}`

`sec-api.mapping.name`

Companies whose name matches, with ticker, CIK and CUSIP.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Company name, URL-encoded. Example `Tesla`</td></tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/mapping-api) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-companies-top), [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-company-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-companies-search), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-symbol-search), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-organizations-search)

```python Python theme={null}
router.call_data_api("sec-api.mapping.name", {'name': 'Tesla'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.mapping.name", params={"name": "Tesla"})
```

### Resolve a CIK

GET

`/mapping/cik/{cik}`

`sec-api.mapping.cik`

Tickers and company details registered under a CIK.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `cik`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        &#x20;Example&#x20;

        `1318605`
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://sec-api.io/docs/mapping-api)

```python Python theme={null}
router.call_data_api("sec-api.mapping.cik", {'cik': '1318605'})
```

```text MCP theme={null}
call_data_api(endpoint="sec-api.mapping.cik", params={"cik": "1318605"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.