# SEC EDGAR Scraper — Filings, Financials & Companies (`scrapesage/sec-edgar-scraper`) Actor

Scrape SEC EDGAR: full-text search every filing (10-K, 10-Q, 8-K, S-1, Form 4, Form D…), pull any company's profile, recent filings & document links, and structured XBRL financials (revenue, net income, assets, EPS). Search by ticker, CIK, name, form or date. Monitoring mode. No API key.

- **URL**: https://apify.com/scrapesage/sec-edgar-scraper.md
- **Developed by:** [Scrape Sage](https://apify.com/scrapesage) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 company scrapeds

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 Scraper — Filings, Financials & Companies

Extract **everything public on [SEC EDGAR](https://www.sec.gov/edgar)** — run a **full-text search across every filing** (10-K, 10-Q, 8-K, S-1, Form 4 insider trades, Form D raises…), pull any **company's profile** (industry, address, phone, website, fiscal year) plus its **recent filings with document links**, and get **structured XBRL financials** (revenue, net income, assets, equity, EPS) with multi-year history. Built straight on the SEC's own open-data endpoints.

No API key, no login, no browser — and an optional **monitoring mode** that returns only new filings on each run, perfect for alerting on the latest 10-Ks, 8-Ks and insider Form 4s.

### Why this EDGAR scraper?

Most SEC scrapers do one narrow thing — a filing list, or insiders only. This actor rolls **three jobs into one tool** and ships the **richest dataset in the category**: the filing index, the full company profile *and* parsed financial statements, all from the authoritative source.

| Data | Typical SEC scrapers | This actor |
|---|---|---|
| Full-text search across all filings (keyword, form, date) | partial | ✅ up to 1,000/run |
| Company profile (industry/SIC, EIN, fiscal year, state) | basic | ✅ |
| **Contact fields** — business address, phone, website | ❌ | ✅ when filed |
| Recent filings with **document & filing-index links** | sometimes | ✅ up to 1,000 |
| **Structured XBRL financials** (revenue, net income, assets, EPS…) | ❌ | ✅ with multi-year history |
| Resolve by **ticker, CIK or company name** | partial | ✅ all three |
| **Monitoring mode** — only new filings | ❌ | ✅ |
| One run, three jobs (search · filings · financials) | ❌ | ✅ |

### Use cases

- **Investment & equity research** — pull a company's financial history (revenue, margins, EPS, balance sheet) straight from its XBRL filings, and track every new disclosure as it lands.
- **Filing & insider monitoring** — schedule the search with monitoring mode to capture only *new* 10-Ks, 8-Ks, S-1s or insider Form 4s for the companies and topics you follow — sentiment, risk and event signals.
- **Funding & lead generation** — surface companies raising capital (Form D) or going public (S-1), with their business address, phone and website for outreach and BD.
- **Compliance & due diligence** — confirm a company's CIK, EIN, state of incorporation, industry (SIC) and filing history from the authoritative regulator.
- **Market & thematic research** — full-text search every filing for a theme ("artificial intelligence", "supply chain", a competitor name) and see which companies disclose it and when.

### How to use

1. [Sign up for Apify](https://console.apify.com/sign-up) — the free plan is enough to try this actor.
2. Open the **SEC EDGAR Scraper**, pick a **mode** (Company filings, Financials, or Full-text search), fill in the matching field, and click **Start**.
3. Watch results stream into the dataset table as each record is parsed.
4. **Export** as JSON, CSV, Excel, XML, or RSS — or pull results programmatically via the [Apify API](https://docs.apify.com/api/v2).

### Input

Get a company's profile and recent annual/quarterly filings (by ticker, CIK or name):

```json
{
    "mode": "companyFilings",
    "companies": ["AAPL", "Tesla", "0000789019"],
    "formTypes": ["10-K", "10-Q", "8-K"],
    "maxFilingsPerCompany": 50
}
````

Full-text search every filing for a theme, on a schedule, getting only new hits each run:

```json
{
    "mode": "search",
    "searchQuery": "\"artificial intelligence\"",
    "forms": ["10-K", "8-K"],
    "startDate": "2025-01-01",
    "maxResults": 200,
    "monitorMode": true
}
```

- **mode** — `companyFilings`, `financials`, or `search`.
- **companies** — tickers (`AAPL`), CIK numbers (`320193` / `0000320193`) or company names (`Tesla`); used by Company filings & Financials, and optionally to scope Search.
- **searchQuery / forms / startDate / endDate** — full-text search phrase, form-type filter and date window (Search mode).
- **formTypes** — restrict a company's filing list to these forms (Company filings mode).
- **includeProfile / includeFilings** — choose whether to emit the company profile, the filing list, or both.
- **maxFilingsPerCompany / maxResults** — caps for the filing list and the search.
- **monitorMode / monitorStoreName** — emit only filings not seen in previous runs (see **Monitoring** below).
- **userAgent** — the SEC asks clients to identify themselves; optionally set your own `Name email@domain.com`.
- **proxyConfiguration** — proxy settings (Apify proxy by default).

### Output

One dataset; every row is tagged with a `type` (`filing`, `company`, or `financials`). Use the **Filings**, **Companies**, and **Financials** views to switch the columns.

A company profile (`type: "company"`) — note the contact fields for lead-gen:

```json
{
    "type": "company",
    "cik": "0000320193",
    "name": "Apple Inc.",
    "tickers": ["AAPL"],
    "exchanges": ["Nasdaq"],
    "sicDescription": "Electronic Computers",
    "category": "Large accelerated filer",
    "ein": "942404110",
    "stateOfIncorporation": "CA",
    "phone": "(408) 996-1010",
    "businessAddress": "ONE APPLE PARK WAY, CUPERTINO, CA, 95014",
    "website": null,
    "formerNames": ["APPLE COMPUTER INC"],
    "filingsCount": 1000,
    "lastFilingForm": "4",
    "lastFilingDate": "2026-05-29",
    "profileUrl": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193"
}
```

A filing (`type: "filing"`):

```json
{
    "type": "filing",
    "form": "10-K",
    "companyName": "Apple Inc.",
    "cik": "0000320193",
    "tickers": ["AAPL"],
    "filingDate": "2025-11-01",
    "reportDate": "2025-09-27",
    "accessionNumber": "0000320193-25-000xxx",
    "isXBRL": true,
    "documentUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000xxx/aapl-20250927.htm",
    "filingIndexUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000xxx/"
}
```

A financials record (`type: "financials"`) carries curated XBRL metrics, each with a `latest` value and multi-year `history`:

```json
{
    "type": "financials",
    "name": "Apple Inc.",
    "ticker": "AAPL",
    "cik": "0000320193",
    "conceptsAvailable": 503,
    "metrics": {
        "revenue": {
            "unit": "USD",
            "latest": { "value": 383285000000, "fiscalYear": 2025, "periodEnd": "2025-09-27", "form": "10-K" },
            "history": [ { "value": 383285000000, "fiscalYear": 2025 }, { "value": 391035000000, "fiscalYear": 2024 } ]
        },
        "netIncome": { "latest": { "value": 96995000000, "fiscalYear": 2025 } },
        "totalAssets": { "latest": { "value": 364980000000 } },
        "epsDiluted": { "latest": { "value": 6.13 } }
    }
}
```

**Coverage notes.** All data comes from the SEC's own endpoints, so core fields (CIK, name, form, dates, document links) are authoritative and near-universal. Contact fields (address, phone, website) appear when the filer provides them. Financials come from XBRL structured data, available for operating-company filers (most don't tag every concept — the actor curates the most common ~20 metrics and includes whatever is present). EDGAR's full-text search covers filings from 2001 onward and exposes up to 10,000 matches per query. An empty result is reported as a successful run.

### Monitoring — get only new filings

Turn on **`monitorMode`** to make repeat runs incremental. The actor remembers the **accession numbers** it has already returned (in a named key-value store, **`monitorStoreName`**) and emits **only filings that are new since the last run**.

- Track a **company** and capture only its *new filings* — get alerted the moment a 10-K, 8-K or insider Form 4 is filed.
- Track a **full-text query** and capture only *new filings* mentioning your theme or competitor.
- It works **alongside [Apify Schedules](https://docs.apify.com/platform/schedules)**, not against them: the schedule triggers the run on your cron; monitoring mode dedupes against earlier runs so each run yields only fresh filings. Use a distinct `monitorStoreName` per tracked target so their histories stay separate.

### Automate & schedule

Run this actor on autopilot and pull results into your own stack:

- **[Apify API](https://docs.apify.com/api/v2)** — start runs, fetch datasets, and manage schedules over REST.
- **[apify-client for JavaScript](https://docs.apify.com/api/client/js/)** and **[apify-client for Python](https://docs.apify.com/api/client/python/)** — official SDKs.
- **[Schedules](https://docs.apify.com/platform/schedules)** — run it on a cron to keep filings and financials fresh.
- **[Webhooks](https://docs.apify.com/platform/integrations/webhooks)** — trigger downstream actions the moment a run finishes.

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'MY_APIFY_TOKEN' });

const run = await client.actor('scrapesage/sec-edgar-scraper').call({
    mode: 'financials',
    companies: ['AAPL', 'MSFT', 'NVDA'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Got ${items.length} records`);
```

### Integrate with any app

Connect the dataset to 5,000+ apps — no code required:

- **[Make](https://docs.apify.com/platform/integrations/make)** — multi-step automation scenarios.
- **[Zapier](https://docs.apify.com/platform/integrations/zapier)** — push new filings straight into your CRM, sheet or research tool.
- **[Slack](https://docs.apify.com/platform/integrations/slack)** — get notified when a monitored company files something new.
- **[Google Drive / Sheets](https://docs.apify.com/platform/integrations/drive)** — auto-export every run to a spreadsheet.
- **[Airbyte](https://docs.apify.com/platform/integrations/airbyte)** — pipe results into your data warehouse.
- **[GitHub](https://docs.apify.com/platform/integrations/github)** — trigger runs from commits or releases.

### Use with AI assistants (MCP)

The output is clean, LLM-ready JSON. Call this actor from Claude, ChatGPT, or any agent framework through the **[Apify MCP server](https://docs.apify.com/platform/integrations/mcp)** — ask your assistant to "pull Apple's last five years of revenue and net income from SEC filings" and let it run this scraper for you.

### Agent-ready: autonomous payments (x402 & Skyfire)

This actor is **agent-ready** — AI agents can discover it, run it, and **pay for it autonomously**, with no Apify account and no human in the loop. It uses [pay-per-event](https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event) pricing and [limited permissions](https://docs.apify.com/platform/actors/development/permissions), so it qualifies for Apify's agentic-payment standards:

- **[x402](https://docs.apify.com/platform/integrations/x402)** — an open, HTTP-native payment protocol. Agents pay per run in USDC on the Base network directly through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) — no account, no API key.
- **[Skyfire](https://docs.apify.com/platform/integrations/skyfire)** — agent-to-service payments for fully autonomous AI-agent workflows.

Building an AI agent, MCP tool, or autonomous data pipeline? This scraper is ready to plug in and pay as it goes.

### More scrapers from scrapesage

Build a complete **company, financial & regulatory intelligence stack** — pair SEC data with global registries, contracts and hiring signals:

- **[Companies House Scraper](https://apify.com/scrapesage/companies-house-scraper)** — UK company register: profiles, directors, PSCs (beneficial owners) & filings.
- **[SAM.gov Scraper](https://apify.com/scrapesage/sam-gov-scraper)** — US federal contract opportunities & buyer contacts.
- **[Y Combinator Scraper](https://apify.com/scrapesage/ycombinator-scraper)** — startups, founders & jobs from the YC directory.
- **[Product Hunt Scraper](https://apify.com/scrapesage/product-hunt-scraper)** — new product launches, makers & leads.
- **[Google Ads Transparency Scraper](https://apify.com/scrapesage/google-ads-transparency-scraper)** — who's advertising what on Google.
- **[LinkedIn Jobs Scraper](https://apify.com/scrapesage/linkedin-jobs-scraper)** — job postings as hiring-intent signals.
- **[Google Play Scraper](https://apify.com/scrapesage/google-play-scraper)** & **[Apple App Store Scraper](https://apify.com/scrapesage/app-store-scraper)** — app-market intelligence on both stores.

### Tips

- **Resolve by anything:** put tickers, CIK numbers or company names in `companies` — the actor maps them all to the right CIK (it tries ticker first, then name).
- **Financials:** the `metrics` block curates ~20 of the most-used GAAP concepts; each has a `latest` value plus a multi-year `history`. Use the `documentUrl` on the matching 10-K filing to read the full statements.
- **Full-text search:** wrap exact phrases in quotes (`"\"climate risk\""`), filter by `forms` (e.g. `4` for insider trades, `D` for private raises) and a date window.
- **Monitoring:** give each tracked company or query its own `monitorStoreName`, then schedule the run — you'll only ever process new filings.
- **Be a good citizen:** the SEC rate-limits ~10 requests/second per IP; keep `maxConcurrency` at 5 or below and set a `userAgent` with your contact details.

### FAQ

**Do I need an SEC account or API key?** No. EDGAR is public US-government open data — no login, key, or cookies.

**Can I look up companies by name or ticker, not just CIK?** Yes — `companies` accepts tickers (`AAPL`), CIK numbers (`320193`) and names (`Tesla`); the actor resolves them to the correct CIK automatically.

**How far back does the data go?** Company filing histories cover up to the 1,000 most recent filings; full-text search covers filings from 2001 onward (up to 10,000 matches per query). XBRL financials go back to whenever the company began tagging (typically ~2009+).

**Does it include the full text of each filing?** It returns the **document URL and filing-index URL** for every filing, so you can fetch the exact 10-K/10-Q/8-K document you need. The financials mode parses the structured XBRL data into metrics for you.

**Can I export to Google Sheets, CSV, or Excel?** Yes — one click in the dataset view, or automatically on every run via the [Google Drive integration](https://docs.apify.com/platform/integrations/drive).

**Is scraping SEC EDGAR legal?** EDGAR is public data published by the U.S. Securities and Exchange Commission for exactly this kind of access. This actor follows the SEC's fair-access guidance (descriptive User-Agent, modest request rate). You're responsible for complying with the SEC's terms and applicable laws.

### Need help?

Open an issue on the actor's **Issues** tab, or visit the [Apify help center](https://help.apify.com/). Feature requests are welcome — this actor is actively maintained.

# Actor input Schema

## `mode` (type: `string`):

Pick a job. Company filings pulls a company's profile + recent filings. Financials returns structured XBRL financial metrics. Search runs an EDGAR full-text search across every filing.

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

Companies to scrape, as stock tickers (<code>AAPL</code>), CIK numbers (<code>320193</code> or <code>0000320193</code>) or names (<code>Tesla</code>). Used by Company filings & Financials; optional in Search to scope results to these filers.

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

Full-text search phrase across all EDGAR filings, e.g. <code>"artificial intelligence"</code> or <code>cybersecurity breach</code>. (Mode: Full-text search.)

## `forms` (type: `array`):

Restrict the full-text search to these form types, e.g. <code>10-K</code>, <code>8-K</code>, <code>S-1</code>, <code>4</code>, <code>D</code>. Leave empty for all forms. (Mode: Full-text search.)

## `startDate` (type: `string`):

Only filings on or after this date (YYYY-MM-DD). (Mode: Full-text search.)

## `endDate` (type: `string`):

Only filings on or before this date (YYYY-MM-DD). (Mode: Full-text search.)

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

In Company filings mode, only return filings of these form types, e.g. <code>10-K</code>, <code>10-Q</code>, <code>8-K</code>, <code>4</code>. Leave empty for all forms.

## `includeProfile` (type: `boolean`):

Emit one company profile record per company (name, tickers, exchanges, SIC/industry, address, phone, website, fiscal year, former names).

## `includeFilings` (type: `boolean`):

Emit the company's recent filings (form, date, document links, XBRL flags).

## `maxFilingsPerCompany` (type: `integer`):

Cap the number of recent filings returned per company (EDGAR exposes up to 1000).

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

Cap the number of filings returned by the full-text search (EDGAR exposes up to 10,000; this actor fetches up to 1,000 per run).

## `monitorMode` (type: `boolean`):

Remember filings already returned and emit ONLY filings not seen in previous runs — ideal for scheduled runs that alert on new 10-Ks, 8-Ks or insider Form 4s. Works alongside Apify Schedules.

## `monitorStoreName` (type: `string`):

Named key-value store that holds the 'already seen' accession numbers for monitoring mode. Use a different name per tracked target to keep histories separate.

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

The SEC's fair-access policy asks every client to identify itself. Optionally set your own <code>Name email@domain.com</code>. A working default is used if left blank.

## `maxConcurrency` (type: `integer`):

Maximum parallel requests. The SEC rate-limits ~10 requests/second per IP, so keep this at 5 or below.

## `proxyConfiguration` (type: `object`):

Proxy settings. EDGAR is public US-government data with no anti-bot, so the default Apify proxy is plenty.

## Actor input object example

```json
{
  "mode": "companyFilings",
  "companies": [
    "AAPL"
  ],
  "includeProfile": true,
  "includeFilings": true,
  "maxFilingsPerCompany": 50,
  "maxResults": 100,
  "monitorMode": false,
  "monitorStoreName": "sec-edgar-monitor",
  "userAgent": "",
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped records in the default dataset. Filing rows carry form, dates, company and document links; company rows carry the full profile and contact fields; financials rows carry curated XBRL metrics with history.

# 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 = {
    "companies": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapesage/sec-edgar-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 = { "companies": ["AAPL"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapesage/sec-edgar-scraper").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 '{
  "companies": [
    "AAPL"
  ]
}' |
apify call scrapesage/sec-edgar-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEC EDGAR Scraper — Filings, Financials & Companies",
        "description": "Scrape SEC EDGAR: full-text search every filing (10-K, 10-Q, 8-K, S-1, Form 4, Form D…), pull any company's profile, recent filings & document links, and structured XBRL financials (revenue, net income, assets, EPS). Search by ticker, CIK, name, form or date. Monitoring mode. No API key.",
        "version": "0.1",
        "x-build-id": "8y11TUQ6xtUyebBaI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapesage~sec-edgar-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapesage-sec-edgar-scraper",
                "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/scrapesage~sec-edgar-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapesage-sec-edgar-scraper",
                "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/scrapesage~sec-edgar-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapesage-sec-edgar-scraper",
                "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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "What to scrape",
                        "enum": [
                            "companyFilings",
                            "financials",
                            "search"
                        ],
                        "type": "string",
                        "description": "Pick a job. Company filings pulls a company's profile + recent filings. Financials returns structured XBRL financial metrics. Search runs an EDGAR full-text search across every filing.",
                        "default": "companyFilings"
                    },
                    "companies": {
                        "title": "Companies (tickers, CIKs or names)",
                        "type": "array",
                        "description": "Companies to scrape, as stock tickers (<code>AAPL</code>), CIK numbers (<code>320193</code> or <code>0000320193</code>) or names (<code>Tesla</code>). Used by Company filings & Financials; optional in Search to scope results to these filers.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Full-text search phrase across all EDGAR filings, e.g. <code>\"artificial intelligence\"</code> or <code>cybersecurity breach</code>. (Mode: Full-text search.)"
                    },
                    "forms": {
                        "title": "Form types (search filter)",
                        "type": "array",
                        "description": "Restrict the full-text search to these form types, e.g. <code>10-K</code>, <code>8-K</code>, <code>S-1</code>, <code>4</code>, <code>D</code>. Leave empty for all forms. (Mode: Full-text search.)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startDate": {
                        "title": "Start date",
                        "type": "string",
                        "description": "Only filings on or after this date (YYYY-MM-DD). (Mode: Full-text search.)"
                    },
                    "endDate": {
                        "title": "End date",
                        "type": "string",
                        "description": "Only filings on or before this date (YYYY-MM-DD). (Mode: Full-text search.)"
                    },
                    "formTypes": {
                        "title": "Filter filings by form type",
                        "type": "array",
                        "description": "In Company filings mode, only return filings of these form types, e.g. <code>10-K</code>, <code>10-Q</code>, <code>8-K</code>, <code>4</code>. Leave empty for all forms.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeProfile": {
                        "title": "Include company profile",
                        "type": "boolean",
                        "description": "Emit one company profile record per company (name, tickers, exchanges, SIC/industry, address, phone, website, fiscal year, former names).",
                        "default": true
                    },
                    "includeFilings": {
                        "title": "Include filing list",
                        "type": "boolean",
                        "description": "Emit the company's recent filings (form, date, document links, XBRL flags).",
                        "default": true
                    },
                    "maxFilingsPerCompany": {
                        "title": "Max filings per company",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Cap the number of recent filings returned per company (EDGAR exposes up to 1000).",
                        "default": 50
                    },
                    "maxResults": {
                        "title": "Max search results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Cap the number of filings returned by the full-text search (EDGAR exposes up to 10,000; this actor fetches up to 1,000 per run).",
                        "default": 100
                    },
                    "monitorMode": {
                        "title": "Monitoring mode — only new filings",
                        "type": "boolean",
                        "description": "Remember filings already returned and emit ONLY filings not seen in previous runs — ideal for scheduled runs that alert on new 10-Ks, 8-Ks or insider Form 4s. Works alongside Apify Schedules.",
                        "default": false
                    },
                    "monitorStoreName": {
                        "title": "Monitor store name",
                        "type": "string",
                        "description": "Named key-value store that holds the 'already seen' accession numbers for monitoring mode. Use a different name per tracked target to keep histories separate.",
                        "default": "sec-edgar-monitor"
                    },
                    "userAgent": {
                        "title": "User-Agent (your name & email)",
                        "type": "string",
                        "description": "The SEC's fair-access policy asks every client to identify itself. Optionally set your own <code>Name email@domain.com</code>. A working default is used if left blank.",
                        "default": ""
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Maximum parallel requests. The SEC rate-limits ~10 requests/second per IP, so keep this at 5 or below.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. EDGAR is public US-government data with no anti-bot, so the default Apify proxy is plenty.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
