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

Lists recent public company filings (10-K, 10-Q, 8-K, Form 4 and others) by ticker, CIK or form type. It returns filing metadata, document URLs and, optionally, the main document's plain text.

- **URL**: https://apify.com/enforceable_maitake/sec-edgar-filings-scraper.md
- **Developed by:** [tony p](https://apify.com/enforceable_maitake) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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/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

Lists recent public company filings (10-K, 10-Q, 8-K, Form 4 and more) by ticker, CIK or form type across all companies, for investors, fintech builders and AI/RAG teams who want SEC data as clean JSON.

- Filing metadata: form type, filing and report dates, accession number, 8-K item codes
- Direct links to the main document and the filing index page
- Optional visible text of the main document, with hidden inline XBRL metadata removed for RAG or analysis

### Sample result

```json
{
  "ticker": "AAPL",
  "cik": "320193",
  "companyName": "Apple Inc.",
  "formType": "8-K",
  "filingDate": "2025-07-31",
  "reportDate": "2025-07-31",
  "accessionNumber": "0000320193-25-000072",
  "primaryDocUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000072/aapl-20250731.htm",
  "filingIndexUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000072/0000320193-25-000072-index.htm",
  "items": "2.02,9.01",
  "text": null,
  "textError": null
}
```

### Input example

```json
{
  "tickers": ["AAPL"],
  "formTypes": ["8-K"],
  "filedAfter": "2025-06-01",
  "includeText": false,
  "maxItems": 10,
  "contactEmail": ""
}
```

Pricing: $2.00 per 1,000 results

### FAQ

**Can I use CIK numbers?** Yes, mix tickers and CIKs in the same list. Identifiers resolving to the same CIK are fetched once, and accession numbers are deduplicated across the run. `maxItems` counts unique results.

**Which forms are supported?** Any EDGAR form type (10-K, 10-Q, 8-K, 4, S-1, ...). With tickers or CIKs, leave `formTypes` empty for all forms. With `tickers: []`, provide at least one form type for a market-wide search.

**How far back does it go?** It reads each company's recent filings list (typically the latest ~1,000 filings).

For market-wide searches, set `tickers` to `[]` and supply `formTypes`. It searches from `filedAfter` through today; an empty date uses the last 30 days. Large searches are split into non-overlapping date ranges to paginate beyond 10,000 hits. If a single day exceeds the SEC search window, the run reports incomplete coverage in `RUN_SUMMARY` instead of silently claiming success.

**Whose identity is returned for Form 4?** `companyName`, `cik` and `ticker` identify the issuer from the ownership document or filing index, rather than the reporting insider. The ticker can be null for an unlisted issuer. Archive URLs keep the SEC's actual document location even when its CIK differs from the issuer's. The same issuer resolution applies to Forms 3 and 5 and their amendments.

**What type is `items`?** A comma-separated string such as `"2.02,9.01"`, or null when there are no item codes, in both company and market-wide searches. Every result has all 12 documented fields.

**How fast is it?** It stays well within SEC rate limits (at most 2 requests per second), so including text makes runs slower.

**Is the text complete?** It is the visible plain text of the main document, capped at 200,000 characters after hidden elements and inline XBRL metadata are removed. Visible XBRL-tagged facts remain. For ownership XML it contains the document's text values. Attachments, images and PDFs are not converted to text.

**What if a document cannot be fetched?** The filing is still returned with its metadata, `text` is null and `textError` explains why. The run status and a RUN_SUMMARY record flag incomplete coverage.

**How do I check coverage?** The output includes a `RUN_SUMMARY` link. `complete` means no lookup, search-window or requested-text failures within the chosen scope and requested result limit. `stoppedAtMaxItems` distinguishes reaching your limit from exhausting the search. Check `coverageErrors` and `failedLookups` for details. An unverified ownership issuer is skipped, and a run collecting no filings fails with a plain reason.

**How do I run it locally?** Install [uv](https://docs.astral.sh/uv/), then run `bash test.sh` with Python 3.12 and network access to PyPI and SEC. The supplied test input requests up to 10 Apple 8-K filings without fetching text. Results are written under `storage/datasets/default/`, with the `RUN_SUMMARY` record in `storage/key_value_stores/default/`. The Actor also uses the same input defaults when no input is provided. `contactEmail` is optional and has no default address; fill it with your monitored operator address to identify SEC requests. When empty, the User-Agent is `Apify-Actor/1.0 (+https://apify.com)`.

Run the offline regression suite with `uv run --python 3.12 --with-requirements requirements.txt python -m unittest discover -s tests -v`.

This Actor only collects publicly available data from sec.gov.

# Actor input Schema

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

Stock tickers (e.g. AAPL) or CIK numbers. Leave empty to search all companies by form type.

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

Form types to keep, e.g. 10-K, 10-Q, 8-K, 4. Leave empty for all forms when providing tickers/CIKs. Market-wide searches require at least one form type.

## `filedAfter` (type: `string`):

Only filings on or after this date (YYYY-MM-DD).

## `includeText` (type: `boolean`):

Fetch the main document and return plain text (slower).

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

Stop after this many results.

## `contactEmail` (type: `string`):

Optional operator contact email placed in the User-Agent, as SEC requests for automated EDGAR clients. Leave empty to use Apify-Actor/1.0 (+https://apify.com).

## Actor input object example

```json
{
  "tickers": [
    "AAPL"
  ],
  "formTypes": [
    "8-K"
  ],
  "filedAfter": "2025-06-01",
  "includeText": false,
  "maxItems": 10,
  "contactEmail": ""
}
```

# Actor output Schema

## `filings` (type: `string`):

Unique SEC filings with issuer metadata, document links and optional visible text.

## `summary` (type: `string`):

Collected count, requested limit, coverage warnings and lookup/text failures.

# 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": [
        "8-K"
    ],
    "filedAfter": "2025-06-01",
    "includeText": false,
    "maxItems": 10,
    "contactEmail": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("enforceable_maitake/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": ["8-K"],
    "filedAfter": "2025-06-01",
    "includeText": False,
    "maxItems": 10,
    "contactEmail": "",
}

# Run the Actor and wait for it to finish
run = client.actor("enforceable_maitake/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": [
    "8-K"
  ],
  "filedAfter": "2025-06-01",
  "includeText": false,
  "maxItems": 10,
  "contactEmail": ""
}' |
apify call enforceable_maitake/sec-edgar-filings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,enforceable_maitake/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/znJSHks0BdUlp8xS9/builds/Sc1KxdISq7gnfrCkk/openapi.json
