# SEC EDGAR Filing Delta Monitor (`tom_the_builder/sec-edgar-filing-delta-monitor`) Actor

Monitor official SEC EDGAR filings for a ticker watchlist and return only new or changed filings in normalized JSON.

- **URL**: https://apify.com/tom\_the\_builder/sec-edgar-filing-delta-monitor.md
- **Developed by:** [Danil Iarmolchik](https://apify.com/tom_the_builder) (community)
- **Categories:** News, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.05 / 1,000 filing alerts

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## SEC EDGAR Filing Delta Monitor

Monitor official SEC EDGAR filings for a ticker/CIK watchlist and return only new or changed filings in automation-ready JSON.

### What it does

- Resolves tickers through the official SEC company ticker index.
- Fetches recent filing metadata from the official SEC submissions JSON endpoint.
- Filters by form type, filing date window, amendments, company/query text, accession number, and keywords.
- Computes stable `new` / `changed` deltas using `CIK + accession number`.
- Writes normalized filing alerts to the default dataset.
- Writes `RUN_SUMMARY`, `WEBHOOK_PAYLOAD`, and `OUTPUT` to the default key-value store.

### What makes it different

This is not another broad EDGAR extraction suite. It is similar to SEC EDGAR scrapers, but different because it is a stateful filing delta monitor for watchlists with compact automation/webhook outputs.

V1 intentionally does not include XBRL extraction, 13F holdings parsing, insider-trade detail parsing, full-text search, primary-document text extraction, AI summaries, or investment advice.

### Recommended use

Schedule the Actor for a watchlist:

```json
{
  "mode": "delta",
  "changeMode": "new_and_changed",
  "stateKey": "portfolio-watchlist",
  "tickers": ["AAPL", "MSFT", "NVDA"],
  "filingTypes": ["8-K", "10-Q", "10-K", "4"],
  "relativeDateFromDays": 30,
  "maxItems": 100,
  "includeAmendments": false,
  "webhookMode": "summary",
  "userAgentEmail": "you@example.com"
}
````

Use a separate `stateKey` for each distinct watchlist or alert workflow.

### Output fields

- `change_type`
- `ticker`
- `company_name`
- `cik`
- `filing_type`
- `accession_number`
- `filed_at`
- `accepted_at`
- `reporting_period`
- `items`
- `primary_document_url`
- `filing_detail_url`
- `source_url`
- `stable_id`
- `state_key`
- `matched_keywords`
- `matched_fields`

### Fair access

The Actor declares a User-Agent on SEC requests. Use a real contact email in `userAgentEmail`, keep schedules reasonable, and avoid unnecessarily large watchlists.

### Disclaimer

This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by the U.S. Securities and Exchange Commission. It uses public SEC EDGAR data.

# Actor input Schema

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

Use delta for monitor-style runs or snapshot to return the current filtered set.

## `changeMode` (type: `string`):

When mode is delta, choose whether to return new filings only or both new and changed filings.

## `stateKey` (type: `string`):

Logical state bucket. Use a different value for each distinct watchlist.

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

Public company tickers to monitor, resolved through the official SEC company tickers index.

## `ciks` (type: `array`):

Optional CIKs to monitor directly. Values are normalized to 10-digit SEC CIKs.

## `filingTypes` (type: `array`):

SEC form types to return, for example 8-K, 10-Q, 10-K, or 4.

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

Limit the number of items returned in the output. State is still computed from the full filtered set.

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

Optional lower bound for filing date in YYYY-MM-DD format.

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

Optional upper bound for filing date in YYYY-MM-DD format.

## `relativeDateFromDays` (type: `integer`):

If Filing date from is empty, derive it automatically as today minus this many days.

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

Free text query for company, ticker, filing type, and primary document description.

## `companyNameContains` (type: `string`):

Case-insensitive substring filter for company names.

## `accessionNumber` (type: `string`):

Fetch a specific accession number when known.

## `keywordList` (type: `array`):

Optional keyword list matched against company, ticker, form, accession, document description, and item fields.

## `requireKeywordMatch` (type: `boolean`):

If enabled, filings are returned only when at least one keyword matches.

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

If disabled, amended forms ending in /A are excluded.

## `includeRaw` (type: `boolean`):

Attach the raw SEC filing object to each item. Useful for debugging but increases output size.

## `includeUnchanged` (type: `boolean`):

When mode is delta, include unchanged items in the selected set.

## `webhookMode` (type: `string`):

Choose whether to disable webhook payloads, send only a summary, or include all selected items.

## `userAgentEmail` (type: `string`):

Contact email included in SEC request User-Agent headers for fair-access compliance.

## `requestDelayMs` (type: `integer`):

Delay between company submissions requests. Keep this polite for SEC fair access.

## Actor input object example

```json
{
  "mode": "delta",
  "changeMode": "new_and_changed",
  "stateKey": "default",
  "tickers": [
    "AAPL",
    "MSFT"
  ],
  "ciks": [],
  "filingTypes": [
    "8-K",
    "10-Q",
    "10-K",
    "4"
  ],
  "maxItems": 100,
  "dateFrom": "",
  "dateTo": "",
  "relativeDateFromDays": 30,
  "query": "",
  "companyNameContains": "",
  "accessionNumber": "",
  "keywordList": [],
  "requireKeywordMatch": false,
  "includeAmendments": false,
  "includeRaw": false,
  "includeUnchanged": false,
  "webhookMode": "summary",
  "userAgentEmail": "danilyarmolchik@gmail.com",
  "requestDelayMs": 150
}
```

# Actor output Schema

## `filingAlerts` (type: `string`):

Default dataset items containing new or changed normalized SEC filing records.

## `runSummary` (type: `string`):

Compact summary with counts and selected configuration.

## `webhookPayload` (type: `string`):

Compact payload suitable for downstream alerting workflows.

## `fullOutput` (type: `string`):

Full JSON output object containing summary, items, and webhook payload.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("tom_the_builder/sec-edgar-filing-delta-monitor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("tom_the_builder/sec-edgar-filing-delta-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call tom_the_builder/sec-edgar-filing-delta-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=tom_the_builder/sec-edgar-filing-delta-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEC EDGAR Filing Delta Monitor",
        "description": "Monitor official SEC EDGAR filings for a ticker watchlist and return only new or changed filings in normalized JSON.",
        "version": "0.1",
        "x-build-id": "9nC2XjpHeJL6zau0U"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/tom_the_builder~sec-edgar-filing-delta-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-tom_the_builder-sec-edgar-filing-delta-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/tom_the_builder~sec-edgar-filing-delta-monitor/runs": {
            "post": {
                "operationId": "runs-sync-tom_the_builder-sec-edgar-filing-delta-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/tom_the_builder~sec-edgar-filing-delta-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-tom_the_builder-sec-edgar-filing-delta-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Run mode",
                        "enum": [
                            "delta",
                            "snapshot"
                        ],
                        "type": "string",
                        "description": "Use delta for monitor-style runs or snapshot to return the current filtered set.",
                        "default": "delta"
                    },
                    "changeMode": {
                        "title": "Delta selection",
                        "enum": [
                            "new_and_changed",
                            "new_only"
                        ],
                        "type": "string",
                        "description": "When mode is delta, choose whether to return new filings only or both new and changed filings.",
                        "default": "new_and_changed"
                    },
                    "stateKey": {
                        "title": "State key",
                        "type": "string",
                        "description": "Logical state bucket. Use a different value for each distinct watchlist.",
                        "default": "default"
                    },
                    "tickers": {
                        "title": "Ticker watchlist",
                        "type": "array",
                        "description": "Public company tickers to monitor, resolved through the official SEC company tickers index.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "AAPL",
                            "MSFT"
                        ]
                    },
                    "ciks": {
                        "title": "CIK watchlist",
                        "type": "array",
                        "description": "Optional CIKs to monitor directly. Values are normalized to 10-digit SEC CIKs.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "filingTypes": {
                        "title": "Filing types",
                        "type": "array",
                        "description": "SEC form types to return, for example 8-K, 10-Q, 10-K, or 4.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "8-K",
                            "10-Q",
                            "10-K",
                            "4"
                        ]
                    },
                    "maxItems": {
                        "title": "Max output items",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Limit the number of items returned in the output. State is still computed from the full filtered set.",
                        "default": 100
                    },
                    "dateFrom": {
                        "title": "Filing date from",
                        "type": "string",
                        "description": "Optional lower bound for filing date in YYYY-MM-DD format.",
                        "default": ""
                    },
                    "dateTo": {
                        "title": "Filing date to",
                        "type": "string",
                        "description": "Optional upper bound for filing date in YYYY-MM-DD format.",
                        "default": ""
                    },
                    "relativeDateFromDays": {
                        "title": "Relative lookback window (days)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "If Filing date from is empty, derive it automatically as today minus this many days.",
                        "default": 30
                    },
                    "query": {
                        "title": "Free text query",
                        "type": "string",
                        "description": "Free text query for company, ticker, filing type, and primary document description.",
                        "default": ""
                    },
                    "companyNameContains": {
                        "title": "Company name contains",
                        "type": "string",
                        "description": "Case-insensitive substring filter for company names.",
                        "default": ""
                    },
                    "accessionNumber": {
                        "title": "Accession number",
                        "type": "string",
                        "description": "Fetch a specific accession number when known.",
                        "default": ""
                    },
                    "keywordList": {
                        "title": "Keyword list",
                        "type": "array",
                        "description": "Optional keyword list matched against company, ticker, form, accession, document description, and item fields.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "requireKeywordMatch": {
                        "title": "Require keyword match",
                        "type": "boolean",
                        "description": "If enabled, filings are returned only when at least one keyword matches.",
                        "default": false
                    },
                    "includeAmendments": {
                        "title": "Include amended filings",
                        "type": "boolean",
                        "description": "If disabled, amended forms ending in /A are excluded.",
                        "default": false
                    },
                    "includeRaw": {
                        "title": "Include raw source payload",
                        "type": "boolean",
                        "description": "Attach the raw SEC filing object to each item. Useful for debugging but increases output size.",
                        "default": false
                    },
                    "includeUnchanged": {
                        "title": "Include unchanged items",
                        "type": "boolean",
                        "description": "When mode is delta, include unchanged items in the selected set.",
                        "default": false
                    },
                    "webhookMode": {
                        "title": "Webhook payload mode",
                        "enum": [
                            "off",
                            "summary",
                            "full"
                        ],
                        "type": "string",
                        "description": "Choose whether to disable webhook payloads, send only a summary, or include all selected items.",
                        "default": "summary"
                    },
                    "userAgentEmail": {
                        "title": "SEC User-Agent email",
                        "type": "string",
                        "description": "Contact email included in SEC request User-Agent headers for fair-access compliance.",
                        "default": "danilyarmolchik@gmail.com"
                    },
                    "requestDelayMs": {
                        "title": "Request delay (ms)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Delay between company submissions requests. Keep this polite for SEC fair access.",
                        "default": 150
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
