# SEC EDGAR API: Filings, XBRL Financials & Insider Trades (`pp-api/sec-edgar-api`) Actor

SEC EDGAR data as clean rows: any company's filing history with document links, XBRL financial facts such as revenue, net income and assets by period, and insider trades parsed from Forms 3, 4 and 5. By ticker or CIK, no scraping. Free preview with no key.

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

## Pricing

from $0.10 / 1,000 results

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: filings, XBRL financials and insider trades

This Actor gives you SEC EDGAR as clean rows. Give it tickers or CIK numbers and get each company's filing history with document links, XBRL financial facts (revenue, net income, assets, EPS and every other reported concept, by period), or insider trades parsed from Forms 3, 4 and 5. It reads from [sec-api.dev](https://sec-api.dev), an SEC EDGAR API, so you get structured JSON instead of a fragile EDGAR scraper.

**Try it with no key.** Leave the API key empty and run: you get real recent 10-K filings or XBRL observations for AAPL, MSFT or NVDA, or a real Form 4 insider sale.

#### What you get

| Mode | What it returns |
|---|---|
| Filings | `form`, `filing_date`, `report_date`, `accepted_at`, `accession_number`, `document_url`, `index_url`, XBRL flags. Filter by any form: 10-K, 10-Q, 8-K, S-1, DEF 14A, 13F-HR, amendments. Recent filings or the full history. |
| XBRL financial facts | `concept`, `label`, `unit`, `value`, `start`, `end`, `fiscal_year`, `fiscal_period`, `form`, `filed`, `accession_number`. One concept (for example NetIncomeLoss or Revenues) or every reported concept. By default only the latest filed value of each period, so restatements and repeated comparatives appear once. |
| Insider trades (Forms 3, 4, 5) | One row per transaction or holding: insider name and role (director, officer title, 10% owner), `transaction_date`, `transaction_code` with a plain label (open market purchase, sale, grant, option exercise, tax withholding, gift), `shares`, `price_per_share`, `value`, `shares_owned_after`, direct or indirect ownership, 10b5-1 flag and the filing link. |

Every row links back to its source document on sec.gov.

#### Why an API instead of an EDGAR scraper

EDGAR's own JSON is free but raw: you resolve tickers to CIKs, page submission files, parse ownership XML and untangle repeated XBRL comparatives yourself, within a 10 requests per second fair-access limit. This Actor does that work and returns flat rows ready for a spreadsheet or database.

The same data is a REST API ([docs](https://sec-api.dev/docs)) and a remote MCP server for Claude, ChatGPT and Cursor at `https://sec-api.dev/api/mcp`.

#### How to use it

1. Run it with no key to see real data.
2. Get a free API key at [sec-api.dev/sign-up](https://sec-api.dev/sign-up). The free plan includes 100 requests a month and needs no card.
3. Paste the key, choose a mode, add tickers or CIKs and run. Export as JSON, CSV or Excel, or schedule it and send results to a webhook, Google Sheets, Slack or your database through Apify integrations.

Each page of up to 100 filings or 1,000 facts, each ticker lookup and each parsed ownership filing is one request on your sec-api.dev plan. "Max API requests" caps how many a run uses. See [pricing](https://sec-api.dev/pricing).

#### Example row (illustrative values)

```json
{
  "ticker": "AAPL",
  "issuer_name": "Apple Inc.",
  "owner_name": "Example Insider",
  "officer_title": "Senior Vice President",
  "form": "4",
  "transaction_date": "2026-11-10",
  "transaction_code": "S",
  "transaction": "Open market sale",
  "shares": 2399,
  "price_per_share": 351.36,
  "value": 842912.64,
  "shares_owned_after": 27598,
  "direct_indirect": "D"
}
```

#### FAQ

**Does the SEC have an API?** Yes, data.sec.gov offers free keyless JSON. This Actor adds ticker lookup, paging, parsed Forms 3, 4 and 5 and de-duplicated XBRL series on top of it.

**How current is it?** Filings and ownership forms are read from EDGAR when you run; XBRL facts follow the SEC's company facts files.

**Can I track insider buying across many companies?** Yes. Add the tickers, choose Form 4 and schedule the Actor; filter `transaction_code` P for open market purchases.

Information only, not investment advice.

Independent data service operated by Stunning Couches LLC, not affiliated with or endorsed by the SEC.

# Actor input Schema

## `apiKey` (type: `string`):

Your sec-api.dev key (starts with sk_sec\_). Free plan, no card: https://sec-api.dev/sign-up. Leave empty for a free preview of real SEC data for AAPL, MSFT or NVDA.

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

Filings returns each company's filing history with document links. XBRL financial facts returns reported values such as revenue, net income or assets by period. Insider trades parses Forms 3, 4 and 5 into one row per transaction or holding.

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

Tickers or SEC CIK numbers, for example AAPL, MSFT or 320193.

## `form` (type: `string`):

Filings mode: exact SEC form, for example 10-K, 10-Q, 8-K, S-1, DEF 14A or 10-K/A for amendments. Leave empty for every form.

## `history` (type: `string`):

Filings and insider trades: recent covers roughly the last 1,000 filings of a company; full history also reads the older submission files.

## `taxonomy` (type: `string`):

XBRL financial facts: which taxonomy the concept belongs to.

## `concept` (type: `string`):

XBRL financial facts: exact concept, for example Revenues, RevenueFromContractWithCustomerExcludingAssessedTax, NetIncomeLoss, Assets, EarningsPerShareDiluted or CashAndCashEquivalentsAtCarryingValue. Leave empty for every reported concept.

## `unit` (type: `string`):

XBRL financial facts: optional exact unit, for example USD, shares or USD/shares.

## `latestOnly` (type: `boolean`):

XBRL financial facts: keep only the most recently filed value of each period, so restated and repeated comparatives appear once.

## `insiderForm` (type: `string`):

Insider trades: which ownership forms to parse.

## `includeAmendments` (type: `boolean`):

Insider trades: also parse amended filings (4/A, 3/A, 5/A).

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

Insider trades: parse at most this many of the newest ownership filings per company. Each filing is one API request.

## `maxRequests` (type: `integer`):

Stop after this many requests on your sec-api.dev plan. The free plan includes 100 requests a month.

## `maxItems` (type: `integer`):

Stop after this many rows.

## Actor input object example

```json
{
  "mode": "filings",
  "companies": [
    "AAPL"
  ],
  "form": "10-K",
  "history": "recent",
  "taxonomy": "us-gaap",
  "concept": "NetIncomeLoss",
  "latestOnly": true,
  "insiderForm": "4",
  "includeAmendments": true,
  "maxFilingsPerCompany": 10,
  "maxRequests": 30,
  "maxItems": 100
}
```

# Actor output Schema

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

All rows from this run as a dataset.

# 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 = {
    "mode": "filings",
    "companies": [
        "AAPL"
    ],
    "form": "10-K",
    "history": "recent",
    "taxonomy": "us-gaap",
    "concept": "NetIncomeLoss",
    "insiderForm": "4",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pp-api/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 = {
    "mode": "filings",
    "companies": ["AAPL"],
    "form": "10-K",
    "history": "recent",
    "taxonomy": "us-gaap",
    "concept": "NetIncomeLoss",
    "insiderForm": "4",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pp-api/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 '{
  "mode": "filings",
  "companies": [
    "AAPL"
  ],
  "form": "10-K",
  "history": "recent",
  "taxonomy": "us-gaap",
  "concept": "NetIncomeLoss",
  "insiderForm": "4",
  "maxItems": 100
}' |
apify call pp-api/sec-edgar-api --silent --output-dataset

```

## MCP server setup

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