# SEC EDGAR Filings & Financials Scraper ($1/1K) (`tamnt67/sec-edgar-scraper`) Actor

SEC EDGAR filings scraper: 10-K, 10-Q, 8-K filings, XBRL financials and ratios, Form 4 insider trades, 13F holdings, 13D/13G stakes, Form D raises, full-text search hits. Takes tickers, CIKs, company names or a search phrase. Use it to track filings, insiders and fundamentals.

- **URL**: https://apify.com/tamnt67/sec-edgar-scraper.md
- **Developed by:** [Tam Ng.](https://apify.com/tamnt67) (community)
- **Categories:** Business, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SEC EDGAR Filings, XBRL Financials, Insiders, 13F & Form D Scraper

Get US **SEC EDGAR** data from the official public SEC APIs (`data.sec.gov`, `www.sec.gov`, `efts.sec.gov`) with no API key, no login and no browser, from $1 per 1,000 records.

One Actor covers ten jobs: normalized annual and quarterly financial statements with ratios, raw XBRL facts, 10-K / 10-Q / 8-K filings with decoded 8-K items, Form 4 insider trades (insider, role, shares, price, dollar value), 13F institutional holdings, 13D / 13G ownership stakes, Form D private fundraising with offering amounts, EDGAR full-text search, the live latest-filings feed, and company profiles. Companies can be given as tickers, CIKs or company names.

### What you can do with it

- **Screen fundamentals.** Pull 10 years of revenue, margins, free cash flow, ROE and debt-to-equity for a ticker list.
- **Follow insider buying and selling.** Keep only open-market purchases (`P`) above $100,000, with insider name, title, shares and price.
- **Copy the big investors.** See the latest 13F portfolio of Berkshire Hathaway or any other manager, ranked by value.
- **Catch activists.** List the 13D and 13G filings on a company, with the filer names.
- **Find companies that just raised money.** Form D filings by state, industry and minimum offering size.
- **Monitor events.** Run the latest 8-K feed every hour, filter by item 2.02 (earnings) or 5.02 (executive change), and keep only new filings.
- **Feed AI and RAG.** Add the plain text of each filing document and its list of exhibits.

### Modes

| Mode | What you get | Main inputs |
| :--- | :--- | :--- |
| `financials` | One record per fiscal year or quarter: income statement, balance sheet, cash flow, free cash flow, margins, ROE, debt-to-equity, YoY revenue growth. Quarterly mode uses only ~3-month periods, so year-to-date numbers never mix in. | tickers, period, limit |
| `xbrl_facts` | One record per reported XBRL fact for the concepts you choose (e.g. `us-gaap:NetIncomeLoss`). | tickers, xbrlConcepts, dedupeFacts |
| `filings` | One record per filing with document links, 8-K items in plain words, file number and company SIC. | tickers, forms, dates, eightKItemCodes |
| `insiders` | One record per Form 3 / 4 / 5 filing with the insider, role, transactions, net shares, dollar value and a 14 / 30-day cluster signal. | tickers, transactionCodes, minTransactionValue |
| `form_13f` | One record per holding in the investment manager's latest 13F-HR, ranked by value. | tickers (the manager, e.g. BRK-B or CIK 1067983) |
| `activist_stakes` | One record per Schedule 13D / 13G filing where the company is the subject (or the filer). | tickers, activistOnly |
| `form_d` | One record per Form D filing with offering amount, amount sold, investors, industry, exemptions. | query, state, days, minOfferingAmount, industryGroup |
| `full_text_search` | One record per EDGAR full-text search hit (all filings and exhibits since 2001). | query, forms, dates, one ticker |
| `latest_feed` | The newest filings across all companies from the EDGAR "latest filings" feed. | forms, eightKItemCodes |
| `company_profile` | One record per company: SIC industry, exchanges, state, fiscal year end, address, latest 10-K / 10-Q / 8-K. | tickers |

### Input

| Field | Description |
| :--- | :--- |
| `mode` | One of the modes above. Default `financials`. |
| `tickers` | Tickers (`AAPL`, `BRK-B`), CIKs (`0000320193`) or company names (`Apple`). Empty: AAPL and NVDA (BRK-B in `form_13f`). In `full_text_search`, exactly one ticker limits the search to that company. |
| `period` | `annual` or `quarterly` (financials). |
| `forms` | Form types, e.g. `10-K`, `8-K`, `S-1`. Used in filings, full_text_search and latest_feed (one feed per form type). Default 10-K, 10-Q, 8-K. |
| `query` | Search phrase for full_text_search (required there) and optional keyword for form_d. |
| `state` | 2-letter US state for form_d. |
| `startDate` / `endDate` | Filing date range, YYYY-MM-DD. In form_13f they pick which quarterly report is used. |
| `days` | form_d lookback window when no dates are given (1-365, default 30). |
| `limit` | Max records per ticker or per query / feed (1-100, default 10). |
| `contactEmail` | Optional. SEC asks automated clients to identify themselves; your email is sent only to sec.gov in the User-Agent. Empty: a neutral Actor User-Agent. |
| `eightKItemCodes` | Keep only 8-K filings with these items, e.g. `2.02`, `5.02` (filings, latest_feed). |
| `transactionCodes` | Keep only insider filings with these codes: `P` buy, `S` sale, `A` grant, `M` option exercise, `F` tax withholding, `G` gift. |
| `minTransactionValue` | Keep only insider filings whose common-stock transactions total at least this many dollars. |
| `xbrlConcepts` | Concepts for xbrl_facts, e.g. `us-gaap:Revenues`, `NetIncomeLoss`, `dei:EntityCommonStockSharesOutstanding`. |
| `dedupeFacts` | xbrl_facts: keep one value per period and unit (latest filed). Default on. |
| `activistOnly` | activist_stakes: only 13D (activist), not 13G (passive). |
| `minOfferingAmount` | form_d: minimum total offering amount in dollars. |
| `industryGroup` | form_d: industry group contains this text, e.g. `Technology`, `Health Care`, `Pooled Investment Fund`. |
| `includeDocumentText` / `maxTextChars` | Add the plain text of each filing's main document (default cut at 20,000 characters). |
| `includeExhibits` | Add the list of all documents in each filing (exhibits). |
| `onlyNewSinceLastRun` / `stateKey` | For schedules: skip filings saved by an earlier run with the same memory name. |

Example: the last 5 years of financials for Apple and NVIDIA.

```json
{ "mode": "financials", "tickers": ["AAPL", "NVDA"], "period": "annual", "limit": 5 }
```

Example: open-market insider purchases over $100,000 at three companies.

```json
{ "mode": "insiders", "tickers": ["NVDA", "TSLA", "JPM"], "transactionCodes": ["P"], "minTransactionValue": 100000, "limit": 20 }
```

Example: Berkshire Hathaway's top 20 holdings.

```json
{ "mode": "form_13f", "tickers": ["BRK-B"], "limit": 20 }
```

### Output fields

Example values come from real runs on 2026-11-24. Every record has `mode`. Records for a ticker also have `inputTicker` (what you typed). A ticker that fails (e.g. unknown) is not saved and not charged; it is listed in the key-value store record `FAILED_TICKERS`. unknown) gives one record with `mode`, `inputTicker` and `error`.

#### financials

| Field | Example |
| :--- | :--- |
| `ticker` / `cik` / `entityName` | AAPL / 0000320193 / Apple Inc. |
| `period` / `periodEnd` / `fiscalYear` / `fiscalPeriod` | annual / 2026-09-26 / 2026 / FY (quarterly: Q1, Q2, Q3) |
| `form` / `filed` | 10-K / 2026-11-03 |
| `incomeStatement` | `revenue` 478834000000, `grossProfit`, `operatingIncome`, `netIncome` 132175000000, `epsBasic` 9.01, `epsDiluted` 8.98 |
| `balanceSheet` | `totalAssets` 404548000000, `totalLiabilities`, `stockholdersEquity`, `cashAndEquivalents`, `longTermDebt`, `sharesOutstanding` |
| `cashFlow` | `operatingCashFlow` 145097000000, `capex` 9041000000, `freeCashFlow` 136056000000 |
| `ratios` | `grossMarginPercent` 48.79, `operatingMarginPercent` 33.01, `netMarginPercent` 27.6, `roePercent` 117.92, `debtToEquity` 0.697, `revenueGrowthYoyPercent` 15.06 (annual only) |

#### xbrl_facts

| Field | Example |
| :--- | :--- |
| `ticker` / `cik` / `entityName` | AAPL / 0000320193 / Apple Inc. |
| `taxonomy` / `concept` / `label` | us-gaap / NetIncomeLoss / Net Income (Loss) Attributable to Parent |
| `unit` / `value` | USD / 132175000000 |
| `periodStart` / `periodEnd` | 2025-09-28 / 2026-09-26 (`periodStart` is null for balance-sheet values) |
| `fiscalYear` / `fiscalPeriod` / `form` / `filed` | 2026 / FY / 10-K / 2026-11-03 |
| `frame` / `accessionNumber` | CY2026 / 0000320193-26-000026 |

#### filings (also the base of insiders records)

| Field | Example |
| :--- | :--- |
| `ticker` / `cik` / `companyName` | MSFT / 0000789019 / MICROSOFT CORP |
| `accessionNumber` / `form` | 0001193125-26-436122 / 8-K |
| `filingDate` / `reportDate` / `acceptanceDateTime` | 2026-10-28 / 2026-10-28 / 2026-10-28T20:04:44.000Z |
| `primaryDocument` / `primaryDocDescription` | msft-20261028.htm / 8-K |
| `documentUrl` / `filingIndexUrl` | https://www.sec.gov/Archives/edgar/data/789019/000119312526436122/msft-20261028.htm / ...-index.htm |
| `sizeBytes` / `isInlineXbrl` / `isXbrl` | 840348 / true / true |
| `items` / `itemDescriptions` | \["2.02","9.01"] / \["2.02: Results of Operations and Financial Condition", ...] |
| `fileNumber` / `filmNumber` | 001-37845 / 261495718 |
| `sic` / `sicDescription` / `exchanges` | 7372 / Services-Prepackaged Software / \["Nasdaq"] |
| `stateOfIncorporation` / `fiscalYearEnd` | WA / 0630 |
| `exhibits` | with Include exhibits: \[{`seq` 2, `description` EX-99.1, `document` msft-ex99_1.htm, `type` EX-99.1, `url`}] |
| `documentText` / `documentTextLength` | with Include document text: "UNITED STATES SECURITIES AND EXCHANGE COMMISSION ... FORM 8-K ..." / 3323 |

#### insiders (filings fields plus)

| Field | Example |
| :--- | :--- |
| `clusterActivity` | {`last14DaysFilings` 3, `last30DaysFilings` 5, `distinctFilingDays30d` 5, `isClusterActivity` true} |
| `insiderName` / `insiderCik` / `insiderTitle` | Newstead Jennifer / 0001780525 / SVP, GC and Government Affairs |
| `isDirector` / `isOfficer` / `isTenPercentOwner` / `is10b5_1Plan` | false / true / false / true |
| `transactionCodes` / `netShares` / `totalValue` | \["S"] / -2398 / 845942.46 (common stock only; `netShares` is negative for sales) |
| `transactions` | \[{`isDerivative` false, `securityTitle` Common Stock, `transactionDate` 2026-11-17, `transactionCode` S, `shares` 2398, `pricePerShare` 352.77, `value` 845942.46, `acquiredDisposed` D, `sharesOwnedAfter` 25200, `directOrIndirect` D}] |

#### form_13f

| Field | Example |
| :--- | :--- |
| `cik` / `filerName` | 0001067983 / BERKSHIRE HATHAWAY INC |
| `form` / `accessionNumber` / `filingDate` / `periodEnd` | 13F-HR / 0001193125-26-463399 / 2026-11-16 / 2026-09-30 |
| `rank` / `nameOfIssuer` / `titleOfClass` / `cusip` | 1 / AMERICAN EXPRESS CO / COM / 025816109 |
| `value` / `shares` / `sharesType` / `putCall` | 45329463785 (USD) / 149061045 / SH / null |
| `investmentDiscretion` / `votingSole` / `votingShared` / `votingNone` | DFND / 149061045 / 0 / 0 |
| `portfolioPercent` / `holdingsCount` / `portfolioValue` | 14.901 / 89 / 304196581325 |
| `filingIndexUrl` | https://www.sec.gov/Archives/edgar/data/1067983/000119312526463399/0001193125-26-463399-index.htm |

#### activist_stakes

| Field | Example |
| :--- | :--- |
| `ticker` / `cik` / `companyName` | AAPL / 0000320193 / Apple Inc. |
| `form` / `isActivist` / `filingDate` / `accessionNumber` | SCHEDULE 13G/A / false / 2026-03-26 / 0000102909-26-000630 |
| `otherPartyNames` / `otherPartyCiks` | \["VANGUARD GROUP INC"] / \["0000102909"] |
| `documentUrl` / `filingIndexUrl` / `totalMatched` | .../primary_doc.xml / ...-index.htm / 48 |

#### form_d

| Field | Example |
| :--- | :--- |
| `entityName` / `cik` / `form` / `filingDate` / `accessionNumber` | Psionic, Inc. / 0001724810 / D/A / 2026-11-23 / 0001724810-26-000005 |
| `state` / `location` / `exemptions` / `filingUrl` / `totalMatchedWindow` | VA / Hampton, VA / \["06B"] / ...-index.htm / 848 |
| `industryGroup` / `entityType` / `jurisdictionOfInc` / `yearOfInc` | Other Technology / Corporation / DELAWARE / null (only filled when incorporated within 5 years) |
| `issuerCity` / `issuerStateOrCountry` / `issuerZipCode` / `revenueRange` | HAMPTON / VA / 23666 / Decline to Disclose |
| `federalExemptions` / `isAmendment` / `dateOfFirstSale` / `moreThanOneYear` | \["06b"] / true / 2026-04-03 / false |
| `securityTypes` / `minimumInvestmentAccepted` | \["Debt","OptionToAcquire","SecurityToBeAcquired"] / 0 |
| `totalOfferingAmount` / `offeringAmountIndefinite` / `totalAmountSold` / `totalRemaining` | 15000000 / false / 7310000 / 7690000 |
| `hasNonAccreditedInvestors` / `numberOfInvestors` / `salesCommissions` / `findersFees` | false / 7 / 0 / 0 |
| `detailsError` | only when the Form D document could not be read |

#### full_text_search

| Field | Example |
| :--- | :--- |
| `query` / `totalHits` / `score` | tariff / 666 / 11.073 |
| `accessionNumber` / `cik` / `displayName` | 0000719955-26-000244 / 0000719955 / WILLIAMS SONOMA INC (WSM) (CIK 0000719955) |
| `form` / `rootForm` / `fileDate` / `periodEnding` / `fileDescription` | 8-K / 8-K / 2026-11-19 / 2026-11-19 / EX-99.1 |
| `sic` / `location` / `items` | 5700 / San Francisco, CA / \["2.02","9.01"] |
| `documentUrl` / `filingIndexUrl` | the matching document / the filing index page |

#### latest_feed

| Field | Example |
| :--- | :--- |
| `form` / `entityName` / `cik` / `filerRole` | 8-K / FUELCELL ENERGY INC / 0000886128 / Filer |
| `filingDate` / `acceptedAt` / `accessionNumber` / `sizeText` | 2026-11-23 / 2026-11-23T17:21:37-05:00 / 0001104659-26-131179 / 175 KB |
| `items` / `itemDescriptions` / `filingIndexUrl` | \["5.02"] / \["5.02: Departure/Election of Directors or Certain Officers"] / ...-index.htm |

#### company_profile

| Field | Example |
| :--- | :--- |
| `cik` / `name` / `tickers` / `exchanges` | 0001318605 / Tesla, Inc. / \["TSLA"] / \["Nasdaq"] |
| `sic` / `sicDescription` / `entityType` / `filerCategory` | 3711 / Motor Vehicles & Passenger Car Bodies / operating / Large accelerated filer |
| `fiscalYearEnd` / `stateOfIncorporation` / `ein` / `website` / `phone` | 1231 / TX / 912197729 / null / the company phone listed on EDGAR |
| `businessAddress` | {`street1` 1 TESLA ROAD, `city` AUSTIN, `stateOrCountry` TX, `zipCode` 78725, ...} |
| `latestFilings` | {`latest10K`, `latest10Q`, `latest8K`}, each with the filings fields |

### Pricing

You pay $1 per 1,000 records saved to the dataset on the Free plan ($0.90, $0.80 and $0.70 on Bronze, Silver and Gold and above), plus a one-time start charge of $0.00005. Tickers that cannot be found and XBRL concepts a company does not report are not saved and not charged; they are listed in the key-value store record `FAILED_TICKERS`.Document text and exhibits cost nothing extra per record but make runs slower.

### Limitations

- SEC allows at most 10 requests per second; the Actor sends at most 8 per second. Document text, exhibits, insider details and Form D details each need one extra request per record.
- `filings` and `insiders` read the company's most recent ~1,000 filings (EDGAR's "recent" list). Very old filings of busy filers are not reached; use `full_text_search` with dates for those.
- With `transactionCodes` or `minTransactionValue`, up to 200 recent insider filings are checked per company. `totalValue` and `netShares` count common-stock (non-derivative) transactions only; grants without a price have no value.
- `form_d` filters (`state`, `minOfferingAmount`, `industryGroup`) are applied after download and scan up to 300 filings in the window, so a strict filter can return fewer than `limit`, and such runs take about a minute. Related persons (founders, directors) of Form D issuers are not output.
- `form_13f` uses the manager's latest 13F-HR in the date range; `value` is in US dollars as filed (before 2023 filers reported thousands). Only the top `limit` holdings (max 100) by value are returned.
- `activist_stakes` lists 13D / 13G filings linked to the company's CIK, as the subject or as the filer, up to 100 per company.
- `latest_feed` reads EDGAR's live feed (up to 100 newest filings per form type); older filings are not in it.
- Company names are matched against the SEC list of companies with a ticker; for other filers (private funds, managers without a ticker) use the CIK.
- `financials` maps common us-gaap tags; companies using unusual tags can have null values. Use `xbrl_facts` for an exact concept.
- "Only new filings" remembers accession numbers, not changes to a filing, and does not apply to `financials`, `xbrl_facts` and `company_profile`.
- SEC accepted the neutral User-Agent in our tests (HTTP 200 on www.sec.gov, data.sec.gov and efts.sec.gov). If SEC ever answers 403, add your email in `contactEmail`.

### Changelog

- 1.0 update (2026-11-24): new modes `xbrl_facts`, `form_13f` (institutional holdings), `activist_stakes` (13D / 13G) and `latest_feed`; Form 4 insider details (insider name, role, transactions, shares, price, dollar value) with `transactionCodes` and `minTransactionValue` filters; Form D offering amounts, investors and industry with `minOfferingAmount` and `industryGroup` filters; `eightKItemCodes` filter; optional document text and exhibits list; company names accepted as input; "only new filings since the last run"; new filing fields `fileNumber`, `filmNumber`, `isXbrl`, `sic`, `sicDescription`, `exchanges`, `stateOfIncorporation`, `fiscalYearEnd`; optional `contactEmail` for the SEC User-Agent. Existing inputs and fields work as before. Price lowered to $1 per 1,000 records (Free plan). Failed tickers are no longer saved as charged records; they are listed in `FAILED_TICKERS`.
- 1.0 (2026-11-23): first public release.

# Actor input Schema

## `mode` (type: `string`):

Which SEC EDGAR dataset to extract. financials, xbrl_facts, filings, insiders, form_13f, activist_stakes and company_profile use the companies in "Stock Tickers, CIKs or Company Names"; form_d, full_text_search and latest_feed search all of EDGAR.

## `tickers` (type: `array`):

One or more US stock tickers (AAPL, BRK-B), 10-digit SEC CIKs (0000320193) or company names (Apple). For form_13f use the investment manager (BRK-B or CIK 1067983). Empty: example companies AAPL and NVDA (BRK-B for form_13f).

## `period` (type: `string`):

Annual (10-K/20-F) or standalone Quarterly (10-Q) XBRL statements (used in financials mode).

## `forms` (type: `array`):

SEC form types to keep (e.g. 10-K, 10-Q, 8-K, S-1, DEF 14A). Used in filings, full_text_search and latest_feed (one feed per form type; empty list = all forms).

## `query` (type: `string`):

Full-text search phrase. Required in full_text_search, optional keyword in form_d (e.g. "artificial intelligence").

## `state` (type: `string`):

Optional 2-letter US state code filter for Form D startup filings (e.g. CA, NY, DE, TX).

## `startDate` (type: `string`):

Optional start filing date filter in YYYY-MM-DD format.

## `endDate` (type: `string`):

Optional end filing date filter in YYYY-MM-DD format.

## `days` (type: `integer`):

Number of days to look back when extracting Form D startup fundraising filings (1-365).

## `limit` (type: `integer`):

Maximum number of statements, filings, or search hits returned per ticker or query (1-100).

## `contactEmail` (type: `string`):

SEC asks automated clients to identify themselves; your email is sent only to sec.gov in the User-Agent. Empty: a neutral Actor User-Agent is used. Add it if SEC ever blocks requests.

## `eightKItemCodes` (type: `array`):

Keep only 8-K filings that report one of these items, e.g. 2.02 (results), 5.02 (executive change), 1.05 (cybersecurity). Used in filings and latest_feed. Empty: no item filter.

## `transactionCodes` (type: `array`):

Keep only Form 3/4/5 filings with these transaction codes, e.g. P (open-market buy), S (sale), A (grant), M (option exercise), F (tax withholding). Empty: all filings.

## `minTransactionValue` (type: `integer`):

Keep only insider filings whose common-stock transactions add up to at least this dollar value (shares x price). Empty or 0: no minimum.

## `xbrlConcepts` (type: `array`):

XBRL concept names for xbrl_facts mode, e.g. us-gaap:Revenues, NetIncomeLoss, dei:EntityCommonStockSharesOutstanding. Without a prefix, us-gaap, dei, ifrs-full and srt are tried. Empty: revenue, net income and assets.

## `dedupeFacts` (type: `boolean`):

Companies repeat the same period value in later filings. On: keep one value per period and unit (the latest filed). Off: every reported fact.

## `activistOnly` (type: `boolean`):

On: only Schedule 13D (activist intent). Off: 13D and 13G (passive 5%+ holders).

## `minOfferingAmount` (type: `integer`):

Keep only Form D offerings with a total offering amount of at least this many dollars. Offerings marked "Indefinite" are dropped when set. Empty or 0: no minimum.

## `industryGroup` (type: `string`):

Keep only Form D filings whose industry group contains this text, e.g. Technology, Health Care, Real Estate, Pooled Investment Fund, Biotechnology. Empty: all industries.

## `includeDocumentText` (type: `boolean`):

Download each filing's main document and add its plain text as documentText (filings, insiders, full_text_search, activist_stakes). One extra request per filing.

## `maxTextChars` (type: `integer`):

documentText is cut after this many characters; documentTextLength shows the full length.

## `includeExhibits` (type: `boolean`):

Add exhibits: every document in the filing (sequence, description, file name, type such as EX-21, link). One extra request per filing.

## `onlyNewSinceLastRun` (type: `boolean`):

For scheduled runs: skip filings (accession numbers) already saved by an earlier run with the same memory name. The first run saves everything. Not used for financials, xbrl_facts and company_profile.

## `stateKey` (type: `string`):

Optional. Separate memory for each saved task, e.g. insider-watchlist. Empty: default.

## Actor input object example

```json
{
  "mode": "financials",
  "tickers": [
    "AAPL",
    "NVDA"
  ],
  "period": "annual",
  "forms": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "state": "",
  "startDate": "",
  "endDate": "",
  "days": 30,
  "limit": 10,
  "xbrlConcepts": [
    "NetIncomeLoss",
    "Assets"
  ],
  "dedupeFacts": true,
  "activistOnly": false,
  "includeDocumentText": false,
  "maxTextChars": 20000,
  "includeExhibits": false,
  "onlyNewSinceLastRun": false
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset containing all extracted SEC EDGAR records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "financials",
    "tickers": [
        "AAPL",
        "NVDA"
    ],
    "xbrlConcepts": [
        "NetIncomeLoss",
        "Assets"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tamnt67/sec-edgar-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "financials",
    "tickers": [
        "AAPL",
        "NVDA",
    ],
    "xbrlConcepts": [
        "NetIncomeLoss",
        "Assets",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/sec-edgar-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "financials",
  "tickers": [
    "AAPL",
    "NVDA"
  ],
  "xbrlConcepts": [
    "NetIncomeLoss",
    "Assets"
  ]
}' |
apify call tamnt67/sec-edgar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tamnt67/sec-edgar-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Ypw39rfVBNbKhJZIe/builds/YJa3fJgP3QXc2pQ6x/openapi.json
