# US Stock Fundamentals API: SEC XBRL Financials & Screener (`moment-data/sec-company-fundamentals`) Actor

Income statement, balance sheet, cash flow, margins, ROE and YoY growth for any US-listed company, straight from official SEC EDGAR XBRL filings (10-K, 10-Q). Look up tickers or screen all filers by revenue, net income, cash and more. No API key.

- **URL**: https://apify.com/moment-data/sec-company-fundamentals.md
- **Developed by:** [Luke Miller](https://apify.com/moment-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 fundamentals records

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

## US Stock Fundamentals API: SEC XBRL Financials & Screener

Get clean **income statement, balance sheet and cash-flow fundamentals** for any US-listed company, plus margins, ROE/ROA and year-over-year growth, straight from the company's own **SEC EDGAR XBRL filings** (10-K, 10-Q, 20-F). Or **screen every SEC filer** by revenue, net income, cash, debt or EPS for a period and get a ranked list with tickers. Official data, no Yahoo/Finviz scraping, no API key, no login.

### Why this Actor

- **Official source, audit trail included**: every number comes from the XBRL financial data the company filed with the SEC. Each record links to the filing and lists the exact XBRL concept used for each metric.
- **Normalized**: companies use different tags (`Revenues` vs `RevenueFromContractWithCustomerExcludingAssessedTax`, etc.). The Actor picks the right concept per company, uses restated values when a later filing revised them, and derives Q2/Q3 quarterly cash flow from year-to-date figures.
- **History in one call**: up to 40 annual or quarterly periods per company (`periodsPerCompany`).
- **Screener**: rank all ~5,000 filers that reported a metric for a calendar year, quarter or quarter-end (SEC XBRL frames), filter by size, US state and exchange. Good for building lists like "Colorado public companies with $1B+ revenue".
- **Earnings monitor**: turn on `sinceLastRun` on a schedule to get only periods from newly filed 10-Ks and 10-Qs for your watchlist.
- Cheap and fast: the default run (30 large caps) takes about 20 seconds.

### Input

| Field | What it does |
|---|---|
| `mode` | `companies` (default) or `screener` |
| `tickers` / `ciks` | Companies to fetch. Empty = 30 large caps (AAPL, MSFT, NVDA, AMZN, GOOGL, META, TSLA, BRK-B, JPM, V ...) |
| `periodType` | `annual` (default) or `quarterly` |
| `periodsPerCompany` | Newest N periods per company (default 1) |
| `minPeriodEnd` | Only periods ending on/after a date |
| `includeProfile` | Adds SIC industry, filer category, HQ city/state, state of incorporation, fiscal year end, EIN (default on) |
| `screenMetric`, `screenPeriod` | Screener metric and period (`CY2025`, `CY2025Q3`, or `CY2025Q4I` for balance-sheet items). Empty period = newest fully reported |
| `minValue`, `maxValue`, `hqStates`, `exchanges`, `onlyListed`, `sortOrder` | Screener filters and ranking |
| `screenIncludeFundamentals` | Attach the full latest fundamentals record to each screener row |
| `sinceLastRun`, `stateKey` | Off by default. Skip records already delivered (named key-value store `sec-company-fundamentals-state`) |
| `maxItems` | Cap on records (default 30) |

Examples:

```json
{ "tickers": ["AAPL", "MSFT", "GOOGL"], "periodType": "quarterly", "periodsPerCompany": 8 }
```

```json
{ "mode": "screener", "screenMetric": "revenue", "screenPeriod": "CY2025", "minValue": 1000000000, "hqStates": ["CO"], "maxItems": 50 }
```

### Output

Companies mode: one record per company and fiscal period. Sample (Apple, FY2026 10-K):

```json
{
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "ticker": "AAPL",
  "exchange": "Nasdaq",
  "allTickers": [
    "AAPL"
  ],
  "sic": "3571",
  "industry": "Electronic Computers",
  "filerCategory": "Large accelerated filer",
  "stateOfIncorporation": "CA",
  "fiscalYearEnd": "09-26",
  "hqCity": "CUPERTINO",
  "hqState": "CA",
  "ein": "942404110",
  "website": null,
  "periodType": "annual",
  "fiscalYear": 2026,
  "fiscalPeriod": "FY",
  "periodEnd": "2026-09-26",
  "form": "10-K",
  "filedDate": "2026-11-03",
  "accessionNumber": "0000320193-26-000026",
  "currency": "USD",
  "revenue": 478834000000,
  "costOfRevenue": 245232000000,
  "grossProfit": 233602000000,
  "researchAndDevelopment": 45765000000,
  "sellingGeneralAdmin": 29774000000,
  "operatingIncome": 158063000000,
  "pretaxIncome": 159237000000,
  "incomeTax": 27062000000,
  "netIncome": 132175000000,
  "epsBasic": 9.01,
  "epsDiluted": 8.98,
  "weightedAvgSharesDiluted": 14720306000,
  "sharesOutstanding": 14532182000,
  "sharesOutstandingDate": "2026-10-23",
  "totalAssets": 404548000000,
  "currentAssets": 173857000000,
  "cashAndEquivalents": 36305000000,
  "totalLiabilities": 292455000000,
  "currentLiabilities": 169915000000,
  "longTermDebt": 68208000000,
  "stockholdersEquity": 112093000000,
  "operatingCashFlow": 145097000000,
  "capitalExpenditures": 9041000000,
  "freeCashFlow": 136056000000,
  "dividendsPaid": 15721000000,
  "shareRepurchases": 86390000000,
  "grossMargin": 0.4879,
  "operatingMargin": 0.3301,
  "netMargin": 0.276,
  "currentRatio": 1.0232,
  "debtToEquity": 0.6085,
  "returnOnEquity": 1.1792,
  "returnOnAssets": 0.3267,
  "revenueGrowthYoY": 0.1506,
  "netIncomeGrowthYoY": 0.18,
  "epsDilutedGrowthYoY": 0.2038,
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm",
  "source": "SEC EDGAR XBRL companyfacts",
  "dedupKey": "320193:annual:2026-09-26:0000320193-26-000026",
  "retrievedAt": "2026-11-15T06:38:26.757Z",
  "xbrlConcepts": {
    "revenue": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
    "netIncome": "us-gaap:NetIncomeLoss",
    "...": "..."
  }
}
```

Fields: company profile (`cik`, `ticker`, `exchange`, `companyName`, `sic`, `industry`, `filerCategory`, `stateOfIncorporation`, `hqCity`, `hqState`, `fiscalYearEnd`, `ein`), period (`fiscalYear`, `fiscalPeriod`, `periodEnd`, `form`, `filedDate`, `accessionNumber`, `filingUrl`), income statement (`revenue`, `costOfRevenue`, `grossProfit`, `researchAndDevelopment`, `sellingGeneralAdmin`, `operatingIncome`, `pretaxIncome`, `incomeTax`, `netIncome`, `epsBasic`, `epsDiluted`, `weightedAvgSharesDiluted`, `sharesOutstanding`), balance sheet (`totalAssets`, `currentAssets`, `cashAndEquivalents`, `totalLiabilities`, `currentLiabilities`, `longTermDebt`, `stockholdersEquity`), cash flow (`operatingCashFlow`, `capitalExpenditures`, `freeCashFlow`, `dividendsPaid`, `shareRepurchases`), ratios (`grossMargin`, `operatingMargin`, `netMargin`, `currentRatio`, `debtToEquity`, `returnOnEquity`, `returnOnAssets`) and growth (`revenueGrowthYoY`, `netIncomeGrowthYoY`, `epsDilutedGrowthYoY`). Ratios are decimals (0.276 = 27.6%). Values are in the filing currency (`currency`), usually USD.

Screener mode: one record per company: `rank`, `cik`, `companyName`, `ticker`, `exchange`, `location`, `screenMetric`, `screenPeriod`, `value`, `periodStart`, `periodEnd`, `xbrlConcept`, `accessionNumber`, `filingUrl` (+ `latestFundamentals` if requested).

```json
{ "rank": 1, "cik": "0000007536", "companyName": "ARROW ELECTRONICS, INC.", "ticker": "ARW", "exchange": "NYSE", "location": "US-CO", "screenMetric": "revenue", "screenPeriod": "CY2025", "value": 30852935000, "periodEnd": "2025-12-31", "xbrlConcept": "us-gaap:Revenues" }
```

### Good to know

- A metric is `null` when the company does not report it in XBRL (banks have no gross profit; some companies report EPS by share class only).
- Quarterly mode covers fiscal Q1-Q3 (10-Q). Q4 is only in the annual 10-K; subtract Q1-Q3 from the annual figure if you need it.
- The screener uses SEC "frames": fiscal periods are mapped to the nearest calendar period, and each company's newest-filed value is used. Companies whose fiscal year does not end near December appear under the calendar year their fiscal year mostly covers.
- New filings appear at SEC within minutes of acceptance; the Actor always reads live data.
- Polite access: about 6 requests/second (SEC fair-access limit is 10) with a declared User-Agent; add `contactEmail` to identify your runs to the SEC.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| `fundamentals-record` | $0.004 per record returned (one company-period, or one screener row) |

The default run (30 companies, latest fiscal year) costs about $0.125. Set `maxItems` or a max-charge limit to cap spend.

### Related Actors by moment-data

- [SEC EDGAR Filings Feed](https://apify.com/moment-data/sec-edgar-filings-feed) - new 10-K, 10-Q, 8-K filings as they land.
- [SEC Insider Transactions Feed](https://apify.com/moment-data/sec-insider-transactions-feed)
- [SEC 13F Holdings Changes Feed](https://apify.com/moment-data/sec-13f-holdings-changes-feed)
- [SEC Form D Funding Feed](https://apify.com/moment-data/sec-form-d-funding-feed)

### Data sources and licence

U.S. Securities and Exchange Commission EDGAR APIs: XBRL `companyfacts` and `frames` (data.sec.gov/api/xbrl), `submissions` (data.sec.gov/submissions) and the company ticker file (sec.gov/files/company_tickers_exchange.json). EDGAR data is public US government information. Not affiliated with or endorsed by the SEC. Figures are as reported by companies in XBRL and may differ from press-release or adjusted (non-GAAP) numbers. Not investment advice.

# Actor input Schema

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

companies = full fundamentals for the tickers/CIKs you list (empty = 30 large caps). screener = every company that reported a metric for a calendar period (SEC XBRL frames), filtered and ranked.

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

US-listed tickers, e.g. AAPL, MSFT, BRK.B. Leave empty (and CIKs empty) for the default list of 30 large caps.

## `ciks` (type: `array`):

Optional SEC Central Index Keys (works for companies without a ticker, e.g. recently listed or delisted filers).

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

Annual fiscal years or fiscal quarters. Quarterly cash-flow values for Q2/Q3 are derived from year-to-date figures.

## `periodsPerCompany` (type: `integer`):

How many of the newest periods to return per company (e.g. 5 = five years of history).

## `minPeriodEnd` (type: `string`):

Optional YYYY-MM-DD lower bound for period end dates.

## `includeProfile` (type: `boolean`):

Adds SIC industry, filer category, state of incorporation, HQ city/state, fiscal year end, EIN (one extra SEC request per company).

## `screenMetric` (type: `string`):

Metric to screen on. Income/cash-flow metrics use a calendar year (CY2025) or quarter (CY2025Q3); balance-sheet metrics use an instant (CY2025Q4I).

## `screenPeriod` (type: `string`):

CY2025 (annual), CY2025Q3 (quarter) or CY2025Q4I (balance sheet at quarter end). Empty = newest fully reported period. SEC aligns fiscal periods to the nearest calendar period.

## `minValue` (type: `integer`):

Keep companies with metric >= this (USD; EPS in USD per share), e.g. 100000000 for $100M+ revenue.

## `maxValue` (type: `integer`):

Keep companies with metric <= this.

## `hqStates` (type: `array`):

Filter by the filer's reported location, e.g. CA, TX, CO (non-US codes such as CA-ON or GB also work).

## `exchanges` (type: `array`):

Filter by listing exchange: Nasdaq, NYSE, OTC, CBOE.

## `onlyListed` (type: `boolean`):

Skip filers without a current ticker in SEC's ticker file.

## `sortOrder` (type: `string`):

Ranking order.

## `screenIncludeFundamentals` (type: `boolean`):

Adds the latest full fundamentals record per company (one extra SEC request each; slower).

## `sinceLastRun` (type: `boolean`):

Off by default. When on, records already delivered (same company + period + filing) are skipped, so a scheduled run only returns newly filed 10-K/10-Q periods. State is kept in the named key-value store 'sec-company-fundamentals-state'.

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

Separate memory per watchlist when sinceLastRun is on.

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

Upper limit on records (each record is one charged event).

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

SEC asks automated clients to identify themselves; if given, it is sent in the User-Agent header to sec.gov only.

## Actor input object example

```json
{
  "mode": "companies",
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "periodType": "annual",
  "periodsPerCompany": 1,
  "includeProfile": true,
  "screenMetric": "revenue",
  "onlyListed": true,
  "sortOrder": "desc",
  "screenIncludeFundamentals": false,
  "sinceLastRun": false,
  "stateKey": "default",
  "maxItems": 30
}
```

# Actor output Schema

## `fundamentals` (type: `string`):

One record per company and fiscal period.

## `screener` (type: `string`):

Screener mode: one ranked record per company.

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

Counts, problems and timing.

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

// Run the Actor and wait for it to finish
const run = await client.actor("moment-data/sec-company-fundamentals").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 = { "tickers": [
        "AAPL",
        "MSFT",
        "NVDA",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("moment-data/sec-company-fundamentals").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 '{
  "tickers": [
    "AAPL",
    "MSFT",
    "NVDA"
  ]
}' |
apify call moment-data/sec-company-fundamentals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moment-data/sec-company-fundamentals"
        }
    }
}
```

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/TgPchLTRZNm1uydO9/builds/VEYO7VyNA8rZdhIc2/openapi.json
