> ## 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 — Fast PDF and Document Retrieval

> Download SEC filing documents at 100+ requests per second from a global CDN. PDF, HTML, and XML filings mirrored from EDGAR with no rate limits. Get started free at secapi.ai/signup.

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

## Capabilities

<CardGroup cols={2}>
  <Card title="100+ req/sec throughput" icon="gauge-high">
    No rate limiting. Download thousands of filing documents in minutes instead of hours.
  </Card>

  <Card title="Global CDN" icon="globe">
    Documents served from edge CDN locations worldwide. Sub-100ms latency from any region.
  </Card>

  <Card title="All document types" icon="file-pdf">
    PDFs, HTML filings, XML/XBRL exhibits, and all associated documents for every filing since 1993.
  </Card>

  <Card title="Direct URL resolution" icon="link">
    Pass an accession number and get permanent, stable URLs for every document in the filing package.
  </Card>
</CardGroup>

## Quick start

Get download URLs for all documents in a filing:

```bash theme={null}
curl -H "x-api-key: $SECAPI_API_KEY" \
  "https://api.secapi.ai/v1/filings/documents?accession_number=0000320193-24-000081"
```

```json theme={null}
{
  "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:

```bash theme={null}
curl -H "x-api-key: $SECAPI_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

| Endpoint                    | Description                        |
| --------------------------- | ---------------------------------- |
| `GET /v1/filings/documents` | List all documents for a filing    |
| `GET /cdn.secapi.ai/:path`  | Direct CDN download for a document |

## Why SEC API for filing downloads

| Feature               | SEC API       | Raw EDGAR         | sec-api.io |
| --------------------- | ------------- | ----------------- | ---------- |
| Download speed        | 100+ req/sec  | 10 req/sec        | Varies     |
| Global CDN            | Yes           | No (US only)      | No         |
| Stable URLs           | Yes           | Subject to change | Yes        |
| All document types    | Yes           | Yes               | Partial    |
| Bulk download support | Yes           | No                | Partial    |
| Pricing               | Pay-as-you-go | Free (slow)       | \$Varies   |

## Get started

<Card title="Get your API key" icon="key" href="/getting-started">
  Start downloading SEC filings at full speed. 150 free API calls (one-time).
</Card>

* [SEC EDGAR API](/seo/sec-edgar-api)
* [Filing Search API](/seo/sec-filing-search-api)
* [API Reference](/api-reference)
