# EU TED & UK Find a Tender Corrigendum & Award Radar (`duypham/eu-uk-tender-corrigendum-delta`) Actor

Keyless stateful procurement intelligence Actor for EU TED API v3 (eForms) and UK Find a Tender OCDS API. Tracks tender deadline/value modifications (Corrigenda) and Contract Award Notices with built-in GDPR personal email redaction.

- **URL**: https://apify.com/duypham/eu-uk-tender-corrigendum-delta.md
- **Developed by:** [Duy Phạm](https://apify.com/duypham) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.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

## EU TED & UK Find a Tender Corrigendum Diff & Contract Award Radar (`eu-uk-tender-corrigendum-delta`)

Keyless, stateful European & UK public procurement intelligence Actor for **n8n**, **Make**, and **Clay** workflows.

### Key Capabilities

1. **EU TED API v3 (eForms) + UK Find a Tender OCDS API:** Queries official REST endpoints without fragile HTML scraping (`<= 5 req/s`).
2. **Corrigendum / Amendment Diffing (`CORRIGENDUM_DIFF`):** Links notice chains by `ted:<procedure-identifier>` and `ukfts:<ocid>` to calculate `deadlineExtendedDays` and value changes.
3. **24-Language Contract Award Normalization (`CONTRACT_AWARD`):** Extracts winning prime contractors (`awardedSuppliers`) for B2B subcontracting outreach while masking personal civil-servant emails by default (`redactPersonalContacts: true`).

### Transparent Pay-Per-Event (PPE) Pricing (`HYBRID_TIERED`)

- `actor-start`: **$0.005** per valid run (`$0.00` on `INPUT_VALIDATION_ERROR` or `dryRun: true`)
- `tender-corrigendum-emitted`: **$0.008** per net-new Corrigendum / Amendment diff record
- `tender-award-emitted`: **$0.003** per net-new Contract Award Notice record

### Data Provenance, Privacy-by-Design & Removal Requests (SLA <= 48h)

This Actor processes strictly public-sector institutional disclosures from official government open-data endpoints (`17 U.S.C. § 105`, `EU Commission Decision 2011/833/EU`, `UK Open Government Licence v3.0`). By default, built-in privacy filters (`redactPersonalContacts: true`, `redactResidentialStreets: true`, and individual recipient exclusions) strip personal contact emails and residential street addresses at parse time. If an organization or individual wishes to request the suppression of a specific CIK, OCID, Publication Number, Notice ID, or UEI from normalized outputs, please open an issue labeled `privacy-takedown` on the linked repository or contact the publisher via Apify Store. Valid suppression requests are processed within **48 hours**.

# Actor input Schema

## `sources` (type: `array`):

Selects which official procurement APIs to query: EU_TED (EU Tenders Electronic Daily API v3) and/or UK_FTS (UK Find a Tender OCDS API). Both portals are queried keyless over official REST endpoints (Decision 2011/833/EU and UK OGL v3.0).

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

Emits records when an active tender publishes a deadline/value modification (CORRIGENDUM_DIFF) or announces a winning prime contractor for B2B subcontracting outreach (CONTRACT_AWARD).

## `cpvCodes` (type: `array`):

Optional list of Common Procurement Vocabulary prefixes (e.g., \['72000000', '48000000'] for IT services and software) to narrow tender ingestion at the API query layer.

## `countries` (type: `array`):

Optional list of 2-letter/3-letter ISO country codes (e.g., \['DE', 'FR', 'NL', 'GB']) to restrict contracting authorities by geography.

## `redactPersonalContacts` (type: `boolean`):

Masks individual civil-servant names and personal-pattern email addresses (firstname.lastname@) in buyer/winner contact blocks while preserving legal entity names, VAT/company IDs, and generic department desks (procurement@, tenders@).

## `lookbackHours` (type: `integer`):

Number of hours back from current UTC time to fetch notices from EU TED and UK Find a Tender.

## `deltaStateMode` (type: `string`):

Controls whether the Actor emits only newly created or modified records since the last checkpoint (stateful_delta_only) or re-emits all matching records in the lookback window (full_snapshot).

## `customStateKey` (type: `string`):

Optional identifier to isolate the stateful checkpoint cursor in the apify-delta-fleet-state Named Key-Value Store when running multiple parallel n8n/Make workflows.

## `maxDeltaRecords` (type: `integer`):

Hard ceiling on the number of delta records pushed and billed per run to strictly cap your Pay-Per-Event spend.

## `dryRun` (type: `boolean`):

Validates upstream connectivity and counts how many net-new delta records match your filters without mutating your saved checkpoint cursor. Incurs $0.00 in Pay-Per-Event charges.

## Actor input object example

```json
{
  "sources": [
    "EU_TED",
    "UK_FTS"
  ],
  "signalTypes": [
    "CORRIGENDUM_DIFF",
    "CONTRACT_AWARD"
  ],
  "cpvCodes": [],
  "countries": [],
  "redactPersonalContacts": true,
  "lookbackHours": 24,
  "deltaStateMode": "stateful_delta_only",
  "customStateKey": "",
  "maxDeltaRecords": 100,
  "dryRun": false
}
```

# Actor output Schema

## `deltaDataset` (type: `string`):

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("duypham/eu-uk-tender-corrigendum-delta").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("duypham/eu-uk-tender-corrigendum-delta").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 duypham/eu-uk-tender-corrigendum-delta --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,duypham/eu-uk-tender-corrigendum-delta"
        }
    }
}
```

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/RhysK2Hb97wwZ35mq/builds/8XHoSll6EcTy3Ta0M/openapi.json
