# Sec Edgar Fast (`canadesk/sec-edgar-fast`) Actor

Extract financial facts, filings and insider trading data directly from SEC EDGAR.

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

## Pricing

$5.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

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

A high-performance scraper to extract financial facts and filing history directly from SEC EDGAR.

ℹ️ This scrapes public SEC EDGAR data — no authentication required, but a valid User-Agent is strictly mandated by the SEC. It uses lightweight HTTP requests instead of heavy browser automation for maximum speed.

### Features

- **Dynamic Search Engines**: Automatically identifies and routes your search term to CIK, exact Ticker symbol, or partial Company Name lookups dynamically.
- **Filing Filters**: Filter datasets by explicit target dates (e.g., filings generated since 2023) or explicit form types (e.g., exclusively 10-K or 4).
- **Extensive XBRL Financials**: Extracts precise XBRL financial concepts (Revenue, Assets, Cash, Net Income) alongside structured Financial Statements (Balance Sheet, Income Statement, Cash Flow).
- **Text & XML Extraction**: Dumps specific 10-K chapters (Business, Risk Factors, MD\&A) alongside raw XML parsing (Form 4 Insider Trading transactions).
- **Robust Error Handling**: Wraps the execution context defensively so a bad query explicitly returns a logged `NotFoundError` or `RateLimitError` payload without crashing the batch.
- **Proxy Support**: Integrates Apify Proxies seamlessly to bypass region blocks.

### Input Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `searchTerms` | Array | A list of queries to look up via Ticker. (**max 5 per run**). Examples: `["AAPL", "MSFT"]`. |
| `formType` | String | *(Optional)* Filter recent filings returned by a specific SEC Form Type (e.g., `10-K`, `10-Q`, `4`, `8-K`). Leave blank for all. |
| `fromDate` | String | *(Optional)* Filter constraint to strictly fetch filings submitted *after* this string date limit (`YYYY-MM-DD`). |
| `toDate` | String | *(Optional)* Filter constraint to strictly fetch filings submitted *before* this string date limit (`YYYY-MM-DD`). |
| `userAgent` | String | **Required by the SEC**: Your registered company name and contact email (e.g., `MyCompany/1.0 contact@mycompany.com`). |
| `proxy` | Object | Proxy configuration. Recommended for preventing rate-limit blocks when processing large batches. |

### Output

Data is stored in the default dataset in JSON format. Each requested query generates one highly-detailed output object highlighting submissions, raw XBRL, Form 4 trading events, and extracted 10-K text.

#### Example Output

```json
{
  "ticker": "AAPL",
  "name": "Apple Inc.",
  "cik": "0000320193",
  "exchange": "Nasdaq",
  "entityType": "operating",
  "sic": "3571",
  "sicDescription": "Electronic Computers",
  "category": "Large accelerated filer",
  "fiscalYearEnd": "0926",
  "stateOfIncorporation": "CA",
  "totalFilingsCount": 1000,
  "financialSummary": {
    "totalAssets": 359241000000,
    "totalLiabilities": 285508000000,
    "totalStockholdersEquity": 56950000000,
    "totalRevenues": 215639000000
  },
  "recentFilings": [
    {
      "formType": "10-Q",
      "filingDate": "2026-01-30",
      "accessionNumber": "0000320193-26-000006"
    }
  ],
  "latest10K": {
    "filingDate": "2025-10-31",
    "accessionNumber": "0000320193-25-000079",
    "xbrl": {
      "metrics": {
        "revenue": 215639000000,
        "netIncome": 36330000000,
        "assets": 359241000000,
        "liabilities": 285508000000,
        "equity": 56950000000,
        "cash": 35934000000
      },
      "statements": {
        "balanceSheet": {
          "assets": {
            "total_assets": {
              "value": 359241000000,
              "units": "USD"
            }
          }
        }
      }
    },
    "extractedItems": {
      "1A": "Risk Factors: The Company’s business, financial condition and operating results..."
    }
  },
  "latestForm4": {
    "filingDate": "2026-03-17",
    "accessionNumber": "0001780525-26-000005",
    "owner": {
      "name": "COOK TIMOTHY D",
      "address": "ONE APPLE PARK WAY, CUPERTINO, CA"
    },
    "transactions": [
      {
        "securityTitle": "Common Stock",
        "shares": 60208,
        "acquiredDisposedCode": "A"
      },
      {
        "securityTitle": "Common Stock",
        "shares": 32528,
        "pricePerShare": 250.12,
        "acquiredDisposedCode": "D"
      }
    ]
  }
}
```

# Actor input Schema

## `searchTerms` (type: `array`):

List of companies to look up by Ticker.

## `formType` (type: `string`):

Filter recent filings by specific form type (e.g., '10-K', '10-Q', '4', '8-K'). Leave blank to retrieve a general mix.

## `fromDate` (type: `string`):

Filter filings filed after this date (format: YYYY-MM-DD).

## `toDate` (type: `string`):

Filter filings filed before this date (format: YYYY-MM-DD).

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

Required by the SEC: Your company name and email.

## `proxy` (type: `object`):

Select proxies to be used by this actor.

## Actor input object example

```json
{
  "searchTerms": [
    "AAPL"
  ],
  "userAgent": "MyCompany/1.0 admin@mycompany.com",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "formType": "",
    "fromDate": "",
    "toDate": "",
    "userAgent": "MyCompany/1.0 admin@mycompany.com",
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("canadesk/sec-edgar-fast").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 = {
    "formType": "",
    "fromDate": "",
    "toDate": "",
    "userAgent": "MyCompany/1.0 admin@mycompany.com",
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("canadesk/sec-edgar-fast").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 '{
  "formType": "",
  "fromDate": "",
  "toDate": "",
  "userAgent": "MyCompany/1.0 admin@mycompany.com",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call canadesk/sec-edgar-fast --silent --output-dataset

```

## MCP server setup

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

```

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/BRYvfCfWF7fiwcPS6/builds/8Jbyc8XG7PC0U0rV0/openapi.json
