# SEC Financial Statements Scraper - Revenue, EPS & Cash Flow (`consequential_programmer/sec-financial-statements-scraper`) Actor

Get clean income statement, balance sheet and cash flow data for any US-listed company from official SEC EDGAR XBRL filings: revenue, net income, EPS, free cash flow, margins, growth. Annual or quarterly. No API key or proxy. $1.30 per 1,000 periods.

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

## Pricing

from $1.30 / 1,000 financial periods

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Financial Statements Scraper: Revenue, EPS & Cash Flow from EDGAR

**Get clean, normalized financial statements for any US-listed company and export them to JSON, CSV or Excel.** Enter tickers, CIK numbers or company names and get the **income statement, balance sheet and cash flow** for each fiscal year or quarter: **revenue, gross profit, operating income, net income, EPS, free cash flow, cash, debt, equity**, plus **margins, ROE and year-over-year growth**. No API key, login, browser or proxy needed.

All data comes from the official **SEC EDGAR XBRL API** (the same numbers companies file in their 10-K, 10-Q, 20-F and 40-F reports). Every row links to the source filing. It costs **$1.30 per 1,000 company-periods**, about 35% less than comparable SEC financials Actors.

### What you get for each company and period

- 🏢 **Company:** ticker, CIK, company name, exchange, industry (SIC)
- 📅 **Period:** annual or quarterly, fiscal year, fiscal period (FY, Q1-Q4), start and end date, form, filing date, accession number and **link to the filing**
- 📈 **Income statement:** revenue, cost of revenue, gross profit, R\&D, SG\&A, operating income, pretax income, income tax, **net income**, **basic and diluted EPS**, diluted shares
- 💵 **Cash flow:** operating cash flow, capital expenditure, **free cash flow**, depreciation and amortization, dividends paid, share buybacks
- 🏦 **Balance sheet:** cash, current assets, total assets, current liabilities, total liabilities, long-term debt, stockholders' equity
- 🧮 **Ratios:** gross, operating, net and FCF margin, effective tax rate, ROE, ROA, current ratio, debt-to-equity, **YoY growth** of revenue, net income and EPS

### Why use this SEC financials scraper?

- **Normalized, not a raw dump.** Companies tag the same line item in different ways (for example `Revenues` vs `RevenueFromContractWithCustomerExcludingAssessedTax`). The Actor tries the common XBRL tags in order, so you get one consistent `revenue` column across companies and years. Turn on **Include source XBRL concepts** to see exactly which tag each number came from.
- **Real quarters.** Cash-flow items are usually reported year-to-date in 10-Q filings. The Actor converts them to true three-month figures and can **derive Q4** (full year minus Q1-Q3), which EDGAR does not report on its own.
- **Fair growth numbers.** Year-over-year growth uses the comparative figures printed in the same filing, so stock splits and restatements don't distort it.
- **Official and reliable.** Only the free SEC EDGAR APIs are used, throttled well below the SEC fair-access limit. No scraping of HTML pages, no anti-bot problems.
- **Fair pricing.** Unknown tickers, companies without XBRL data and failed lookups are free error rows. Set a maximum cost per run and the Actor stops cleanly when it is reached.
- **Fast and light.** Plain HTTPS requests, 256 MB memory, retries with back-off and per-request timeouts.

### Use cases

- **Investors and analysts:** build a fundamentals screen or a 10-year history of revenue, margins and EPS for your watchlist
- **Quant and data teams:** feed clean, filing-linked fundamentals into models, spreadsheets or a database on a schedule
- **Finance content creators:** pull the numbers for earnings recaps, charts and newsletters
- **Sales and market research:** size public-company prospects by revenue, growth and profitability
- **AI agents and apps:** call it from the API, n8n, Make or Zapier to get structured financials on demand

### How to use it

1. Enter companies under **Companies** (one per line): tickers like `AAPL` or `BRK-B`, CIK numbers like `320193`, or exact company names.
2. Choose **Period type** (annual, quarterly or both) and **Max periods per company**. Optionally set **From fiscal year**.
3. Click **Start**.
4. Download the **Financials overview** view or all fields as CSV, Excel or JSON. You can also run it on a schedule (for example after earnings season) or call it from the API.

#### Example input

```json
{
  "companies": ["AAPL", "MSFT", "NVDA", "TSLA"],
  "periodType": "annual",
  "maxPeriods": 5,
  "fromYear": 2020,
  "includeDerivedQ4": true,
  "includeRatios": true,
  "includeSourceConcepts": false
}
```

#### Example output (one annual period)

```json
{
  "type": "period",
  "ticker": "AAPL",
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "exchange": "Nasdaq",
  "sicDescription": "Electronic Computers",
  "periodType": "annual",
  "fiscalYear": 2026,
  "fiscalPeriod": "FY",
  "periodStart": "2025-09-28",
  "periodEnd": "2026-09-26",
  "isDerivedQ4": false,
  "form": "10-K",
  "filedDate": "2026-11-03",
  "accessionNumber": "0000320193-26-000026",
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm",
  "currency": "USD",
  "revenue": 478834000000,
  "costOfRevenue": 245232000000,
  "grossProfit": 233602000000,
  "researchAndDevelopment": 45765000000,
  "sellingGeneralAndAdministrative": 29774000000,
  "operatingIncome": 158063000000,
  "pretaxIncome": 159237000000,
  "incomeTaxExpense": 27062000000,
  "netIncome": 132175000000,
  "epsBasic": 9.01,
  "epsDiluted": 8.98,
  "dilutedSharesOutstanding": 14720306000,
  "depreciationAndAmortization": 13423000000,
  "operatingCashFlow": 145097000000,
  "capitalExpenditure": 9041000000,
  "dividendsPaid": 15721000000,
  "shareRepurchases": 86390000000,
  "cashAndEquivalents": 36305000000,
  "currentAssets": 173857000000,
  "totalAssets": 404548000000,
  "currentLiabilities": 169915000000,
  "totalLiabilities": 292455000000,
  "longTermDebt": 68208000000,
  "stockholdersEquity": 112093000000,
  "freeCashFlow": 136056000000,
  "grossMarginPct": 48.79,
  "operatingMarginPct": 33.01,
  "netMarginPct": 27.6,
  "freeCashFlowMarginPct": 28.41,
  "effectiveTaxRatePct": 16.99,
  "returnOnEquityPct": 117.92,
  "returnOnAssetsPct": 32.67,
  "currentRatio": 1.02,
  "debtToEquity": 2.61,
  "revenueGrowthYoYPct": 15.06,
  "netIncomeGrowthYoYPct": 18.0,
  "epsDilutedGrowthYoYPct": 20.38,
  "dataCompleteness": "24/24",
  "warnings": null,
  "scrapedAt": "2026-11-20T21:29:43Z"
}
```

A derived fourth quarter looks like this (shortened):

```json
{
  "ticker": "AAPL",
  "periodType": "quarterly",
  "fiscalYear": 2026,
  "fiscalPeriod": "Q4",
  "periodStart": "2026-06-28",
  "periodEnd": "2026-09-26",
  "isDerivedQ4": true,
  "form": "10-K",
  "revenue": 114477000000,
  "netIncome": 30711000000,
  "epsDiluted": null,
  "operatingCashFlow": 28101000000,
  "totalAssets": 404548000000
}
```

Inputs that can't be used produce a free row, for example `{"type": "error", "input": "SPY", "errorMessage": "Skipped (not charged): no XBRL financial statements on SEC EDGAR for SPY ..."}`. A run summary is saved as the `SUMMARY` record in the key-value store.

### Pricing

Pay per event. You only pay for financial periods that are actually saved:

| Event | What it is | Price |
| --- | --- | --- |
| `financial-period` | One company-period (fiscal year or quarter) saved | $1.30 / 1,000 periods ($0.0013 each) |
| Actor start | Once per run (set by Apify, scales with memory) | $0.001 |

Example: 10 years of annual data for 100 companies (1,000 periods) costs about $1.30. Error rows are free.

### Limits

- XBRL financial data on EDGAR starts around 2009-2011, depending on company size. Older years are not available.
- Values are shown as reported in each period's own filing. Older EPS figures are not adjusted for later stock splits (growth rates are, see above).
- Banks, insurers and other financial companies don't report gross profit or current assets, so those fields stay empty for them.
- ETFs, mutual funds, trusts and some small or foreign filers don't file XBRL statements and return a free error row.
- Foreign 20-F and 40-F filers are included. Monetary values use the company's reporting currency (see the `currency` field).
- All monetary values are in units of the currency (not thousands or millions).

### Legal

The Actor only uses the free, public SEC EDGAR APIs provided for programmatic access, identifies itself with a descriptive User-Agent and stays below the SEC fair-access rate limit. SEC filings are public-domain information. It does not log in anywhere, bypass any protection or collect personal data. This is data, not investment advice.

### FAQ

- **How am I charged?** $0.0013 per company-period saved plus a $0.001 start fee. Error rows are free.
- **Where does Q4 come from?** Companies don't file a 10-Q for the fourth quarter. With **Include derived Q4 rows** on, Q4 = full fiscal year minus Q1, Q2 and Q3, flagged with `isDerivedQ4: true`. EPS and share counts are left empty for derived rows because they don't add up across quarters.
- **Why is a field empty?** The company didn't report that item in its XBRL data for the period, or uses an unusual tag. `dataCompleteness` shows how many of the 24 statement fields were found, and the filing link takes you to the source.
- **What if I leave the input empty?** The Actor falls back to two sample companies (AAPL and MSFT), logs a warning and still writes a dataset.
- **Can I use company names?** Yes, exact names work (for example "Apple Inc."). If a name matches several companies, you get a free error row listing candidate tickers.

# Actor input Schema

## `companies` (type: `array`):

US-listed companies to fetch, one per line. Use stock tickers (AAPL, BRK-B), SEC CIK numbers (320193) or exact company names (Apple Inc.). Duplicates are fetched once. Max 2,000 per run.

## `periodType` (type: `string`):

Annual = fiscal years from 10-K, 20-F and 40-F reports. Quarterly = fiscal quarters from 10-Q reports (Q4 is derived from the annual report, see below). Both = annual and quarterly rows.

## `maxPeriods` (type: `integer`):

How many of the most recent periods to return per company and period type (newest first). XBRL data on EDGAR usually goes back to 2009-2011.

## `fromYear` (type: `integer`):

Only return periods from this fiscal year onwards, e.g. 2020. Leave empty for no limit.

## `includeDerivedQ4` (type: `boolean`):

Companies do not file a 10-Q for the fourth quarter. When on, Q4 is calculated as the full fiscal year minus Q1-Q3 (EPS and share counts are left empty for derived rows). Only used for quarterly data.

## `includeRatios` (type: `boolean`):

Add gross, operating, net and free cash flow margins, effective tax rate, ROE, ROA, current ratio, debt-to-equity and year-over-year growth of revenue, net income and EPS.

## `includeSourceConcepts` (type: `boolean`):

Add a sourceConcepts object showing which XBRL tag each value came from (for example us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax). Useful for auditing.

## `maxConcurrency` (type: `integer`):

How many companies are fetched in parallel. Requests are throttled below the SEC fair-access limit either way.

## `requestTimeoutSecs` (type: `integer`):

Timeout for each SEC request. Failed requests are retried automatically with back-off.

## Actor input object example

```json
{
  "companies": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "periodType": "annual",
  "maxPeriods": 5,
  "includeDerivedQ4": true,
  "includeRatios": true,
  "includeSourceConcepts": false,
  "maxConcurrency": 2,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

## `financials` (type: `string`):

No description

## `allItems` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "companies": [
        "AAPL",
        "MSFT",
        "NVDA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("consequential_programmer/sec-financial-statements-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 = { "companies": [
        "AAPL",
        "MSFT",
        "NVDA",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("consequential_programmer/sec-financial-statements-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 '{
  "companies": [
    "AAPL",
    "MSFT",
    "NVDA"
  ]
}' |
apify call consequential_programmer/sec-financial-statements-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,consequential_programmer/sec-financial-statements-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/lI8PFxehouQu2iw7U/builds/2d8BWbBmFDF3cKtXc/openapi.json
