Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.secapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

SEC Filing Download & CDN API

EDGAR’s 10 requests-per-second rate limit makes bulk document retrieval painfully slow. Datastream mirrors every filing document to a global Cloudflare R2 CDN, so you can download PDFs, HTML filings, and XML exhibits at 100+ requests per second with sub-100ms latency worldwide.

Capabilities

100+ req/sec throughput

No rate limiting. Download thousands of filing documents in minutes instead of hours.

Global CDN

Documents served from Cloudflare R2 edge locations worldwide. Sub-100ms latency from any region.

All document types

PDFs, HTML filings, XML/XBRL exhibits, and all associated documents for every filing since 1993.

Direct URL resolution

Pass an accession number and get permanent, stable URLs for every document in the filing package.

Quick start

Get download URLs for all documents in a filing:
curl -H "x-api-key: $OMNI_DATASTREAM_API_KEY" \
  "https://api.secapi.ai/v1/filings/documents?accession_number=0000320193-24-000081"
{
  "accession_number": "0000320193-24-000081",
  "documents": [
    {
      "filename": "aapl-20240928.htm",
      "type": "10-K",
      "size_bytes": 2845000,
      "cdn_url": "https://cdn.secapi.ai/0000320193-24-000081/aapl-20240928.htm"
    },
    {
      "filename": "R1.htm",
      "type": "EX-21",
      "size_bytes": 45000,
      "cdn_url": "https://cdn.secapi.ai/0000320193-24-000081/R1.htm"
    }
  ]
}
Download a specific document directly:
curl -H "x-api-key: $OMNI_DATASTREAM_API_KEY" \
  "https://cdn.secapi.ai/0000320193-24-000081/aapl-20240928.htm" -o filing.html

Use cases

Bulk document archival

Build a local archive of SEC filings without fighting EDGAR rate limits. Download thousands of documents per minute for research or compliance.

AI training data pipelines

Gather large corpora of SEC filings for fine-tuning language models or building retrieval-augmented generation (RAG) systems.

Document rendering

Serve filing documents to end users from a fast CDN instead of proxying through EDGAR’s slow infrastructure.

Regulatory compliance

Maintain auditable copies of all filings from counterparties or portfolio companies with stable, versioned URLs.

API endpoints

EndpointDescription
GET /v1/filings/documentsList all documents for a filing
GET /cdn.secapi.ai/:pathDirect CDN download for a document

Why Datastream for filing downloads

FeatureDatastreamRaw EDGARSEC-API.io
Download speed100+ req/sec10 req/secVaries
Global CDNYes (R2)No (US only)No
Stable URLsYesSubject to changeYes
All document typesYesYesPartial
Bulk download supportYesNoPartial
PricingPay-as-you-goFree (slow)$Varies

Get started

Get your API key

Start downloading SEC filings at full speed. 250 free API calls per month.