How to Bulk Download SEC Comment Letters, Programmatically
Three ways to pull SEC comment letters (UPLOAD and CORRESP) in bulk, since EDGAR has no single combined file, plus a worked example by month.
- The SEC does not publish one combined bulk file for comment letters; you walk the quarterly full-index files, use full text search, or query a filing API by form type and date range.
- EDGAR full text search only covers filings since 2001 and hands results back a page at a time, so pulling thousands of letters that way means thousands of small requests.
- A filing API that accepts formType and a date range, with a bulk endpoint behind it, can return a full month of UPLOAD or CORRESP filings as one file.
- Whichever method you pick, declare a real User-Agent and stay under the SEC's fair access rate limit.
There is no single SEC file that contains every comment letter ever filed. UPLOAD (the staff's letters) and CORRESP (a company's responses) are EDGAR form types like any other, so getting them in bulk means one of three things: walking the quarterly index files yourself, paging through full text search, or asking a filing API for a form-and-date-range slice. This guide covers all three and ends with a worked example that pulls a full month in one request.
Quick start
If you just need a batch of recent comment letters and you already have an API key, the fastest path is a single search call scoped by form type and a filing date range, then paging through it with from and size:
curl "https://secfeedapi.com/v1/filings?query=formType:\"UPLOAD\" AND filedAt:[2026-09-01 TO 2026-09-30]&size=200" \
-H "Authorization: Bearer YOUR_API_KEY"
That gets you up to 200 rows per call, with the accession number, filer CIK and filing date for every UPLOAD filed that month. For a full month in a single file instead of paged search calls, skip ahead to the bulk endpoint further down.
Why the SEC does not publish one comment-letters bulk file
EDGAR's own bulk data products are organized by form type and by period, not by topic. There is a full-index file for every quarter listing every filing of every form, and there is full text search over the content of filings since 2001, but neither one is a dedicated "comment letters" export. The SEC's own guidance on correspondence filings describes UPLOAD and CORRESP as ordinary form types inside this general structure, not a separate dataset with its own delivery mechanism.
That matters for anyone building a research or compliance tool around comment letters: you are always filtering a general-purpose index or search tool down to two form types, rather than hitting an endpoint that was built for this specific use case. The three methods below differ mainly in how far back they reach, how much filtering work they leave on you, and whether you get one file or many small pages.
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=UPLOAD. Free key, no card needed.
Method 1: Full-index files, every form, every quarter
EDGAR publishes a plain-text index of every filing accepted each quarter, going back to the start of EDGAR itself, at a predictable URL:
https://www.sec.gov/Archives/edgar/full-index/<year>/QTR<n>/form.idx
Each line lists a form type, company name, CIK, filing date and the path to that filing's folder. To collect every comment letter for a quarter, you download that one file and keep only the lines where the form column is UPLOAD or CORRESP:
import urllib.request
HEADERS = {"User-Agent": "MyResearch tool admin@example.com"}
url = "https://www.sec.gov/Archives/edgar/full-index/2026/QTR3/form.idx"
req = urllib.request.Request(url, headers=HEADERS)
with urllib.request.urlopen(req) as resp:
lines = resp.read().decode("latin-1").splitlines()
letters = [ln for ln in lines if ln.strip().startswith(("UPLOAD", "CORRESP"))]
print(len(letters), "comment-letter filings that quarter")
This is the most complete method and the one with the longest history, since the index files exist for every quarter EDGAR has run. It is also the most manual: you get a filing path, not the letter's text or metadata like the reviewed company's industry, so you still have to fetch and parse each filing afterward, and you are doing the form-type filtering yourself on every quarter you need.
Method 2: EDGAR full text search, for narrow slices since 2001
EDGAR's full text search lets you filter by form type and a filing date range without downloading an entire quarter's index first, which is useful if you only need a narrow slice, for example one filer or one month. It only covers filings since 2001, and it searches the text of filings rather than returning a dense list the way an index file does, so it is built around keyword queries rather than bulk retrieval. Searching comment letters by form type and keyword through the SEC's own tool works well for a handful of letters, but it hands results back a page at a time, so reconstructing a complete month or quarter through it means issuing many small requests and stitching the pages together yourself, all while staying under the same fair access limits as any other automated EDGAR client.
Full text search is the right tool when you know roughly what you are looking for, a company name, a phrase from a letter, a specific quarter for one filer, rather than when you want every comment letter filed in a window, which is closer to what the index files or a dedicated filing API are for.
Method 3: Pull every CORRESP or UPLOAD filing through an API, in bulk
The Quick start section above showed a single paged search call. For a larger pull, most of the work is still in the pagination: at up to 200 rows per call, a busy month of comment letters across every filer can take several calls just to walk through, and you have to track from offsets yourself.
SecFeed's bulk endpoint exists for exactly this case: instead of paging a search, you ask for a dataset and a month, optionally narrowed to one form type, and get back every matching row as one gzip-compressed file of JSON Lines, one record per line:
curl "https://secfeedapi.com/v1/bulk/download?dataset=filings&month=2026-10&formType=UPLOAD" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o uploads-2026-10.jsonl.gz
import gzip
import json
import urllib.request
url = "https://secfeedapi.com/v1/bulk/download?dataset=filings&month=2026-10&formType=CORRESP"
req = urllib.request.Request(url, headers={"Authorization": "Bearer YOUR_API_KEY"})
with urllib.request.urlopen(req) as resp:
for line in gzip.decompress(resp.read()).splitlines():
row = json.loads(line)
print(row["cik"], row["filed"], row["accession"])
Each line is a filing record with the raw index fields: accession number, CIK, company name, form and filing date, assembled for a whole month at once rather than one page of results at a time. The field names here are the underlying index columns (accession, cik, filed), not the camelCase names a search call returns, since this is a direct export of the index rather than a formatted search result. Run it once for formType=UPLOAD and once for formType=CORRESP and a month's worth of SEC comment letters and company responses are two file downloads instead of a loop of paged requests. This is the method to reach for when the goal is "every comment letter in this window," rather than "letters matching this keyword" or "every filing of every type, which I will filter myself."
Daily index files, for a narrower slice than a full quarter
If a full quarter is more than you need, EDGAR also publishes a daily index at a similar predictable path:
https://www.sec.gov/Archives/edgar/daily-index/<year>/QTR<n>/form.<yyyymmdd>.idx
Each daily file lists only the filings accepted that day, in the same column layout as the quarterly form.idx. For a script that runs once a day and appends new UPLOAD and CORRESP lines to a local store, the daily index is the better fit: you are downloading one small file per day instead of re-downloading and re-filtering an entire quarter every time you check for new letters. The quarterly file is still the right choice for a one-time historical pull, since it is one request instead of roughly ninety.
Both the daily and quarterly index files come in a few variants: form.idx groups by form type, company.idx groups the same filings by company name, and master.idx is a pipe-delimited version of the same rows that is easier to parse than the fixed-width form.idx and company.idx layouts. Any of the three works for pulling comment letters; master.idx is usually the simplest to split in code since it has one delimiter instead of fixed column widths.
What you get from the index versus what you get from the letter
Every method above, the index files, full text search and a filing API, hands you metadata: which filer, which form, which date, and where the filing lives. None of them hands you the letter's actual argument, the specific accounting or disclosure question the SEC staff raised, or the company's specific answer, without an extra step of fetching that filing's documents and reading them.
For a research project that needs the letter's content rather than just its existence, the practical pipeline is: collect accession numbers in bulk with one of the methods above, then fetch each filing's document index and files to get the actual UPLOAD or CORRESP text. A letter is usually a single plain-text or HTML document, occasionally with an attachment, so this second step is comparatively light once you already know which accession numbers you need; the heavy lifting is almost always in building the first list, not in reading the handful of documents it points to.
Comparing the three methods
| Method | History covered | What you get back | Best for |
|---|---|---|---|
| Full-index files | Every quarter since EDGAR began | A plain-text list of filing paths, all form types mixed together | Complete historical coverage, when you can do your own filtering and fetching |
| Full text search | Filings and exhibits since 2001 | Keyword matches, delivered a page at a time | Finding specific letters by company or phrase |
| Bulk filing API | As far back as the provider's index goes | One file per dataset and month, already filtered by form type | Pulling every comment letter in a given window without pagination |
None of these three replaces the others completely. A research project spanning many years might start from the full-index files for coverage, then use a bulk API for the recent months it queries often, and fall back to full text search when it needs one specific letter by keyword rather than a whole window.
Rate limits and politeness when you automate this
Whichever method you use against the SEC's own servers directly, follow the same fair access rules that apply to any EDGAR traffic: send a descriptive User-Agent with a name and a real contact method, and keep your request rate under the SEC's guidance so you are not throttled or blocked. A loop that downloads one quarterly index file and then fetches hundreds of individual filings behind it should still add a short delay between the individual filing requests, since the index file itself is one request but the filings it points to are many.
If you are using a bulk endpoint instead, most of that concern is already handled on the provider's side: one request returns a month's worth of rows, so there is nothing left to throttle on your end beyond the handful of calls needed to cover the date range you actually want.
A simple spacing loop around the index-file approach looks like this:
import time
import urllib.request
HEADERS = {"User-Agent": "MyResearch tool admin@example.com"}
def fetch(url):
req = urllib.request.Request(url, headers=HEADERS)
with urllib.request.urlopen(req) as resp:
return resp.read()
urls = [...] # filing document URLs you collected from an index file
for u in urls:
data = fetch(u)
time.sleep(0.15) # well under 10 requests a second, with room for other traffic from the same machine
The sleep is deliberately conservative: roughly 6.7 requests a second on its own, leaving headroom if anything else on the same machine is also talking to EDGAR. If a request suddenly comes back empty after working moments earlier, slow down and retry.
Picking a method for the size of the job
For a one-off pull of a handful of letters for one company, a single search query, whether through EDGAR's own full text search or a filing API, is simpler than touching an index file at all. For an ongoing collection that needs to stay current, a daily index check plus a local store is the lower-maintenance option, since it avoids re-fetching history you already have. For a historical research project that needs a complete, dated set across many filers at once, start from the quarterly index files or a bulk-by-month endpoint rather than full text search, since search is built around matching text, not around guaranteeing you have seen every filing of a given form type in a window.
Frequently asked questions
Is there an official SEC bulk download for comment letters specifically?
No. UPLOAD and CORRESP are ordinary EDGAR form types covered by the same general tools as every other filing: the quarterly full-index files and full text search. Neither one is organized around comment letters as their own dataset.
How far back do comment letters go on EDGAR?
UPLOAD and CORRESP filings exist in the full-index files for as long as EDGAR has accepted them, but full text search, the easiest way to filter by keyword, only covers filings and exhibits since 2001. Older letters can still be found through the index files if you know roughly when to look.
Why don't newly filed comment letters show up right away?
The SEC withholds both the staff's letter and the company's response for a period after the filing review is complete, currently at least 20 business days, so even a fresh index file will not include letters from a review still in progress.
Can I get comment letters for just one company instead of a whole month?
Yes. A search query scoped to one CIK or ticker alongside the UPLOAD or CORRESP form type, as described for searching comment letters, returns just that filer's letters. The bulk, by-month approach in this guide is for when you want every filer's letters in a window, not one filer's history.
Do I need separate requests for UPLOAD and CORRESP, or can I get both at once?
The full-index files already mix every form together, so both sit side by side with no extra filtering. A search query can often take a list of form types in one request. The bulk-by-month endpoint here takes one form type at a time, so both means two downloads.
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=UPLOAD. Free key, no card needed.
For information only, not investment advice. Data from public SEC filings; verify important figures on SEC.gov. See our AI Disclosure.