# SEC Company Financials & Fundamentals API (XBRL, 10-K/10-Q) (`datacrate/sec-xbrl-financials-feed`) Actor

Company fundamentals from official SEC XBRL filings: revenue, net income, EPS, assets, liabilities, cash, operating cash flow and shares per 10-K/10-Q, by ticker or CIK. Includes cross-company screening and new-filing alerts.

- **URL**: https://apify.com/datacrate/sec-xbrl-financials-feed.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 financial row returneds

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 Company Financials & Fundamentals API (XBRL, 10-K/10-Q)

**Get company fundamentals (revenue, net income, EPS, assets, liabilities, cash, operating cash flow, shares outstanding) straight from the SEC's official XBRL data, as one clean row per company per fiscal period.** Enter tickers or CIK numbers. Each row carries the fiscal year and period, the filing form (10-K or 10-Q), the **filed date** and the **accession number**, so you can reproduce every number from the original filing and avoid look-ahead bias in backtests. No scraping, no API key, no login.

Three modes: **companyfacts** (financial history for the companies you list), **frames** (one metric for all reporting companies in one period, ranked: a screener) and **sinceLast** (only filings that appeared since your last run: an earnings-season alert feed).

**First run cost:** the default run returns 8 rows (Apple and Microsoft, the last 4 periods each) for about **$0.012** at **$0.0015 per row** (the first seconds of compute are covered by Apify). 1,000 rows cost about **$1.50**, less on higher Apify plans.

### Who it is for

- **Quant, investing and fintech teams** that need point-in-time fundamentals from the primary source (every row has `filed` and `accession`).
- **Analysts and students** who want revenue, income, cash flow and balance-sheet figures in a table instead of reading filings.
- **Screeners and dashboards** that rank all US-listed filers by revenue, net income, assets or any XBRL concept for a quarter (frames mode).
- **Newsletters, bots and AI agents** that react to new 10-K and 10-Q filings (sinceLast mode on a schedule).

### What you get

One row per filing period (`companyfacts`, `sinceLast`):

| Field | Meaning |
|---|---|
| `ticker`, `cik`, `companyName` | Company identifiers (CIK is zero-padded to 10 digits) |
| `fiscalYear`, `fiscalPeriod` | `FY`, `Q1`, `Q2` or `Q3` as the company reports it |
| `periodType`, `periodStart`, `periodEnd` | `annual` or `quarterly`; the period the figures cover |
| `form`, `filed`, `accession`, `filingUrl` | The SEC filing the figures come from (link opens the filing index) |
| `revenue`, `revenueConcept` | Revenue in USD and the XBRL tag it came from (companies use different tags) |
| `netIncome`, `epsDiluted`, `epsBasic` | Net income (USD) and earnings per share for the period |
| `operatingCashFlow`, `operatingCashFlowYtd` | Operating cash flow for the period (quarters are derived from the cumulative 10-Q figures) and the fiscal-year-to-date value as reported |
| `assets`, `liabilities`, `equity`, `cash` | Balance-sheet values at `periodEnd` (USD) |
| `sharesOutstanding`, `sharesAsOf` | Shares outstanding from the filing cover page and its date |
| `changeType` | sinceLast only: `baseline` on the first run, `new` afterwards |

Frames mode rows (`recordType: frame`) have `metric`, `concept`, `framePeriod`, `value`, `unit`, `periodStart`, `periodEnd`, `location` (state or country code) plus the same company and filing fields.

Every row also has `source`, `attribution` and `checkedAt`. A value is `null` when the company did not report that concept for that period (for example, banks do not report a standard revenue tag).

### Input

| Field | Meaning |
|---|---|
| `mode` | `companyfacts` (default), `frames` or `sinceLast` |
| `tickers` | Tickers (`AAPL`, `BRK-B`) or CIK numbers. Empty means AAPL and MSFT. In frames mode, empty means every reporting company |
| `periodType`, `maxPeriodsPerCompany`, `fromFiscalYear` | Annual / quarterly / both, how many periods per company (newest first, default 4), earliest fiscal year |
| `forms`, `includeAmendments` | 10-K and/or 10-Q; add 10-K/A and 10-Q/A |
| `frameMetric`, `framePeriod` | Frames: revenue, net income, diluted EPS, operating cash flow, assets, liabilities, equity or cash; period like `CY2025Q3` or `CY2025` (empty = latest well-populated quarter) |
| `frameOrder`, `frameMinValue` | Frames: largest or smallest first; skip small companies |
| `frameConcept`, `frameUnit` | Frames, advanced: any XBRL concept such as `us-gaap/ResearchAndDevelopmentExpense` |
| `maxItems` | Cap on rows and cost (default 50) |
| `stateKey` | sinceLast: separate watchlists by name |
| `contactEmail` | Optional contact for the SEC User-Agent |
| `maxRequestsPerSecond` | Politeness cap, 1 to 5 (default 4) |

Default (prefill) input, also used when you run with empty input:

```json
{ "mode": "companyfacts", "tickers": ["AAPL", "MSFT"], "periodType": "both", "maxPeriodsPerCompany": 4, "maxItems": 50 }
```

Top 25 companies by revenue for a calendar quarter:

```json
{ "mode": "frames", "frameMetric": "revenue", "framePeriod": "CY2026Q3", "maxItems": 25 }
```

Earnings-season alert feed (run it daily on a schedule; only newly filed periods are returned and billed):

```json
{ "mode": "sinceLast", "tickers": ["AAPL", "MSFT", "NVDA", "AMZN", "GOOGL"], "stateKey": "mega-caps", "maxPeriodsPerCompany": 2 }
```

### Sample output (real data from the SEC)

```json
{
  "recordType": "financials",
  "cik": "0000320193",
  "ticker": "AAPL",
  "companyName": "Apple Inc.",
  "fiscalYear": 2026,
  "fiscalPeriod": "FY",
  "periodType": "annual",
  "periodStart": "2025-09-28",
  "periodEnd": "2026-09-26",
  "form": "10-K",
  "filed": "2026-11-03",
  "accession": "0000320193-26-000026",
  "revenue": 478834000000,
  "netIncome": 132175000000,
  "epsDiluted": 8.98,
  "operatingCashFlow": 145097000000,
  "assets": 404548000000,
  "liabilities": 292455000000,
  "cash": 36305000000,
  "sharesOutstanding": 14532182000,
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
}
```

### FAQ

**Where do the numbers come from?** From the SEC's XBRL "company facts" and "frames" APIs on data.sec.gov, which publish the financial data companies tag in their 10-K and 10-Q filings. Nothing is estimated except the discrete-quarter operating cash flow, which is the 10-Q's cumulative figure minus the previous quarter's.

**Why is there no fourth-quarter row?** Companies do not file a separate Q4 report; Q4 is inside the annual 10-K. The annual row covers the whole year.

**Why is a value empty?** The company did not tag that concept for that period. Revenue in particular uses different tags (`revenueConcept` shows which); banks, insurers and funds often have no standard revenue tag. Use frames mode with `frameConcept` for a specific tag.

**Does it cover foreign companies?** It covers filers of US GAAP XBRL with 10-K and 10-Q forms. Foreign private issuers (forms 20-F, 40-F, 6-K) use other taxonomies and are not included.

**Is it point-in-time?** Each row is tied to the filing that reported it (`filed`, `accession`). Restated numbers appear in the later filing that restates them, not in the old row. Turn on `includeAmendments` to include 10-K/A and 10-Q/A rows.

**What does frames mode do?** The SEC groups each reported value into a calendar period (about 91 days for a quarter, rounded to the nearest calendar quarter). Frames mode downloads one concept for one period and returns every company, sorted by value. Companies with non-calendar fiscal years are placed in the closest calendar quarter.

**Do the rows contain personal data?** No. They are company financial figures from public filings.

### Data source, fair access and attribution

- Source: SEC EDGAR XBRL APIs (`data.sec.gov/api/xbrl/companyfacts` and `frames`) and the SEC ticker list (`www.sec.gov/files/company_tickers.json`). SEC filings data is information published by the US government.
- The SEC's fair access rule (sec.gov/developer): "Current guidelines limit each user to a total of no more than 10 requests per second, regardless of the number of machines used to submit requests." This actor never goes above 5 requests per second (4 by default), caches each company's data for the run, sends a descriptive User-Agent (`DataCrate-Apify/1.0` with a contact), backs off when the SEC asks to slow down, and requests only what a run needs.
- `data.sec.gov/robots.txt` returns 404 (no rules), and the actor does not crawl any www.sec.gov pages other than the ticker list.
- This actor is independent and is not affiliated with, endorsed or sponsored by the U.S. Securities and Exchange Commission. Financial data is provided as is, for information only, and is not investment advice. Check figures against the filing before relying on them.

### Integrations

Schedule it daily and send new filings to Slack, email, Telegram, Discord, Google Sheets or Notion through a webhook, or call it from an AI agent through the Apify MCP server. Export JSON, CSV, Excel or load it into a data warehouse.

### Pricing

Pay per result: **$0.0015 per row** (volume tiers on higher Apify plans), plus Apify's usual start event. Only rows returned are billed; `maxItems` caps the bill. In sinceLast mode, filings you already received are not returned or billed again.

### Changelog

- 1.0: first release (companyfacts, frames and sinceLast modes).

# Actor input Schema

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

companyfacts = financial history for the companies below, one row per filing period. frames = one metric across ALL reporting companies for one period (screening, ranked by value). sinceLast = like companyfacts but only filings not returned by an earlier run with the same state name (earnings-season alerts).

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

Stock tickers (AAPL, BRK-B) or SEC CIK numbers (320193). Used by companyfacts and sinceLast (empty = AAPL and MSFT). In frames mode, leave empty to screen ALL reporting companies, or list some to restrict the screen to them.

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

Annual (10-K), quarterly (10-Q) or both. Note: the fourth quarter is not filed separately; it is inside the annual row.

## `maxPeriodsPerCompany` (type: `integer`):

How many filing periods to return for each company (4 = about the last year of quarters, or 4 years if annual only).

## `fromFiscalYear` (type: `integer`):

Only periods whose fiscal year is this or later, for example 2020. Leave empty for the newest periods.

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

Which SEC forms to include. Default 10-K and 10-Q.

## `includeAmendments` (type: `boolean`):

Amendments can repeat a period already filed. Off by default.

## `frameMetric` (type: `string`):

Frames mode only. Which figure to compare across companies.

## `framePeriod` (type: `string`):

Calendar period such as CY2025Q3 (quarter) or CY2025 (year). Balance-sheet metrics use the quarter end automatically. Leave empty for the latest well-populated calendar quarter. Companies are placed in the calendar period closest to their fiscal period.

## `frameOrder` (type: `string`):

Largest values first (default) or smallest first.

## `frameMinValue` (type: `number`):

Skip companies below this value (in the metric's unit, for example 1000000000 for $1 billion revenue).

## `frameConcept` (type: `string`):

Overrides the metric above. Format taxonomy/Tag, for example us-gaap/Revenues or us-gaap/ResearchAndDevelopmentExpense.

## `frameUnit` (type: `string`):

Unit for the custom concept: USD, shares, pure, or USD/shares.

## `maxItems` (type: `integer`):

Upper bound on rows (and on cost).

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

Use different names to keep separate watchlists. The first run returns the latest periods and sets the baseline; later runs return only newly filed periods.

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

The SEC asks automated clients to identify themselves. Leave empty to use the built-in contact.

## `maxRequestsPerSecond` (type: `integer`):

Politeness cap for SEC requests (the SEC allows 10 per second; this actor never exceeds 5).

## Actor input object example

```json
{
  "mode": "companyfacts",
  "tickers": [
    "AAPL",
    "MSFT"
  ],
  "periodType": "both",
  "maxPeriodsPerCompany": 4,
  "forms": [
    "10-K",
    "10-Q"
  ],
  "includeAmendments": false,
  "frameMetric": "revenue",
  "frameOrder": "desc",
  "frameUnit": "USD",
  "maxItems": 50,
  "stateKey": "default",
  "maxRequestsPerSecond": 4
}
```

# Actor output Schema

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

One row per company per fiscal period (companyfacts, sinceLast) or per company for one metric (frames), with filing form, filed date and accession number.

# 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": "companyfacts",
    "tickers": [
        "AAPL",
        "MSFT"
    ],
    "periodType": "both",
    "maxPeriodsPerCompany": 4,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/sec-xbrl-financials-feed").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": "companyfacts",
    "tickers": [
        "AAPL",
        "MSFT",
    ],
    "periodType": "both",
    "maxPeriodsPerCompany": 4,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/sec-xbrl-financials-feed").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": "companyfacts",
  "tickers": [
    "AAPL",
    "MSFT"
  ],
  "periodType": "both",
  "maxPeriodsPerCompany": 4,
  "maxItems": 50
}' |
apify call datacrate/sec-xbrl-financials-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/sec-xbrl-financials-feed"
        }
    }
}
```

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/u7Uq8aJngoKT9DvTq/builds/Pbw9FtLeL3K99n2Hf/openapi.json
