# SEC EDGAR API · Filings, Full-Text Search & Financials (`sauliusautomatesit/sec-edgar-api`) Actor

Query SEC EDGAR: company filings (10-K, 10-Q, 8-K, Form 4…), full-text search across all filings, and XBRL financial statements. Official US government data, no API key.

- **URL**: https://apify.com/sauliusautomatesit/sec-edgar-api.md
- **Developed by:** [Saulius Saulenas](https://apify.com/sauliusautomatesit) (community)
- **Categories:** Developer tools, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 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/platform/actors/running/actors-in-store#pay-per-event

## 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 API · Filings, Full-Text Search & Financials

Query the U.S. SEC **EDGAR** system as clean JSON — company **filings** (10-K, 10-Q, 8-K, Form 4, S-1,
13F…), **full-text search** across every filing since 2001, **XBRL financial statements** over time,
and **company profiles**. Official government data. **No API key, no subscription, no call caps** — pay
per record.

Built for fintech and investment tools, compliance/KYC teams, researchers, journalists, and AI agents
that need reliable SEC data without wrestling EDGAR's raw endpoints.

### Why this actor

- **4 data types, one actor** — filings lists, full-text search, financials (XBRL), company profiles.
- **Ticker or CIK** — pass `AAPL` or `0000320193`; tickers are resolved automatically.
- **Full-text search across all filers** — find every filing mentioning a phrase, filtered by form
  type and date. (e.g. every 10-K that mentions `"large language model"`.)
- **Real financial statements** — revenue, net income, assets, equity, EPS, cash flow and more as
  clean annual & quarterly time series, pulled from XBRL (handles the different tags companies use).
- **Direct filing URLs** — every filing row links straight to the primary document on sec.gov.
- **Monitoring mode** — schedule runs and return only **new** filings via a persistent dedup store.
  Perfect for watching a portfolio for fresh 8-Ks, Form 4 insider trades, or 10-Ks.
- **Compliant by design** — proper SEC User-Agent and ≤10 requests/second throttling built in.

### Use cases

| You are a… | You use it to… |
|---|---|
| Fintech / investing tool | Pull fundamentals & filings for your coverage universe |
| Compliance / KYC | Monitor companies for new 8-Ks, ownership changes, Form 4s |
| Quant / researcher | Backfill XBRL financial time series across many tickers |
| Journalist / analyst | Full-text search filings for a phrase, person, or risk factor |
| AI / RAG / MCP agent | Give an agent an SEC filings & financials tool |

### Input

| Field | Type | Description |
|---|---|---|
| `dataType` | string | `filings`, `search`, `financials`, or `company`. |
| `companies` | array | Tickers or CIKs (for filings/financials/company). |
| `searchQuery` | string | Text/phrase for full-text `search` (quotes = exact phrase). |
| `forms` | array | Form types filter, e.g. `10-K`, `10-Q`, `8-K`, `4`, `S-1`, `13F-HR`. |
| `startDate` / `endDate` | string | `YYYY-MM-DD` date range. |
| `concepts` | array | Financial line-items for `financials` (revenue, netIncome, assets…). |
| `maxFilingsPerCompany` | integer | Cap filings per company. |
| `maxSearchResults` | integer | Cap total full-text search results. |
| `dedupAcrossRuns` | boolean | Return only NEW records vs previous runs (monitoring). |
| `userAgentContact` | string | Your name/email for SEC's fair-access User-Agent (optional). |
| `proxyConfiguration` | object | Apify Proxy recommended. |

#### Example — a company's recent filings

```json
{ "dataType": "filings", "companies": ["AAPL", "MSFT"], "forms": ["10-K", "10-Q", "8-K"], "maxFilingsPerCompany": 20 }
```

#### Example — full-text search

```json
{ "dataType": "search", "searchQuery": "\"climate risk\"", "forms": ["10-K"], "startDate": "2025-01-01", "maxSearchResults": 100 }
```

#### Example — financials

```json
{ "dataType": "financials", "companies": ["NVDA"], "concepts": ["revenue", "netIncome", "eps", "assets"] }
```

### Output

**Filing** item:

```json
{
  "dataType": "filing", "ticker": "AAPL", "company": "Apple Inc.", "form": "10-K",
  "filingDate": "2025-11-01", "reportDate": "2025-09-27", "accessionNumber": "0000320193-25-000123",
  "primaryDocument": "aapl-20250927.htm", "isXBRL": true,
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000123/aapl-20250927.htm"
}
```

**Financials** item: `concept`, `xbrlTag`, `label`, `unit`, `latestValue`, `latestPeriodEnd`, and a
`points` array of `{ value, start, end, fiscalYear, fiscalPeriod, form, filed }`.

**Search** item: matching `form`, `filingDate`, `companies`, `cik`, `accessionNumber`, and `filingUrl`.
**Company** item: `name`, `sic`, `sicDescription`, `tickers`, `exchanges`, `stateOfIncorporation`,
`fiscalYearEnd`, business address, and filings count.

A run **summary** is saved to the key-value store under `SUMMARY`.

### Pricing

Pay-per-event: charged per **record** returned (one filing, one search hit, one financial-concept
series, or one company profile), plus a small per-run start fee. No subscription, no per-call caps.
See the Pricing tab for the live rate.

### FAQ

**Where does the data come from?** Directly from the SEC's official EDGAR system (`data.sec.gov`,
`efts.sec.gov`, `sec.gov/Archives`). It's public U.S. government data.

**How far back does full-text search go?** EDGAR full-text search covers filings from 2001 to today.

**Why do revenue values use different XBRL tags?** Companies tag the same concept differently; the
actor tries the common tags and returns whichever the filer used (shown in `xbrlTag`).

**Can I monitor for new filings?** Yes — set `dedupAcrossRuns: true` with a `dedupStoreName` and
schedule it; each run returns only filings not seen before.

### Limitations

- Financial data reflects what companies report in XBRL; very old or non-standard filings may lack some
  concepts.
- Full-text search deep-paging is capped by EDGAR at 10,000 results per query — narrow with form/date
  filters for exhaustive coverage.
- Not investment advice; for informational use.

# Actor input Schema

## `dataType` (type: `string`):

What to fetch. `filings` = a company's filings list; `search` = full-text search across ALL EDGAR filings; `financials` = XBRL financial statement line-items over time; `company` = company profile & metadata.

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

Ticker symbols or CIK numbers for filings / financials / company (e.g. `AAPL`, `TSLA`, `0000320193`). Tickers are resolved to CIKs automatically.

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

Text to search across all EDGAR filings when `dataType: search` (supports quotes for exact phrases, e.g. `"climate risk"`). Covers filings from 2001 to today.

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

Restrict to these form types (e.g. `10-K`, `10-Q`, `8-K`, `4`, `S-1`, `13F-HR`, `DEF 14A`). Empty = all forms. Applies to filings and search.

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

Only include filings on or after this date.

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

Only include filings on or before this date.

## `concepts` (type: `array`):

For `financials`: which line-items to pull (each returns a time series of annual & quarterly values from XBRL).

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

Cap filings returned per company (most recent first).

## `maxSearchResults` (type: `integer`):

Cap total results for full-text search.

## `dedupAcrossRuns` (type: `boolean`):

Skip filings/records already returned by previous runs sharing the dedup store below. Ideal for scheduled monitoring of new filings.

## `dedupStoreName` (type: `string`):

Named storage remembering records across runs. Use one per watchlist.

## `userAgentContact` (type: `string`):

SEC's fair-access policy asks requests to identify a contact (e.g. your name & email, `Jane Doe jane@acme.com`). Optional — a default is used if blank.

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

Proxy settings. Apify Proxy recommended.

## Actor input object example

```json
{
  "dataType": "filings",
  "companies": [
    "AAPL",
    "MSFT"
  ],
  "forms": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "concepts": [
    "revenue",
    "netIncome",
    "assets",
    "stockholdersEquity"
  ],
  "maxFilingsPerCompany": 40,
  "maxSearchResults": 100,
  "dedupAcrossRuns": false,
  "dedupStoreName": "sec-edgar-dedup",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `records` (type: `string`):

One item per filing (filings/search), per company×concept time series (financials), or per company (company profile). Filings carry form type, dates, accession number and a direct filing URL; financials carry an XBRL line-item with its annual/quarterly value history.

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

A JSON report: the data type, companies/queries requested, records returned, errors, records skipped as already-seen (monitoring), and whether the run stopped at your maximum charge limit.

# 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",
        "MSFT"
    ],
    "forms": [
        "10-K",
        "10-Q",
        "8-K"
    ]
};

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

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

```

## MCP server setup

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