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

Extract SEC EDGAR company filings by ticker, CIK, form and date, or full-text search. Includes document URLs, XBRL flags and company metadata.

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

## Pricing

$0.30 / 1,000 filing saveds

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

Collect public SEC EDGAR filing metadata by company ticker or CIK, with filters for form and filing date. Optionally discover matching filings through SEC full-text search. Get clean JSON, CSV, Excel or other Apify dataset exports, with direct document and filing-index links.

### Use cases

- Monitor 8-K corporate announcements and quarterly or annual reports.
- Build company disclosure archives and financial research datasets.
- Discover filings mentioning products, risks or business topics through full-text search.
- Feed document links into your own research, compliance or analysis pipeline.

### Quick start

Select tickers or CIKs, choose forms and a result limit, and run. The prefill collects up to 20 filings each from Apple and Microsoft. In all modes, results are saved and charged once per unique filing accession, even when a filing lists multiple companies. The first matching company with available metadata and remaining result capacity supplies the item's company fields. Replace the User-Agent contact email with your own monitored contact for ongoing use.

```json
{
  "tickers": ["AAPL", "MSFT"],
  "ciks": [],
  "formTypes": ["10-K", "10-Q", "8-K"],
  "maxResultsPerCompany": 20,
  "maxResults": 40,
  "includeOlderFilings": false,
  "userAgent": "acute_view Apify SEC EDGAR Actor admin@acuteview.dev"
}
```

### Inputs

| Field | Behavior |
| --- | --- |
| `tickers` / `ciks` | Arrays of strings. CIKs can include leading zeros or the CIK prefix. Duplicate companies are merged. |
| `formTypes` | Exact form names. Empty means all forms; select amendments such as `10-K/A` explicitly. |
| `dateFrom` / `dateTo` | Inclusive filing dates in YYYY-MM-DD format, not financial report dates. |
| `maxResultsPerCompany` | Positive integer, default 50. |
| `maxResults` | Total output limit, default 1,000. Charging budget can reduce it further. |
| `searchQuery` | Optional SEC full-text query. Combines with company, date and form filters. Without company filters, searches across SEC companies. |
| `includeOlderFilings` | Default false. Enable to fetch older submissions pages, including enrichment of historical search matches. |
| `userAgent` | Declared identity and contact email required for SEC access. |

### Output example

Illustrative item (dates and accession shown for format):

```json
{
  "companyName": "Apple Inc.",
  "cik": "0000320193",
  "ticker": "AAPL",
  "formType": "10-K",
  "filingDate": "2025-10-31",
  "reportDate": "2025-09-27",
  "acceptanceDateTime": "2025-10-31T06:01:26.000Z",
  "accessionNumber": "0000320193-25-000079",
  "primaryDocument": "aapl-20250927.htm",
  "primaryDocDescription": "10-K",
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm",
  "filingIndexUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.html",
  "fileSize": 10000000,
  "items": null,
  "isXBRL": true,
  "sic": "3571",
  "sicDescription": "Electronic Computers",
  "stateOfIncorporation": "CA",
  "exchanges": ["Nasdaq"],
  "scrapedAt": "2025-11-01T00:00:00.000Z"
}
```

`fileSize` is the SEC submission's size in bytes, not necessarily the primary document size. Missing fields are null; exchanges is an array. `items` contains SEC's 8-K item codes when provided. This Actor returns metadata and links, not document bodies, parsed financial statements or investment advice.

### Pricing

Intended Store price: **$0.0003 per saved filing ($0.30 per 1,000)**, with no start fee. The `filing` pay-per-event charge occurs with dataset insertion; run charge limits and `ACTOR_MAX_PAID_DATASET_ITEMS` cap results. The live Store pricing is authoritative; monetization activation requires the publisher's payout setup. Standard Apify platform charges may apply according to your plan.

### SEC access and coverage

Data comes from public SEC JSON endpoints: company ticker mapping, company submissions and optional EDGAR full-text search. SEC public-domain data is used under its public access policies; third-party exhibits may have separate rights. This Actor is not affiliated with the SEC.

Requests are sequential across all endpoints, spaced at least 150 ms apart (below 8 requests/second), declare a contact User-Agent, and retry HTTP 429/503 with exponential backoff and Retry-After. It does not bypass SEC access controls. SEC may block cloud IPs with 403; such errors fail visibly rather than fabricating or silently returning missing data. Try again later if SEC access is restricted.

Recent submissions are processed in SEC order, followed by older pages when enabled. Result limits apply after filters. Full-text search uses SEC relevance order, deduplicates document hits and enriches filings from submissions; matches lacking submission metadata are skipped. It is limited to SEC's first 10,000 search hits and SEC search coverage (generally 2001 onward), so narrow broad queries by date. Disabled older pages also exclude older search matches.

### FAQ

**Can I request all form types?** Yes, set `formTypes` to `[]`.

**Can I use a CIK without a listed ticker?** Yes. Supply it in `ciks`; ticker may be null.

**Why are results empty?** Check forms, filing dates and company identifiers. Enable older pages for historical requests. Search may have no matches or no matching submissions metadata.

**Does it download PDFs or HTML?** No. Each result provides the SEC primary document and index URLs for downstream use.

**How do I export?** Open the run dataset and choose JSON, CSV, Excel or another supported export, or use Apify's dataset API.

### Development

Node.js 22. Run `npm ci`, `npm test`, then `apify run --purge` with input at `storage/key_value_stores/default/INPUT.json`. Deploy with `apify push`. Run `APIFY_TOKEN=... node scripts/publish.mjs` to attempt monetization and Store publication; this script reports pricing errors separately from publication.

# Actor input Schema

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

Resolve ticker symbols using the SEC company map.

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

CIK strings, with or without leading zeros.

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

Empty means all forms; amendments must be selected explicitly.

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

Inclusive YYYY-MM-DD.

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

Inclusive YYYY-MM-DD.

## `maxResultsPerCompany` (type: `integer`):

Maximum matching filings to save per company.

## `maxResults` (type: `integer`):

Maximum matching filings to save across all companies.

## `searchQuery` (type: `string`):

Optional SEC full-text query. Matches document content; results are deduplicated to filings. SEC search has a 10,000-hit ceiling.

## `includeOlderFilings` (type: `boolean`):

Fetch older SEC submission pages. In search mode, false restricts results to recent submission metadata.

## `userAgent` (type: `string`):

Identify your organization and provide a monitored contact email as required by SEC fair access.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "MSFT"
  ],
  "ciks": [],
  "formTypes": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "maxResultsPerCompany": 20,
  "maxResults": 40,
  "includeOlderFilings": false,
  "userAgent": "acute_view Apify SEC EDGAR Actor admin@acuteview.dev"
}
```

# Actor output Schema

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

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("acute_view/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",
        "MSFT",
    ],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K",
    ],
    "maxResultsPerCompany": 20,
    "maxResults": 40,
}

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

```

## MCP server setup

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