# Official Filing Feed: SEC, Companies House, EU TED (`pearlescent_cupola/official-filing-change-feed`) Actor

Company filings and EU tenders from official registries as one JSON event stream, with source_url, fetched_at and a confidence score. No API key for SEC EDGAR or TED, no personal data, and empty runs are free.

- **URL**: https://apify.com/pearlescent_cupola/official-filing-change-feed.md
- **Developed by:** [宇轩 段](https://apify.com/pearlescent_cupola) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Official Filing Change Feed

Outputs one normalized event per official company filing or EU tender notice, formatted for agent citation. The Actor runs without a browser, requires no custom parsers, and collects no personal data.

It queries documented public endpoints from **SEC EDGAR** (US), **UK Companies House**, and **EU TED**. Each record returns structured JSON containing `source_url`, `fetched_at`, and a deterministic `confidence` score.

### Use it from an agent (MCP)

The [Apify MCP server](https://mcp.apify.com) exposes this Actor as a standalone tool. Use the scoped URL below so the client accesses only this Actor rather than the full Apify tool set. Claude Desktop, Cursor, and other MCP clients can call it directly without custom HTTP code:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?actors=pearlescent_cupola/official-filing-change-feed",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

The client exposes one tool: `pearlescent_cupola--official-filing-change-feed` (verified 2026-11-18: `initialize` 200, `tools/list` lists the tool, and a real call produced run `7MukfwaF2tiKTr7gG` with 3 events). Invoke it directly with the Actor input:

```json
{"name":"pearlescent_cupola--official-filing-change-feed","arguments":{"source":"sec-edgar","companies":["AAPL"],"since":"2026-10-01","max_events":20}}
```

The tool returns run metadata and a dataset ID. Read the items using `get-dataset-items` and that `datasetId`:

```json
{"name":"get-dataset-items","arguments":{"datasetId":"<datasetId from the run>","limit":20}}
```

MCP calls follow standard run billing per emitted event. The scoped configuration provides the Actor tool and run/dataset tools. The generic `https://mcp.apify.com` configuration also provides discovery tools, such as `fetch-actor-details`.

### Quick start

1. Click **Try for free** or call the Actor with an API token.
2. Set the input. Only `source` is required; `sec-edgar` is the default. Paste this into the input editor to run the Actor immediately:

```json
{
  "source": "sec-edgar",
  "companies": ["AAPL", "MSFT"],
  "forms": ["8-K", "10-K", "10-Q"],
  "since": "2026-10-01",
  "max_events": 20,
  "contact_email": "data-ops@your-domain.example"
}
```

3. Retrieve the dataset. The output contains one item per filing or tender notice, sorted newest first.

```bash
curl -X POST "https://api.apify.com/v2/acts/pearlescent_cupola~official-filing-change-feed/runs?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"input":{"source":"sec-edgar","companies":["AAPL"],"since":"2026-10-01","max_events":20}}'
## then, with the datasetId returned above
curl "https://api.apify.com/v2/datasets/<datasetId>/items?token=$APIFY_TOKEN&format=json"
```

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client
  .actor('pearlescent_cupola/official-filing-change-feed')
  .call({ source: 'sec-edgar', companies: ['AAPL'], since: '2026-10-01', max_events: 20 });

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

| Source | Description | API key required | Licence | Measured 2026-11-17 |
|---|---|---|---|---|
| `sec-edgar` | U.S. SEC company filings (8-K, 10-K, 10-Q, S-1, DEF 14A, 25, 15-12B, 13F, SC 13D/G…) | No | U.S. public domain | Anonymous 200, 4 requests for 3 companies, 4.2 s |
| `companies-house` | UK Companies House filing history | Free API key (HTTP Basic) | Open Government Licence v3.0 | Anonymous request returns HTTP 401 (key required), documented limit 600 req / 5 min |
| `ted` | EU TED procurement notices | No | Commission Decision 2011/833/EU | Anonymous 200, 800,143 notices published in 2026 at the time of the check |

`source: "all"` queries SEC EDGAR and TED in parallel within a single run. It merges records into a unified schema, sorted newest first. Providing `companies_house_api_key` automatically includes Companies House. Without the key, the Actor logs a warning, skips Companies House, and completes successfully.

### What it does

- Fetches data from a single official source per run, or EDGAR + TED together (`source: "all"`). Filters by `since` / `until` window, form type, CPV code, buyer country, notice type, or keyword.
- Normalizes all records into a single `schema_version: "1.0"` format: `entity`, `event`, dates, amount, deadline, `details`. Eliminates downstream branching per source.
- Preserves the unmodified source record under `raw` when `include_raw` is enabled.
- Deduplicates by source-native event ID and sorts newest first. `max_events` (default 100, hard cap 5,000) caps merged output and run cost; reports truncation in `warnings`.
- Isolates sources: in `all` mode, each source runs in its own thread. A 401, 404, or timeout on one source logs a warning while other sources still return data. The run fails only when the input itself is invalid.
- Supports incremental runs: `only_new` stores a cursor per `(source, state_key)` in the run's key-value store and returns only events published after the previous run.
- Retries HTTP 429 and 5xx responses twice per request with exponential backoff and honors `Retry-After`. Never retries 400, 401, 403, or 404 errors.

### What it does not do

- **No personal data.** The Actor rejects SEC insider forms 3/4/5/144 even if requested. It strips Companies House officer names from `description_values` before saving. It does not collect emails, phone numbers, home addresses, or UBO data.
- **No coverage guarantee.** EDGAR returns the 1,000 most recent filings per company. Older batches load only when `since` requires them, capped by `max_archive_files`. Companies House history is paginated, capped by `max_pages`. TED is a search API: `max_events: 5` returns the newest five matches, not everything TED matched.
- **No HTML change detection.** The Actor queries structured official endpoints. It does not diff pages, take screenshots, or emit page-change alerts.
- **No proxy rotation.** Requests originate from the platform's standard IP with a declared User-Agent. If a source applies rate limits, the run backs off. The Actor does not impersonate a browser.
- **No subscriptions.** Apify retired monthly rentals; billing is per event. Any recurring plan must be sold outside Apify.
- Not investment, legal, tax, or sanctions advice, and not a substitute for reading the filed document.

### Output

Actual output item (AAPL 8-K, 2026-11-09; full file in [`samples/sec-edgar-aapl.json`](samples/sec-edgar-aapl.json)):

```json
{
  "schema_version": "1.0",
  "event_id": "sec-edgar:0000320193:0001140361-26-042798",
  "source": "sec-edgar",
  "source_name": "U.S. SEC EDGAR",
  "source_url": "https://www.sec.gov/Archives/edgar/data/320193/000114036126042798/0001140361-26-042798-index.htm",
  "fetched_at": "2026-11-17T11:38:54Z",
  "confidence": 0.95,
  "confidence_label": "high",
  "confidence_basis": ["source:primary_endpoint", "type:known_mapping",
                       "document:reference_present", "date:present",
                       "entity:id_present"],
  "entity": {
    "name": "Apple Inc.",
    "id": "0000320193",
    "id_scheme": "SEC_CIK",
    "jurisdiction": "US",
    "entity_type": "operating",
    "identifiers": {"ticker": "AAPL", "exchange": "Nasdaq", "sic": "3571",
                    "sic_description": "Electronic Computers",
                    "state_of_incorporation": "CA", "fiscal_year_end": "0925"}
  },
  "event": {
    "type": "material_event",
    "subtype": "8-K",
    "title": "8-K — other material event — Apple Inc.",
    "occurred_on": "2026-11-09",
    "published_at": "2026-11-09T21:30:40Z",
    "date_precision": "second",
    "period_end": "2026-11-05",
    "amount": null,
    "currency": null,
    "amount_basis": null,
    "details": {"form": "8-K", "accession_number": "0001140361-26-042798",
                "items": ["8.01", "9.01"],
                "item_labels": ["other_material_event",
                                "financial_statements_and_exhibits"],
                "primary_document": "ef20085077_8k.htm",
                "file_number": "001-36743", "is_xbrl": true}
  },
  "attribution": "U.S. Securities and Exchange Commission, EDGAR (U.S. public domain)",
  "license": "public-domain"
}
```

Field notes:

| Field | Meaning |
|---|---|
| `event_id` | Format: `<source>:<entity>:<source-native-id>`. Stable across runs. Serves as the billing idempotency key. |
| `source_url` | Canonical, authoritative URL for this exact record. Manually verifiable. |
| `fetched_at` | UTC timestamp when this Actor read the source (second precision). |
| `confidence` | Deterministic score from 0.35–0.95. See details below. |
| `confidence_basis` | Positive and negative signals used to compute the confidence score. |
| `event.type` | `material_event`, `periodic_report`, `securities_offering`, `shareholder_meeting`, `delisting`, `deregistration`, `late_filing`, `ownership_stake`, `holdings_report`, `confirmation_statement`, `accounts_filed`, `name_change`, `officer_change`, `address_change`, `charge_created`, `capital_change`, `insolvency`, `opportunity`, `award`, `pipeline`, `correction`, `modification`, `market_consultation`, `qualification_system`, `change`, `other` |
| `event.occurred_on` | Filing or publication date (`YYYY-MM-DD`). |
| `event.published_at` | Source timestamp when available. Defaults to `occurred_on` with `date_precision: "day"` if the source omits time. |
| `event.amount` / `currency` | TED lot estimate (sum of lots) or awarded value; `null` otherwise. EDGAR and CH filings rarely state amounts; this Actor does not extract figures from document bodies. |
| `event.details` | Source-specific fields retained after normalization. |

#### Confidence rule

```
score = 0.95
        - 0.25  event type not in the source's known mapping
        - 0.15  no primary document reference in the source record
        - 0.10  no event date
        - 0.10  no stable entity identifier
clamped to [0.35, 0.95], rounded to 2 decimals
label: >= 0.85 high, >= 0.60 medium, else low
```

`confidence` measures **record completeness and directness**. It does not evaluate event newsworthiness or verify underlying claims. A 0.95 score indicates that the official endpoint specified the event type, linked a document, and provided a date and a registry ID. Document contents represent the issuer's claims, not this Actor's.

### Input

The `source` field is required. Each source requires specific additional fields.

```json
{
  "source": "sec-edgar",
  "companies": ["AAPL", "0000789019"],
  "forms": ["8-K", "10-K", "10-Q"],
  "since": "2026-10-01",
  "max_events": 100,
  "contact_email": "data-ops@your-domain.example"
}
```

```json
{
  "source": "companies-house",
  "companies": ["00000006", "SC123456"],
  "categories": ["accounts", "confirmation-statement", "officers"],
  "since": "2026-08-01",
  "companies_house_api_key": "<your key>",
  "max_events": 50
}
```

```json
{
  "source": "ted",
  "cpv_codes": ["72000000", "48000000"],
  "buyer_countries": ["DEU", "FRA"],
  "since": "2026-10-01",
  "only_new": true,
  "state_key": "it-buyers",
  "max_events": 200
}
```

```json
{
  "source": "all",
  "companies": ["AAPL"],
  "cpv_codes": ["72000000"],
  "buyer_countries": ["DEU"],
  "since": "2026-10-01",
  "max_events": 20,
  "contact_email": "data-ops@your-domain.example"
}
```

`all` semantics:

- SEC EDGAR and TED always run. Companies House runs only when `companies_house_api_key` is present.
- The run passes `companies` to both EDGAR and Companies House. EDGAR treats UK company numbers like `00000006` as CIKs and emits an expected `CIK 0000000006: HTTP 404` warning. This does not interrupt TED or Companies House.
- If a source fails (`401`, `404`, timeout, missing `companies`), the run logs a warning, continues with remaining sources, and exits successfully with any collected events. `stats.sources` reports `ok`, `skipped`, `error`, `events`, `requests`, and per-source elapsed time.
- `max_events` applies to the merged dataset: the run deduplicates by `event_id`, sorts newest first (`published_at`, falling back to `occurred_on`), truncates the output, and reports the truncation.

The JSON schema in [`input_schema.json`](input_schema.json) is machine-readable. Every property defines a `title` and `description`. Agents can construct payloads directly without reading this README.

### Call via REST API

```bash
curl -X POST "https://api.apify.com/v2/acts/pearlescent_cupola~official-filing-change-feed/runs?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"input":{"source":"sec-edgar","companies":["AAPL"],"since":"2026-10-01","max_events":20}}'
## then
curl "https://api.apify.com/v2/datasets/<datasetId>/items?token=$APIFY_TOKEN&format=json"
```

### Billing

Billing applies per **emitted** event: you pay only for rows that reach the dataset. Runs returning no results are free. Skipped or failed sources incur no charges, as the charge loop processes only produced events.

The Actor page displays the current price or indicates if the Actor is free. When billing is enabled, it details the billing events and the minimum start fee. Set `max_events` to cap billable events per run and prevent unexpected charges.

The Actor charges before pushing each item. It uses `event_id` as an idempotency key to prevent duplicate charges on retried pushes. If a run reaches the user's spending limit, the Actor stops pushing and leaves the cursor unadvanced, allowing the next run to resume from the same point.

### Data licences and attribution

Every item includes `attribution` and `license` fields. If you redistribute the output:

- **SEC EDGAR** — `license: "public-domain"`. U.S. federal government works are not subject to copyright in the United States (17 U.S.C. §105). Pages checked on sec.gov on 2026-11-17 show no explicit licence statement; this status relies on statutory law rather than a site grant. Other jurisdictions may treat the text differently. Retain `source_url` so recipients can verify data directly against EDGAR. The SEC requires automated clients to declare contact details in the User-Agent and blocks unclassified bots (see `contact_email`).
- **Companies House** — `license: "ogl-3.0"`. The Open Government Licence v3.0 permits reuse, including commercial use. Retain the attribution statement and do not imply official endorsement: *"Contains public sector information licensed under the Open Government Licence v3.0."* Do not present the data as an official Companies House product, and do not use Companies House logos.
- **TED** — `license: "eu-reuse-2011-833"`. Commission Decision 2011/833/EU permits reuse of European Commission documents with attribution to TED. Full notice bodies may contain third-party material (such as buyer logos or maps) that the Commission cannot license. This Actor extracts only the metadata fields listed in `event.details`, not notice bodies. The TED legal-notice page returned an empty 202 response during Actor build, so the current notice wording remains **not verified**. Re-check it before redistributing large volumes commercially.
- Reselling raw data as a standalone dataset is your decision and risk. This Actor normalises data; it is not a rights holder.

### Rate limits, retries and proxies

| Source | Documented / observed limit | What this Actor does |
|---|---|---|
| SEC EDGAR | Fair access: 10 requests/second and a declared User-Agent (sec.gov webmaster FAQ, read 2026-11-17) | Sends one submissions request per company, plus one per archive batch when `since` is old. Enforces 0.15 s pacing and includes the declared contact in the UA. |
| Companies House | 600 requests / 5 minutes per key, then HTTP 429 (developer guidelines, read 2026-11-17) | Enforces 0.5 s pacing (≤ 2 req/s). Backs off on 429, then returns a `source error`. |
| TED | No published quota found on the pages reachable during this build | Enforces 0.5 s pacing. Fetches 100 notices per page. |

Retry policy: **at most 2 retries per request** on 429, 5xx, or network errors, using exponential backoff (1 s, 2 s, capped 8 s) or the `Retry-After` value. The Actor never retries 403 errors. If a source blocks the platform IP, the run fails immediately with the upstream status instead of escalating. The Actor uses no residential or rotating proxies.

### Known limitations

- **Companies House live calls are unverified.** Development used a stub transport without an API key. Offline tests verify request construction, pagination, auth headers, and 401/404 handling. You must provide your own free key.
- **Companies House lacks per-filing public URLs.** `source_url` points to the company's filing-history page. `event.details.document_metadata_url` provides the per-document metadata URL (requires an API key).
- **`all` mode shares one `companies` list across EDGAR and Companies House.** An identifier formatted for one registry may trigger an expected, harmless warning in the other (see `all` semantics). `stats.sources` indicates which source produced each record.
- **TED buyer identifiers are not global entity IDs.** The Actor passes through the raw TED `buyer-identifier` (a national registration number or a UUID). Some notices omit it.
- **`event.amount` is not extracted from documents.** This value is `null` for EDGAR and Companies House. Extracting numbers from PDF or HTML files requires a separate parser and yields lower confidence.
- **No Companies House streaming.** Although `stream.companieshouse.gov.uk` exists (returns 401 without a key), this Actor polls the REST filing-history API. Streaming requires a separate worker architecture.
- **No SEC archive retrieval beyond the 1,000 most recent filings per company without `max_archive_files`.** Increase `max_archive_files` (0–10) to backfill older records.

### Privacy

- The Actor strips personal data fields during normalization instead of downstream filtering.
- The Actor rejects Forms 3/4/5/144 with an input error.
- The Actor drops Companies House `description_values` keys matching `officer|secretary|director|person|forename|surname|individual|pension`. Items record `privacy:person_fields_stripped` in `confidence_basis`.
- The Actor does not request email, phone, address, or date-of-birth fields from any source. It does not copy business registry addresses.

### Disclaimer

This Actor provides normalized pointers to official records. It does not provide investment, legal, tax, or sanctions advice. It does not replace reviewing the filed document. Verify any decision against `source_url`. Trademarks and registry names belong to their respective owners. This Actor is not affiliated with the SEC, Companies House, or TED.

# Actor input Schema

## `source` (type: `string`):

Registry to read. The 'all' option queries SEC EDGAR and EU TED in one run. It includes UK Companies House only if you supply a Companies House API key; otherwise, it skips Companies House with a warning. The three single-source values run one registry each, which remains the default. EDGAR and TED require no key; Companies House does.

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

Entities to monitor. SEC EDGAR: tickers or CIKs, e.g. \['AAPL','0000789019']. Companies House: company numbers, e.g. \['00000006','SC123456']. Ignored for TED (use buyer_countries / cpv_codes instead). In 'all' mode, this list feeds EDGAR and Companies House only.

## `since` (type: `string`):

ISO date (YYYY-MM-DD). Defaults: 30 days back for SEC EDGAR, 90 days for Companies House, 7 days for TED. The window is inclusive.

## `until` (type: `string`):

Optional ISO date (YYYY-MM-DD), inclusive. Leave empty to read up to the current date.

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

SEC EDGAR only. Leave empty to use the default corporate set (8-K, 10-K, 10-Q, 20-F, 6-K, S-1/S-3, DEF 14A, 25, 15-12B, 13F, SC 13D/G, ...). Insider forms 3/4/5/144 are rejected by design because they contain personal data.

## `categories` (type: `array`):

Companies House only. Optional subset of: accounts, address, annual-return, capital, change-of-name, incorporation, liquidation, mortgage, officers, resolution, confirmation-statement. Empty includes all categories.

## `cpv_codes` (type: `array`):

TED only. CPV classification codes, 2-8 digits (for example '72000000' for IT services). Multiple codes are combined using OR logic.

## `buyer_countries` (type: `array`):

TED only. Three-letter buyer country codes (e.g., 'DEU', 'FRA'). Multiple codes use OR logic.

## `notice_types` (type: `array`):

TED only. Raw TED notice types, such as can-standard (contract notice), cn-standard (award), pin-only (prior information), and corr (corrigendum). Leave empty to include all types.

## `keyword` (type: `string`):

TED only. Searches notice titles and descriptions by full-text keyword, e.g. 'semiconductor'. Passes quoted text as a TED FT~ expression.

## `max_events` (type: `integer`):

Maximum dataset items for this run across all selected sources in 'all' mode (1-5000). Each emitted event is one billable unit, so this also caps the run cost. When the merged result is larger, the run keeps the newest events.

## `min_confidence` (type: `number`):

Drops events with a confidence score below this value (0-1). A value of 0.85 keeps only records with a known event type, a document reference, a date, and an entity id.

## `only_new` (type: `boolean`):

When enabled, the Actor stores a cursor per (source, state_key) in its key-value store and returns only events published after the last run. Disable for backfills and the first run.

## `state_key` (type: `string`):

Only used with only_new. Use a separate namespace per watchlist to maintain independent cursors.

## `contact_email` (type: `string`):

Email address included in the HTTP User-Agent header. SEC EDGAR requires a declared contact under its fair-access policy. Use a role-based address you own, never a personal one.

## `companies_house_api_key` (type: `string`):

Required only for the Companies House source. Optional in 'all' mode: without it, Companies House is skipped instead of failing. The Actor sends this key as the HTTP Basic username and does not write it to the dataset. Create it at https://developer.company-information.service.gov.uk/ (free, instant).

## `include_raw` (type: `boolean`):

Attach the untouched source record under item.raw for audit. This makes dataset items several times larger and increases storage costs.

## `max_pages` (type: `integer`):

Sets a safety cap on upstream pages fetched per run. Applies to Companies House filing-history pages (100 items each) or TED search pages. Default: 5.

## `max_archive_files` (type: `integer`):

SEC EDGAR only. Loads older archive batches when 'since' is older than the 1,000 most recent filings. Default is 2 (about 2,000 extra filings per company).

## Actor input object example

```json
{
  "source": "sec-edgar",
  "companies": [
    "AAPL"
  ],
  "forms": [],
  "categories": [],
  "cpv_codes": [],
  "buyer_countries": [],
  "notice_types": [],
  "max_events": 100,
  "min_confidence": 0,
  "only_new": false,
  "state_key": "default",
  "include_raw": false,
  "max_pages": 5,
  "max_archive_files": 2
}
```

# Actor output Schema

## `events` (type: `string`):

Normalized filing and tender events, one dataset item each.

# 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 = {
    "companies": [
        "AAPL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pearlescent_cupola/official-filing-change-feed").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 = { "companies": ["AAPL"] }

# Run the Actor and wait for it to finish
run = client.actor("pearlescent_cupola/official-filing-change-feed").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 '{
  "companies": [
    "AAPL"
  ]
}' |
apify call pearlescent_cupola/official-filing-change-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pearlescent_cupola/official-filing-change-feed"
        }
    }
}
```

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/T7NKTEQcTN6Wsgo21/builds/VQDRNkIErpIWQXMpQ/openapi.json
