# SEC EDGAR API: Filings as Markdown, Financials, Form 4, 13F (`codepulsehq/sec-edgar-api`) Actor

SEC filings made usable: 10-K and 10-Q sections as clean Markdown for LLMs, normalized financial statements, insider trades (Form 4) and 13F holdings, from official SEC data. No API key. Errors are free.

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

## Pricing

Pay per event

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 API: 10-K sections as clean Markdown, financial statements, insider trades and 13F holdings

Get what is inside SEC filings without parsing EDGAR yourself. Ask for a company by ticker and get the **Risk Factors, Business and MD\&A of its 10-K as clean Markdown**, its **income statement, balance sheet and cash flow** as tidy numbers, its **insider trades (Form 4)** as rows, or what a fund manager **owns (13F)**. All from official public SEC data. No API key, and failed lookups are free.

**Try it free:** Apify's free plan includes $5 of monthly credit, enough for about 500 10-K sections as Markdown, or 12,000 filing-list results. Press **Start** at the top of this page.

### At a glance

- **What it is:** an API and no-code tool over SEC EDGAR for people building AI apps, research tools and spreadsheets.
- **Five things it returns:**
  1. **Filing text:** 10-K, 10-Q and 8-K split into Items (1, 1A, 7, 2.02...) as Markdown, ready for an LLM or a vector database.
  2. **Financials:** annual and quarterly income statement, balance sheet and cash flow, plus free cash flow and margins.
  3. **Insider trades:** one row per Form 4 transaction, with the insider's role, shares, price and holdings afterwards.
  4. **Institutional holdings:** a fund manager's 13F portfolio with each position's share of the total.
  5. **Filing lists:** every filing of the types you choose, with links.
- **Input:** tickers (AAPL) or CIK numbers.
- **Price:** pay per result: $0.0004 per filing listed, $0.005 per company's financials, $0.002 per insider filing, $0.01 per filing converted to text or per 13F.
- **How to call it:** the Apify Console, the REST API, n8n, Make, Zapier, or an AI agent through MCP.

### Does this sound like you?

| What's going wrong | What this does about it |
|---|---|
| "I just want the Risk Factors section as text for my LLM, not a 300-page HTML file." | Filing text mode returns each Item as Markdown with a character and rough token count. |
| "XBRL tags differ between companies, so my revenue column keeps breaking." | Financials mode maps the different tags to one set of line items (revenue, net income, assets, cash flow...). |
| "Which executives are selling stock?" | Insider mode: one row per transaction with the role, shares, price and shares owned afterwards. |
| "What does this fund hold, and how big is each position?" | 13F mode with each holding's percentage of the portfolio. |
| "EDGAR rate-limits me and wants a User-Agent." | Handled: requests stay under the SEC's fair-access limit and identify themselves properly. |

### Who uses it

- **AI and RAG builders:** feed filings into chatbots and research agents, with sections that cite back to the filing.
- **Analysts and investors:** screen financials and watch insider selling or fund moves without a terminal subscription.
- **Fintech and data teams:** a consistent schema across thousands of companies.
- **Journalists and researchers:** pull what a company said about a risk, over several years.

### How to use it in 3 steps

1. Choose **What do you want?** (for example *Filing text as Markdown sections*).
2. Add companies by ticker (AAPL) or CIK. Adjust the options that appear for your choice.
3. Press **Start** and read the **Output** tab, or download JSON, CSV or Excel.

### What you get

**Filing text** (10-K Item 1A for Apple, shortened):

```json
{
  "success": true, "ticker": "AAPL", "company": "Apple Inc.", "form": "10-K", "filing_date": "2026-11-03",
  "document_url": "https://www.sec.gov/Archives/edgar/data/320193/.../aapl-20260926.htm",
  "total_characters": 240558,
  "sections": [
    { "item": "1A", "title": "Risk Factors", "characters": 86666, "approx_tokens": 21666, "truncated": true,
      "markdown": "The following summarizes factors that could have a material adverse effect on the Company's business..." }
  ]
}
```

**Financials** (Microsoft, one annual period, shortened):

```json
{ "period_end": "2026-06-30", "fiscal_year": 2026, "revenue": 331839000000, "net_income": 133749000000, "total_assets": 758376000000,
  "operating_cash_flow": 182935000000, "free_cash_flow": 66987000000, "net_margin_pct": 40.31, "eps_diluted": 17.95 }
```

**Insider trade** (one row per transaction):

```json
{ "ticker": "NVDA", "owners": ["Teter Timothy S."], "transaction_date": "2026-09-23", "transaction_type": "Open-market sale",
  "shares": 12483, "price_per_share": 222.19, "shares_owned_after": 2705637, "owner_details": [{ "title": "EVP, General Counsel and Secretary" }] }
```

**13F holdings:**

```json
{ "row_type": "holding", "company": "BERKSHIRE HATHAWAY INC", "report_date": "2026-09-30", "issuer": "AMERICAN EXPRESS CO", "value_usd": 45300000000, "portfolio_pct": 14.9 }
```

Anything that can't be returned (unknown ticker, no filings, no XBRL data) comes back as a `success: false` row with a plain-English reason. These rows are free.

### Input options

| Option | What it does |
|---|---|
| **What do you want?** | Filing text, financials, insider trades, 13F holdings or a list of filings. |
| **Companies** | Tickers or CIKs. For 13F use the fund manager's CIK (Berkshire Hathaway is 1067983). |
| **Filing types** | For example 10-K, 10-Q, 8-K. Defaults are chosen per data type. |
| **How many filings** | Newest first. Defaults: 1 for text and holdings, 20 for insider trades and lists. |
| **Only filings since** | A date such as 2025-01-01. |
| **Sections** | For filing text: 1A, 7, 1, 7A or `all`. |
| **Maximum length of each section** | Default 40,000 characters, cut and flagged `truncated` beyond that. |
| **Annual or quarterly, periods** | For financials. |
| **Largest holdings to return** | For 13F. Default 500. |

### Call it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/codepulsehq~sec-edgar-api/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "companies": ["AAPL"], "dataType": "filing_text", "sections": ["1A"], "maxCharsPerSection": 20000 }'
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("codepulsehq/sec-edgar-api").call(run_input={"companies": ["MSFT", "NVDA"], "dataType": "financials", "periodType": "annual"})
for row in client.dataset(run.default_dataset_id).iterate_items():
    for year in row["annual"]:
        print(row["ticker"], year["fiscal_year"], year["revenue"], year["net_margin_pct"])
```

### Use it from an AI agent (MCP)

```json
{ "mcpServers": { "sec-edgar": { "url": "https://mcp.apify.com?tools=codepulsehq/sec-edgar-api" } } }
```

Then ask: *"Summarise the main risk factors in Apple's latest 10-K"* or *"Which Nvidia insiders sold stock last quarter?"*

### Pricing

| Data | Price |
|---|---|
| Filing listed | $0.0004 |
| Filing converted to Markdown sections | $0.01 |
| Company's financial statements | $0.005 |
| Insider filing (Form 4) parsed | $0.002 |
| 13F filing parsed | $0.01 |

You are charged only for results that were returned. Errors cost nothing, and you can set a maximum cost per run.

### Quick answers

**How do I get the Risk Factors section of a 10-K as text?** Choose *Filing text*, add the ticker and set Sections to `1A`.

**How do I get a company's financial statements from the SEC?** Choose *Financial statements*. The data comes from the SEC's XBRL company facts, mapped to one set of line items.

**How do I get insider trading data (Form 4) into a spreadsheet?** Choose *Insider trades*. One row per transaction, ready for CSV.

**How do I see what Berkshire Hathaway or another fund owns?** Choose *Institutional holdings* and use the manager's CIK. Each holding shows its share of the portfolio.

**Do I need an SEC API key?** No. EDGAR is free and open; this Actor handles the User-Agent and rate limits the SEC requires.

**Is the data official?** Yes. It is read from the SEC's own EDGAR systems. This Actor is not affiliated with or endorsed by the SEC, and nothing here is investment advice.

### Limits you should know

- **Section detection is heuristic.** It works on the standard Item headings of 10-K, 10-Q and 8-K filings. If a document is unusual, you get the full text instead, with a note.
- **Financials cover US-GAAP filers that file 10-K and 10-Q.** Foreign private issuers filing 20-F, and very new listings, may return no data. Fourth quarters aren't reported separately by companies, so subtract the nine-month figure from the annual one.
- **13F data is delayed and partial.** Filings are due 45 days after quarter end and show only long positions in US-listed securities. The same issuer can appear on several rows when a manager reports it under different sub-managers.
- **Form 4 only.** Forms 3 and 5 aren't included.

### More from CodePulse

- [US Federal Contracts & Grants API](https://apify.com/codepulsehq/us-federal-opportunities-api): federal opportunities, grants and award winners, no API key.
- [Domain Intelligence API](https://apify.com/codepulsehq/domain-intelligence-api): WHOIS, DNS, SSL and tech stack for any company's domain.
- [Speech to Text API](https://apify.com/codepulsehq/speech-to-text-api): transcribe earnings-call recordings and other audio.

### FAQ

**Something broke or I need another field?** Open an issue from the **Issues** tab and include the ticker and what you expected.

# Actor input Schema

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

The kind of data to return. Each option has its own price per result, shown on the Pricing tab.

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

Tickers such as AAPL or BRK.B, or numeric CIK numbers such as 0001067983. For institutional holdings use the fund manager's CIK, for example 1067983 for Berkshire Hathaway.

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

Which filing types to include, for example 10-K, 10-Q or 8-K. Leave empty for sensible defaults: 10-K for filing text, 4 for insider trades, 13F-HR for holdings.

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

Newest first. Defaults: 1 for filing text and holdings, 20 for insider trades and filing lists.

## `since` (type: `string`):

A date in YYYY-MM-DD format, for example 2025-01-01.

## `sections` (type: `array`):

Items of the filing you want, for example 1A for Risk Factors, 7 for Management's Discussion, 1 for Business, 7A for market risk. Use all for every Item. Default: 1, 1A, 7 and 7A. Ignored for 8-Ks, which always return every Item.

## `maxCharsPerSection` (type: `integer`):

Long sections, such as Risk Factors, can run to 100,000 characters. Longer ones are cut and marked as truncated. Default 40,000.

## `periodType` (type: `string`):

Annual figures come from 10-K filings, quarterly from 10-Q filings. Quarterly mode returns the three reported quarters of each year.

## `periods` (type: `integer`):

Number of annual periods, newest first. Quarterly returns twice as many. Default 5.

## `topHoldings` (type: `integer`):

Only the largest positions by value are returned. Default 500.

## Actor input object example

```json
{
  "dataType": "filing_text",
  "companies": [
    "AAPL",
    "MSFT"
  ],
  "sections": [
    "1A"
  ],
  "periodType": "both"
}
```

# Actor output Schema

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

All rows for this run.

# 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"
    ],
    "sections": [
        "1A"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codepulsehq/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",
    ],
    "sections": ["1A"],
}

# Run the Actor and wait for it to finish
run = client.actor("codepulsehq/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"
  ],
  "sections": [
    "1A"
  ]
}' |
apify call codepulsehq/sec-edgar-api --silent --output-dataset

```

## MCP server setup

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