# SEC EDGAR Scraper - Filings & Financials (`renzomacar/sec-edgar-scraper`) Actor

Scrape SEC EDGAR: company filings (10-K, 10-Q, 8-K, Form 4), XBRL financial statements, and full-text filing search for any US public company. Official government data, no API key.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

Scrape **SEC EDGAR** — company filings, XBRL financial statements, and full-text filing search — for any US public company, with **no API key**. Built on the SEC's official government data APIs.

⭐ **Using it and it works? [Leave a 30-second review](https://apify.com/renzomacar/sec-edgar-scraper/reviews).** It's the single biggest thing that helps other developers find it.

### What can this Actor do?

- **Company info** — name, CIK, tickers, exchanges, SIC industry code, state of incorporation, address, fiscal year end.
- **Filings** — recent filings (10-K, 10-Q, 8-K, Form 4 insider, 13F-HR, S-1, and more) with form type, dates, accession number, and a direct link to the filing document. Filter by form.
- **Financials (XBRL)** — key financial facts over time: revenue, net income, assets, liabilities, equity, cash, operating income, gross profit, EPS, and R&D — pulled straight from companies' structured XBRL data.
- **Full-text search** — search the text of *all* EDGAR filings by keyword (e.g. "artificial intelligence", "going concern"), optionally filtered by form.

### How do I use it?

1. Pick a **mode**: lookup (a company's info/filings/financials) or full-text search.
2. Add **companies** (tickers like `AAPL`, CIK numbers, or names), or search queries.
3. Run it — one clean JSON/CSV row per company, filing, financial set, or search hit.

### How much does it cost?

Pay-per-result — official SEC data, no subscription:

| Event | Price |
|-------|-------|
| Actor start | $0.01 |
| Company (per company) | $0.01 |
| Search query | $0.01 |

### Output example

```json
{ "dataType": "company", "name": "Apple Inc.", "cik": 320193, "tickers": ["AAPL"], "sicDescription": "Electronic Computers" }
{ "dataType": "filing", "form": "10-K", "filingDate": "2025-11-01", "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/..." }
{ "dataType": "financials", "concepts": { "NetIncomeLoss": { "annual": { "2024": 93736000000, "2023": 96995000000 } } } }
````

### Use cases

- **Fundamental analysis & quant** — pull standardized XBRL financials across companies and years.
- **Compliance & due diligence** — track a company's filing history and read the actual documents.
- **Event monitoring** — watch 8-K filings or Form 4 insider transactions.
- **Research & AI** — full-text search filings and feed them into LLM/analysis workflows.

### FAQ

**Do I need an API key?** No. It uses the SEC's official public data APIs (a descriptive User-Agent is sent automatically, as the SEC requests).

**Which companies?** Any US public company that files with the SEC — resolved by ticker, CIK, or name.

**How current is it?** Real-time — EDGAR updates as companies file.

### Other Actors by this author

Need finance, app, or company data too? See my [other Actors](https://apify.com/renzomacar) — Yahoo Finance, App Store & Google Play, company enrichment, and more.

***

Built by [Renzo Madueño](https://apify.com/renzomacar). Data is public SEC EDGAR data, for informational purposes only — not financial advice.

# Actor input Schema

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

lookup = company info/filings/financials. search = full-text search across all filings.

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

Tickers (AAPL), CIK numbers, or company names.

## `dataTypes` (type: `array`):

What to pull per company.

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

Only these forms, e.g. 10-K, 10-Q, 8-K, 4, 13F-HR, S-1.

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

Max filings to return per company.

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

Full-text queries across EDGAR filings, e.g. "artificial intelligence", "going concern".

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

Max results per search query.

## Actor input object example

```json
{
  "mode": "lookup",
  "companies": [
    "AAPL",
    "TSLA"
  ],
  "dataTypes": [
    "company",
    "filings"
  ],
  "maxFilings": 40,
  "limit": 20
}
```

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("renzomacar/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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("renzomacar/sec-edgar-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
  ]
}' |
apify call renzomacar/sec-edgar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=renzomacar/sec-edgar-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEC EDGAR Scraper - Filings & Financials",
        "description": "Scrape SEC EDGAR: company filings (10-K, 10-Q, 8-K, Form 4), XBRL financial statements, and full-text filing search for any US public company. Official government data, no API key.",
        "version": "0.1",
        "x-build-id": "jLBHhSNQr7IAATdkl"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/renzomacar~sec-edgar-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-renzomacar-sec-edgar-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/renzomacar~sec-edgar-scraper/runs": {
            "post": {
                "operationId": "runs-sync-renzomacar-sec-edgar-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/renzomacar~sec-edgar-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-renzomacar-sec-edgar-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "lookup",
                            "search"
                        ],
                        "type": "string",
                        "description": "lookup = company info/filings/financials. search = full-text search across all filings.",
                        "default": "lookup"
                    },
                    "companies": {
                        "title": "Companies (lookup mode)",
                        "type": "array",
                        "description": "Tickers (AAPL), CIK numbers, or company names.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "dataTypes": {
                        "title": "Data to fetch (lookup mode)",
                        "type": "array",
                        "description": "What to pull per company.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "company",
                                "filings",
                                "financials"
                            ],
                            "enumTitles": [
                                "Company info",
                                "Filings",
                                "Financials (XBRL)"
                            ]
                        },
                        "default": [
                            "company",
                            "filings"
                        ]
                    },
                    "forms": {
                        "title": "Filing forms filter (optional)",
                        "type": "array",
                        "description": "Only these forms, e.g. 10-K, 10-Q, 8-K, 4, 13F-HR, S-1.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxFilings": {
                        "title": "Max filings per company",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Max filings to return per company.",
                        "default": 40
                    },
                    "searchQueries": {
                        "title": "Search queries (search mode)",
                        "type": "array",
                        "description": "Full-text queries across EDGAR filings, e.g. \"artificial intelligence\", \"going concern\".",
                        "items": {
                            "type": "string"
                        }
                    },
                    "limit": {
                        "title": "Results per search",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Max results per search query.",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
