# SEC Company Financials Scraper (`moving_beacon-owner1/sec-company-financials-scraper`) Actor

Scrapes SEC XBRL financial data for public companies using a ticker, CIK, or name. Retrieves multi-year income statements, balance sheets, cash-flow statements, and optional ratios, with SEC source links for verification. Supports annual/quarterly data, historical trends, and financial analysis.

- **URL**: https://apify.com/moving_beacon-owner1/sec-company-financials-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.99 / 1,000 results

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 Company Financials Scraper

Pulls audited financial statements for any company that files with the US
Securities and Exchange Commission, straight from the SEC's own XBRL data. Give
it a ticker, a CIK or part of a company name and it returns the income
statement, balance sheet and cash-flow statement as reported — each line item
with its full multi-year history — plus a set of financial ratios computed from
those reported figures.

The numbers come from the filings themselves, so they match the company's 10-K
and 10-Q exactly. Annual history typically reaches back to around 2007, which is
when XBRL reporting began.

No API key or account is needed.

### Input

| Field | Default | Description |
|---|---|---|
| Company | `AAPL` | A ticker (`AAPL`, `MSFT`), a CIK (`320193` or `CIK0000320193`), or part of a registered company name. |
| Statements | income statement, balance sheet, cash flow | Which statements to return. `financial-ratios` adds margins, returns and leverage ratios computed from the reported values. |
| Frequency | `A` | `A` = annual fiscal-year figures from 10-K / 20-F filings. `Q` = three-month quarterly figures, mostly from 10-Q filings. Only periods the company actually filed are returned. |
| Limit | `200` | Maximum number of metric records. One record is one line item with its whole reported history. |
| Include all concepts | `false` | Also emit every other US-GAAP tag the company filed — hundreds of footnote-level items beyond the standard statement lines. |
| User agent | *(empty)* | The SEC asks automated clients to identify themselves, e.g. `Acme Research acme@example.com`. Leave empty to use a generic identifier. |
| Proxy configuration | Off | Optional. The SEC's data service is openly reachable worldwide, so a proxy is not normally needed. |

### Output

One row per metric, carrying that metric's entire reported history.

```json
{
  "ticker": "AAPL",
  "cik": "0000320193",
  "company_name": "Apple Inc.",
  "statement": "income-statement",
  "statement_title": "Income Statement",
  "frequency": "A",
  "metric": "Basic Shares Outstanding",
  "metric_slug": "basic-shares-outstanding",
  "xbrl_concept": "WeightedAverageNumberOfSharesOutstandingBasic",
  "xbrl_concepts_used": [
    "WeightedAverageNumberOfSharesOutstandingBasic"
  ],
  "unit": "shares",
  "derived": false,
  "earliest_period": "2007-09-29",
  "latest_period": "2025-09-27",
  "latest_value": 14948500000,
  "num_periods": 19,
  "values": {
    "2007-09-29": 864595000,
    "2008-09-27": 881592000,
    "2009-09-26": 893016000,
    "2010-09-25": 909461000,
    "2011-09-24": 924258000,
    "2012-09-29": 6543726000,
    "2013-09-28": 6477320000,
    "2014-09-27": 6085572000,
    "2015-09-26": 5753421000,
    "2016-09-24": 5470820000,
    "2017-09-30": 5217242000,
    "2018-09-29": 19821510000,
    "2019-09-28": 18471336000,
    "2020-09-26": 17352119000,
    "2021-09-25": 16701272000,
    "2022-09-24": 16215963000,
    "2023-09-30": 15744231000,
    "2024-09-28": 15343783000,
    "2025-09-27": 14948500000
  },
  "source_url": "https://data.sec.gov/api/xbrl/companyconcept/CIK0000320193/us-gaap/WeightedAverageNumberOfSharesOutstandingBasic.json"
}
```

`values` is keyed by fiscal period end date, so a single row charts directly.
`source_url` points at the exact SEC endpoint the figures came from, which makes
every number auditable back to the filing.

### Notes on the data

- `derived: false` means the value is exactly as the company reported it.
  `derived: true` appears on the `financial-ratios` records and on the `EBITDA`
  row (operating income plus depreciation and amortization), which are computed
  from reported figures rather than filed.
- Free cash flow is operating cash flow minus capital expenditures, and is only
  given for periods where the company filed both.
- Cash-flow outflows (capital expenditures, acquisitions, purchases of
  investments, share repurchases, dividends, debt repaid) are positive amounts,
  exactly as filed. The three cash-flow totals carry their own sign.
- Quarterly (`Q`) rows hold three-month figures only. Cash-flow statements in a
  10-Q are year-to-date, so quarterly cash-flow rows only carry the quarters
  the company also filed as a standalone three-month figure (for most filers,
  the first fiscal quarter).
- Companies tag their filings differently, so a line item one company reports may
  be absent for another. Rows are emitted for what the company actually filed —
  nothing is estimated or filled in.
- `xbrl_concepts_used` lists every tag that contributed to a metric, for the
  cases where a line item is assembled from more than one concept (a company
  moving to a renamed tag, such as the post-2018 revenue tags).
- Each period's value comes from the most recent filing that reported it. Share
  and per-share figures are therefore not split-adjusted consistently across a
  row: periods restated in a later filing carry the later split basis, older
  ones keep the original basis. That is why share counts and EPS can jump
  between years (Apple's basic share count goes from 924,258,000 in fiscal 2011
  to 6,543,726,000 in fiscal 2012).
- Coverage is SEC filers only: US public companies plus foreign issuers that file
  a 20-F. Statement rows are built from US-GAAP tags, so a foreign issuer that
  reports under IFRS returns its figures only with `include_all_concepts`.
  Private companies do not appear.

# Actor input Schema

## `ticker` (type: `string`):

Company ticker (AAPL, MSFT), SEC CIK number (320193 or CIK0000320193), or registered company name.

## `statements` (type: `array`):

Choose which financial statements to return. Financial ratios are derived from reported statement values.

## `frequency` (type: `string`):

A = annual fiscal-year figures. Q = quarterly figures. Only reported periods are returned; values are not interpolated or back-solved.

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

Maximum number of metric records to return. Each record contains a line item and its reported history.

## `include_all_concepts` (type: `boolean`):

Include additional US-GAAP concepts, including footnote-level tags, under the other statement category.

## `user_agent` (type: `string`):

Identify your automated client according to the SEC fair-access policy, for example Research Team contact@example.com. Leave empty to use the actor's generic User-Agent.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. A proxy is normally unnecessary for SEC data endpoints.

## Actor input object example

```json
{
  "ticker": "AAPL",
  "statements": [
    "income-statement",
    "balance-sheet",
    "cash-flow-statement"
  ],
  "frequency": "A",
  "limit": 200,
  "include_all_concepts": false,
  "user_agent": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "ticker": "AAPL",
    "statements": [
        "income-statement",
        "balance-sheet",
        "cash-flow-statement"
    ],
    "frequency": "A",
    "limit": 200,
    "include_all_concepts": false,
    "user_agent": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/sec-company-financials-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 = {
    "ticker": "AAPL",
    "statements": [
        "income-statement",
        "balance-sheet",
        "cash-flow-statement",
    ],
    "frequency": "A",
    "limit": 200,
    "include_all_concepts": False,
    "user_agent": "",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/sec-company-financials-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 '{
  "ticker": "AAPL",
  "statements": [
    "income-statement",
    "balance-sheet",
    "cash-flow-statement"
  ],
  "frequency": "A",
  "limit": 200,
  "include_all_concepts": false,
  "user_agent": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call moving_beacon-owner1/sec-company-financials-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/sec-company-financials-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/BouBxdTGqG4cES1sR/builds/yNfoRJIdnVKD2Mlyq/openapi.json
