# SEC EDGAR Filings Scraper (`accommodating_aptitude/sec-edgar-filings`) Actor

Pulls company filings (10-K, 10-Q, 8-K, Form 4, S-1 ...) from SEC EDGAR's official Full-Text Search and Submissions APIs by keyword, ticker/CIK, form type and date range. No API key needed, no scraping.

- **URL**: https://apify.com/accommodating_aptitude/sec-edgar-filings.md
- **Developed by:** [Korhan Coşan Ergün](https://apify.com/accommodating_aptitude) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 filing founds

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/actors/running/actors-in-store.md#pay-per-event

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

Pulls company filings from the **official, open, key-free APIs** of the US
Securities and Exchange Commission (SEC). No scraping, no HTML parsing — all
three sources return JSON.

- **EDGAR Full-Text Search** — full-text search across all filings from 2001 to
  today. `https://efts.sec.gov/LATEST/search-index`
  (the official endpoint behind the EDGAR FTS interface)
- **Submissions API** — a company's complete filing history.
  `https://data.sec.gov/submissions/CIK##########.json`
  ([documentation](https://www.sec.gov/search-filings/edgar-application-programming-interfaces))
- **Ticker → CIK mapping** — `https://www.sec.gov/files/company_tickers.json`

SEC data is in the public domain and free for commercial use.

### Two run modes

| Input | Mode | What it does |
|---|---|---|
| `query` filled in | Full-Text Search | Searches all of EDGAR by keyword. If `companies` is also given, the search is restricted to those companies. |
| `query` empty, `companies` filled in | Submissions API | Lists the filing history of the given companies (with form type + date filters). |

### Input

| Field | Description |
|---|---|
| `query` | Full-text search query. Use double quotes for an exact phrase: `"artificial intelligence"` |
| `companies` | List of tickers (`AAPL`), CIKs (`0000320193`) or company names (`Apple Inc.`) |
| `formTypes` | `10-K`, `10-Q`, `8-K`, `4`, `S-1`, `SC 13D` ... Amendment (`/A`) versions are included automatically. All types if empty. |
| `dateFrom` / `dateTo` | Filing date range (ISO 8601). Last 90 days if empty. |
| `maxItems` | Maximum number of records |
| `userAgentContact` | The identifying information SEC asks for: `Name Surname email@example.com` |

### Output (each record)

```json
{
  "id": "0000320193-26-000026:aapl-20260926.htm",
  "title": "Apple Inc. — 10-K",
  "link": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm",
  "date": "2026-11-03",
  "source": "submissions",
  "company_name": "Apple Inc.",
  "cik": "0000320193",
  "ticker": "AAPL",
  "form_type": "10-K",
  "filing_date": "2026-11-03",
  "period_of_report": "2026-09-26",
  "accession_number": "0000320193-26-000026",
  "document_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/aapl-20260926.htm",
  "items_reported": [],
  "sic": "3571",
  "sic_description": "Electronic Computers",
  "business_location": "CUPERTINO, CA",
  "is_xbrl": true
}
```

`sample_output.json` contains 4 records taken from a real local run
(2 Full-Text Search + 2 Submissions, to show the different field sets).

### Compliance with SEC's access policy

The [SEC Webmaster FAQ](https://www.sec.gov/os/webmaster-faq#developers) asks for
two things:

1. **An identifying User-Agent** — every request carries a UA in the form
   `Name Surname email@example.com`. You can supply your own details with the
   `userAgentContact` input; if left empty, the actor's own contact information
   is used.
2. **At most 10 requests per second** — this actor waits 0.2 s between requests
   (~5 requests/s), so it runs at half the limit.

### Pricing (PPE)

A `filing-found` event is fired for every filing found — **$0.005 per record**.

### Local run

```bash
cd ~/rua/products/apify/sec-edgar-filings
mkdir -p storage/key_value_stores/default
cat > storage/key_value_stores/default/INPUT.json <<'EOF'
{"companies": ["AAPL", "MSFT"], "formTypes": ["10-K", "4"],
 "dateFrom": "2026-01-01", "maxItems": 20}
EOF
APIFY_LOCAL=1 python3 main.py
## output: storage/datasets/default/*.json
```

### Known limitations

- Full-Text Search stops paginating beyond 10,000 matches (an SEC-side limit);
  narrow the date range for more records.
- Full-Text Search only covers 2001 onwards. For older filings use the
  Submissions mode with `companies`.
- The Submissions API returns a company's **last ~1000** filings in
  `filings.recent`; older ones live in separate shard files, and this actor does
  not fetch them.
- Full-Text Search returns matches at the document (exhibit) level, so the same
  filing can produce several records for several exhibits.

# Actor input Schema

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

EDGAR full-text search query. Use double quotes for an exact phrase: "artificial intelligence". If left empty, the full filing history of the companies in the 'companies' field is pulled instead (Submissions API).

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

E.g. \['AAPL', 'MSFT'] or \['0000320193'] or \['Apple Inc.']. When given together with a keyword, the search is restricted to these companies; when given on its own, the company's full filing history is listed.

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

SEC form types, e.g. '10-K' (annual report), '10-Q' (quarterly), '8-K' (material event), '4' (insider trading), 'S-1' (IPO registration), 'SC 13D'. If left empty, all types are included. Amendment (/A) versions are included automatically.

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

ISO 8601 date, e.g. '2026-01-01'. If left empty, the last 90 days are used.

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

ISO 8601 date, e.g. '2026-11-10'. If left empty, today is used.

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

Maximum number of filings to pull.

## `userAgentContact` (type: `string`):

SEC asks every request to identify itself: 'Name Surname email@example.com' or 'Company Name email@company.com'. If left empty, the actor's own contact information is used, but entering your own is recommended for heavy use (see sec.gov/os/webmaster-faq#developers).

## Actor input object example

```json
{
  "query": "\"artificial intelligence\"",
  "companies": [],
  "formTypes": [
    "8-K"
  ],
  "dateFrom": "",
  "dateTo": "",
  "maxItems": 50,
  "userAgentContact": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all records found in this run.

# 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": "\"artificial intelligence\"",
    "companies": [],
    "formTypes": [
        "8-K"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("accommodating_aptitude/sec-edgar-filings").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": "\"artificial intelligence\"",
    "companies": [],
    "formTypes": ["8-K"],
}

# Run the Actor and wait for it to finish
run = client.actor("accommodating_aptitude/sec-edgar-filings").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 '{
  "query": "\\"artificial intelligence\\"",
  "companies": [],
  "formTypes": [
    "8-K"
  ]
}' |
apify call accommodating_aptitude/sec-edgar-filings --silent --output-dataset

```

## MCP server setup

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

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/63f61MWlFmisu6svr/builds/oYL8YMqXeAgYbtUVy/openapi.json
