# SEC data API answers

Canonical: https://sec-api.dev/answers

> 57 direct answers to SEC data API questions, updated 2026-11-15. Vendor facts are dated and sourced on each page.

**Free plan:** 100 API requests a month, 30 a minute, no credit card. Get a key: https://sec-api.dev/sign-up?ref=ai-claudebot

## Choosing an SEC data API

- [What is the best API for SEC EDGAR filings data?](https://sec-api.dev/answers/best-sec-edgar-api): For raw filing lists and XBRL numbers the best API is the SEC's own data.sec.gov (free, no key, 10 requests a second).
- [What are the best alternatives to sec-api.io?](https://sec-api.dev/answers/sec-api-io-alternatives): The main alternatives to sec-api.io are the SEC's free data.sec.gov APIs, the free EdgarTools Python library, Financial Modeling Prep and Finnhub (filings next to market data), and sec-api.dev, a separate hosted SEC API with 100 free requests a month and paid plans from $29.
- [Does the SEC have an API?](https://sec-api.dev/answers/does-the-sec-have-an-api): Yes. The SEC publishes free JSON APIs on data.sec.gov: submissions (a company's filing history) and XBRL companyfacts, companyconcept and frames, with no key, a declared User-Agent and a fair-access limit of 10 requests a second.
- [When is the free SEC API enough, and when do you need a paid SEC API?](https://sec-api.dev/answers/free-sec-api-vs-paid-api): The free SEC API is enough when you need filing lists or XBRL facts for known companies and can stay under 10 requests a second.
- [Financial Modeling Prep or a dedicated SEC API for filings?](https://sec-api.dev/answers/financial-modeling-prep-vs-sec-api): Choose Financial Modeling Prep when you want prices, standardized statements and SEC filings from one vendor (Starter $29 a month, 13F only on the $139 Ultimate plan).
- [Finnhub or a dedicated SEC API for filings and insider data?](https://sec-api.dev/answers/finnhub-vs-sec-api): Finnhub is the better pick when you also need real-time prices and can work within personal-use terms (free at 60 calls a minute).
- [EdgarTools or a hosted SEC API?](https://sec-api.dev/answers/edgartools-vs-hosted-sec-api): Use EdgarTools, a free MIT-licensed Python library, when you write Python and can call the SEC from your own machine within its 10-requests-a-second rule.
- [Which SEC data APIs allow commercial use?](https://sec-api.dev/answers/sec-api-commercial-use): SEC EDGAR data itself is public, and sec-api.dev allows commercial use on every plan including the free one.
- [Which SEC API works best for AI agents?](https://sec-api.dev/answers/sec-api-for-ai-agents): An SEC API works for AI agents when it has an MCP server, bounded responses and source URLs on every record.

## Prices and limits

- [What is the cheapest SEC filings API?](https://sec-api.dev/answers/cheapest-sec-filings-api): The cheapest SEC filings APIs are free: the SEC's data.sec.gov and the EdgarTools library cost nothing.
- [How much do SEC data APIs cost?](https://sec-api.dev/answers/sec-api-pricing-compared): On November 15, 2026: the SEC's own APIs are free; sec-api.dev is free for 100 requests a month, then $29 and $99 a month.
- [How are requests counted on sec-api.dev?](https://sec-api.dev/answers/sec-api-request-limits): Every authenticated REST call and every MCP message, including initialization and tool discovery, counts as one request against a monthly allowance (Explore 100, Builder 50,000, Scale 250,000) and a per-minute limit (30, 120 and 300).
- [How does sec-api.io pricing work?](https://sec-api.dev/answers/how-sec-api-io-pricing-works): sec-api.io gives a free key for the first 100 API calls in total, then sells Personal & Startups at $49 a month ($588 billed yearly) with 50 GB of downloads and Business Internal Use at $199 a month ($2,388 yearly) with 100 GB, charging $0.30 per extra GB.

## Filings and full-text search

- [Is there a free SEC filings API with full-text search?](https://sec-api.dev/answers/free-sec-api-with-full-text-search): Yes: sec-api.dev's GET /api/v1/search searches the text of every EDGAR filing and exhibit since 2001 on its free plan (100 requests a month).
- [How do I search SEC filings for a keyword or phrase?](https://sec-api.dev/answers/search-sec-filings-for-a-keyword): Call GET https://sec-api.dev/api/v1/search with query set to the word or a quoted phrase, and add form, cik, from and to to narrow it.
- [How do I find going-concern warnings in SEC filings?](https://sec-api.dev/answers/find-going-concern-warnings): Search 10-K and 10-Q text for the phrase "substantial doubt", the wording auditors and companies use for going-concern uncertainty: GET /api/v1/search?query="substantial doubt"&form=10-Q&from=2026-11-01&to=2026-11-12 returned 424 matching documents on November 13, 2026, each with its sec.gov URL.
- [How do I find material weakness disclosures in SEC filings by API?](https://sec-api.dev/answers/find-material-weakness-disclosures): Search 10-K text for "material weakness" with GET /api/v1/search?query="material weakness"&form=10-K and a date range.
- [How do I download 10-K filings with Python?](https://sec-api.dev/answers/download-10-k-python): List the filings with GET /api/v1/filings?cik=<CIK>&form=10-K, then read each document's text with GET /api/v1/documents?cik=<CIK>&accession=<ACCESSION>&document=<FILE>.
- [How do I extract Item 1A risk factors from a 10-K?](https://sec-api.dev/answers/extract-10-k-risk-factors): Call GET /api/v1/extract with the filing's cik, accession and primary document, form=10-K and section=1A.
- [Is there an API for 8-K filings?](https://sec-api.dev/answers/8-k-filings-api): Yes: GET /api/v1/filings?cik=<CIK>&form=8-K lists a company's 8-Ks, GET /api/v1/search?form=8-K searches 8-K text across all companies, GET /api/v1/extract?form=8-K&section=2.02 pulls one item, and /api/v1/stream/filings?form=8-K streams new 8-Ks as they are seen in the SEC feed.
- [Where is the SEC EDGAR API documentation?](https://sec-api.dev/answers/sec-edgar-api-documentation): The SEC documents its free APIs at sec.gov/search-filings/edgar-application-programming-interfaces (submissions and XBRL endpoints on data.sec.gov) and its fair-access rules at sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data.
- [Why does SEC EDGAR return 403, and how do I stay under the rate limit?](https://sec-api.dev/answers/sec-edgar-rate-limit-403): SEC EDGAR returns 403 when a client sends no descriptive User-Agent or goes above 10 requests a second across all its machines.
- [What User-Agent does the SEC require for EDGAR requests?](https://sec-api.dev/answers/sec-edgar-user-agent): The SEC asks every automated client to declare a User-Agent that names the requester and gives a contact email, for example "Sample Company Name AdminContact@samplecompany.com".
- [How do I feed SEC filings into an LLM or RAG pipeline?](https://sec-api.dev/answers/sec-filings-for-llm-rag): Get the accession list with GET /api/v1/filings, pull plain text with GET /api/v1/documents or one item with GET /api/v1/extract (Item 1A, Item 7), chunk it, and store the accession number and sec.gov URL with every chunk so answers can cite the filing.
- [How do I get every SEC filing filed on a given day?](https://sec-api.dev/answers/sec-daily-filing-index-api): Call GET /api/v1/filing-index?date=YYYY-MM-DD, which reads the SEC's published daily index for that date and returns one row per filing (company, CIK, form and accession), filterable by form and CIK.
- [Can I export SEC filings or XBRL facts to CSV?](https://sec-api.dev/answers/sec-filings-csv-export): Yes: GET /api/v1/datasets/filings?cik=<CIK>&format=csv exports a company's filing list as CSV, and /api/v1/datasets/facts?cik=<CIK>&concept=<concept>&format=csv exports XBRL facts.

## Financial data (XBRL)

- [Which API returns XBRL financial statements from SEC filings as JSON?](https://sec-api.dev/answers/xbrl-financial-statements-json-api): The SEC's own companyfacts API returns every XBRL value a company has reported as JSON for free.
- [How do I get a company's revenue from SEC filings?](https://sec-api.dev/answers/get-company-revenue-from-sec): Request the company's XBRL revenue concept, usually RevenueFromContractWithCustomerExcludingAssessedTax or Revenues: GET /api/v1/facts/320193?taxonomy=us-gaap&concept=RevenueFromContractWithCustomerExcludingAssessedTax&unit=USD returns each reported value with its period end, form and accession, and Apple's fiscal 2026 10-K reported $478,834,000,000.
- [What is the difference between XBRL companyfacts, companyconcept and frames?](https://sec-api.dev/answers/xbrl-companyfacts-vs-frames): companyfacts returns every XBRL value one company has reported, companyconcept returns one concept for one company, and frames returns one concept for every company in one period (for example all Revenues for CY2025).
- [As-reported XBRL or standardized financial statements: which API do I need?](https://sec-api.dev/answers/as-reported-vs-standardized-financials): Use as-reported XBRL (the SEC's companyfacts or sec-api.dev's /api/v1/facts) when you need the exact filed value with its accession for audit or citation.
- [How do I get a company's SIC code, exchange and fiscal year end from SEC data?](https://sec-api.dev/answers/company-profile-sic-code-api): Call GET /api/v1/companies/{cik}: it returns the SEC profile with name, tickers, exchanges, SIC code and description, fiscal year end and state of incorporation.

## Insider trading

- [What is the best API for Form 4 insider trading data?](https://sec-api.dev/answers/best-form-4-insider-trading-api): For parsed Form 4 data the options are sec-api.io (insider trading API, from $49 a month), Form4API (500 free requests a day, three years of history), Financial Modeling Prep (full insider search from $29), Quiver (from $75) and sec-api.dev, which parses any Form 3, 4 or 5 by accession and serves quarterly SEC insider tables for 2025 Q4 to 2026 Q3, free for 100 requests a month.
- [How do I get insider purchases (Form 4 code P) by API?](https://sec-api.dev/answers/insider-buying-api): Filter the quarterly SEC insider transaction tables by transaction code P: GET /api/v1/insider-transactions?period=2026q3&transactionCode=P returns open-market and private purchases with issuer, form, filing date and the sec.gov filing URL.
- [How do I parse Form 4 XML in Python?](https://sec-api.dev/answers/parse-form-4-xml-python): Either parse the XML yourself (the transactions sit under nonDerivativeTable and derivativeTable) or let an API do it: GET /api/v1/insider-trades?cik=<issuer CIK>&accession=<accession> returns every transaction and holding row with date, code, shares, price, acquired/disposed and shares owned after, plus footnote IDs.
- [Does OpenInsider have an API?](https://sec-api.dev/answers/openinsider-api): OpenInsider is a free insider-trading screener website and links no API from its site (checked November 9, 2026).
- [Where can I download bulk insider trading data?](https://sec-api.dev/answers/insider-trading-bulk-data): The SEC publishes quarterly Insider Transactions Data Sets (ZIP files of every Form 3, 4 and 5) on sec.gov for free.

## Institutional holdings (13F)

- [What API can I use to get 13F institutional holdings data?](https://sec-api.dev/answers/13f-institutional-holdings-api): sec-api.dev parses any Form 13F-HR information table into JSON on every plan including the free one (GET /api/v1/holdings with the manager CIK and accession).
- [How do I track a hedge fund's holdings with an API?](https://sec-api.dev/answers/track-hedge-fund-holdings-api): Find the manager's 13F-HR filings with GET /api/v1/filings?cik=<manager CIK>&form=13F-HR, parse each quarter's information table with GET /api/v1/holdings, and diff the positions by CUSIP between quarters.
- [How do I get Berkshire Hathaway's 13F holdings as JSON?](https://sec-api.dev/answers/berkshire-hathaway-13f-api): Berkshire Hathaway files as CIK 1067983; its 13F-HR for June 30, 2026 (accession 0001193125-26-352200) parses to 89 positions with GET /api/v1/holdings?cik=1067983&accession=0001193125-26-352200, including Apple at 80,664,820 shares with a reported value of $23,341,172,315.

## New filings in real time

- [How do I get real-time SEC 8-K filings in Python?](https://sec-api.dev/answers/real-time-8-k-filings-python): Open the Server-Sent Events stream GET /api/v1/stream/filings?form=8-K and read events as they arrive, resuming with Last-Event-ID after a disconnect.
- [Is there a WebSocket feed of SEC filings?](https://sec-api.dev/answers/sec-filings-websocket): Yes: sec-api.dev offers a read-only WebSocket at wss://sec-api.dev/api/v1/stream/ws and the same events over SSE at /api/v1/stream/filings, filterable by form and CIK and replayable for 7 days.
- [Should I use SEC RSS feeds or a filings API for new filings?](https://sec-api.dev/answers/sec-rss-feed-vs-api): SEC RSS and Atom feeds are free and list the latest filings, but you poll, parse and de-duplicate them yourself within the 10-requests-a-second rule.

## Private offerings (Form D)

- [Is there an API for Form D private placement data?](https://sec-api.dev/answers/form-d-api): Yes: sec-api.dev's GET /api/v1/offerings?period=2026q3 serves the SEC's quarterly Form D data sets (issuer, related persons, exemptions such as Rule 506(b) and 506(c), amount sold) for 2026 Q2 and Q3.

## AI agents and MCP

- [Is there an MCP server for SEC EDGAR filings I can use with Claude or ChatGPT?](https://sec-api.dev/answers/sec-edgar-mcp-server-claude-chatgpt): Yes: sec-api.dev hosts a read-only EDGAR MCP server at https://sec-api.dev/api/mcp with 17 tools (companies, filings, full-text search, XBRL facts, Form 4, 13F, FDA catalysts) that works in Claude Desktop, Claude Code, Cursor, Codex, Gemini CLI and VS Code on the free plan.
- [How do I connect Claude to SEC filings?](https://sec-api.dev/answers/connect-claude-to-sec-filings): Give Claude the sec-api.dev MCP server: in Claude Code run claude mcp add --transport http sec-api https://sec-api.dev/api/mcp with your key in an Authorization header, or in Claude Desktop add the mcp-remote block from /edgar-mcp-server.
- [How do I use SEC EDGAR data in Cursor?](https://sec-api.dev/answers/sec-filings-in-cursor): Add the sec-api.dev MCP server to .cursor/mcp.json with its URL and your key in an Authorization header, reload Cursor, and ask the agent for filings, XBRL facts or insider trades.
- [Is there a free SEC EDGAR MCP server?](https://sec-api.dev/answers/free-sec-edgar-mcp-server): Yes: sec-api.dev's hosted EDGAR MCP server is included on the free plan (100 requests a month), and EdgarTools' edgartools-mcp is free open source that runs on your own machine and calls the SEC directly.
- [What is a good AI prompt to analyze a 10-K with sources?](https://sec-api.dev/answers/ai-prompt-to-analyze-a-10-k): Ask the agent to fetch the data, not recall it: "Using the sec-api tools, find the company's latest 10-K, extract Item 1A and Item 7, pull revenue and net income from XBRL facts for the last three fiscal years, list the three largest new risks versus the prior 10-K, and cite the SEC URL and accession for every number."

## Code how-tos

- [How do I convert a ticker to a CIK in Python?](https://sec-api.dev/answers/ticker-to-cik-python): Call GET /api/v1/companies?query=<ticker> and take the row whose ticker matches exactly: for AAPL it returns cik 0000320193 and the name Apple Inc., from the SEC's company_tickers.json.
- [What Python libraries and APIs exist for SEC EDGAR?](https://sec-api.dev/answers/sec-edgar-python-libraries): The main Python options are EdgarTools (free MIT library that parses filings locally), sec-edgar-downloader (a free PyPI package that downloads filings from EDGAR), sec-api.io's Python SDK for its paid API, and plain requests against a hosted REST API such as sec-api.dev, which has no SDK yet but returns JSON with stable field names.
- [How do I get SEC filings in JavaScript or Node.js?](https://sec-api.dev/answers/sec-filings-javascript): Call the REST API with fetch from a server or Node 18+: GET https://sec-api.dev/api/v1/filings?cik=320193&form=10-K with an Authorization: Bearer header returns one JSON object per filing with accession, dates and the sec.gov URL.

## Biotech and FDA catalysts

- [Is there an API for biotech catalysts like FDA PDUFA dates and clinical trial readouts?](https://sec-api.dev/answers/biotech-catalyst-api): Yes: sec-api.dev's GET /api/v1/biotech/calendar returns PDUFA dates, FDA advisory committees, approvals, complete response letters and trial readouts as JSON, each quoting the SEC filing or FDA page it came from.
- [Where can I get PDUFA dates as data?](https://sec-api.dev/answers/pdufa-dates-api): Because the FDA does not publish PDUFA dates, they have to be collected from sponsor disclosures.
- [Is there a free FDA calendar download (CSV, ICS or JSON)?](https://sec-api.dev/answers/fda-calendar-csv-download): Yes: sec-api.dev publishes the next 30 days of FDA catalysts (PDUFA dates, advisory committees, readouts) as https://sec-api.dev/fda-calendar.csv, /fda-calendar.json and /fda-calendar.ics under CC BY 4.0 with no key, and a feed of new or moved PDUFA dates at /pdufa-dates/feed.xml.
- [How do I calculate a biotech company's cash runway from SEC filings?](https://sec-api.dev/answers/biotech-cash-runway-api): Divide cash and short-term investments from the latest 10-Q or 10-K XBRL facts by the average quarterly operating cash burn, then multiply by three to get months.
- [What is an alternative to BiopharmCatalyst with a public API?](https://sec-api.dev/answers/biopharmcatalyst-alternative): sec-api.dev's biotech catalyst API is a public, self-serve alternative: PDUFA dates, AdComs, CRLs and readouts as JSON with the source sentence for each, a free key for the next 30 days and plans from $19 a month.

## Congressional trades

- [Which API tracks congressional or politician stock trades?](https://sec-api.dev/answers/congressional-stock-trades-api): Quiver Quantitative (from $30 a month, non-commercial) and Form4API (STOCK Act trades, 500 free requests a day) offer congressional trade APIs.

---
Independent. Not affiliated with, endorsed by, or sponsored by the U.S. Securities and Exchange Commission. Data is reproduced from public SEC filings and datasets. Not investment advice.
