# SEC EDGAR Company Financials, Filings and XBRL Facts API (`opstoolkit/sec-edgar-company-data`) Actor

Give it tickers, CIKs or company names, get reported financials (revenue, net income, EPS, assets, cash flow) with the source filing, plus filing lists and company profiles. Official SEC EDGAR data, no Yahoo scraping. $0.003 per company.

- **URL**: https://apify.com/opstoolkit/sec-edgar-company-data.md
- **Developed by:** [Elio Saliba](https://apify.com/opstoolkit) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 companies financials

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/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 EDGAR Company Financials, Filings and Facts API

Give it stock tickers, CIK numbers or company names. It returns the figures each company reported to the SEC (revenue, net income, EPS, assets, cash flow and more) with the filing each number came from, a list of its SEC filings, or a company profile. The data comes from the SEC's own EDGAR APIs, not from Yahoo Finance or any scraped site.

Built for analysts and investors screening companies, fintech and research teams, newsletter writers who need a sourced number, and AI agents that need "what did TICKER report for last year" as a tool call.

**Pricing: $0.003 per company in facts mode, $0.0003 per filing listed, $0.001 per company profile.** Tickers the SEC does not know, companies with no financial data and SEC errors are free. Apify's free monthly credit covers a first test run.

This is data, not advice. Nothing here scores, rates or recommends a stock.

### What you get

**Facts mode (default).** One row per company, metric and fiscal period. Twelve metrics:

`revenue`, `netIncome`, `operatingIncome`, `eps` (diluted), `totalAssets`, `totalLiabilities`, `equity`, `cash`, `operatingCashFlow`, `sharesOutstanding`, `researchAndDevelopment`, `capex`.

Companies tag the same figure in different ways (Apple reported revenue as `SalesRevenueNet` through fiscal 2017 and as `RevenueFromContractWithCustomerExcludingAssessedTax` since). A mapping table picks the right tag for each fiscal period, so one metric name works for every company. The tag that was used is returned in `rawTag`.

```json
{
  "rowType": "metric",
  "ticker": "AAPL",
  "cik": 320193,
  "name": "Apple Inc.",
  "metric": "revenue",
  "value": 416161000000,
  "unit": "USD",
  "fiscalYear": 2025,
  "fiscalPeriod": "FY",
  "periodStart": "2024-09-29",
  "periodEnd": "2025-09-27",
  "form": "10-K",
  "filed": "2025-10-31",
  "accession": "0000320193-25-000079",
  "rawTag": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax",
  "derived": false,
  "restated": false,
  "sourceUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm"
}
```

**Filings mode.** One row per filing, newest first: form, filing date, report date, 8-K items, size, a link to the main document and to the filing index. Filter by form type and date.

**Profile mode.** One row per company: legal name, tickers, exchange, SIC industry code and description, fiscal year end, state of incorporation, filer category, former names, LEI and business city. Company-level facts only. No people.

An `OUTPUT` record in the key-value store lists which inputs were not found, which metrics a company does not report, and how many requests were made to the SEC.

### How to use

1. Add tickers (`AAPL`), CIK numbers (`320193`) or company names (`Apple`). Mix them if you like. Names are matched against the SEC's list of listed companies, so a ticker is more reliable.
2. Pick a mode. For facts, pick the metrics (all 12 by default), `annual`, `quarterly` or `both`, and how many fiscal years.
3. Press Start. The default input (two companies, three years, annual) finishes in a few seconds.

Input example:

```json
{
  "tickers": ["AAPL", "MSFT", "BRK-B"],
  "mode": "facts",
  "metrics": ["revenue", "netIncome", "eps"],
  "periods": "both",
  "years": 5
}
```

Filings example: `{ "tickers": ["TSLA"], "mode": "filings", "forms": ["10-K", "10-Q", "8-K"], "since": "2025-01-01", "maxFilings": 40 }`.

### Use it from an AI agent

In Claude, ChatGPT or Cursor, add the Apify MCP server (https://mcp.apify.com) and ask the agent to run this Actor. It fills in `tickers`, `mode` and `metrics` from your sentence.

Example prompt: "Use the Apify Actor opstoolkit/sec-edgar-company-data to get revenue, net income and diluted EPS for NVDA and AMD for the last 3 fiscal years, and tell me which filing each number came from."

### How the numbers are chosen

- **Reported figures.** Values are what the company put in its 10-K and 10-Q XBRL data, not estimates or derived ratios.
- **Restatements.** If a later filing restates a period, the latest filed value is returned and `restated` is `true`.
- **Fiscal year labels** come from the first report that carried the period. A company's own labeling decides what "fiscal 2025" means, and `periodEnd` always shows the real date.
- **Quarters.** Q1 to Q3 income-statement figures come straight from the 10-Q. Cash flow statements are year to date, and Q4 is never reported on its own, so those quarters are the difference between cumulative figures and are marked `derived: true`. EPS is never derived.
- **Balance sheet items** (assets, liabilities, equity, cash, shares) have a fiscal-year-end row and Q1 to Q3 rows. Q4 equals the year-end row. If a company does not report total liabilities, it is calculated as liabilities and equity minus equity and marked `derived: true`.
- **Missing metrics.** A metric a company does not report (banks have no operating income, many companies have no R\&D) is left out and named in the run summary. Nothing is guessed.

### Limits

- Companies that report in US GAAP. Foreign companies that file in IFRS are not covered in facts mode and return a free row that says so. Filings and profile modes work for any SEC filer.
- XBRL data starts around 2009. Older years do not exist in this source.
- The ticker file lists current tickers. For a company that changed its ticker or was delisted, use its CIK.
- Insider trades (Form 4), fund holdings (13F) and the frames API are not included. The SEC's data is published on a rolling basis, so a filing may take a short while to show up.
- Up to 500 companies per run and 1,000 filings per company.
- The SEC counts requests per source address, and Apify's addresses are shared. The Actor sends at most 5 requests per second, retries slowly, and caches the ticker list, facts and filing lists for 6 hours, so repeat lookups cost the SEC nothing. If the SEC blocks the address, the run says so and charges nothing for that company.

### Where the data comes from

The SEC's official EDGAR JSON APIs on `data.sec.gov` (submissions and company facts) and its ticker list. The SEC says the information on sec.gov is public and may be copied and distributed without its permission, and asks users to cite the SEC as the source. This Actor sends a declared User-Agent that includes a contact link, stays well under the SEC's limit of 10 requests per second, and does not crawl the SEC website. It is not affiliated with or endorsed by the SEC.

### Works well with

- **SEC EDGAR profile, then [Domain Rank Lookup](https://apify.com/opstoolkit/domain-rank-lookup).** Pull profiles for a list of tickers, take the company websites where the SEC has one, and rank the domains.
- **Profile website, then [Website Tech Stack Detector](https://apify.com/opstoolkit/website-tech-stack-detector).** See what technology a public company's site runs on.
- **Facts rows, then [Dataset Cleaner](https://apify.com/opstoolkit/dataset-cleaner).** Merge runs from several dates, drop duplicates and export a CSV for a spreadsheet.

# Actor input Schema

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

Stock ticker symbols of the companies to look up. Example: \["AAPL", "MSFT", "BRK-B"]. Share-class dots are fine (BRK.B works). Case does not matter. Up to 500 companies per run across tickers, ciks and names. A ticker the SEC does not list returns a free row that says so.

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

SEC Central Index Key numbers, digits only, leading zeros optional. Example: \["320193"] for Apple. Use this for companies that changed their ticker, were delisted, or have no ticker. Optional.

## `names` (type: `array`):

Company names, matched against the SEC's list of listed companies (exact name first, then names that start with or contain every word). Example: \["Apple", "Johnson & Johnson"]. The run summary lists the closest alternatives when a name is ambiguous. Use tickers when you can. Optional.

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

'facts' (default) returns reported financial metrics, one row per company, metric and fiscal period. 'filings' returns the list of SEC filings (10-K, 10-Q, 8-K and others). 'profile' returns one company profile row: name, exchange, SIC industry code, fiscal year end, former names.

## `metrics` (type: `array`):

Which metrics to return in facts mode. Leave empty for all 12. Allowed names: revenue, netIncome, operatingIncome, eps, totalAssets, totalLiabilities, equity, cash, operatingCashFlow, sharesOutstanding, researchAndDevelopment, capex. Example: \["revenue", "netIncome", "eps"]. A metric a company does not report is left out and named in the run summary.

## `periods` (type: `string`):

'annual' (default) returns fiscal-year figures. 'quarterly' returns Q1 to Q4 (a flow figure that the company only reports year to date is derived as the difference and marked derived). 'both' returns both.

## `years` (type: `integer`):

How many fiscal years back from the company's latest reported year. Default 5 (the form is prefilled with 3), from 1 to 30. Older years may be missing for companies that started filing XBRL later (about 2009 onward).

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

Only return these SEC form types in filings mode. Example: \["10-K", "10-Q", "8-K"]. Amendments have their own name, so add "10-K/A" to include them. Leave empty for every form type.

## `since` (type: `string`):

Only return filings filed on or after this date, format YYYY-MM-DD. Example: "2024-01-01". Leave empty for no date limit.

## `maxFilings` (type: `integer`):

The most filings to return per company in filings mode, newest first, from 1 to 1,000. Default 50. You pay per filing row returned.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT"
  ],
  "mode": "facts",
  "periods": "annual",
  "years": 3,
  "maxFilings": 50
}
```

# Actor output Schema

## `results` (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 = {
    "tickers": [
        "AAPL",
        "MSFT"
    ],
    "years": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("opstoolkit/sec-edgar-company-data").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",
    ],
    "years": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("opstoolkit/sec-edgar-company-data").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"
  ],
  "years": 3
}' |
apify call opstoolkit/sec-edgar-company-data --silent --output-dataset

```

## MCP server setup

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

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/A2Tz70Vr6BHWDjW4J/builds/KpcGAiADvHXwmWMDL/openapi.json
