What SEC asks for

SEC states the rules on its Developer Resources and Accessing EDGAR Data pages. We read both on 2 December 2026.

RuleWhat SEC says
RateNo more than 10 requests per second per user, however many machines send them
ChangesSEC reserves the right to lower request rates to keep access fair
Heavy trafficSEC reserves the right to block IP addresses that submit excessive requests
BotsRequests from unclassified bots or tools outside the policy "will be managed"
HeaderDeclare a User-Agent, as in its sample Sample Company Name AdminContact@<sample company domain>.com
CompressionSEC's sample headers also send Accept-Encoding: gzip, deflate
SupportSEC does not offer technical support for scripted downloads

What we saw when we tested it

We requested Apple's submissions file, https://data.sec.gov/submissions/CIK0000320193.json, on 2 December 2026, spacing the calls half a second apart.

User-Agent sentHTTP status
none403
curl/8.7.1403
python-requests/2.31.0403
Python-urllib/3.14403
Your Name your.email@example.com200

A HEAD request without a User-Agent also got 403, so send the header on every request type. A 403 from SEC usually points at your headers. A missing file gives 404, as you get when you forget to pad a CIK to 10 digits (see ticker to CIK).

We did not send a burst to find out what happens above 10 requests per second. SEC says it can block your IP, so stay under the limit when you test.

Code that follows the rules

import time
import requests

HEADERS = {
    "User-Agent": "Your Name your.email@example.com",  # use your own name and email
    "Accept-Encoding": "gzip, deflate",
}
MIN_GAP = 0.125  # 8 requests per second, under SEC's 10

_last = 0.0

def sec_get(url):
    global _last
    wait = MIN_GAP - (time.monotonic() - _last)
    if wait > 0:
        time.sleep(wait)
    _last = time.monotonic()
    r = requests.get(url, headers=HEADERS, timeout=30)
    if r.status_code == 403:
        raise RuntimeError("SEC returned 403: check the User-Agent, then slow down")
    r.raise_for_status()
    return r.json()

apple = sec_get("https://data.sec.gov/submissions/CIK0000320193.json")
print(apple["name"], apple["tickers"])

SEC counts the limit per user across all machines. If you run four workers, give each a quarter of the budget or share one rate limiter between them. When you get a 403, back off for minutes. A loop that retries at full speed adds to the load that got you blocked.

Ask for gzip

On 2 December 2026, Apple's company facts file (data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json) came back as 277,466 bytes with gzip and 3,859,564 bytes uncompressed, about 14 times smaller. requests and curl --compressed unzip the reply for you.

Many companies? Use the bulk files

At 10 requests per second, one call for each of about 10,000 companies takes at least 17 minutes per dataset. SEC publishes the same JSON as two nightly zips, rebuilt at about 3:00 a.m. ET.

FileSize on 2 December 2026
companyfacts.zip1,429,684,333 bytes
submissions.zip1,579,004,383 bytes

Download them once a day, then call the API only for companies that filed since. SEC says the submissions API updates with a typical delay of under a second after a filing goes out, and the XBRL APIs in under a minute, so the API fills the gap between nightly zips. To make sense of what is inside the company facts file, see reading companyfacts JSON.

Younesa is building US company data from SEC filings.