# SEC EDGAR Scraper - Filings, XBRL Financials & 13F (`sian.agency/sec-edgar-scraper`) Actor

Pull SEC EDGAR data for any US-listed company by ticker or CIK: filing history with direct document links, XBRL financial facts as tidy de-duplicated rows, full-text search across filings since 2001, and 13F institutional holdings. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/sian.agency/sec-edgar-scraper.md
- **Developed by:** [SIÁN OÜ](https://apify.com/sian.agency) (community)
- **Categories:** Lead generation, Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.44 / 1,000 sec filings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 EDGAR Scraper: Filings, XBRL Financials and 13F Holdings 🏛️

[![SIÁN Agency Store](https://img.shields.io/badge/Store-SI%C3%81N%20Agency-1AE392)](https://apify.com/sian.agency?fpr=sian) [![Yahoo Finance Scraper](https://img.shields.io/badge/Store-Yahoo%20Finance%20Scraper-6001D2)](https://apify.com/sian.agency/yahoo-finance-scraper?fpr=sian) [![Google Finance Data Scraper](https://img.shields.io/badge/Store-Google%20Finance%20Data%20Scraper-4285F4)](https://apify.com/sian.agency/google-finance-data-scraper?fpr=sian) [![North Data Company Scraper](https://img.shields.io/badge/Store-North%20Data%20Company%20Scraper-1AE392)](https://apify.com/sian.agency/northdata-company-scraper?fpr=sian)

#### 🎉 Four SEC EDGAR datasets in one actor: filings, XBRL financial facts, full-text search and 13F holdings

##### For analysts, quants and compliance teams who want EDGAR as clean rows instead of ten browser tabs

### 🔎 What is the SEC EDGAR Scraper — and when should you use it?

The **SEC EDGAR Scraper** turns SEC EDGAR filings, XBRL financial data, full-text search results and 13F holdings into clean, structured rows you can filter, export and feed straight into a spreadsheet, database or AI agent. No account, no portal API key, no browser automation to maintain.

**Use it when you need:** US public company filings by ticker or CIK with document links and 8-K item names, or XBRL financial values such as revenue, net income, assets and EPS as one row per period. It also returns filings matching a full-text phrase since 2001, and institutional 13F positions with CUSIP, shares, dollar value and portfolio weight.

**Use something else when:** you need stock prices and quotes, or companies outside the US. Use [Yahoo Finance Scraper](https://apify.com/sian.agency/yahoo-finance-scraper?fpr=sian) for stock quotes, price history and company financials. Use [North Data Company Scraper](https://apify.com/sian.agency/northdata-company-scraper?fpr=sian) for EU company register records, officers and financials. This actor covers SEC filers only and returns filing metadata and links, not the document text.

### 🤖 Use with AI agents

Already connected to the [Apify MCP server](https://mcp.apify.com)? Just ask for this Actor by name: sian.agency/sec-edgar-scraper

**Agentic payments:** Availability of [x402](https://www.x402.org/) and [Skyfire](https://www.skyfire.xyz/) depends on this Actor's current Store eligibility. Check the published listing for supported payment methods. Billing is the same either way: per successful row, never for errors.

Otherwise copy this prompt into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```text
I want SEC filings, financial statement values or 13F holdings from EDGAR using the Apify Actor `sian.agency/sec-edgar-scraper`.

Use it when I need: US public company filings by ticker or CIK with document links and 8-K item names, or XBRL financial values such as revenue, net income, assets and EPS as one row per period. It also returns filings matching a full-text phrase since 2001, and institutional 13F positions with CUSIP, shares, dollar value and portfolio weight.

Don't use it when: you need stock prices and quotes, or companies outside the US — use yahoo-finance-scraper or northdata-company-scraper instead.

How to call it: pick one `operation`: `filings` (tickers or CIKs in `companies`, narrowed by `formTypes`, `includeAmendments`, `dateFrom`, `dateTo`), `financials` (`companies` plus XBRL `concepts`, `periodType` and `latestValueOnly`), `fullTextSearch` (a `searchQuery`, optionally `searchCompanies`, `formTypes` and dates) or `holdings13f` (manager CIKs in `managers` and how many `quarters`). Cap rows with `maxResults`.

Start with this input:
{
  "operation": "financials",
  "companies": [
    "AAPL",
    "MSFT"
  ],
  "concepts": [
    "NetIncomeLoss",
    "EarningsPerShareDiluted"
  ],
  "periodType": "annual",
  "maxResults": 50
}

Ask me which companies or managers, and whether you want filings, financial values, a text search or 13F holdings, then run the Actor and summarise the results as a table.
```

**Things you can ask your agent for:**

- *List every 8-K Nvidia filed this year and flag the ones with item 2.02 earnings results.*
- *Build a ten-year table of annual net income and diluted EPS for Apple and Microsoft.*
- *Show Berkshire Hathaway's 13F holdings for the last two quarters and what changed.*

Machine-readable API, MCP config and OpenAPI definition for this Actor are published at [apify.com/sian.agency/sec-edgar-scraper.md](https://apify.com/sian.agency/sec-edgar-scraper.md).

### 📋 Overview

**SEC EDGAR is the official home of every US public company filing.** This actor turns it into a dataset. Give it tickers or CIK numbers and get filing histories, financial statement values, full-text search matches or institutional 13F holdings back as rows you can export to CSV, Excel or JSON.

**What you get:**

- ✅ **Filing history with working links**: every 10-K, 10-Q, 8-K, proxy or S-1, with a direct link to the main document and to the filing index. Filings older than the most recent 1,000 are fetched too.
- 🧹 **XBRL facts without the duplicates**: companies repeat each number in later filings as comparatives. You get one row per concept and period, taken from the latest financial statement, with a count of how many filings reported it.
- 🔎 **Full-text search since 2001**: find every filing that mentions "artificial intelligence", a supplier's name or a risk phrase, filtered by form type and date.
- 🏦 **13F holdings in dollars**: issuer, CUSIP, shares, voting authority and portfolio weight for any institutional manager. Reports filed before 2023 stated values in thousands; they are converted, so quarters compare.
- 📣 **8-K items named**: item codes like 2.02 and 5.02 come with their plain names ("Results of Operations and Financial Condition"), so an event filter is one column.
- 💰 **Pay per row**: you pay only for rows saved to your dataset. Error rows are free.

***

### ✨ Features

- 🏢 **Ticker or CIK input**: AAPL, BRK.B, 320193 or a pasted EDGAR company URL all work.
- 📑 **30 form types to pick from**: 10-K, 10-Q, 8-K, 20-F, 6-K, S-1, DEF 14A, Form 4, 13F-HR, Form D and more, with an amendments switch.
- 📅 **Date windows**: filter filings by filing date and financial facts by period end.
- 🗓️ **Annual or quarterly periods**: keep full-year amounts, three-month amounts, or everything including year-to-date.
- 🔖 **Any XBRL concept**: NetIncomeLoss, Assets, OperatingIncomeLoss, or dei: and ifrs-full: concepts for share counts and foreign filers.
- 📆 **Several 13F quarters at once**: read a manager's latest report or the last ten years of them.
- 🏷️ **Company profile on every filing row**: SIC industry, state of incorporation, fiscal year end and filer category.
- 📄 **A readable run report**: every run writes an HTML summary with the rows, any inputs that failed and why.

***

### 🎬 Quick Start

Pick an operation, enter your tickers and press Start. Each run does one operation and writes one dataset. The default input lists Apple's latest 10-K, 10-Q and 8-K filings.

```bash
curl -X POST 'https://api.apify.com/v2/acts/sian.agency~sec-edgar-scraper/runs?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"operation": "filings", "companies": ["AAPL", "MSFT"], "formTypes": ["10-K", "10-Q"]}'
```

***

### 🚀 Getting Started (3 Simple Steps)

#### Step 1: Choose what you want

Pick Company filings, Financial facts, Full-text search or 13F holdings in the first field.

#### Step 2: Tell it where to look

Enter tickers or CIK numbers, a search phrase, or a manager's CIK. Narrow with form types and dates if you like.

#### Step 3: Run and export

Press Start, then download the dataset as CSV, Excel or JSON, or open the Processing Report.

**In about a minute you'll have:**

- A table of filings with document links, or a clean financial time series
- Company names, tickers and CIKs on every row
- A report showing what came back and anything that failed

***

### 📥 Input Configuration

| Field | Type | Used by | Description |
|-------|------|---------|-------------|
| `operation` | string | all | `filings`, `financials`, `fullTextSearch` or `holdings13f` |
| `companies` | array | filings, financials | Tickers or CIK numbers, up to 500 per run |
| `formTypes` | array | filings, search | Form types to keep; empty means every form |
| `includeAmendments` | boolean | filings | Keep 10-K/A, 8-K/A and other amendments (default on) |
| `dateFrom` / `dateTo` | string | filings, financials, search | YYYY-MM-DD bounds |
| `concepts` | array | financials | XBRL concept names; empty returns every concept |
| `periodType` | string | financials | `all`, `annual` or `quarterly` |
| `latestValueOnly` | boolean | financials | One row per period from the latest filing (default on) |
| `searchQuery` | string | search | Words or a "quoted phrase" to find in filings |
| `searchCompanies` | array | search | Optional tickers or CIKs to limit the search |
| `managers` | array | holdings13f | CIK numbers of 13F filers, for example 1067983 |
| `quarters` | integer | holdings13f | How many recent 13F reports per manager (1 to 40); raise `maxResults` to cover them all |
| `maxResults` | integer | all | Row cap per company, manager or query (default 100) |

**Filings example:**

```json
{
  "operation": "filings",
  "companies": ["AAPL", "NVDA", "BRK.B"],
  "formTypes": ["8-K"],
  "dateFrom": "2026-01-01"
}
```

**Financial facts example:**

```json
{
  "operation": "financials",
  "companies": ["MSFT"],
  "concepts": ["NetIncomeLoss", "Assets"],
  "periodType": "annual"
}
```

**13F holdings example:**

```json
{
  "operation": "holdings13f",
  "managers": ["1067983"],
  "quarters": 4,
  "maxResults": 1000
}
```

***

### 📤 Output

Each row carries a `rowType` (`filing`, `fact`, `searchHit` or `holding`), and the dataset has one view per row type. There are **60+ fields** across the four row types, including:

| Field | Type | Description |
|-------|------|-------------|
| `companyName` / `ticker` / `cik` | string | Who filed |
| `form` | string | Form type, for example 10-K or 8-K |
| `filingDate` / `reportDate` | string | When it was filed and the period it covers |
| `documentUrl` | string | Direct link to the main document |
| `filingUrl` | string | Link to the filing index with every exhibit |
| `itemDescriptions` | array | Plain names of the 8-K items |
| `concept` / `label` / `unit` | string | XBRL concept, its label and the unit (USD, shares) |
| `value` | number | The reported amount |
| `periodStart` / `periodEnd` | string | The period a financial value covers |
| `reportedInFilings` | number | How many filings repeated that value |
| `issuerName` / `cusip` | string | The security a 13F position holds |
| `valueUsd` / `shares` | number | Position value in dollars and share count |
| `portfolioWeightPct` | number | Share of the manager's reported portfolio |
| `status` / `errorMessage` | string | `success` or `error`, with the reason |

**Filing row:**

```json
{
  "rowType": "filing",
  "cik": "0000320193",
  "companyName": "Apple Inc.",
  "ticker": "AAPL",
  "industry": "Electronic Computers",
  "form": "8-K",
  "accessionNumber": "0000320193-26-000024",
  "filingDate": "2026-11-02",
  "items": "2.02,9.01",
  "itemDescriptions": ["Results of Operations and Financial Condition", "Financial Statements and Exhibits"],
  "documentUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/aapl-20261102.htm",
  "filingUrl": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm",
  "isInlineXbrl": true,
  "status": "success"
}
```

**13F holding row:**

```json
{
  "rowType": "holding",
  "companyName": "BERKSHIRE HATHAWAY INC",
  "reportDate": "2026-06-30",
  "issuerName": "AMERICAN EXPRESS CO",
  "cusip": "025816109",
  "valueUsd": 50419898471,
  "shares": 149061045,
  "shareType": "SH",
  "votingSole": 149061045,
  "portfolioWeightPct": 16.8486,
  "status": "success"
}
```

***

### 💼 Use Cases & Examples

#### 1. Watchlist filing tracker

**Equity analysts pull every new 10-K, 10-Q and 8-K for a watchlist and read them from one table.**

**Input:** 20 tickers, form types 10-K, 10-Q and 8-K, a From date.
**Output:** One row per filing with the document link and 8-K item names.
**Use:** Schedule it daily and filter on item 2.02 for earnings releases.

#### 2. Financial statement time series

**Quants build revenue, net income and EPS histories straight from XBRL.**

**Input:** Tickers, concepts such as NetIncomeLoss and EarningsPerShareDiluted, periods set to annual.
**Output:** One de-duplicated value per fiscal year, with the filing it came from.
**Use:** Load into pandas or a warehouse for screening and backtests.

#### 3. Thematic research with EDGAR full-text search

**Researchers find which companies mention a theme, a supplier or a regulation.**

**Input:** A phrase like "supply chain" tariff, form type 10-K, a date range.
**Output:** Matching documents with company, ticker, form and link.
**Use:** Count mentions by year, or feed the documents to an LLM for summaries.

#### 4. 13F institutional ownership tracking

**Fund analysts track what large managers bought and sold each quarter.**

**Input:** Manager CIKs (Berkshire Hathaway is 1067983), quarters set to 8 and maxResults raised to 2,000.
**Output:** Every position per quarter in dollars, with CUSIP and portfolio weight.
**Use:** Compare quarters to spot new positions and exits.

#### 5. Due diligence on a company

**M\&A and credit teams collect a company's full filing record before a deal.**

**Input:** One CIK, form types empty, maxResults raised to 5,000.
**Output:** The complete filing history back to the 1990s, with links.
**Use:** Archive the documents or hand the list to a reviewer.

#### 6. 8-K event monitoring for compliance and IR

**IR and compliance teams watch for director departures, cyber incidents and material agreements.**

**Input:** Peer tickers, form type 8-K, a rolling From date.
**Output:** New 8-Ks with plain item names such as "Material Cybersecurity Incidents".
**Use:** Push them to Slack or email through a webhook.

#### 7. AI and RAG pipelines on SEC filings

**Builders give their agents a reliable list of filings with document links to fetch.**

**Input:** Tickers and form types 10-K and 10-Q.
**Output:** Clean metadata and URLs, one row per filing.
**Use:** Download and chunk the documents for retrieval.

***

### 🔗 Integration Examples

#### JavaScript/Node.js

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });

const run = await client.actor('sian.agency/sec-edgar-scraper').call({
  operation: 'financials',
  companies: ['AAPL', 'MSFT'],
  concepts: ['NetIncomeLoss'],
  periodType: 'annual',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')

run = client.actor('sian.agency/sec-edgar-scraper').call(
    run_input={'operation': 'holdings13f', 'managers': ['1067983'], 'quarters': 2, 'maxResults': 500}
)

for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item['issuerName'], item['valueUsd'])
```

#### cURL

```bash
curl -X POST 'https://api.apify.com/v2/acts/sian.agency~sec-edgar-scraper/runs?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"operation": "fullTextSearch", "searchQuery": "\"artificial intelligence\"", "formTypes": ["10-K"]}'
```

#### Automation Workflows (N8N / Zapier / Make)

1. **Trigger**: a schedule (daily at market close) or a webhook
2. **HTTP Request**: start the actor with your watchlist
3. **Process**: read the dataset items from the run
4. **Action**: write to Google Sheets or a database, or send a Slack alert

***

### 📊 Performance & Pricing

You pay per row saved to your dataset, plus a small start fee per run. Error rows are never charged.

| What you get | Price per 1,000 rows (paid plans) |
|---|---:|
| SEC filing | $0.50 |
| Financial value | $0.20 |
| Search match | $0.40 |
| 13F holding | $0.40 |

Higher Apify plans get a further 6 to 12% off. A typical run finishes in under a minute: 100 filings or 100 financial values take two requests to SEC EDGAR.

#### FREE plan

- Up to **25 rows per run**, with every field and operation
- No credit card needed to try it

#### Paid plans

- No row cap beyond your own `maxResults`
- Up to 500 companies per run

[🔗 View current pricing](https://apify.com/sian.agency/sec-edgar-scraper?fpr=sian)

***

### ❓ Frequently Asked Questions

**Q: Where does the data come from?**
A: From SEC EDGAR, the US Securities and Exchange Commission's public filing system. Nothing is estimated or rewritten; values are what the companies filed.

**Q: Do I need an SEC account or API key?**
A: No. EDGAR is public. The actor paces its requests so runs stay within the SEC's fair-access limits.

**Q: How far back does it go?**
A: Electronic filings start around 1994 to 1996. XBRL financial facts start in 2009 (larger companies first), full-text search covers 2001 onward, and machine-readable 13F tables start in mid-2013.

**Q: Why does one company use Revenues and another RevenueFromContractWithCustomerExcludingAssessedTax?**
A: Companies choose their own XBRL tags, and many switched in 2018. The default concept list includes both. Leave Concepts empty once to see every tag a company uses.

**Q: What does "One row per period" do?**
A: A company repeats last year's revenue in this year's 10-K as a comparative. With the setting on, you get one row per concept and period from the newest financial statement, plus how many filings reported it.

**Q: Can I look up a company by name?**
A: Use the ticker or CIK. For a company without a ticker, copy the CIK from its EDGAR page, or paste the EDGAR company URL.

**Q: Why did a multi-quarter 13F run stop partway?**
A: Maximum records counts rows per manager across all the quarters you ask for. A large manager reports about 100 positions per quarter, so set it to roughly 150 times the number of quarters.

**Q: Does it parse Form 4 insider transactions?**
A: It lists Form 4 filings with links. It does not parse the transaction tables yet.

**Q: What export formats are available?**
A: JSON, CSV, Excel, XML and HTML from the Apify dataset, or through the API.

**Q: Is this legal?**
A: SEC filings are public records published for free access, and the actor follows the SEC's fair-access rules. See the legal section below.

***

### 🐛 Troubleshooting

**"Ticker is not on the SEC's official ticker list"**

- Delisted companies, funds and private filers have no ticker on the SEC list. Use the CIK instead.

**"This company reported none of the requested concepts"**

- The company uses different XBRL tags. Run once with Concepts empty to see the tags it reports, then pick from those.

**A 13F run returns an error for a company**

- 13F is filed by investment managers, not ordinary companies. Use the manager's CIK, for example 1067983 for Berkshire Hathaway.

**Full-text search returns nothing**

- Try fewer words, one quoted phrase, a wider date range or fewer form types.

**"SEC EDGAR is limiting requests right now"**

- The SEC throttles heavy traffic for a few minutes. Wait about 10 minutes and run again.

***

### ⚖️ Is it legal to scrape data?

Our actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our actors, when used for ethical purposes by Apify users, are safe.

However, you should be aware that your results could contain personal data. Personal data is protected by the **GDPR** in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

You can also read Apify's blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

This independent SIÁN Agency actor is not affiliated with, endorsed by or sponsored by the U.S. Securities and Exchange Commission. EDGAR is a registered trademark of the SEC.

***

### 🤝 Support

**Questions, bugs and feature requests**

- For issues or questions, open an issue on the actor's Issues tab
- Check the [SIÁN Agency Store](https://apify.com/sian.agency?fpr=sian) for more automation tools
- 📧 <apify@sian-agency.online>

***

**Built by [SIÁN Agency](https://www.sian-agency.online)** | **[More Tools](https://apify.com/sian.agency?fpr=sian)**

# Changelog

This Actor's version history is a separate document: https://apify.com/sian.agency/sec-edgar-scraper/changelog.md

# Actor input Schema

## `operation` (type: `string`):

🎯 **CHOOSE DATA:** Company filings lists a company's filing history with document links. Financial facts returns XBRL numbers (revenue, net income, assets) as one row per value. Full-text search finds filings containing a phrase. 13F holdings lists an institutional manager's reported positions. One operation per run.

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

🏢 **COMPANIES:** Stock tickers (AAPL, BRK.B) or SEC CIK numbers (320193). Used by Company filings and Financial facts. Tickers are matched against the SEC's official ticker list; companies without a ticker (private filers, funds) need their CIK. Up to 500 per run.

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

📑 **FORMS:** Which filing types to keep for Company filings and Full-text search. Leave empty for every form type. Amendments (10-K/A and similar) follow the setting below.

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

📝 **AMENDMENTS:** Also keep amended filings (10-K/A, 8-K/A and so on) for the form types you picked. Turn off to see original filings only. Company filings only.

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

📅 **FROM:** Earliest date to keep, as YYYY-MM-DD. Filings and Full-text search compare it with the filing date; Financial facts compares it with the period end date; 13F holdings ignore it. Leave empty for no lower bound.

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

📅 **TO:** Latest date to keep, as YYYY-MM-DD, applied the same way as From date. Leave empty for no upper bound.

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

💵 **CONCEPTS:** XBRL concept names to return for Financial facts, for example NetIncomeLoss, Assets or OperatingIncomeLoss. Add a taxonomy prefix (dei:, ifrs-full:) when needed; without one, every taxonomy is searched. Leave empty to return every concept the company reported, which can be thousands of rows.

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

🗓️ **PERIODS:** Annual keeps full-year amounts and year-end balances; Quarterly keeps three-month amounts and quarter-end balances. Year-to-date (six- and nine-month) amounts appear only under All periods.

## `latestValueOnly` (type: `boolean`):

🧹 **DE-DUPLICATE:** Companies repeat the same number in later filings as comparatives. On (recommended): one row per concept, unit and period, taken from the most recent filing, with a count of how many filings reported it. Off: every reported occurrence.

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

🔎 **QUERY:** Words to find inside filing documents filed since 2001. Put an exact phrase in double quotes. Combine with Form types and the date range to narrow results. The search index returns at most 10,000 matches per query.

## `searchCompanies` (type: `array`):

🏢 **SEARCH SCOPE:** Optional tickers or CIK numbers. When set, Full-text search only returns filings by these companies. Leave empty to search every filer.

## `managers` (type: `array`):

🏦 **MANAGERS:** CIK numbers of institutional investment managers that file Form 13F, for example 1067983 (Berkshire Hathaway). A ticker also works if the manager is listed. Ordinary operating companies do not file 13F.

## `quarters` (type: `integer`):

📆 **REPORTS:** How many of each manager's most recent 13F holdings reports to read, newest first. 1 returns the latest quarter; 4 returns roughly the last year. Maximum records still caps the total per manager, so raise it when you read several quarters.

## `maxResults` (type: `integer`):

🔢 **LIMIT:** Maximum rows to save per company (Company filings, Financial facts), per manager (13F holdings) or per query (Full-text search). FREE plans are capped at 25 rows per run. Full-text search can return at most 10,000 rows per query.

## Actor input object example

```json
{
  "operation": "filings",
  "companies": [
    "AAPL",
    "MSFT",
    "320193"
  ],
  "formTypes": [
    "10-K",
    "8-K"
  ],
  "includeAmendments": true,
  "dateFrom": "2024-01-01",
  "dateTo": "2025-12-31",
  "concepts": [
    "NetIncomeLoss",
    "Assets",
    "dei:EntityCommonStockSharesOutstanding"
  ],
  "periodType": "all",
  "latestValueOnly": true,
  "searchQuery": "\"supply chain\" tariff",
  "searchCompanies": [
    "AAPL"
  ],
  "managers": [
    "1067983",
    "102909"
  ],
  "quarters": 1,
  "maxResults": 100
}
```

# Actor output Schema

## `secEdgarRecords` (type: `string`):

Every record this run returned.

## `scrapingSummary` (type: `string`):

HTML summary showing successful and failed results with key metrics

# 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 = {
    "operation": "filings",
    "companies": [
        "AAPL"
    ],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K"
    ],
    "includeAmendments": true,
    "concepts": [
        "Revenues",
        "RevenueFromContractWithCustomerExcludingAssessedTax",
        "NetIncomeLoss",
        "Assets",
        "EarningsPerShareDiluted"
    ],
    "periodType": "all",
    "latestValueOnly": true,
    "searchQuery": "\"artificial intelligence\"",
    "managers": [
        "1067983"
    ],
    "quarters": 1,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("sian.agency/sec-edgar-scraper").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 = {
    "operation": "filings",
    "companies": ["AAPL"],
    "formTypes": [
        "10-K",
        "10-Q",
        "8-K",
    ],
    "includeAmendments": True,
    "concepts": [
        "Revenues",
        "RevenueFromContractWithCustomerExcludingAssessedTax",
        "NetIncomeLoss",
        "Assets",
        "EarningsPerShareDiluted",
    ],
    "periodType": "all",
    "latestValueOnly": True,
    "searchQuery": "\"artificial intelligence\"",
    "managers": ["1067983"],
    "quarters": 1,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("sian.agency/sec-edgar-scraper").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 '{
  "operation": "filings",
  "companies": [
    "AAPL"
  ],
  "formTypes": [
    "10-K",
    "10-Q",
    "8-K"
  ],
  "includeAmendments": true,
  "concepts": [
    "Revenues",
    "RevenueFromContractWithCustomerExcludingAssessedTax",
    "NetIncomeLoss",
    "Assets",
    "EarningsPerShareDiluted"
  ],
  "periodType": "all",
  "latestValueOnly": true,
  "searchQuery": "\\"artificial intelligence\\"",
  "managers": [
    "1067983"
  ],
  "quarters": 1,
  "maxResults": 100
}' |
apify call sian.agency/sec-edgar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sian.agency/sec-edgar-scraper"
        }
    }
}
```

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/E4fzFR3jytxJohAyE/builds/ydBG8DBj2hUfrAd1i/openapi.json
