# SEC Edgar Filings Scraper (`constant_quadruped/sec-edgar-filings-scraper`) Actor

Extract SEC EDGAR filings data: 10-K, 10-Q, 8-K, Form 4, and more. Get 100+ fields per filing including company info, financial metadata, insider trades, and AI summaries. Direct access to official SEC data for investors, analysts, researchers, and compliance teams.

- **URL**: https://apify.com/constant_quadruped/sec-edgar-filings-scraper.md
- **Developed by:** [CQ](https://apify.com/constant_quadruped) (community)
- **Categories:** Developer tools, Automation
- **Security:** Limited permissions
- **Stats:** 118 total users, 17 monthly users, 100.0% runs succeeded, 4 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/actors/running/actors-in-store.md#pay-per-usage

## 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 Filings Scraper

### What is SEC EDGAR Filings Scraper?

**SEC EDGAR Filings Scraper** retrieves official corporate filings from the U.S. Securities and Exchange Commission's **EDGAR** system. It fetches **10-K annual reports**, **10-Q quarterly reports**, **8-K current reports**, **Form 4 insider-trading filings**, and many other SEC form types, and returns a structured record per filing with metadata, document links, optional XBRL financial metrics, parsed Form 4 transactions, and a structured summary.

It reads directly from SEC EDGAR's public JSON APIs (`data.sec.gov` and `www.sec.gov`), so there are no third-party data sources — just the official filings.

### What can it do?

- **Search by ticker, CIK, company name, or form type** — use stock symbols (AAPL, MSFT), 10-digit SEC Central Index Keys, a company-name lookup, or a form-type-only search.
- **Cover many SEC form types** — 10-K, 10-Q, 8-K, Form 4, DEF 14A, S-1, 13F-HR, SC 13G/D, 6-K, 20-F, 424B4, plus amendments; choose `ALL` to return every form a company has filed.
- **Optional XBRL financial metrics** — when a filing has XBRL data, the actor queries SEC's XBRL `companyfacts` API and attaches available metrics (e.g. revenue, net income, EPS, total assets, cash flow) on a best-effort basis.
- **Parse Form 4 insider transactions** — reads the Form 4 XML and extracts reporting owners, transaction codes, shares, price, acquired/disposed indicators, and a buy/sell summary.
- **Structured filing summaries** — a deterministic, template/keyword-based summary per filing (this is pattern extraction, **not** an LLM).
- **Filter by date range** — restrict results by filing date.
- **Incremental mode + webhook alerts** — track state between runs and only return new filings; optionally POST a JSON alert to a webhook (Slack/Discord/Zapier/any HTTP endpoint) when new filings appear.
- **Export** — download the dataset as JSON, CSV, or Excel from the Apify platform.

### Output fields

Each dataset item corresponds to one filing. Core fields (always present where SEC provides them):

| Field | Description |
|-------|-------------|
| `accessionNumber` | Unique SEC filing identifier |
| `cik` | Company Central Index Key (10-digit) |
| `companyName`, `ticker` | Company name and primary ticker |
| `formType` | SEC form type (10-K, 10-Q, 8-K, 4, …) |
| `filedDate`, `reportDate`, `acceptanceDateTime` | Filing / period / acceptance dates |
| `fiscalYear`, `fiscalQuarter`, `fiscalYearEnd` | Derived fiscal period info |
| `sic`, `sicDescription`, `stateOfIncorporation`, `exchanges` | Company classification info |
| `primaryDocument`, `documentUrl`, `filingUrl`, `indexUrl`, `secViewerUrl` | Document and filing links |
| `size`, `isXBRL`, `isInlineXBRL`, `fileNumber`, `filmNumber`, `act` | Technical metadata |
| `items` | Parsed 8-K item codes with descriptions (8-K only) |
| `description` | Human-readable, templated description |
| `extractedAt` | Extraction timestamp (ISO 8601) |

Conditional fields:

| Field | Condition |
|-------|-----------|
| `aiSummary` | `includeAISummary=true` — structured, template-based summary (not an LLM) |
| `financials` | `includeFinancials=true` and form is 10-K/10-Q — XBRL flags, fiscal info, and `xbrlMetrics` when the SEC XBRL API returns data |
| `insiderTrading` | `includeInsiderTrades=true` and form is 4/4A — parsed Form 4 transactions and summary (falls back to basic metadata if the XML can't be parsed) |
| `documentContent` | `includeDocumentContent=true` — plain text of the primary document, truncated to ~50K characters |

The full item shape is defined in [`.actor/dataset_schema.json`](.actor/dataset_schema.json).

### How to use it

1. Open the actor on Apify.
2. Choose a **Search Type** — `ticker`, `cik`, `companyName`, or `formType`.
3. Enter your search values (ticker symbols, CIKs, or a company name).
4. Pick the **Form Types** you want (or `ALL`).
5. Optionally set a date range and the `include*` toggles.
6. Run the actor and download results as JSON, CSV, or Excel.

#### Input example

```json
{
  "searchType": "ticker",
  "tickers": ["AAPL", "MSFT", "GOOGL"],
  "formTypes": ["10-K", "10-Q", "8-K"],
  "dateFrom": "2024-01-01",
  "dateTo": "2024-12-31",
  "includeAISummary": true,
  "includeFinancials": true,
  "includeInsiderTrades": true,
  "maxFilings": 100
}
```

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchType` | string | `"ticker"` | Search method: `ticker`, `cik`, `companyName`, or `formType` |
| `tickers` | array | `[]` (prefills `["AAPL"]`) | Stock ticker symbols (used when `searchType=ticker`) |
| `ciks` | array | `[]` | SEC Central Index Keys (used when `searchType=cik`) |
| `companyName` | string | `""` | Company-name lookup (used when `searchType=companyName`) |
| `formTypes` | array | `["10-K", "10-Q", "8-K"]` | Form types to retrieve; include `ALL` to return every form |
| `dateFrom` | string | `""` | Start date, `YYYY-MM-DD` |
| `dateTo` | string | `""` | End date, `YYYY-MM-DD` (empty = up to today) |
| `includeDocumentContent` | boolean | `false` | Fetch and attach the primary document's plain text (slower) |
| `includeAISummary` | boolean | `true` | Add a structured, template-based summary (not an LLM) |
| `includeFinancials` | boolean | `true` | Add XBRL availability flags, fiscal info, and best-effort XBRL metrics |
| `includeInsiderTrades` | boolean | `true` | Parse Form 4 XML for insider transactions |
| `maxFilings` | integer | `100` | Max filings per company (`0` = unlimited) |
| `incrementalMode` | boolean | `false` | Only return filings newer than the last run (tracked in Key-Value Store) |
| `alertWebhookUrl` | string | `""` | POST a JSON alert here when incremental mode finds new filings |
| `alertFormTypes` | array | `[]` | Only alert for these form types (empty = alert on all new filings) |
| `sinceAccessionNumber` | string | `""` | Only return filings newer than this accession number (manual incremental) |
| `outputFormat` | string | `"json"` | Preferred dataset format: `json`, `csv`, or `xlsx` |
| `proxyConfiguration` | object | — | Apify proxy settings (see Limitations regarding datacenter IPs) |

### Output example

```json
{
  "accessionNumber": "0000320193-24-000123",
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "ticker": "AAPL",
  "formType": "10-K",
  "filedDate": "2024-11-01",
  "reportDate": "2024-09-28",
  "acceptanceDateTime": "2024-11-01T18:01:14.000Z",
  "fiscalYear": 2024,
  "fiscalQuarter": 4,
  "sic": "3571",
  "sicDescription": "Electronic Computers",
  "stateOfIncorporation": "CA",
  "exchanges": ["Nasdaq"],
  "documentUrl": "https://www.sec.gov/Archives/edgar/data/320193/.../aapl-20240928.htm",
  "isXBRL": true,
  "isInlineXBRL": true,
  "description": "10-K filing for Apple Inc. (AAPL) filed on 2024-11-01 - Annual Report",
  "aiSummary": "**10-K Summary for Apple Inc.** ...",
  "financials": {
    "formType": "10-K",
    "reportPeriod": "2024-09-28",
    "hasXBRL": true,
    "hasInlineXBRL": true,
    "fiscalYear": 2024,
    "xbrlMetrics": {
      "revenue": { "value": 391035000000, "period": "2024-09-28", "form": "10-K", "filed": "2024-11-01", "unit": "USD" }
    }
  },
  "extractedAt": "2024-11-05T12:00:00.000Z"
}
```

Exact fields depend on the form type and the `include*` options; unavailable fields are `null`.

### Pricing

This actor runs on Apify and is billed under Apify's standard pay-per-usage model (platform compute units, plus any proxy or data transfer you enable). Cost scales with the number of filings you extract and which options you turn on — full-document extraction, XBRL metrics, and Form 4 parsing each add extra SEC requests and processing time. See the actor's pricing on its Apify Store page and your Apify plan for current rates. The Apify free tier includes monthly platform credits you can use to try it out.

### Integrations

#### Apify API

```bash
curl "https://api.apify.com/v2/acts/YOUR_USERNAME~sec-edgar-filings-scraper/runs" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "searchType": "ticker",
    "tickers": ["NVDA"],
    "formTypes": ["10-K", "8-K"],
    "maxFilings": 10
  }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("YOUR_USERNAME/sec-edgar-filings-scraper").call(run_input={
    "searchType": "ticker",
    "tickers": ["NVDA", "AMD"],
    "formTypes": ["10-K", "10-Q"],
    "maxFilings": 50
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{item['companyName']} - {item['formType']} - {item['filedDate']}")
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('YOUR_USERNAME/sec-edgar-filings-scraper').call({
    searchType: 'ticker',
    tickers: ['TSLA'],
    formTypes: ['8-K'],
    maxFilings: 20
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### MCP server

This actor also ships a Model Context Protocol server (`src/mcp-server.js`) exposing SEC-search tools (`search_sec_filings`, `get_company_info`, `get_filing_summary`, `get_insider_trades`, `get_8k_events`) for use by AI agents. See `.actor/mcp.json`.

### Is it legal to scrape SEC EDGAR?

Yes. SEC EDGAR is a **public** system operated by the U.S. Securities and Exchange Commission to provide free public access to corporate filings, and the SEC publishes documented APIs for programmatic access. This actor:

- Sends a descriptive `User-Agent` with contact info, as SEC's access policy requires.
- Rate-limits its requests to stay within SEC's published guidance.
- Retrieves only publicly available filing data.

### Supported SEC form types

| Form | Description |
|------|-------------|
| **10-K** | Annual report with audited financial statements |
| **10-Q** | Quarterly report with unaudited financials |
| **8-K** | Current report for material events |
| **4** | Insider trading — statement of changes in beneficial ownership |
| **DEF 14A** | Definitive proxy statement |
| **S-1** | Registration statement (IPO) |
| **13F-HR** | Institutional investment manager holdings |
| **SC 13G / SC 13D** | Beneficial ownership reports |
| **6-K / 20-F** | Foreign private issuer reports |
| **424B4** | Prospectus filed pursuant to Rule 424 |

Amendments (`10-K/A`, `10-Q/A`, `8-K/A`) and, via `ALL`, any other form the company has filed are also returned.

### Limitations

- **SEC EDGAR rate limits & IP blocking.** SEC EDGAR enforces a request-rate limit (guidance is up to ~10 requests/second) and frequently throttles or blocks **datacenter IP addresses** with HTTP `403`/`429`. Apify runs from datacenter IPs, so on busy runs some or all requests may be blocked. When that happens the run still finishes **successfully with an empty or partial dataset** and logs a clear explanation — it does not crash. To reduce blocking, lower `maxFilings`, split large jobs, or retry later.
- **Proxy support.** A `proxyConfiguration` input is exposed, but the current build does not yet route SEC requests through it — requests use the run's default egress IP. Do not rely on residential-proxy routing to bypass SEC blocks until this is wired up.
- **Descriptive User-Agent required.** SEC requires a `User-Agent` header identifying the requester with contact info. This actor sends one on every SEC request. If you fork/self-host, keep a valid contact address in the `User-Agent`.
- **`aiSummary` is not an LLM.** Summaries are generated by deterministic templates and keyword matching, not a language model. Treat them as structured highlights, not analysis.
- **XBRL metrics are best-effort.** `financials.xbrlMetrics` is populated only when a filing is tagged XBRL and SEC's `companyfacts` API returns matching US-GAAP tags. Some metrics (e.g. free cash flow, book value per share) rely on non-standard tags and are often absent. Values come straight from SEC XBRL data and are not audited, normalized, or restated by this actor.
- **Insider-trade parsing coverage.** Form 4 parsing handles standard ownership-document XML. Unusual layouts or missing XML fall back to basic metadata (`{ issuer, secLink, note }`).
- **`companyName` search.** Name lookup resolves to CIKs via EDGAR's company-search endpoint and returns up to ~10 matches; broad or ambiguous names may miss the entity you want — prefer a ticker or CIK for precision.
- **Historical coverage.** Results reflect what SEC EDGAR's submissions API exposes for each company (recent filings plus older archive files). Availability of very old filings varies by company.
- **Not financial advice.** All output is raw public disclosure data for informational purposes only. It is not investment, legal, tax, or financial advice, and may contain errors or omissions from the underlying SEC data. Verify against the official filing before relying on it.

### Technical details

- **Data source**: Official SEC EDGAR APIs (`data.sec.gov`, `www.sec.gov`).
- **Rate limiting**: Client-side spacing between requests to respect SEC guidance.
- **User-Agent**: Descriptive header with contact info on every SEC request.

### Resources

- [SEC EDGAR Full-Text & Company Search](https://www.sec.gov/edgar/searchedgar/companysearch.html)
- [SEC Developer Resources](https://www.sec.gov/developer)
- [Apify Documentation](https://docs.apify.com)

# Actor input Schema

## `searchType` (type: `string`):

Choose how to search for filings

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

List of stock ticker symbols (e.g., AAPL, MSFT, GOOGL). Leave empty if searching by CIK or company name.

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

Central Index Key numbers (10-digit SEC identifiers). Leave empty if searching by ticker.

## `companyName` (type: `string`):

Search by company name (partial match supported)

## `formTypes` (type: `array`):

SEC form types to retrieve

## `dateFrom` (type: `string`):

Start date for filings search (YYYY-MM-DD format)

## `dateTo` (type: `string`):

End date for filings search (YYYY-MM-DD format). Leave empty for current date.

## `includeDocumentContent` (type: `boolean`):

Extract full text content from filing documents (increases processing time)

## `includeAISummary` (type: `boolean`):

Generate template-based summary of each filing (keyword extraction, not LLM)

## `includeFinancials` (type: `boolean`):

Include XBRL availability flags and fiscal period info (actual metrics require XBRL parsing)

## `includeInsiderTrades` (type: `boolean`):

For Form 4 filings, include filing metadata (full XML transaction parsing coming soon)

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

Maximum number of filings to retrieve per company (0 = unlimited)

## `incrementalMode` (type: `boolean`):

Only return filings newer than the last run. Uses Apify Key-Value Store to track last run date. Combine with a schedule + alertWebhookUrl for a live 'new-filings' alert system.

## `alertWebhookUrl` (type: `string`):

Optional: POST a JSON alert to this URL when incremental mode finds NEW filings. Works with Slack, Discord, Zapier, or any HTTP endpoint. Set up a schedule (e.g., every 6 hours) to get automatic filing alerts for watched tickers/CIKs.

## `alertFormTypes` (type: `array`):

Only send alert if new filings match these form types. Leave empty to alert on all new filings. (e.g., 8-K and 4 for breaking news + insider trades)

## `sinceAccessionNumber` (type: `string`):

Only return filings newer than this accession number (for manual incremental runs)

## `outputFormat` (type: `string`):

Preferred output format for the dataset

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

Proxy settings for requests

## Actor input object example

```json
{
  "searchType": "ticker",
  "tickers": [
    "AAPL",
    "MSFT",
    "GOOGL",
    "AMZN",
    "NVDA"
  ],
  "ciks": [
    "0000320193",
    "0000789019"
  ],
  "companyName": "Apple",
  "formTypes": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "dateFrom": "2020-01-01",
  "dateTo": "2024-12-31",
  "includeDocumentContent": false,
  "includeAISummary": true,
  "includeFinancials": true,
  "includeInsiderTrades": true,
  "maxFilings": 100,
  "incrementalMode": false,
  "outputFormat": "json"
}
```

# Actor output Schema

## `datasetUrl` (type: `string`):

Link to the full dataset with all extracted SEC filings

## `totalFilings` (type: `string`):

Number of SEC filings extracted

# 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"
    ],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("constant_quadruped/sec-edgar-filings-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 = {
    "tickers": ["AAPL"],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("constant_quadruped/sec-edgar-filings-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 '{
  "tickers": [
    "AAPL"
  ],
  "formTypes": [
    "10-K",
    "10-Q",
    "8-K"
  ]
}' |
apify call constant_quadruped/sec-edgar-filings-scraper --silent --output-dataset

```

## MCP server setup

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