apyhub
Back
▣ RETRIEVAL KIT · DOCUMENT INTELLIGENCE KIT

SEC EDGAR Filings API

What it does

The U.S. Securities and Exchange Commission (SEC) Filings API returns EDGAR (Electronic Data Gathering, Analysis, and Retrieval) filing records for company, search, latest, or financials mode. Send mode plus filters like tickers such as AAPL, keywords, forms, dateFrom, dateTo, and maxItems to narrow the list. For financials, set periodType to annual or quarterly, and use years to choose how many fiscal years you want.

You can also limit results to 8-K items with eightKItems. If you want extra company details, set includeCompanyInfo to add industry, state, exchange, website, phone, and business address. The response includes billing and count data, plus a list of filings with dates, company name, form type, XBRL status, links to the filing and index, and the main document.

Teams use the SEC Filings API to watch new disclosures, follow rivals, and surface 8-K alerts in internal tools. They also search for words like going concern or cybersecurity incident, then show the matching filing to users.

To turn stock codes into names first, use the Companies Dictionary API. To compare filing text before and after changes, use the Differentiate Text API.

POST
SEC Filings - EDGAR 8-K Alerts in Plain English, 3s
https://api.eu.apyhub.com/martin10291/sec-edgar-filings

QUICKSTART

GUIDE

Quickstart

Fetch SEC Edgar filings for one ticker in the simplest company-filings mode.

curl -X POST "https://api.eu.apyhub.com/martin10291/sec-edgar-filings" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "company_filings",
    "tickers": ["AAPL"]
  }'

What you'll get back

Returns a JSON object with billed as an integer, count as an integer, and items as an array of filing objects.

Each item may include fields like id, cik, form, companyName, filingDate, accessionNumber, primaryDocument, and documentUrl.

{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "id": "AAPL-10-K-2024",
      "cik": "320193",
      "form": "10-K",
      "companyName": "Apple Inc.",
      "filingDate": "2024-11-01",
      "accessionNumber": "0000320193-24-000123",
      "primaryDocument": "aapl-20240928.htm"
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
Company filings by ticker/CIK, full-text search across all filings, the latest filings from all companies, or yearly/quarterly financials (XBRL).
forms
e.g. 10-K, 10-Q, 8-K, S-1, 4, 13F-HR, SC 13D, DEF 14A, D. Empty = all forms. 'Latest filings' defaults to 8-K.
How many fiscal years of financials per company.

About this endpoint

What it does

SEC EDGAR filings and returns a list of matching filing records based on the selected mode and filters. You can query company filings, search across filings, fetch the latest filings, or retrieve financials, and the response includes the matched items plus billing and count metadata.

Request Body

ParameterTypeMandatoryDescription
modeENUMYesSelects the retrieval mode. Allowed values: company_filings, search, latest, financials.
formsString ArrayNoFiling form filters such as 10-K, 10-Q, 8-K, S-1, 4, 13F-HR, SC 13D, DEF 14A, D. Empty means all forms. For latest filings, defaults to 8-K. Max 100 items.
yearsIntegerNoHow many fiscal years of financials per company. Minimum 1, maximum 20.
dateToStringNoEnd date filter. Optional; default is today.
tickersString ArrayNoStock tickers (for example, AAPL, TSLA) or SEC CIK numbers. Used by company_filings and financials; optional filter for search and latest. Max 100 items.
dateFromStringNoStart date filter. Optional; overrides “within the last N days”.
keywordsString ArrayNoFull-text search phrases across EDGAR filings since 2001. Each array item is treated as one search phrase. Max 100 items.
maxItemsIntegerNoHard limit on results saved and billed. Default is 20. Minimum 1, maximum 100.
periodTypeENUMNoFor financials mode. Allowed values: annual, quarterly.
eightKItemsString ArrayNoOnly returns 8-Ks with these item codes, such as 1.01, 2.02, 5.02, 1.05. Max 100 items.
contactEmailStringNoContact email for SEC identification. If set, it is sent in the User-Agent header to SEC only.
postedWithinDaysIntegerNoLimits results to filings posted within the last N days. Minimum 0. 0 means no limit for company_filings, or 30 days for search and latest.
includeCompanyInfoBooleanNoWhen true, adds company details to each filing, including industry (SIC), state, exchange, website, phone, and business address.

Response

Returns a JSON object with billed and count integer fields, plus an items array of filing objects. Each item includes filing metadata such as id, cik, form, type, items, hasXBRL, tickers, timestamps, document URLs, accession details, and other filing fields declared in the schema.

ParameterTypeMandatoryDescription
billedIntegerYesUnits charged for this call. Result rows only are billed; not-found, unavailable, or invalid rows are free.
countIntegerYesNumber of rows in items.
itemsObject ArrayYesArray of filing result objects. Each item may include id, cik, form, type, items, hasXBRL, tickers, scrapedAt, sizeBytes, acceptedAt, fileNumber, filingDate, reportDate, companyName, description, documentUrl, filingIndexUrl, accessionNumber, primaryDocument, and itemDescriptions.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.