search and download sec filings from edgar (full-text search, user-agent and rate-limit rules)

domain: sec.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Set a descriptive User-Agent header on every request in the format 'CompanyName ContactEmail' as required by SEC EDGAR fair access policy; requests without this header are blocked.
  2. Search filings via GET https://efts.sec.gov/LATEST/search-index?q=<query>&dateRange=custom&startdt=YYYY-MM-DD&enddt=YYYY-MM-DD&forms=10-K to the EDGAR full-text search endpoint.
  3. Retrieve a company's filing index by CIK via GET https://data.sec.gov/submissions/CIK{zero-padded-10-digit}.json; this JSON lists all recent filings with accession numbers and form types.
  4. Construct the filing index URL as https://www.sec.gov/Archives/edgar/data/{cik}/{accession-no-dashes}/ and fetch the index JSON or HTML to enumerate documents in the filing.
  5. Download individual documents (10-K body, exhibits) directly from the Archives path; respect the rate limit of no more than 10 requests per second per IP.

Known gotchas

Related routes

Search SEC EDGAR filings using the full-text search API
efts.sec.gov · 6 steps · unrated
Search EDGAR filings by full-text keyword using the EDGAR Full-Text Search (EFTS) API
sec.gov · 6 steps · unrated
Retrieve contracts and exhibits from SEC filings using the EDGAR full-text search API and the company Submissions API
sec.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans