# SEC Public Company Financials (XBRL) & Insider Trading API (`whthpnd/sec-financials-insider-trading-api`) Actor

Fast, proxy-free US Stock Fundamentals (SEC EDGAR XBRL 10-K/10-Q revenue, net income, cash, debt, EPS) and Form 4 Insider Trading Actor & Standby REST API. Query any US public ticker (NVDA, AAPL, MSFT) in milliseconds without Polygon or FMP keys.

- **URL**: https://apify.com/whthpnd/sec-financials-insider-trading-api.md
- **Developed by:** [DirectAPI Labs](https://apify.com/whthpnd) (community)
- **Categories:** MCP servers, Business, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.90 / 1,000 extracted sec ticker financials / form 4s

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Public Company Financials (XBRL) & Insider Trading API

Fast, proxy-free **US Public Stock Fundamentals (SEC EDGAR XBRL 10-K / 10-Q) & Form 4 Insider Trading** Actor and real-time **Standby REST API**.

Query any of **10,400+ US public companies** (`NVDA`, `AAPL`, `MSFT`, `TSLA`, `AMZN`, or raw 10-digit SEC CIKs) without paying `$49–$199/mo` for external stock market APIs or managing EDGAR XBRL tag inconsistencies yourself.

***

### Why Use This API?

- **Normalized GAAP Fundamentals (`10-K` & `10-Q`)**: Automatically reconciles varying SEC XBRL revenue/earnings taxonomy tags (`Revenues`, `RevenueFromContractWithCustomerExcludingAssessedTax`, `SalesRevenueNet`) and separates **true single-quarter (`60–115` days)** numbers from YTD cumulative periods.
- **Parsed Form 4 XML Insider Trades**: Fetches recent Form 4 XML filings directly from SEC EDGAR archives and extracts insider names, executive titles (`CEO`, `CFO`, `General Counsel`, `Director`), transaction codes (`Purchase`, `Sale`, `Award`, `Option Exercise`), exact share counts, prices, and USD transaction values.
- **10,400+ Built-in Ticker-to-CIK Index**: Instant ticker resolution inside **256 MB RAM** with zero cold-start lookup delays.
- **Dual Mode (Batch + Standby REST API)**: Export bulk watchlists to JSON/CSV/Excel or embed synchronous HTTP endpoints directly inside AI agents, `n8n`, `Make`, and investment bots.

***

### Real-Time Standby REST API Endpoints

Query live HTTP endpoints using your Apify API token (`Authorization: Bearer <APIFY_TOKEN>`):

| Endpoint | Example Query | Description |
|---|---|---|
| `GET /v1/full` | `/v1/full?ticker=NVDA` | Complete 10-K/10-Q XBRL fundamentals + parsed Form 4 insider trades |
| `GET /v1/financials` | `/v1/financials?ticker=AAPL` | Fast balance sheet & income statement XBRL summary (`10-K` + `10-Q`) |
| `GET /v1/insiders` | `/v1/insiders?ticker=MSFT&limit=5` | Parsed SEC Form 4 insider buys, sales & executive roles |

***

### Batch Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `tickers` | Array of strings | `["NVDA", "AAPL", "MSFT"]` | US stock ticker symbols or 10-digit SEC CIKs (up to 100 per run). |
| `mode` | String | `"full"` | `"full"` (XBRL + Form 4), `"financials"` (10-K/10-Q only), or `"insiders"` (Form 4 only). |
| `maxInsiderFilings` | Integer | `5` | Maximum recent Form 4 XML filings to parse per ticker (`1` to `25`). |

***

### Example Output

```json
{
  "input": "NVDA",
  "ticker": "NVDA",
  "cik": "0001045810",
  "companyName": "NVIDIA CORP",
  "exchanges": ["Nasdaq"],
  "sicDescription": "Semiconductors & Related Devices",
  "latestAnnualRevenue": 130497000000,
  "latestAnnualNetIncome": 72880000000,
  "annualPeriodEnd": "2025-01-26",
  "latestQuarterRevenue": 96221000000,
  "quarterPeriodEnd": "2026-07-26",
  "totalAssets": 320272000000,
  "totalLiabilities": 91288000000,
  "cashAndEquivalents": 22443000000,
  "stockholdersEquity": 228984000000,
  "epsDiluted": 2.94,
  "recentInsiderCount": 5,
  "latestInsiderSummary": "Teter Timothy S. (EVP, General Counsel and Sec): Sale 10,000 sh @ $142.50 ($1,425,000) on 2026-11-19"
}
```

***

### Pricing & Store Tier Discounts

Transparent **Pay-Per-Event** pricing with automatic Store tier discounts:

| Plan Tier | Actor Start | Per Ticker / API Request |
|---|---|---|
| **Free** | $0.00005 | $0.0035 |
| **Bronze** | $0.00005 | $0.0033 |
| **Silver** | $0.00005 | $0.0031 |
| **Gold / Platinum / Diamond** | $0.00005 | $0.0029 |

***

### Integrations & Use Cases

- **AI Financial Agents & MCP Servers**: Expose `/v1/full?ticker=NVDA` or `/v1/financials?ticker=AAPL` as a deterministic tool inside Claude, Cursor, LangChain, or OpenAI Agents so models ground revenue and balance-sheet numbers directly in official SEC XBRL filings.
- **Insider Buy/Sell Alerts (`n8n` / `Make` / Telegram)**: Poll `/v1/insiders?ticker=...&limit=10` on watchlists to track open-market Form 4 purchases (`Purchase`) and executive sales (`Sale`).

### FAQ

**Why choose SEC EDGAR XBRL instead of Yahoo Finance scraping?**
SEC EDGAR `data.sec.gov` returns authoritative, auditable GAAP numbers directly from signed `10-K`/`10-Q` filings and raw Form 4 XMLs — zero HTML scraping fragility and zero paid third-party market API keys.

**How are quarterly figures separated from YTD cumulative numbers?**
SEC `10-Q` filings embed both 3-month and 6/9-month cumulative periods. This engine explicitly filters flow periods between `60` and `115` days for `latestQuarterRevenue` and `>= 300` days for `latestAnnualRevenue`.

***

### Connect as an MCP Server (Claude, Cursor, Windsurf, n8n)

This Actor natively exposes a **Streamable HTTP Model Context Protocol (MCP)** endpoint at `/mcp` with 3 tools (`get_sec_company_full`, `get_sec_xbrl_financials`, `get_sec_insider_trades`).

Add it directly to **Cursor**, **Windsurf**, or any MCP-compatible financial AI agent:

```json
{
  "mcpServers": {
    "sec-financials-insiders": {
      "url": "https://whthpnd--sec-financials-insider-trading-api.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

# Actor input Schema

## `tickers` (type: `array`):

Public US stock ticker symbols (e.g., NVDA, AAPL, MSFT, TSLA, AMZN) or 10-digit SEC CIK numbers.

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

Extract full financials + Form 4 insider trades, fundamentals only (10-K/10-Q XBRL), or insider Form 4 filings only.

## `maxInsiderFilings` (type: `integer`):

Maximum number of recent SEC Form 4 XML filings to parse per company (1 to 25).

## Actor input object example

```json
{
  "tickers": [
    "NVDA",
    "AAPL",
    "MSFT"
  ],
  "mode": "full",
  "maxInsiderFilings": 5
}
```

# 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 = {
    "tickers": [
        "NVDA",
        "AAPL",
        "MSFT"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("whthpnd/sec-financials-insider-trading-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 = { "tickers": [
        "NVDA",
        "AAPL",
        "MSFT",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("whthpnd/sec-financials-insider-trading-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 '{
  "tickers": [
    "NVDA",
    "AAPL",
    "MSFT"
  ]
}' |
apify call whthpnd/sec-financials-insider-trading-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,whthpnd/sec-financials-insider-trading-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/3kw2rV1X6XOcpGYKE/builds/CGjRJfpuotVhlb99P/openapi.json
