# SEC EDGAR Company Filings Scraper - Full History (`ahmdshrif/sec-edgar-full-filing-history`) Actor

Reads the official data.sec.gov submissions API for each company and exports one flat row per filing, including the paginated older filings most scrapers skip.

- **URL**: https://apify.com/ahmdshrif/sec-edgar-full-filing-history.md
- **Developed by:** [Ahmed](https://apify.com/ahmdshrif) (community)
- **Categories:** Lead generation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$4.00 / 1,000 company processeds

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 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 Company Filings Scraper - Full History

Exports one flat row per SEC filing for each company you specify, pulling directly from the official data.sec.gov submissions API. Every 10-K, 10-Q, 8-K, Form 4, and other filing type is included, with company metadata (CIK, ticker, SIC code, exchange) and filing-level detail (accession number, form type, dates, direct document URL) attached to each row. Built for anyone who needs a complete, structured filing history by company — investor relations teams, compliance and legal researchers, financial data pipelines, and analysts building datasets on top of EDGAR.

### Why this scraper

- Fetches both the "recent" filings block and the additional paginated JSON files listed in `filings.files`, so companies with long filing histories — like Apple — return their **complete** record instead of just the latest ~1000 entries.
- Charges per company processed, not per filing and not per Actor start, so the cost doesn't climb with how many filings a company has on record.
- Reads only the public data.sec.gov API — no login, no scraping of rendered pages, no personal data collected.

### Output fields

| Field | Type | Description |
|---|---|---|
| cik | string | 10-digit CIK identifier of the filer |
| companyName | string | Registered entity name |
| ticker | string | Primary stock ticker symbol, if any |
| exchange | string | Listed exchange, if any |
| sicCode | string | SIC industry code |
| sicDescription | string | SIC industry description |
| stateOfIncorporation | string | State or country of incorporation |
| fiscalYearEnd | string | Fiscal year end (MMDD) |
| category | string | SEC filer category, e.g. Large accelerated filer |
| accessionNumber | string | Unique accession number for the filing |
| form | string | Filing form type, e.g. 10-K, 10-Q, 8-K |
| filingDate | string | Date the filing was submitted |
| reportDate | string | Period of report covered by the filing |
| acceptanceDateTime | string | Timestamp EDGAR accepted the filing |
| primaryDocument | string | Primary document filename |
| primaryDocDescription | string | Description of the primary document |
| filingUrl | string | Direct URL to the primary filing document on SEC EDGAR |
| size | integer | File size in bytes of the primary document |
| isXBRL | boolean | Whether the filing includes XBRL data |
| isInlineXBRL | boolean | Whether the filing uses inline XBRL |
| act | string | Securities act under which the filing was made |
| items | string | Item codes disclosed, relevant for 8-K filings |
| fileNumber | string | SEC file number associated with the filing |
| filmNumber | string | SEC film number associated with the filing |

### Input

```json
{
  "startUrls": [
    { "url": "https://data.sec.gov/submissions/CIK0000320193.json" }
  ],
  "maxItems": 50
}
```

Optionally add `formTypes` (comma-separated, e.g. `"10-K,10-Q,8-K"`) to restrict output to specific form types. Leave it empty to get every form type on record.

### Output

```json
{
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "ticker": "AAPL",
  "exchange": "Nasdaq",
  "sicCode": "3571",
  "sicDescription": "Electronic Computers",
  "stateOfIncorporation": "CA",
  "fiscalYearEnd": "0926",
  "category": "Large accelerated filer",
  "accessionNumber": "0001140361-26-032884",
  "form": "4",
  "filingDate": "2026-08-13",
  "reportDate": "2026-08-11",
  "acceptanceDateTime": "2026-08-13T22:30:20.000Z",
  "primaryDocument": "xslF345X06/form4.xml",
  "primaryDocDescription": "FORM 4",
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000114036126032884/xslF345X06/form4.xml",
  "size": 4672,
  "isXBRL": false,
  "isInlineXBRL": false,
  "act": "",
  "items": "",
  "fileNumber": "",
  "filmNumber": ""
}
```

### Pricing

$0.004 per company processed — one charge covers a company's entire filing history, including paginated older filings. Processing a single company like Apple, which has thousands of filings on record, still costs $0.004 total, not a per-filing charge.

### Use cases

- Pulling a full 10-K/10-Q history for a set of public companies to build a financial statement research database.
- Monitoring 8-K item codes across a watchlist of tickers to flag material events (executive changes, acquisitions, bankruptcies).
- Auditing insider trading activity by collecting every Form 4 filed by a company's officers and directors over time.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to export.

## `maxItems` (type: `integer`):

Stop after this many records.

## `formTypes` (type: `string`):

Optional comma-separated list of form types to include, e.g. '10-K,10-Q,8-K'; leave empty for all forms

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://data.sec.gov/submissions/CIK0000320193.json"
    },
    {
      "url": "https://data.sec.gov/submissions/CIK0000789019.json"
    },
    {
      "url": "https://data.sec.gov/submissions/CIK0001318605.json"
    }
  ],
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One structured record per input URL.

# 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 = {
    "startUrls": [
        {
            "url": "https://data.sec.gov/submissions/CIK0000320193.json"
        },
        {
            "url": "https://data.sec.gov/submissions/CIK0000789019.json"
        },
        {
            "url": "https://data.sec.gov/submissions/CIK0001318605.json"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmdshrif/sec-edgar-full-filing-history").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 = { "startUrls": [
        { "url": "https://data.sec.gov/submissions/CIK0000320193.json" },
        { "url": "https://data.sec.gov/submissions/CIK0000789019.json" },
        { "url": "https://data.sec.gov/submissions/CIK0001318605.json" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ahmdshrif/sec-edgar-full-filing-history").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 '{
  "startUrls": [
    {
      "url": "https://data.sec.gov/submissions/CIK0000320193.json"
    },
    {
      "url": "https://data.sec.gov/submissions/CIK0000789019.json"
    },
    {
      "url": "https://data.sec.gov/submissions/CIK0001318605.json"
    }
  ]
}' |
apify call ahmdshrif/sec-edgar-full-filing-history --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ahmdshrif/sec-edgar-full-filing-history"
        }
    }
}

```

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/aBg7XR18woCY9JJJ2/builds/tEZhwfSvTGjBwhnHx/openapi.json
