# SEC EDGAR Filings & XBRL Financials API (`accessible_stockade/sec-edgar-filings-xbrl-api`) Actor

Zero-API-key, zero-proxy SEC EDGAR API for 10-K, 10-Q, 8-K, Form 4, Form D filings and normalized US-GAAP XBRL financials. MCP-ready with Pay-Per-Event pricing.

- **URL**: https://apify.com/accessible_stockade/sec-edgar-filings-xbrl-api.md
- **Developed by:** [Amir Baram](https://apify.com/accessible_stockade) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 sec filing records

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 & XBRL Financials API

**Zero-API-key, zero-proxy SEC EDGAR API for 10-K, 10-Q, 8-K, Form 4, Form D filings & normalized US-GAAP XBRL financials.**

Built for fintech developers, quant researchers, VC/PE analysts, and AI agent builders who need fast, structured SEC filing data and audited XBRL financial metrics directly from official SEC EDGAR JSON APIs—with ultra-low memory (`128–512 MB`), strict SEC Fair-Access compliance, and transparent **Pay-Per-Event** pricing.

***

### Why Use This Actor?

- **Zero API keys, zero proxies, zero headless browsers:** Queries official SEC EDGAR JSON endpoints (`www.sec.gov/files/company_tickers.json`, `data.sec.gov/submissions/`, `data.sec.gov/api/xbrl/companyfacts/`) directly over lightweight HTTP.
- **Automatic Ticker-to-CIK Resolution:** Pass stock tickers (`AAPL`, `NVDA`) or 10-digit CIKs (`0000320193`) interchangeably.
- **Two Structured Modes:**
  - `company_filings`: Flat, ready-to-use filing records (`10-K`, `10-Q`, `8-K`, `4`, `D`, `13F-HR`, etc.) with direct clickable `filingUrl` links to the primary SEC document.
  - `company_financials`: Normalized US-GAAP XBRL financial facts (`Revenues`, `NetIncomeLoss`, `OperatingIncomeLoss`, `Assets`, `Liabilities`, `CashAndCashEquivalentsAtCarryingValue`, `EarningsPerShareDiluted`, and any custom US-GAAP concept) with full filing provenance (`fy`, `fp`, `form`, `filed`, `accn`).
- **SEC Fair-Access Compliant:** Built-in `0.12s` request throttling (< 10 req/sec) and exponential backoff retries on HTTP 429/5xx.
- **MCP-Ready:** Plug directly into Claude, Cursor, n8n, or Make via Apify's MCP server.

***

### Input Examples

#### Mode 1: Company Filings (`company_filings`)

```json
{
  "mode": "company_filings",
  "tickersOrCiks": ["AAPL", "NVDA"],
  "formTypes": ["10-K", "10-Q", "8-K"],
  "dateFrom": "2024-01-01",
  "maxFilingsPerCompany": 5
}
```

#### Mode 2: Normalized US-GAAP XBRL Financials (`company_financials`)

```json
{
  "mode": "company_financials",
  "tickersOrCiks": ["AAPL"],
  "maxFilingsPerCompany": 10,
  "financialMetrics": [
    "Revenues",
    "RevenueFromContractWithCustomerExcludingAssessedTax",
    "NetIncomeLoss",
    "OperatingIncomeLoss",
    "Assets",
    "Liabilities",
    "CashAndCashEquivalentsAtCarryingValue",
    "EarningsPerShareDiluted"
  ]
}
```

***

### Output Examples

#### Mode 1 Output (`company_filings`)

```json
{
  "ticker": "AAPL",
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "sic": "3571",
  "sicDescription": "ELECTRONIC COMPUTERS",
  "form": "10-K",
  "filingDate": "2024-11-01",
  "reportDate": "2024-09-28",
  "accessionNumber": "0000320193-24-000123",
  "primaryDocument": "aapl-20240928.htm",
  "primaryDocDescription": "10-K",
  "items": [],
  "isXBRL": true,
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm"
}
```

#### Mode 2 Output (`company_financials`)

```json
{
  "ticker": "AAPL",
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "concept": "NetIncomeLoss",
  "label": "Net Income (Loss) Attributable to Parent",
  "unit": "USD",
  "val": 93736000000,
  "start": "2023-10-01",
  "end": "2024-09-28",
  "fy": 2024,
  "fp": "FY",
  "form": "10-K",
  "filed": "2024-11-01",
  "accn": "0000320193-24-000123"
}
```

***

### Transparent Pay-Per-Event Pricing

You only pay for the exact records delivered—no monthly subscription, no proxy surcharges, and hard budget caps are respected immediately (`event_charge_limit_reached`).

| Event Name | Triggered When | Recommended Price |
| :--- | :--- | ---: |
| `filing-record` | One SEC filing metadata record pushed in `company_filings` mode | `$0.0005` / record |
| `financial-fact` | One normalized US-GAAP XBRL fact pushed in `company_financials` mode | `$0.0002` / fact |

***

### Connect as an MCP Tool (Claude, Cursor, n8n, Make)

This Actor works out-of-the-box with the **Apify MCP Server** so AI agents can pull live SEC filings and audited XBRL financials on demand:

1. **Claude Desktop / Cursor:** Connect to `https://mcp.apify.com` with your Apify API token and enable `sec-edgar-filings-xbrl-api` in your tool list.
2. **n8n & Make:** Add the **Apify — Run Actor** node, select `sec-edgar-filings-xbrl-api`, pass `tickersOrCiks` and `mode`, and stream dataset items straight into Slack, Google Sheets, Notion, or your LLM pipeline.
3. **Example Agent Prompt:** *"Pull the 5 most recent 10-K and 8-K filings for NVDA and AAPL, and fetch Apple's latest diluted EPS and net income from US-GAAP XBRL."*

# Actor input Schema

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

Choose 'company_filings' to extract filing metadata and direct document URLs, or 'company_financials' to extract normalized US-GAAP XBRL financial facts.

## `tickersOrCiks` (type: `array`):

List of US stock tickers (e.g. 'AAPL', 'NVDA') or SEC CIK numbers (e.g. '0000320193'). Tickers are automatically resolved via SEC's official company_tickers.json.

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

Filter by SEC form types (e.g. '10-K', '10-Q', '8-K', '4', 'D'). Leave empty to return all recent form types.

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

Inclusive start date in YYYY-MM-DD format (filters filingDate >= dateFrom).

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

Inclusive end date in YYYY-MM-DD format (filters filingDate <= dateTo).

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

Maximum number of filings (in company_filings mode) or financial facts (in company_financials mode) to return per company.

## `financialMetrics` (type: `array`):

List of US-GAAP XBRL concept names to extract when mode is 'company_financials'.

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

SEC EDGAR requires a descriptive User-Agent header with contact info per SEC Fair Access policy. Defaults to a compliant header if omitted.

## Actor input object example

```json
{
  "mode": "company_filings",
  "tickersOrCiks": [
    "AAPL",
    "NVDA"
  ],
  "formTypes": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "maxFilingsPerCompany": 25,
  "financialMetrics": [
    "Revenues",
    "RevenueFromContractWithCustomerExcludingAssessedTax",
    "NetIncomeLoss",
    "OperatingIncomeLoss",
    "Assets",
    "Liabilities",
    "CashAndCashEquivalentsAtCarryingValue",
    "EarningsPerShareDiluted"
  ],
  "userAgent": "SecEdgarApifyActor/1.0 (contact@example.com)"
}
```

# 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 = {
    "tickersOrCiks": [
        "AAPL",
        "NVDA"
    ],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("accessible_stockade/sec-edgar-filings-xbrl-api").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 = {
    "tickersOrCiks": [
        "AAPL",
        "NVDA",
    ],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("accessible_stockade/sec-edgar-filings-xbrl-api").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 '{
  "tickersOrCiks": [
    "AAPL",
    "NVDA"
  ],
  "formTypes": [
    "10-K",
    "10-Q",
    "8-K"
  ]
}' |
apify call accessible_stockade/sec-edgar-filings-xbrl-api --silent --output-dataset

```

## MCP server setup

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

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/bhrq6IoluAhAlBAjz/builds/MLMZl9Tlt84vMYR96/openapi.json
