# SEC EDGAR 8-K 10-K Item Extractor (`pecopeko/sec-edgar-8-k-10-k-item-extractor`) Actor

Extract official SEC EDGAR 10-K/10-Q/8-K filings, ASC 606 annual vs quarterly XBRL financials (revenue, net income, cash flow, shares) & Form D private startup funding filings via efts.sec.gov. Fair Access compliant, zero API key & zero browser.

- **URL**: https://apify.com/pecopeko/sec-edgar-8-k-10-k-item-extractor.md
- **Developed by:** [peco](https://apify.com/pecopeko) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 filing extracteds

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 & Form D Search Extractor

Pull clean **SEC 8-K / 10-K / 10-Q filings**, accurate **annual (`10-K`/`FY`) and quarterly (`10-Q`) US-GAAP XBRL financials**, and **live Form D startup funding & EFTS full-text filing searches** directly from official `data.sec.gov` and `efts.sec.gov` JSON endpoints — zero browser scraping, zero stale XBRL tags, and full SEC Fair Access compliance.

### Key Features

- **SEC Fair Access Compliant Out of the Box**: Sends a compliant contact `User-Agent` (customizable via `contactEmail`) and enforces polite `<= 8 req/sec` rate limiting plus automatic `429`/`503` `Retry-After` exponential backoff.
- **Clean ASC 606 Annual & Quarterly XBRL Financials**:
  - Automatically prefers modern ASC 606 tags (`RevenueFromContractWithCustomerExcludingAssessedTax`) over discontinued legacy `Revenues` tags and sorts strictly by period `end` date — never returning stale 2018 revenue figures.
  - Separates **Annual (`xbrl_annual`: `10-K`/`FY` full-year)** and **Quarterly (`xbrl_quarterly`: single-quarter `10-Q`)** metrics cleanly (`revenue`, `net_income`, `operating_income`, `operating_cash_flow`, `assets`, `liabilities`, `stockholders_equity`, `cash_and_equivalents`).
- **Form D Startup Funding & EFTS Full-Text Search Mode**:
  - Query `efts.sec.gov/LATEST/search-index` by `formTypes` (e.g. `["D", "D/A"]`, `["8-K"]`), `searchQuery`, `dateFrom`, and `dateTo` to monitor private equity / VC fundraising filings, M\&A disclosures, or keyword mentions in real time.
- **Fault-Isolated Batch Runs**: Missing XBRL (`404` on private issuers) or an invalid ticker emits a structured status field without aborting the rest of your company list.

### Pricing (Pay-Per-Event)

- **`filing_extracted`**: **`$0.004`** per company snapshot or EFTS filing record extracted (error records are never charged).

### Popular Use Cases

1. **VC & B2B Sales Lead Gen (Form D Monitor)**: Pull newly filed Form D private placements daily with `formTypes: ["D"]` + `dateFrom` to discover funded startups and locations (`biz_locations`).
2. **Automated Earnings & Quant Research**: Extract structured `xbrl_annual` and `xbrl_quarterly` US-GAAP fundamentals alongside direct links to `10-K`, `10-Q`, and `8-K` HTML filings.
3. **M\&A & Material Event Alerts**: Search `8-K` filings with `searchQuery: "\"merger agreement\""` or `"Item 2.02"` across any date window.

### Input Examples

#### Mode 1: Company Filings + Annual & Quarterly XBRL

```json
{
  "identifiers": ["AAPL", "MSFT", "0001045810"],
  "forms": ["10-K", "10-Q", "8-K"],
  "limitPerCompany": 5,
  "includeXbrl": true
}
```

#### Mode 2: Recent Form D Startup Funding Search (EFTS)

```json
{
  "identifiers": [],
  "formTypes": ["D", "D/A"],
  "dateFrom": "2026-11-01",
  "dateTo": "2026-11-20",
  "maxSearchResults": 50
}
```

#### Mode 3: Full-Text 8-K M\&A Event Search (EFTS)

```json
{
  "identifiers": [],
  "searchQuery": "\"definitive agreement\"",
  "formTypes": ["8-K"],
  "dateFrom": "2026-11-01",
  "maxSearchResults": 25
}
```

### Output Example (Company + XBRL)

```json
{
  "record_type": "company_filings",
  "status": "ok",
  "cik": "0000320193",
  "entity_name": "Apple Inc.",
  "tickers": ["AAPL"],
  "sic": "3571",
  "sic_description": "ELECTRONIC COMPUTERS",
  "filings": [
    {
      "form": "10-K",
      "filing_date": "2026-10-30",
      "report_date": "2026-09-26",
      "accession_number": "0000320193-26-000101",
      "primary_document": "aapl-20260926.htm",
      "edgar_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000101/aapl-20260926.htm"
    }
  ],
  "xbrl_status": "extracted",
  "xbrl_annual": {
    "revenue": {
      "tag": "RevenueFromContractWithCustomerExcludingAssessedTax",
      "val": 416161000000,
      "unit": "USD",
      "start": "2025-09-28",
      "end": "2026-09-26",
      "filed": "2026-10-30",
      "form": "10-K",
      "fy": 2026,
      "fp": "FY",
      "period_days": 363
    }
  },
  "xbrl_quarterly": {
    "revenue": {
      "tag": "RevenueFromContractWithCustomerExcludingAssessedTax",
      "val": 94036000000,
      "unit": "USD",
      "start": "2026-03-29",
      "end": "2026-06-27",
      "filed": "2026-08-01",
      "form": "10-Q",
      "fy": 2026,
      "fp": "Q3",
      "period_days": 90
    }
  }
}
```

# Actor input Schema

## `identifiers` (type: `array`):

Optional list of US stock tickers (e.g. 'AAPL', 'MSFT') or SEC CIK numbers to fetch company submissions and annual/quarterly US-GAAP XBRL metrics. Leave empty to run EFTS Form D / full-text search only.

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

SEC form types to keep per company in Company Mode (e.g. 8-K, 10-K, 10-Q, 4, S-1, DEF 14A).

## `limitPerCompany` (type: `integer`):

Maximum number of recent matching filings to include per company identifier.

## `includeXbrl` (type: `boolean`):

Fetch companyfacts JSON and extract clean annual (10-K/FY) and quarterly (10-Q) metrics preferring modern ASC 606 revenue tags sorted by period end date.

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

Optional full-text keyword or phrase query sent to efts.sec.gov/LATEST/search-index (e.g. '"artificial intelligence"' or 'merger agreement').

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

Optional SEC form filters for EFTS search mode (e.g. \['D', 'D/A'] for private startup funding filings, or \['8-K'] for M\&A and material events).

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

Optional filing start date in YYYY-MM-DD format for EFTS search mode.

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

Optional filing end date in YYYY-MM-DD format for EFTS search mode.

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

Maximum number of EFTS search / Form D filing records to return.

## `contactEmail` (type: `string`):

Optional contact email placed into the SEC EDGAR User-Agent header per SEC Fair Access Policy. Defaults to the Actor's built-in Fair Access contact.

## Actor input object example

```json
{
  "identifiers": [
    "AAPL"
  ],
  "forms": [
    "8-K",
    "10-K",
    "10-Q"
  ],
  "limitPerCompany": 5,
  "includeXbrl": true,
  "formTypes": [],
  "maxSearchResults": 25
}
```

# Actor output Schema

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

Structured JSON records extracted during this Actor 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 = {
    "identifiers": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pecopeko/sec-edgar-8-k-10-k-item-extractor").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 = { "identifiers": ["AAPL"] }

# Run the Actor and wait for it to finish
run = client.actor("pecopeko/sec-edgar-8-k-10-k-item-extractor").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 '{
  "identifiers": [
    "AAPL"
  ]
}' |
apify call pecopeko/sec-edgar-8-k-10-k-item-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pecopeko/sec-edgar-8-k-10-k-item-extractor"
        }
    }
}
```

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/psiLHBVhGgMDMLyhS/builds/AZgMhvfRnNXdBn2wH/openapi.json
