Scraper APISEC EDGAR
sec.filings
A company's recent filings with the SEC from EDGAR, newest first: form type, dates, description, 8-K items, and the addresses of the document and its index.
- Id
sec.filings- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/sec.filings/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
companyrequired | string | The company's ticker (AAPL, BRK-B) or its CIK, EDGAR's number of the filer (320193). A fund or a person who files is named by CIK.Limit: at least 1 characters, at most 20 characters. |
forms | array of string | Only filings of these form types, as EDGAR names them: 10-K, 10-Q, 8-K, 4, DEF 14A, S-1, ... An amendment is its own type (10-K/A). Empty (default): every form. |
filed_from | string | Only filings made on or after this day, as YYYY-MM-DD. |
filed_to | string | Only filings made on or before this day, as YYYY-MM-DD. |
max_results | integer | How many filings to return at most, newest first (default 20, up to 200).Limit: 1 to 200. Default: 20. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
accession_number | string | EDGAR's id of the filing, e.g. 0000320193-26-000123. |
form | string | The form type as EDGAR names it: 10-K, 10-Q, 8-K, 4, DEF 14A, ...; an amendment ends in /A. |
filing_date | string | The day the filing was made, as YYYY-MM-DD. |
report_date | string or null | The day or the end of the period the filing reports on, as YYYY-MM-DD; null where the form has none. |
accepted_at | string (date-time) or null | When EDGAR accepted the filing, in UTC. |
description | string or null | EDGAR's short description of the main document; often the form type again. |
items | array of string | For an 8-K, the numbers of the items it reports, e.g. 2.02 (results of operations) and 9.01 (exhibits); empty for other forms. |
primary_document | string or null | The file name of the filing's main document. |
url | string or null | The address of the main document on sec.gov; null when EDGAR names none. |
index_url | string | The address of the filing's index page on sec.gov, which lists every document and exhibit of it. |
size_bytes | integer or null | The size of the whole filing, in bytes. |
has_xbrl | boolean or null | True when the filing carries financial data in XBRL. |
has_inline_xbrl | boolean or null | True when that data is tagged inside the main document itself (inline XBRL). |
file_number | string or null | The SEC file number the filing was made under, e.g. 001-36743. |
company_name | string | The filer's name as EDGAR has it. |
cik | string | The filer's CIK, EDGAR's number of it, without leading zeros. |
ticker | string or null | The filer's ticker; the first one for a company with several classes of shares, null for a filer without one. |
industry | string or null | The filer's industry, in the words of its SIC code, e.g. Electronic Computers. |
fetched_at | string (date-time) | When EDGAR answered, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/sec.filings/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"company":"TSLA","forms":["8-K"],"max_results":3}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("sec.filings", {
"company": "TSLA",
"forms": ["8-K"],
"max_results": 3,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("sec.filings", {
company: "TSLA",
forms: ["8-K"],
max_results: 3,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "sec.filings", map[string]any{"company": "TSLA", "forms": []any{"8-K"}, "max_results": 3})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.List;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("sec.filings", Map.of("company", "TSLA", "forms", List.of("8-K"), "max_results", 3));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run sec.filings --input-json '{"company":"TSLA","forms":["8-K"],"max_results":3}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"company": "TSLA",
"forms": [
"8-K"
],
"max_results": 3
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "sec.filings",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"company": "TSLA",
"forms": [
"8-K"
],
"max_results": 3
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"accession_number": "0001628280-26-066738",
"form": "8-K",
"filing_date": "2026-10-21",
"report_date": "2026-10-21",
"accepted_at": "2026-10-21T20:41:42Z",
"description": "8-K",
"items": [
"2.02",
"9.01"
],
"primary_document": "tsla-20261021.htm",
"url": "https://www.sec.gov/Archives/edgar/data/1318605/000162828026066738/tsla-20261021.htm",
"index_url": "https://www.sec.gov/Archives/edgar/data/1318605/000162828026066738/0001628280-26-066738-index.htm",
"size_bytes": 5568283,
"has_xbrl": true,
"has_inline_xbrl": true,
"file_number": "001-34756",
"company_name": "Tesla, Inc.",
"cik": "1318605",
"ticker": "TSLA",
"industry": "Motor Vehicles & Passenger Car Bodies",
"fetched_at": "2026-11-19T18:07:41.230271Z"
}
],
"next_cursor": null
}A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the SEC EDGAR scrapers are in their own section there.