# SEC EDGAR Full-Text Search Scraper (`devilscrapes/sec-edgar-full-text-search`) Actor

Search SEC EDGAR's full-text index for any phrase across all filers and form types (10-K, 8-K, S-1, and more), with date-range and CIK filters. Every row carries the accession number, form type, filer names/CIKs, SIC codes, relevance score, and a direct link to the filing's index page.

- **URL**: https://apify.com/devilscrapes/sec-edgar-full-text-search.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** Lead generation
- **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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<p align="center">
<img src=".actor/icon.svg" width="160" alt="SEC EDGAR Full-Text Search Scraper logo" />
</p>

## SEC EDGAR Full-Text Search Scraper

**$3.20 / 1,000 results** — pay only for rows that land, no credit card to try.

Search every SEC filing on EDGAR — any form type, any filer — for a phrase, and get back a structured dataset instead of a web form you have to click through by hand.

### 🔥 What this scrapes

This Actor is a direct client for SEC EDGAR's full-text search index (`efts.sec.gov`) — the same backend behind the official [EDGAR full-text search UI](https://www.sec.gov/search-filings). Give it a phrase, optionally narrow by form type, date range, or a single filer's CIK, and it returns one row per matching filing: accession number, form type, filer names and CIKs, SIC codes, business locations, relevance score, and a direct link to the filing's index page.

This is deliberately **not** a per-company filing lister and **not** a Form D lead-gen tool — we ship both of those separately (`sec-edgar-filings-scraper` for "every filing company X ever made"; `sec-form-d-leads` for Regulation D capital-raise leads). If you want "which filings anywhere mention this phrase," you're in the right place.

### ✨ Features

- 🔎 **Phrase search across every form type** — 10-K, 10-Q, 8-K, S-1, and everything else EDGAR indexes, all in one query.
- 📅 **Date-range and CIK filters** — narrow to a quarter, a year, or one filer.
- 🧊 **Structured rows, not HTML** — accession number, form type, filer identity, SIC codes, and a resolved filing-index URL, every time.
- 🛡️ **We handle the fair-access gate.** EDGAR requires a descriptive `User-Agent` with contact info or it 403s — we send one so you don't have to figure that out.
- 🔁 **We retry on transport failures** with exponential backoff, and we track EDGAR's own 10,000-row pagination ceiling so a broad query never silently truncates without telling you.
- 💰 **You pay only for results that land.** No matches → no per-row charge, only the small warm-up fee.

### 🧭 Use cases

- **Compliance & legal research** — find every 8-K mentioning "material weakness" in a quarter, across the entire market.
- **Investigative journalism** — trace a phrase (a product name, an executive, a lawsuit) across every filer that mentioned it.
- **Investor due diligence** — check whether a company's own 10-Ks ever mentioned "going concern," "stock buyback," or a competitor by name.
- **Market research** — count how many filers mention a technology, regulation, or trend across a date window.

### ⚙️ How to use it

1. Click **Try for free** (or **Start**) on this Actor's page.
2. Enter your search `query` — the phrase you want matched across EDGAR filings.
3. Optionally narrow with `forms`, `dateFrom`/`dateTo`, or `entityCik`.
4. Run the Actor and export the dataset as JSON or CSV.

### 📥 Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `query` | string | yes | — | Search phrase sent to EDGAR full-text search. |
| `forms` | array of strings | no | all forms | Form types to filter to, e.g. `["10-K", "8-K"]`. |
| `dateFrom` | string (`YYYY-MM-DD`) | no | unbounded | Inclusive lower bound on filing date. |
| `dateTo` | string (`YYYY-MM-DD`) | no | unbounded | Inclusive upper bound on filing date. |
| `entityCik` | string | no | — | Restrict to one filer's CIK (1-10 digits, zero-padded automatically). |
| `maxResults` | integer | no | `100` | Hard cap on rows returned (1-10,000). |
| `proxyConfiguration` | object | no | direct connection | Standard Apify Proxy configuration. |

```json
{
  "query": "material weakness",
  "forms": ["8-K"],
  "dateFrom": "2026-01-01",
  "dateTo": "2026-03-31",
  "maxResults": 200
}
```

### 📤 Output

One dataset row per matching filing:

| Field | Type | Description |
|---|---|---|
| `accession_number` | string | SEC accession number with dashes. |
| `form_type` | string | Per-filing form type. |
| `root_form` | string | null | Form family. |
| `filed_date` | string | Date the filing was filed (ISO date). |
| `period_ending` | string | null | Reporting period end date, if present. |
| `company_names` | array | Filer display names. |
| `ciks` | array | Filer CIKs. |
| `primary_cik` | string | null | First CIK, if any. |
| `sic_codes` | array | SIC industry codes. |
| `business_locations` | array | Filer business locations. |
| `file_numbers` | array | SEC file numbers. |
| `relevance_score` | number | null | Elasticsearch relevance score for this hit. |
| `filing_index_url` | string | EDGAR Archives filing-index page URL. |
| `edgar_hit_id` | string | EDGAR's own composite hit id. |

```json
{
  "accession_number": "0000320193-23-000106",
  "form_type": "10-K",
  "root_form": "10-K",
  "filed_date": "2023-11-03",
  "period_ending": "2023-09-30",
  "company_names": ["Apple Inc."],
  "ciks": ["0000320193"],
  "primary_cik": "0000320193",
  "sic_codes": ["3571"],
  "business_locations": ["CA"],
  "file_numbers": ["001-36743"],
  "relevance_score": 12.4,
  "filing_index_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019323000106/0000320193-23-000106-index.htm",
  "edgar_hit_id": "0000320193-23-000106:0"
}
```

### 💰 Pricing

Pay-Per-Event (PPE) — no rentals, no subscriptions.

| Event | Price | Trigger |
|---|---|---|
| Actor start | $0.20 | Charged once per run. |
| Result row | $0.003 | Charged per filing-hit row written to the dataset. |

1,000 results costs roughly **$3.20** including the flat start fee.

### 🚧 Limitations

- EDGAR's full-text search index covers filings from **2001-01-01 onward** — this is a platform limit, not an Actor bug.
- Pagination stops at EDGAR's own **10,000-row ceiling** per query; a very broad `query` will hit this before returning every match.
- This Actor returns the filing's search hit and index-page link, not the filing document body or XBRL data.

### ❓ FAQ

**Does this need an API key or login?**
No. SEC EDGAR's full-text search is a public, keyless endpoint.

**How is this different from a per-company filing lister?**
That's a different job — see `sec-edgar-filings-scraper` for "every filing company X ever made." This Actor answers "which filings anywhere mention this phrase."

**Can I search for Form D capital-raise leads?**
Use `sec-form-d-leads` for that — it's purpose-built for Regulation D lead generation.

**What happens if my query matches nothing?**
The run succeeds with zero rows and a status message describing exactly what was searched — you're never charged for rows that don't exist.

### 📣 Your feedback

Found a bug or want a field added? Message **DevilScrapes** on Apify — we ship fixes fast.

# Actor input Schema

## `query` (type: `string`):

Search phrase sent to EDGAR full-text search (exact-phrase matched server-side).

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

Form types to filter to (e.g. <code>10-K</code>, <code>8-K</code>). Omitted/empty = all forms.

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

Inclusive lower bound on filing date (<code>YYYY-MM-DD</code>). Omitted = unbounded.

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

Inclusive upper bound on filing date (<code>YYYY-MM-DD</code>). Omitted = unbounded.

## `entityCik` (type: `string`):

Restrict results to one filer's CIK (1-10 digits; zero-padded automatically).

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

Maximum rows returned (1-10000). Pagination also stops at EDGAR's own 10,000-row ceiling.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Default is a direct connection — this target has no TLS-level anti-bot signal beyond its User-Agent policy.

## Actor input object example

```json
{
  "query": "material weakness",
  "forms": [
    "10-K",
    "8-K"
  ],
  "entityCik": "320193",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# 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 = {
    "query": "material weakness",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/sec-edgar-full-text-search").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 = {
    "query": "material weakness",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/sec-edgar-full-text-search").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 '{
  "query": "material weakness",
  "maxResults": 20
}' |
apify call devilscrapes/sec-edgar-full-text-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devilscrapes/sec-edgar-full-text-search"
        }
    }
}

```

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/uYMmJ7f35F9O6wrfc/builds/A7Y91BXYu3JlPvfd3/openapi.json
