# SEC Company Financials: Revenue, EPS & Cash Flow (`hydrocore/sec-company-financials`) Actor

Enter tickers or CIKs and get standardized annual or quarterly financials from official SEC XBRL filings: revenue, net income, EPS, margins, YoY growth, free cash flow, assets, debt and equity. One flat row per company period, with the filing link. AI-agent ready.

- **URL**: https://apify.com/hydrocore/sec-company-financials.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** AI, 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 $2.00 / 1,000 company period saveds

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: Revenue, EPS & Cash Flow

Type tickers (AAPL, MSFT, NVDA) or SEC CIK numbers and get **standardized financial statements from official SEC XBRL data**: one flat row per company per fiscal year or quarter, with revenue, net income, EPS, gross, operating and net margins, year-over-year revenue growth, free cash flow, cash, assets, liabilities, long-term debt and equity, plus the link to the exact filing. Raw XBRL has thousands of tags per company; this Actor maps them to 17 standard metrics, so a spreadsheet, a model or an AI agent can compare companies right away.

### ✅ What you get

- Official source: SEC EDGAR XBRL company facts API (no key, no scraping of HTML)
- 17 standard metrics mapped from common us-gaap tags (and IFRS equivalents), with fallbacks (e.g. Revenues vs RevenueFromContractWithCustomer...)
- Computed: gross / operating / net margin %, YoY revenue growth %, free cash flow
- Annual (10-K, 20-F, 40-F) or quarterly (10-Q) periods
- Every value is a JSON number: amounts and EPS in USD, shares as a count, margins and growth in %; dates are YYYY-MM-DD
- Filing link and accession number on each row for audit
- Sort by newest, revenue, net margin or growth; filter by year or minimum revenue

### 💡 Use cases

**Apify Store use cases:** Company due diligence · Market research · Feed AI agents & RAG

- Investors and analysts: quick comparable tables for a watchlist
- AI agents / RAG: grounded, citable fundamentals instead of guessed numbers
- Sales and B2B research: revenue size and growth of target accounts
- Dashboards in Google Sheets, Excel, Make or n8n

### 🚀 How to use

1. Enter tickers or CIKs.
2. Choose annual, quarterly or both, and how many periods.
3. Run and export to JSON, CSV or Excel, or call via API / MCP.

### ⚙️ Input

| Field | What it does |
|---|---|
| `companies` | Tickers or CIKs (required). |
| `periodType` | annual, quarter, both. |
| `maxPeriodsPerCompany` | Most recent N periods (default 4). |
| `fromYear / minRevenue` | Filters (never charged). |
| `sortBy` | newest, ticker, revenue, netMargin, revenueGrowth. |
| `contactEmail` | Optional contact sent to SEC in the User-Agent (SEC asks automated tools to identify themselves). |

Example input:

```json
{
  "companies": [
    "AAPL",
    "MSFT",
    "NVDA",
    "GOOGL",
    "AMZN"
  ],
  "periodType": "annual",
  "maxPeriodsPerCompany": 5,
  "sortBy": "ticker"
}
```

### ⬆️ Output

One row per company per fiscal period (year or quarter). Every row has the same keys in the same order; missing values are `null`.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `ticker` | string | "AAPL" | Ticker (from SEC company list). |
| `companyName` | string | "Apple Inc." | SEC entity name. |
| `fiscalYear` | integer | 2026 | Fiscal year as filed. |
| `fiscalPeriod` | string | "FY" | FY, Q1, Q2, Q3. |
| `periodEndDate` | string | "2026-09-26" | Last day of the period (YYYY-MM-DD). |
| `revenue` | number | 478834000000 | Total revenue, USD. Value from the latest filing that reports this period (picks up restatements). |
| `netIncome` | number | 132175000000 | Net income (loss), USD. Value from the latest filing that reports this period (picks up restatements). |
| `epsDiluted` | number | 8.98 | Diluted earnings per share, USD. |
| `grossMarginPercent` | number | 48.79 | Gross profit / revenue × 100. |
| `netMarginPercent` | number | 27.6 | Net income / revenue × 100. |
| `revenueGrowthPercent` | number | 15.06 | Versus the same period a year earlier (null if that period is not in the data). |
| `freeCashFlow` | number | 136056000000 | Operating cash flow − capital expenditure. |
| `filingUrl` | string | "https://www.sec.gov/Archives/edgar/data/320193/000032019326… | EDGAR index page of the filing that first reported this period. |

All 39 fields (in order): `recordType`, `ticker`, `companyName`, `periodType`, `fiscalYear`, `fiscalPeriod`, `periodEndDate`, `revenue`, `netIncome`, `epsDiluted`, `grossMarginPercent`, `operatingMarginPercent`, `netMarginPercent`, `revenueGrowthPercent`, `freeCashFlow`, `costOfRevenue`, `grossProfit`, `researchAndDevelopment`, `operatingIncome`, `epsBasic`, `dilutedShares`, `operatingCashFlow`, `capitalExpenditure`, `dividendsPaid`, `cashAndEquivalents`, `totalAssets`, `totalLiabilities`, `longTermDebt`, `stockholdersEquity`, `currency`, `periodStartDate`, `calendarFrame`, `form`, `filedDate`, `accessionNumber`, `filingUrl`, `cik`, `metricsFound`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "period",
  "ticker": "AAPL",
  "companyName": "Apple Inc.",
  "periodType": "annual",
  "fiscalYear": 2026,
  "fiscalPeriod": "FY",
  "periodEndDate": "2026-09-26",
  "revenue": 478834000000,
  "netIncome": 132175000000,
  "epsDiluted": 8.98,
  "grossMarginPercent": 48.79,
  "operatingMarginPercent": 33.01,
  "netMarginPercent": 27.6,
  "revenueGrowthPercent": 15.06,
  "freeCashFlow": 136056000000,
  "costOfRevenue": 245232000000,
  "grossProfit": 233602000000,
  "researchAndDevelopment": 45765000000,
  "operatingIncome": 158063000000,
  "epsBasic": 9.01,
  "dilutedShares": 14720306000,
  "operatingCashFlow": 145097000000,
  "capitalExpenditure": 9041000000,
  "dividendsPaid": 15721000000,
  "cashAndEquivalents": 36305000000,
  "totalAssets": 404548000000,
  "totalLiabilities": 292455000000,
  "longTermDebt": 68208000000,
  "stockholdersEquity": 112093000000,
  "currency": "USD",
  "periodStartDate": "2025-09-28",
  "calendarFrame": "CY2026",
  "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",
  "cik": "0000320193",
  "metricsFound": 17,
  "scrapedAt": "2026-11-10T12:46:59.937Z"
}
```

Views: **Overview**, **Income statement**, **Balance sheet & cash flow**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). A run summary with per-company status (ok, not-found, no-xbrl-data, no-usd-data, error) and filtered/capped counts is saved as the `OUTPUT` record in the key-value store.

### 💰 Pricing

Pay per result: **$0.0025 per company period** on the Free plan ($0.0023 Bronze, $0.0021 Silver, $0.002 Gold and above), plus a $0.0005 Actor start. 5 companies × 4 years = 20 rows ≈ $0.05. Filtered or capped periods are free.

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Which companies are covered?**

SEC filers that report XBRL financial data in USD: US-listed companies, plus foreign issuers filing 20-F/40-F when they report in USD (US GAAP or IFRS). Filers that report only in another currency (for example Novo Nordisk in DKK) are marked `no-usd-data` in the run summary, and funds and some very small filers with no XBRL facts are marked `no-xbrl-data`. Neither is charged.

**Why is a metric null?**

The company did not report that standard tag for the period (banks, for example, have no cost of revenue). `metricsFound` shows how complete each row is.

**Why are quarterly cash flows mostly empty?**

10-Q cash flow statements are year-to-date, not single-quarter; quarterly rows fill operating cash flow and capex for Q1 only. Use annual rows for full-year cash flow.

**Is this investment advice?**

No. It is a data tool. Always check the linked filing for decisions.

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-10): first release.

### Ready-made examples

Open one, click **Try for free** and change the inputs to your own:

- [Big tech revenue and margins, annual](https://apify.com/hydrocore/sec-company-financials/examples/big-tech-revenue-margins-annual)

# Actor input Schema

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

US-listed tickers (AAPL, BRK-B) or SEC CIK numbers (320193). One per line. Foreign filers are included when they report in USD.

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

Annual rows come from 10-K (and 20-F/40-F) filings, quarterly rows from 10-Q filings.

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

Most recent N periods per company and period type. Example: 8.

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

Only periods ending in or after this year. Example: 2020.

## `minRevenue` (type: `integer`):

Drop periods with revenue below this. Example: 100000000 (100 million).

## `sortBy` (type: `string`):

Applied to all rows.

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

SEC asks automated tools to declare a contact; if you add yours it is sent in the User-Agent header to SEC only. Example: you@company.com.

## Actor input object example

```json
{
  "companies": [
    "AAPL",
    "MSFT",
    "NVDA"
  ],
  "periodType": "annual",
  "maxPeriodsPerCompany": 4,
  "sortBy": "newest"
}
```

# Actor output Schema

## `overview` (type: `string`):

Ticker, period, revenue, net income, EPS, margins, growth, FCF and filing link.

## `income` (type: `string`):

Revenue to EPS.

## `balance` (type: `string`):

Cash, assets, liabilities, debt, equity, cash flows.

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

Every field for each row.

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

Run summary: per-company status (ok, not-found, no-xbrl-data, no-usd-data, error) and counts of filtered/capped rows (never charged).

# 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("hydrocore/sec-company-financials").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("hydrocore/sec-company-financials").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 hydrocore/sec-company-financials --silent --output-dataset

```

## MCP server setup

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

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/aB13Ipt2H4uKFfcUX/builds/bm491dYRVX1k8I40e/openapi.json
