Batch export filings and facts via Apify Actor (paid)
edgar_batch_exportExport structured SEC EDGAR filings, XBRL facts, and optional text excerpts for up to 50 companies in one bulk call, enabling multi-company dataset analysis without repeated lookups.
Instructions
WHAT: Bulk export, paid via Apify, of structured SEC EDGAR data for up to 50 US companies in one call: entity metadata, recent filings (10-K, 10-Q, 8-K, S-1, DEF 14A) with document URLs, XBRL financial facts (Assets, Revenues, NetIncomeLoss, EarningsPerShareDiluted) and optional plain-text excerpts of primary filing documents. WHEN: Only when you need filing and/or fact rows for 5 or more companies in one dataset, or text excerpts in bulk. mode "filings" is filing history and links, "facts" is financial numbers, "both" is both. WHEN NOT: Interactive lookups or 1-4 companies: use the free edgar_* tools (same SEC data). Not for real-time quotes, prices, options, non-US companies or investment advice. COST: Paid, billed to YOUR Apify account via your APIFY_TOKEN: $1.50 per 1,000 resolved companies + $1.00 per 1,000 filing rows + $0.20 per 1,000 fact rows + $2.00 per 1,000 text excerpts (+ $0.05 per 1,000 runs). Example: 1 company, 5 filings, 3 metrics x 4 values ~ $0.009. 2 companies, facts mode, 1 metric, 4 values ~ $0.005. RETURNS: Paged rows of type company, filing, fact, text_excerpt or error. Error rows carry code (INPUT_EMPTY, COMPANY_NOT_FOUND, RESOLVE_FAILED, SUBMISSIONS_FETCH_FAILED, FACTS_FETCH_FAILED, EXCERPT_FETCH_FAILED) and retryable, so one unresolvable company does not fail the call. Tool errors: APIFY_TOKEN_MISSING, APIFY_TOKEN_INVALID, APIFY_PAYMENT_REQUIRED, APIFY_ACTOR_RUN_FAILED, APIFY_TIMEOUT. BEHAVIOR: Runs the Fairquery Apify Actor fairquery/edgar-company-facts-filings with your APIFY_TOKEN. The Actor queries sec.gov (throttled to at most 5 requests/second). This tool does not call SEC itself. A typical run is 5-60 seconds; the call waits up to 300 seconds. Free edgar_* tools never read APIFY_TOKEN. PARAMETERS: companies: each entry is resolved by the Actor as a ticker, CIK or name fragment and billed once when resolved. Unresolvable entries yield a COMPANY_NOT_FOUND row and are not billed as a company. mode controls which other parameters apply. formTypes, since, maxFilingsPerCompany and includeTextExcerpt / excerptMaxChars affect "filings" and "both" only. metrics and maxFactsPerMetric affect "facts" and "both" only. Billed rows are resolved companies, plus filing rows, plus fact rows, plus one excerpt per filing row when includeTextExcerpt is true. Omitted optional fields use the Actor defaults: formTypes ["10-K","10-Q","8-K"] (pass [] for every form), maxFilingsPerCompany 5, metrics Assets, NetIncomeLoss, EarningsPerShareDiluted and Revenues (pass [] for a built-in 10-concept set), maxFactsPerMetric 4, excerptMaxChars 2000. since compares filing_date (inclusive). metrics are case-sensitive us-gaap or dei names. excerptMaxChars outside 200-20000 fails the Actor's input check. limit and offset only page rows after the run: every call runs and bills the Actor again, including a call that only changes offset, so pick a limit that covers the rows you need. EXAMPLE: {"companies":["AAPL","MSFT"],"mode":"facts","metrics":["Revenues"],"maxFactsPerMetric":4} -> company and fact rows (about $0.005).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"companies": "<companies>"
},
"name": "edgar_batch_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional, one of "filings" | "facts" | "both", default "both". "filings" = filing rows only, "facts" = XBRL fact rows only; a company row is always included when resolved. Example: "facts" | both |
| limit | No | Optional page size: items to return, integer 1-1000 (default 100). Example: 50 | |
| since | No | Optional, default no lower bound. Only filings with filing date >= this date, format YYYY-MM-DD (pattern ^\d{4}-\d{2}-\d{2}$), e.g. "2023-01-01". Ignored when mode="facts". | |
| offset | No | Optional zero-based number of items to skip, integer 0-1000000 (default 0); pass nextOffset from the previous response, e.g. 100 | |
| metrics | No | Optional; omitted = Actor default ["Assets","NetIncomeLoss","EarningsPerShareDiluted","Revenues"], [] = built-in 10-concept set. Case-sensitive us-gaap/dei concept names. Example: ["Assets","Revenues"]. Ignored when mode="filings". | |
| companies | Yes | Required. 1-50 tickers ("AAPL"), CIKs ("320193") or company name fragments ("Apple"); billed once per resolved company. Example: ["AAPL","MSFT"] | |
| formTypes | No | Optional; omitted = Actor default ["10-K","10-Q","8-K"], [] = all forms. Exact form types (case-insensitive), e.g. ["10-K","10-Q"] or ["8-K"]. Ignored when mode="facts". | |
| excerptMaxChars | No | Optional integer, default 2000 characters per excerpt; the Actor accepts 200-20000 (values outside fail its input validation). Only used with includeTextExcerpt=true. Example: 5000 | |
| maxFactsPerMetric | No | Optional integer 1-50, default 4 (Actor default). Most-recent values kept per concept and unit; each fact row is billed. Example: 4 | |
| includeTextExcerpt | No | Optional boolean, default false. true adds a billed plain-text excerpt row of each filing's primary document (slower). Ignored when mode="facts". | |
| maxFilingsPerCompany | No | Optional integer 1-100, default 5 (Actor default). Max filing rows per company, newest first; each row is billed. Example: 3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Tool-specific context (summary counts, cost notes, ...) | |
| count | Yes | Number of items in this page | |
| items | Yes | Result rows for this page | |
| total | Yes | Total items before paging | |
| offset | Yes | Offset of the first item in this page | |
| hasMore | Yes | True if more items exist after this page | |
| nextOffset | Yes | Offset to pass for the next page, or null |