# EU TR Organisation ID Portfolio Status Event Monitor (`plym-actor-factory/eu-tr-org-portfolio-status-monitor`) Actor

Watch Transparency Register identificationCodes and emit typed REMOVED / APPEARED / LAST\_UPDATE\_CHANGED / CATEGORY\_CHANGED events from the official EU open-data XML snapshot. Not a full-register lobby dump; not LobbyFacts scrape; not HTML UI scrape.

- **URL**: https://apify.com/plym-actor-factory/eu-tr-org-portfolio-status-monitor.md
- **Developed by:** [Daniel Witney](https://apify.com/plym-actor-factory) (community)
- **Categories:** AI, Automation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 eu tr org status event delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## EU Transparency Register Organisation ID Portfolio Status Event Monitor

Watch a book of **EU Transparency Register `identificationCode`s** and emit typed **REMOVED / APPEARED / LAST\_UPDATE\_CHANGED / CATEGORY\_CHANGED** events when the official **open-data organisations XML** changes — not another full-register lobbyist directory dump, not an HTML scrape of the Transparency Register UI, and **not** unpaid LobbyFacts as primary.

### What this Actor does

1. Takes your watchlist (`identificationCodes` — exact official keys).
2. In **live** mode, downloads the official EU open-data organisations XML once:
   - `https://transparency-register.europa.eu/odplastorganisationxml_en` (data.europa.eu Transparency Register dataset distribution; redirects to ODP `XML/latest`)
3. Matches **only** watched `identificationCode`s (portfolio mode — not “download all ~15–18k orgs as product rows”).
4. Diffs against a durable Key-Value Store checkpoint.
5. Pushes **only** material status/update events for organisations on your book (PPE), plus one non-billable `RUN_STATUS` health row.

**First observation of an identificationCode is baseline only** (no charge). Quiet days ≈ $0 product charges.

### Coverage honesty (read this)

| In scope | Out of scope |
|----------|----------------|
| Official **EU Transparency Register** organisations open-data **XML** | HTML scrape of transparency-register.europa.eu search UI |
| Exact **`identificationCode`** portfolio watch | Full-register lobby dump billed per org row |
| Presence = present vs absent from **active export** | Invented “suspended” statuses not in the file |
| Material `lastUpdateDate` / `registrationCategory` updates | Unpaid LobbyFacts scrape / US LDA filing twin (#21) |
| Periodic official export cadence | Guaranteed intra-day mutations |

**Matching honesty:** this Actor matches **`identificationCode` only** (durable official key). It does **not** fuzzy-match organisation names. Cite EU Transparency Register + export date (`as_of` / `exportDate`).

### Input

| Field | Notes |
|-------|--------|
| `identificationCodes` | Official IDs (`0801162959-21`). Exact match. |
| `signalGroups` | `presence` (APPEARED/REMOVED), `update` (LAST\_UPDATE / CATEGORY). |
| `sourceMode` | `fixture` (default — Store health) or `live` (official XML; **no API key**). |
| `emitFixtureDemoEvents` | Default **false**. Only enable for local demos; Store auto-tests must stay false. |
| `maxRunSeconds` | Default **300** — XML is ~100 MB. |

### Output events (billable)

| `event_type` | When |
|--------------|------|
| `EUTR_APPEARED` | Watched ID absent → present on export |
| `EUTR_REMOVED` | Watched ID present → absent from export |
| `EUTR_LAST_UPDATE_CHANGED` | `lastUpdateDate` changed while still present |
| `EUTR_CATEGORY_CHANGED` | `registrationCategory` changed while still present |

Every successful run also pushes **`RUN_STATUS`** with `billable: false` (`FIXTURE_HEALTH` / `MONITOR_IDLE` / `CATCHUP_COMPLETE` / `HEALTH_OK`).

### Pricing (PPE)

| Event | Price |
|-------|-------|
| `eutr-org-status-event-delivered` | **$0.02** ($20 / 1k) |
| `apify-actor-start` | **$0.00005** |

You pay when an organisation **on your watchlist** has a material presence/update event and we deliver it. Not charged: baselines, quiet books, duplicates, invalids, `RUN_STATUS`, fixture health.

### Modes

- **Fixture (default):** no network; emits `RUN_STATUS` / `FIXTURE_HEALTH` only → **0** product charges (Store daily auto-test safe).
- **Live:** official EU TR open-data XML — **no key required**.

### Legal

EU Transparency Register open data on data.europa.eu for reuse (Commission reuse notice). Cite EU Transparency Register + export date. Default product fields: `identificationCode`, names, category, dates. Not a LobbyFacts substitute. Do not invent statuses absent from the export.

### Not this product

- `jungle_synthesizer/eu-transparency-register-scraper`, `crawlerbros/eu-lobbying-transparency-register-scraper` — **full-register dumps / research extracts** (different job; 0–1 MAU).
- US LDA filing watch (#21) — different statute / jurisdiction.
- HTML scrape of the Transparency Register UI; unpaid LobbyFacts scrape as primary.

### Example input (live baseline)

```json
{
  "identificationCodes": ["0801162959-21", "7410939793-88"],
  "sourceMode": "live",
  "signalGroups": ["presence", "update"],
  "resumeFromCheckpoint": true,
  "emitFixtureDemoEvents": false,
  "maxRunSeconds": 300
}
```

First live run stores baselines only. Subsequent scheduled runs emit events when presence or material fields flip on the book.

# Actor input Schema

## `identificationCodes` (type: `array`):

Official EU Transparency Register identificationCodes to monitor (e.g. 0801162959-21). Exact key match only — not fuzzy name matching. Invalid/blank entries are skipped with no charge. Not a full-register dump — only IDs on the book are evaluated.

## `signalGroups` (type: `array`):

Which change groups to evaluate: presence (EUTR\_APPEARED / EUTR\_REMOVED), update (EUTR\_LAST\_UPDATE\_CHANGED / EUTR\_CATEGORY\_CHANGED). Default: both.

## `maxRunSeconds` (type: `integer`):

Wall-clock budget for XML download + watchlist diff. Official organisations XML is ~100 MB — allow enough headroom (default 300).

## `maxEvents` (type: `integer`):

Stop after this many unique change events are delivered (does not include RUN\_STATUS).

## `resumeFromCheckpoint` (type: `boolean`):

If true, resume entity snapshots and seen event\_uids from the default Key-Value Store.

## `sourceMode` (type: `string`):

fixture = local/CI / Apify Store daily auto-test default (no network; emits RUN\_STATUS only unless emitFixtureDemoEvents=true). live = official EU Transparency Register open-data XML (no API key). Not HTML scrape; not LobbyFacts.

## `emitFixtureDemoEvents` (type: `boolean`):

When sourceMode=fixture, if true push fabricated change events from local fixtures (unit/local demos only). Default false so Store daily auto-tests never emit fake EU TR events or charge eutr-org-status-event-delivered. Production: leave false and use sourceMode=live. SAMPLE rows only: demo events use placeholder entities (never real companies/IDs), are flagged sample=true / isSample=true, and are NEVER charged.

## `asOfHint` (type: `string`):

Optional as\_of label. Live mode prefers exportDate from the official XML metaData when present.

## `maxTotalChargeUsd` (type: `number`):

Optional soft budget hint for delivered change events. Platform ACTOR\_MAX\_TOTAL\_CHARGE\_USD also applies when set.

## `eutrXmlUrl` (type: `string`):

Optional override for the official organisations XML URL. Default: https://transparency-register.europa.eu/odplastorganisationxml\_en (data.europa.eu Transparency Register open data).

## Actor input object example

```json
{
  "identificationCodes": [
    "0801162959-21",
    "7410939793-88"
  ],
  "signalGroups": [
    "presence",
    "update"
  ],
  "maxRunSeconds": 300,
  "maxEvents": 500,
  "resumeFromCheckpoint": true,
  "sourceMode": "fixture",
  "emitFixtureDemoEvents": false
}
```

# Actor output Schema

## `OUTPUT` (type: `string`):

JSON summary: delivered, charged, runStatus, checkpoint, stats, EU TR coverage limits

# 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("plym-actor-factory/eu-tr-org-portfolio-status-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("plym-actor-factory/eu-tr-org-portfolio-status-monitor").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 '{}' |
apify call plym-actor-factory/eu-tr-org-portfolio-status-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plym-actor-factory/eu-tr-org-portfolio-status-monitor"
        }
    }
}
```

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/gPzCUjmu3ah1oEx6d/builds/XZjoytcJNrTbl1gjh/openapi.json
