A company's filings, newest first, across its whole history: accession number, form, filing and report dates, acceptance time, act, file and film numbers, 8-K items, size, XBRL flags, primary document with link and the filing index link. Filter by form types (amendments included unless amendments=false) and filing-date range, and 8-K filings by item code with items (e.g. 2.02 results of operations, 5.02 officer changes). Pass next_cursor back as cursor; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
name
type
description
ticker
string
Stock ticker, e.g. AAPL (or pass cik). Example: AAPL
cik
string
SEC Central Index Key, e.g. 320193.
form
string
Form types, comma-separated, e.g. 10-K,10-Q, 8-K, 4, S-1, DEF 14A, 13F-HR. Example: 10-K
amendments
boolean
Include /A amendments of the chosen forms (default true).
items
string
Only filings that report one of these 8-K item codes, comma-separated, e.g. 2.02 or 1.01,5.02.
import os, requests
res = requests.get(
"https://api.api.sh/sec-edgar/v1/filings",
params={"ticker": "AAPL"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json()
const url = new URL("https://api.api.sh/sec-edgar/v1/filings");
url.searchParams.set("ticker", "AAPL");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json();
Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.