Blog / Developer guides
Developer guides

How to Download SEC Filings: EDGAR, Bulk Index or API

Three real ways to download SEC filings, from one document at a time on EDGAR to the SEC's own bulk index files and a parsed data API.

By the SecFeed teamNovember 9, 20268 min read
Key takeaways

There are three real ways to download SEC filings: one at a time through EDGAR's own filing pages, in bulk through the index files the SEC publishes itself, or through an API that hands you parsed data instead of raw documents. Which one makes sense depends on whether you need one company's filing, every filing of a given type, or the actual numbers and text inside them.

This guide covers all three, including the bulk index files most "download SEC filings" guides skip over in favor of a scraper.

Downloading one filing at a time from EDGAR

Every filing has an accession number, a unique ID such as 0000320193-26-000020. Paired with the filer's CIK, that number builds a predictable URL for the filing's index page:

https://www.sec.gov/Archives/edgar/data/<cik>/<accession-no-no-dashes>/<accession-no>-index.htm

The index page lists every document in the filing: the main form, signed exhibits, and any XBRL files, each as its own link. This is the normal way to grab a single filing you already know, and it needs no account, no key and no special software, just a browser and the CIK and accession number.

The catch is scale. Finding the CIK and accession number for one company is easy on EDGAR's own company search. Doing it for hundreds of companies, or for every filing of a given type across all filers, means either clicking through EDGAR company by company or writing code against it, which is where the next two approaches come in.

Downloading many filings at once: EDGAR's own index files

EDGAR does not just host individual filings. It also publishes index files that list every filing submitted in a given period, in a few plain text and structured formats, at https://www.sec.gov/Archives/edgar/full-index/.

Index fileSort orderFormat
master.idxBy filing (one row per accession)Pipe-delimited text: CIK, company name, form type, date filed, file name
form.idxBy form type, then companyFixed width text
company.idxBy company nameFixed width text
Full index files are organized by year and quarter, for example /full-index/2026/QTR4/master.idx, and are rebuilt on a schedule rather than instantly: the current quarter's index is updated through the week, and once a quarter ends its index becomes a fixed, final record of what was filed.

master.idx is the one worth starting with for most scripts, since each line already gives you the form type and a direct path to the filing. A typical row looks like:

1045810|NVIDIA CORP|10-K|2026-02-25|edgar/data/1045810/0001045810-26-000021.txt

That is enough to build the same Archives URL used for single filing downloads, for every filing in the period, without calling EDGAR's search page in a loop. The index also comes as a daily version under /full-index/<year>/QTR<n>/daily-index/, which only lists filings from one day, useful for picking up new filings without re-reading the whole quarter.

Because the index files are themselves files on sec.gov, pulling them still falls under the SEC's fair access rate limit: keep automated requests at or under 10 per second and send a descriptive User-Agent header.

Each master.idx row also points at a complete submission text file, a single .txt file ending in the accession number that bundles every document in that filing one after another, separated by SGML-style tags. Older filings, especially from the 1990s before EDGAR fully moved to HTML, exist mainly in this combined form rather than as separate per-document files. Fetching that one file is the simplest way to get an old filing's full content in a single request, at the cost of having to split it yourself if you only want one document out of it.

Once you have pulled an index file for a quarter, save it. The full index for a finished quarter never changes, so re-downloading it on every run just spends requests for no new information. Only the current quarter's index, and the daily index, are worth refetching.

Get this data as clean JSON

SecFeed turns SEC filings into structured data with one API call: GET /v1/bulk/download?dataset=filings&month=2026-10&formType=10-K. Free key, no card needed.

Get a free API key →

Downloading with Python or a library

Once you have a list of accessions from an index file, or a single CIK you want every filing for, Python is the common next step: build the Archives URL for each document, fetch it with a delay between requests, and save it to disk. That part is simple with the standard library, and the part worth getting right is staying inside the rate limit and parsing the filing's own index page so you know which file is the primary document versus an exhibit.

The full walkthrough, including a polite rate-limited fetch loop and handling multi-document filings, is in how to download SEC filings with Python. Several open source libraries wrap the same steps; they all talk to the same Archives URLs and are bound by the same rate limit, so a library saves you code, not requests.

What raw downloads do not give you

Both of the approaches above hand you files, not answers. A few limits come up on almost every project that starts with raw EDGAR downloads:

  1. Formats vary by filer and era. Older filings are plain text, newer ones are HTML, and the numbers usually also exist as separate XBRL facts. Reading "net income" out of a 10-K means handling at least two of those formats.
  2. No cross-filer search. The index files tell you what was filed, not what is inside it. Finding every 8-K that disclosed a cybersecurity incident, or every 13F holding a specific CUSIP, means opening and parsing filings yourself.
  3. No history in one place. master.idx only covers one quarter at a time, so pulling several years means fetching and concatenating many index files.

Downloading filings as structured data instead of raw files

SecFeed sits on top of the same EDGAR Archives files and the same index, but returns rows instead of documents. Searching by ticker and form type, listing a filing's files, and downloading a bulk period are each a single call:

curl "https://secfeedapi.com/v1/filings?query=ticker:NVDA AND formType:\"10-K\"&size=1" \
  -H "Authorization: Bearer YOUR_API_KEY"

That returns the filing's CIK, accession number, form type and filed date, the same fields a row of master.idx would give you, but filtered server side instead of scanned from a quarter's worth of index lines. From there, /v1/files lists every document and exhibit in that filing, and /v1/download or /v1/pdf fetches one of them as filed or rendered to PDF.

For a whole period rather than one filing, the bulk endpoint builds the archive for you instead of you looping over an index file:

curl "https://secfeedapi.com/v1/bulk/download?dataset=filings&month=2026-10&formType=10-K" \
  -H "Authorization: Bearer YOUR_API_KEY" -o filings-2026-10-10-K.jsonl.gz

That call returns a gzipped JSON Lines file covering every Form 10-K filed that month, the same scope form.idx would cover, already filtered to one form type instead of a flat list of every filing. See the Bulk SEC Datasets page for the other datasets built the same way, including insider transactions and 13F holdings.

Choosing between the three

MethodBest forWhat you still have to do
EDGAR filing pageOne filing you already have the accession forNothing extra, just open the index page
EDGAR index files (master.idx etc.)Finding every filing of a type or period, at your own rateParse the text format, respect the rate limit, assemble multiple quarters yourself
An API such as SecFeedFiltered search, cross-filer queries, parsed fields, or a ready-made bulk archiveNothing beyond an API key; the index and rate limiting are handled server side

None of these change the underlying source. EDGAR's Archives files are the single source of truth, whether you reach them by clicking a link, parsing an index file, or calling an API that already did the parsing.

Frequently asked questions

Is it free to download SEC filings?

Yes. Every filing on EDGAR is a public record, free to access directly, with no account or API key required. Paid services charge for parsing, search across filers, and bulk packaging, not for the underlying data.

Can I download every SEC filing of a certain type at once?

Yes, by reading EDGAR's form.idx or master.idx files for the periods you need and filtering by form type, or by requesting a bulk dataset already filtered that way through an API.

What is the difference between the full index and the daily index?

The full index at /full-index/<year>/QTR<n>/ covers a whole quarter and becomes fixed once the quarter ends. The daily index under the same path's daily-index/ folder lists only one day's filings, which is useful for checking what was filed since your last pull without re-reading the whole quarter.

Do I need to write a parser to read EDGAR's index files?

For master.idx, no more than splitting each line on the pipe character, since it is already pipe-delimited with one filing per row. form.idx and company.idx are fixed width text, which takes a bit more parsing.

Why would I use an API instead of downloading directly from EDGAR?

Directly from EDGAR you get the raw files: HTML documents, XBRL data and plain text index lines. An API such as SecFeed returns the same underlying filings as structured fields you can filter and query, and handles the EDGAR rate limit on its own infrastructure instead of yours.

Get this data as clean JSON

SecFeed turns SEC filings into structured data with one API call: GET /v1/bulk/download?dataset=filings&month=2026-10&formType=10-K. Free key, no card needed.

Get a free API key →

For information only, not investment advice. Data from public SEC filings; verify important figures on SEC.gov. See our AI Disclosure.