# SEC EDGAR Scanner — Filings, Insider Trades & Facts (US) (`aspiring_barricade/sec-edgar-scanner`) Actor

Unified SEC EDGAR scanner: from a ticker, company name or CIK get recent filings (10-K, 10-Q, 8-K, S-1), insider transactions (Form 3/4/5) and company facts (SIC/industry, address, state) in one call. Official data.sec.gov API, free. Filterable by filing type and date window.

- **URL**: https://apify.com/aspiring\_barricade/sec-edgar-scanner.md
- **Developed by:** [Joachim Pouchain](https://apify.com/aspiring_barricade) (community)
- **Categories:** Developer tools, Automation, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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/platform/actors/running/actors-in-store#pay-per-event

## 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 Scanner — Filings, Insider Trades & Company Facts (US)

A unified **SEC EDGAR API** scanner. Give it a **ticker**, **company name** or **CIK** and get, in one call: recent **SEC filings** (10-K, 10-Q, 8-K, S-1…), **insider trading** transactions (**Form 4**, Form 3/5), and key **company facts** (name, CIK, SIC/industry, address, state of incorporation). Built on the official `data.sec.gov` API — free, no scraping tricks — and shaped into clean JSON for **due diligence**, financial research and AI agents.

Most EDGAR actors do one slice (filings only, or insider only, or facts only). This one is the **unified scanner**: filings + insider trades + company facts together, filterable by filing type and date window.

### What it does

- **CIK lookup** from a ticker, company name or CIK number.
- **Recent filings** — every form (10-K, 10-Q, 8-K, S-1, SD, 13G…) with type, filing/report dates, and official document + index links.
- **Insider trading (Form 3/4/5)** — directors' and officers' transactions, toggleable.
- **Company facts** — SIC code + industry, address, state of incorporation, exchanges, EIN, former names.
- **Filters** — by `filing_types` and a `window_days` date range; `max_items` cost cap.

### Output fields

| Field | Meaning |
|-------|---------|
| `record_type` | `company_facts`, `filing`, or `insider_transaction` |
| `company_name`, `cik`, `ticker` | Company identity (on every row) |
| `form`, `form_description` | Filing form type (e.g. `10-K`, `4`) |
| `filing_date`, `report_date` | Filing and reporting dates |
| `accession_number` | SEC accession id |
| `filing_url`, `index_url` | Official document + filing-index links |
| `sic`, `industry`, `state_of_incorporation`, `address` | On the company-facts row |

### Why this one

- **Unified, not a single slice.** Filings **+** insider trades **+** company facts in one run — competitors return only one of the three.
- **Official source.** Direct from `data.sec.gov` (with the SEC-required identifying User-Agent) — no fragile HTML scraping, with cache + retry/backoff.
- **Resolves ticker / name / CIK** automatically.
- **Agent- & n8n-ready.** One clean row per filing/fact; usable as an MCP tool or an n8n step.

### Input

```json
{
  "query": "AAPL",
  "filing_types": [],
  "window_days": 90,
  "include_insider": true,
  "include_facts": true,
  "max_items": 50
}
````

| Field | Type | Description |
|-------|------|-------------|
| `query` | string | Ticker, company name or CIK (e.g. `AAPL`, `Apple Inc`, `320193`). |
| `queries` | array | Optional list of companies to scan in one run (overrides `query`). |
| `filing_types` | array | Filter by form (e.g. `10-K`, `8-K`). Empty = all. |
| `window_days` | integer | Only filings from the last N days. Default 90. |
| `include_insider` | boolean | Include Form 3/4/5 insider transactions. Default true. |
| `include_facts` | boolean | Include the company-facts row. Default true. |
| `max_items` | integer | Max records returned/charged. Default 50. |

### Output

Real output rows for **AAPL** (company facts + an insider Form 4):

```json
{
  "record_type": "company_facts",
  "company_name": "Apple Inc.",
  "cik": "0000320193",
  "ticker": "AAPL",
  "sic": "3571",
  "industry": "Electronic Computers",
  "entity_type": "operating",
  "state_of_incorporation": "CA",
  "address": "ONE APPLE PARK WAY, CUPERTINO, CA, 95014",
  "phone": "(408) 996-1010",
  "exchanges": ["Nasdaq"],
  "former_names": ["APPLE INC", "APPLE COMPUTER INC", "APPLE COMPUTER INC/ FA"],
  "ein": "942404110",
  "fiscal_year_end": "0926",
  "source": "SEC EDGAR (data.sec.gov)",
  "source_url": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193&type=&owner=include&count=40",
  "timestamp": "2026-06-29T10:29:50.359Z",
  "disclaimer": "Data from the official SEC EDGAR system. Informational only, not investment advice."
}
```

```json
{
  "record_type": "insider_transaction",
  "company_name": "Apple Inc.",
  "cik": "0000320193",
  "ticker": "AAPL",
  "form": "4",
  "form_description": "FORM 4",
  "filing_date": "2026-06-17",
  "report_date": "2026-06-15",
  "accession_number": "0001140361-26-025622",
  "is_xbrl": false,
  "size_bytes": 9220,
  "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000114036126025622/xslF345X06/form4.xml",
  "index_url": "https://www.sec.gov/Archives/edgar/data/320193/000114036126025622/0001140361-26-025622-index.htm",
  "source": "SEC EDGAR (data.sec.gov)",
  "timestamp": "2026-06-29T10:29:50.371Z"
}
```

### Use cases

- **Due diligence / KYB** — pull a company's filing history, insider activity and registration facts in one call.
- **Financial research & RAG** — feed clean filing metadata + links into an LLM pipeline.
- **Insider-trading monitoring** — track Form 4 activity for a watchlist of tickers.
- **AI agents / n8n** — a single MCP-ready tool that answers "what has this company filed recently?"

### Pricing

Pay-per-result: target **$0.004 per record** (~$3–5 / 1,000), plus Apify platform usage. `max_items` caps spend.

### Categories

`Developer tools`, `Automation`, `Agents`, `Business`.

### Notes & limits

- Covers EDGAR filers (US public companies and registrants). Private companies that never filed with the SEC won't appear.
- Filing arrays cover the company's most recent ~1,000 filings; `window_days` filters within that.
- Official data, **not investment advice** — always verify against the original filing via the provided links.

### Use as an MCP tool (AI agents)

This Actor is available as an **MCP tool** for AI agents (Claude, ChatGPT, Cursor, etc.) through Apify’s hosted MCP server. Point your MCP client at:

```
https://mcp.apify.com/?actors=aspiring_barricade/sec-edgar-scanner
```

The Actor’s input schema becomes the tool’s parameters automatically. An Apify API token is required.

### Use in n8n

Run this Actor inside your [n8n](https://n8n.io) workflows using the official **Apify** node (search “Apify” in the n8n nodes panel) and select the Actor `aspiring_barricade/sec-edgar-scanner`. A dedicated community node (`n8n-nodes-sec-edgar-scanner`) is also published to npm for one-click installation via **n8n → Settings → Community Nodes**.

# Actor input Schema

## `query` (type: `string`):

Ticker (e.g. AAPL), company name (e.g. Apple Inc) or CIK (e.g. 320193).

## `queries` (type: `array`):

Optional list of tickers/names/CIKs to scan in one run. Overrides 'query' when set.

## `filing_types` (type: `array`):

Filter filings by form type, e.g. 10-K, 10-Q, 8-K, S-1. Empty = all filing types. Insider forms (3/4/5) are controlled by 'include\_insider'.

## `window_days` (type: `integer`):

Only filings from the last N days.

## `include_insider` (type: `boolean`):

Include insider trading filings (Form 3, 4, 5).

## `include_facts` (type: `boolean`):

Include a company-facts record (name, CIK, SIC/industry, address, state of incorporation).

## `max_items` (type: `integer`):

Maximum records returned/charged per run.

## Actor input object example

```json
{
  "query": "AAPL",
  "queries": [],
  "filing_types": [],
  "window_days": 90,
  "include_insider": true,
  "include_facts": true,
  "max_items": 50
}
```

# 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 = {
    "query": "AAPL",
    "window_days": 90,
    "max_items": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("aspiring_barricade/sec-edgar-scanner").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 = {
    "query": "AAPL",
    "window_days": 90,
    "max_items": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("aspiring_barricade/sec-edgar-scanner").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 '{
  "query": "AAPL",
  "window_days": 90,
  "max_items": 50
}' |
apify call aspiring_barricade/sec-edgar-scanner --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEC EDGAR Scanner — Filings, Insider Trades & Facts (US)",
        "description": "Unified SEC EDGAR scanner: from a ticker, company name or CIK get recent filings (10-K, 10-Q, 8-K, S-1), insider transactions (Form 3/4/5) and company facts (SIC/industry, address, state) in one call. Official data.sec.gov API, free. Filterable by filing type and date window.",
        "version": "1.0",
        "x-build-id": "3CQXsT8P4vFc8366i"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/aspiring_barricade~sec-edgar-scanner/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-aspiring_barricade-sec-edgar-scanner",
                "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/aspiring_barricade~sec-edgar-scanner/runs": {
            "post": {
                "operationId": "runs-sync-aspiring_barricade-sec-edgar-scanner",
                "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/aspiring_barricade~sec-edgar-scanner/run-sync": {
            "post": {
                "operationId": "run-sync-aspiring_barricade-sec-edgar-scanner",
                "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": {
                    "query": {
                        "title": "Company (ticker / name / CIK)",
                        "type": "string",
                        "description": "Ticker (e.g. AAPL), company name (e.g. Apple Inc) or CIK (e.g. 320193)."
                    },
                    "queries": {
                        "title": "Multiple companies (optional)",
                        "type": "array",
                        "description": "Optional list of tickers/names/CIKs to scan in one run. Overrides 'query' when set.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "filing_types": {
                        "title": "Filing types (optional)",
                        "type": "array",
                        "description": "Filter filings by form type, e.g. 10-K, 10-Q, 8-K, S-1. Empty = all filing types. Insider forms (3/4/5) are controlled by 'include_insider'.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "window_days": {
                        "title": "Date window (days)",
                        "minimum": 1,
                        "maximum": 3650,
                        "type": "integer",
                        "description": "Only filings from the last N days.",
                        "default": 90
                    },
                    "include_insider": {
                        "title": "Include insider transactions (Form 3/4/5)",
                        "type": "boolean",
                        "description": "Include insider trading filings (Form 3, 4, 5).",
                        "default": true
                    },
                    "include_facts": {
                        "title": "Include company facts",
                        "type": "boolean",
                        "description": "Include a company-facts record (name, CIK, SIC/industry, address, state of incorporation).",
                        "default": true
                    },
                    "max_items": {
                        "title": "Max results (cost cap)",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum records returned/charged per run.",
                        "default": 50
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
