# UK Packaging Reprocessor & Exporter Register Change Signals (`starshaped_bullsnake/uk-packaging-reprocessor-exporter-change-signals`) Actor

- **URL**: https://apify.com/starshaped\_bullsnake/uk-packaging-reprocessor-exporter-change-signals.md
- **Developed by:** [Starshape Tools](https://apify.com/starshaped_bullsnake) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 packaging reprocessor/exporter change signals

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

## UK Packaging Reprocessor & Exporter Registration & Accreditation Change Signals

Monitors the official UK-wide public register of packaging-waste reprocessors and exporters published by Defra. The Actor resolves the current CSV from the [official publication page](https://www.gov.uk/government/publications/public-register-of-reprocessors-and-exporters-of-uk-packaging-waste) on every live run; attachment URLs are not fixed in code. The page says the register is reviewed weekly and normally updated on Thursdays when changes occur, and also when an operator is suspended or cancelled.

### Identity and signals

`Registration number` is the continuity identity. Each registration contains deterministic sets plus `accreditationInstances[]`, keyed by source-literal `Accreditation No`; `Org ID` is retained only as a grouping/detail field. `Not set` accreditation values are retained. Signals are `REGISTRATION_ADDED`, `REGISTRATION_DETAILS_CHANGED`, `ACCREDITATION_GRANTED`, `ACCREDITATION_STATUS_CHANGED`, `TONNAGE_BAND_CHANGED`, `ACCREDITATION_NO_LONGER_LISTED`, and `REGISTRATION_NO_LONGER_LISTED`.

Absence means only “no longer listed”: it does not mean cancelled, suspended, or revoked. The Actor does not infer renewal from a changed accreditation number and does not monitor monthly or quarterly report submission columns.

### Runtime behaviour

The first successful live run creates a full baseline and emits zero Dataset items (`BASELINE_INITIALIZED`). An unchanged run also emits zero. `maxItems` limits Dataset output only; acquisition, validation, diffing, and snapshots always use the complete source. The run writes Dataset and `OUTPUT` before committing the compressed snapshot last.

Fail-closed guards cover unique source resolution, HTTP/file validity, required headers, registration-key nulls and conflicts, schema signature, minimum rows/entities, previous/current collapse, and mass disappearance. A failure reports `SOURCE_ANOMALY`, emits no business signals, and preserves the previous accepted snapshot.

### Sample mode and privacy

Choose `mode=sample` for a deterministic, non-empty demonstration through the production normalise/diff path. It performs no external HTTP, does not open the production named KVS, and never mutates a production snapshot.

The snapshot excludes registered-office, head-office, detailed site-address, contact, phone, email, and report-submission fields. Dataset `before`/`after` objects contain only compact monitored fields.

### Legal and limitations

Source material is Crown copyright and is reused under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). Attribution: “Contains public sector information licensed under the Open Government Licence v3.0.” The source page showed no third-party exception when verified on 18 September 2026.

The Actor reports publication changes, not legal advice or real-time regulatory status. Source corrections can appear as signals, and no event is emitted while the publication is unchanged.

# Actor input Schema

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

Live official comparison or isolated sample demonstration.

## `signalTypes` (type: `array`):

Optional signal-type filter.

## `registrationNumbers` (type: `array`):

Optional official registration-number filter.

## `baselineOnly` (type: `boolean`):

Refresh the full baseline without emitting business signals.

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

Dataset output limit only; the full validated snapshot is retained.

## Actor input object example

```json
{
  "mode": "sample",
  "baselineOnly": false,
  "maxItems": 30
}
```

# Actor output Schema

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

No description

# 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 = {
    "mode": "sample",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("starshaped_bullsnake/uk-packaging-reprocessor-exporter-change-signals").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 = {
    "mode": "sample",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("starshaped_bullsnake/uk-packaging-reprocessor-exporter-change-signals").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 '{
  "mode": "sample",
  "maxItems": 30
}' |
apify call starshaped_bullsnake/uk-packaging-reprocessor-exporter-change-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,starshaped_bullsnake/uk-packaging-reprocessor-exporter-change-signals"
        }
    }
}
```

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/vFAf8oDvdyEML5u2K/builds/Wq9L8Tw38cNJxnVUu/openapi.json
