Setup
Put them in your environment or
.env; Data APIs 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
Search filings
- 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
- 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
- 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
- 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
- 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
- Pass exactly one of htm-url, xbrl-url or accession-no.