# SEC EDGAR Scraper — Filings, Financials & Full-Text Search (`actorworks/sec-edgar-scraper`) Actor

SEC filings, XBRL financial fundamentals (revenue, net income, assets, EPS by fiscal period), and full-text search across all EDGAR filings — from the SEC’s official public APIs. Tickers or CIKs in, clean JSON out.

- **URL**: https://apify.com/actorworks/sec-edgar-scraper.md
- **Developed by:** [Adam C](https://apify.com/actorworks) (community)
- **Categories:** Business, News, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SEC EDGAR Scraper — Filings, Financials & Full-Text Search

**Every US public company's filings and financial fundamentals as clean JSON, from the SEC's own official APIs.** Give it tickers; get back filing histories with direct document links, a per-fiscal-period financials table extracted from XBRL (revenue, net income, assets, EPS…), and full-text search hits across the entire EDGAR corpus.

| Type | Company | Form | FY | Period | Filed |
|---|---|---|---|---|---|
| filing | Apple Inc. | 10-K | — | — | 2025-11-01 |
| fundamentals | Apple Inc. | 10-K | 2025 | FY | revenue, netIncome, EPS… |
| search-hit | 2,400 companies | 10-K | — | — | "supply chain disruption" |

### Why this scraper

- ✅ **Official SEC APIs only** (data.sec.gov, efts.sec.gov) — authoritative, free, no scraping fragility
- ✅ **The XBRL killer feature**: `includeFundamentals` converts raw companyfacts (500+ accounting concepts) into a clean financials table — one row per fiscal period with revenue, net income, gross profit, operating income, assets, liabilities, equity, operating cash flow, and EPS, with multi-tag fallbacks because companies report under different concept names
- ✅ **Full-text search across all of EDGAR** — find every filing mentioning any phrase, filtered by form type
- ✅ **Ticker in, data out** — automatic ticker→CIK resolution
- ✅ **Fair-access compliant** — declared user agent, paced requests, per SEC policy

### Input

```json
{
  "companies": ["AAPL", "TSLA", "0000320193"],
  "forms": ["10-K", "10-Q", "8-K"],
  "includeFundamentals": true,
  "searchQueries": ["artificial intelligence risk"]
}
```

### Use cases

- **Fundamental datasets** — quarterly/annual financials for any set of companies without a Bloomberg terminal
- **Filing monitors** — schedule daily, diff for new 8-Ks/10-Qs across a watchlist
- **Research & LLM pipelines** — full-text discovery ("which issuers mention X?") with direct document URLs for retrieval
- **Compliance & competitive intelligence** — track competitors' disclosures the day they land

### Pricing

**$0.001 per filing/search-hit, $0.002 per fundamentals row**, plus a fractional start fee. A 50-company watchlist with full 100-filing histories and complete fundamentals ≈ **$15 once**, then pennies per daily incremental run. Cheaper on paid plans.

### Scope & data ethics

Company-level data only: **insider ownership forms (3, 4, 5) are excluded by design** — this actor is about companies, not individuals. All data is published by the SEC for public use.

### FAQ

**Which companies are covered?** Everything in EDGAR — every US-listed company and foreign private issuer (20-F supported).

**How current is it?** Live — filings appear here as EDGAR publishes them.

**Why do some fundamentals cells come back empty?** Companies tag concepts differently; the extractor tries multiple concept names per metric, but a company that doesn't report a concept has nothing to extract — you get honest nulls, not guesses.

**Historical depth?** Fundamentals typically reach back to ~2009 (XBRL mandate); filings lists cover the company's full recent EDGAR history.

### More data actors from ActorWorks

**Jobs & hiring**

- [ATS Jobs Scraper](https://apify.com/actorworks/ats-jobs-scraper) — Greenhouse, Lever, Ashby, Workday & more in one run
- [Ashby](https://apify.com/actorworks/ashby-jobs-scraper) · [Lever](https://apify.com/actorworks/lever-jobs-scraper) · [SmartRecruiters](https://apify.com/actorworks/smartrecruiters-jobs-scraper) — single-vendor versions
- [Remote Jobs Scraper](https://apify.com/actorworks/remote-jobs-aggregator) — six remote-job boards in one feed

*Not affiliated with the SEC. Not investment advice — this is a data-access tool.*

# Actor input Schema

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

Tickers (AAPL, MSFT) or CIK numbers.

## `includeFilings` (type: `boolean`):

Include the company filings list (form type, filing date, direct document URL).

## `includeFundamentals` (type: `boolean`):

One row per fiscal period: revenue, net income, gross profit, assets, liabilities, equity, cash flow, EPS.

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

Optional: only these form types (e.g. 10-K, 10-Q, 8-K). Insider forms 3/4/5 are always excluded.

## `maxFilingsPerCompany` (type: `integer`):

Cap on filings returned per company.

## `searchQueries` (type: `array`):

Optional: search phrases across all EDGAR filings (e.g. "supply chain disruption").

## `maxHitsPerQuery` (type: `integer`):

Cap on full-text search hits returned per query (SEC returns one page).

## Actor input object example

```json
{
  "companies": [
    "AAPL",
    "TSLA"
  ],
  "includeFilings": true,
  "includeFundamentals": true,
  "forms": [],
  "maxFilingsPerCompany": 100,
  "searchQueries": [],
  "maxHitsPerQuery": 100
}
```

# Actor output Schema

## `records` (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 = {
    "companies": [
        "AAPL",
        "TSLA"
    ],
    "forms": [],
    "searchQueries": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("actorworks/sec-edgar-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 = {
    "companies": [
        "AAPL",
        "TSLA",
    ],
    "forms": [],
    "searchQueries": [],
}

# Run the Actor and wait for it to finish
run = client.actor("actorworks/sec-edgar-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 '{
  "companies": [
    "AAPL",
    "TSLA"
  ],
  "forms": [],
  "searchQueries": []
}' |
apify call actorworks/sec-edgar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,actorworks/sec-edgar-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/dI17v5YhV7uRIch40/builds/lZh3an6lMW9HyxsGj/openapi.json
