# EU Tenders (TED) — Clean, Deduplicated & GDPR-safe (`hazel_bedstead/ted-tenders-clean`) Actor

EU tenders & awards from the official TED API, one row per procedure (corrections merged), placeholder values flagged, normalised buyer/winner name keys for CRM matching. Incremental alerts. No personal contact data. Free for now.

- **URL**: https://apify.com/hazel_bedstead/ted-tenders-clean.md
- **Developed by:** [Acut LaVie](https://apify.com/hazel_bedstead) (community)
- **Categories:** Lead generation, 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

## EU Tenders (TED) — Clean, Deduplicated & GDPR-safe

Get **EU public tenders and contract awards** from the official TED (Tenders Electronic Daily) API. Each procedure comes back as one clean row you can drop into a CRM, a spreadsheet or a daily alert. **Free to use for now.** You only pay Apify's platform usage, which is tiny because the Actor calls the official API (no browser, no proxies).

### What makes it different

#### 1. One row per procedure: corrections merged

On TED, every correction (corrigendum) or change notice is published as a **new notice** for the same procedure. About 3 in 10 competition notices are change notices. Most TED tools return all of them, so you get the same tender two or three times.

This Actor groups notices by `procedureId` and keeps only the **latest version**. The IDs it replaced are listed in `supersedesNoticeIds`. Change notices are always marked (`isChangeNotice`, `changesNoticeId`, `changeReason`), even when the original was published before your date window.

#### 2. Placeholder and impossible values are flagged, not passed through

Buyers often type junk into the value fields to get past mandatory checks: `0`, `1`, `-1`, `999999999`, or a "budget" of €50 billion. This Actor does not report these as money.

- `estimatedValue` / `awardedTotalValue` are set to `null` when the value is a placeholder. The published figure is kept in `estimatedValueRaw`.
- `dataQualityFlags` explains why. Value flags:

  - `estimated_value_zero`
  - `estimated_value_negative_placeholder`
  - `estimated_value_nines_placeholder` (99999, 999999999 …)
  - `estimated_value_implausibly_low` (under about €100)
  - `estimated_value_implausible_outlier` (€10bn or more)
  - the same set with an `awarded_value_` prefix, plus `tender_value_negative_placeholder`

  Date flags:

  - `deadline_before_publication`
  - `deadline_implausibly_far`
  - `dispatch_after_publication`
  - `impossible_date`
- Plausibility checks take the currency into account, so 50 billion HUF (about €125m) is not flagged. Values are never converted, though: they are reported as published, in the notice currency.
- Turn on **Drop rows with data-quality flags** to get only clean rows.

#### 3. Normalised buyer and winner names for grouping and CRM matching

`buyerNameKey` and `winners[].nameKey` are deterministic matching keys. They upper-case the name and strip accents, punctuation and legal forms (GmbH, SA, Lda, Sp. z o.o., Ltd, …). For example, `Accenture SL`, `ACCENTURE` and `Accenture, S.L.` all become `ACCENTURE`. Group by these keys to count contracts per buyer or competitor, or to match notices against the accounts in your CRM.

### Who it's for

- **Bid and tender consultants:** a daily feed of open calls in your clients' CPV codes and countries, with no duplicate corrections.
- **Sales teams selling to the public sector:** see which buyers are tendering for what you sell, and who keeps winning (award notices).
- **CRM and lead-generation pipelines:** clean, organisation-level rows with stable name keys, ready to upsert.
- **Analysts and journalists:** spend by sector and country without placeholder values distorting the totals.

### Input examples

Open IT tenders in Portugal and Spain:

```json
{ "cpvPrefixes": ["72", "48"], "countries": ["PT", "ES"], "onlyOpen": true, "maxItems": 200 }
```

Who won software contracts in Germany in the last 30 days:

```json
{ "keywords": ["software"], "countries": ["DE"], "noticeCategories": ["award"], "lastDays": 30 }
```

Main filters:

- keywords (OR-combined; multi-word terms are searched as phrases)
- buyer countries (2- or 3-letter ISO codes)
- CPV prefixes (`72` matches every 72xxxxxx code)
- notice categories (competition, award, modification, prior-information, completion)
- last N days, or a from/to date
- only open tenders
- min/max estimated value
- max rows

### Output example (one row, shortened)

```json
{
  "noticeId": "730088-2026",
  "noticeUrl": "https://ted.europa.eu/en/notice/-/detail/730088-2026",
  "category": "competition",
  "publicationDate": "2026-10-22",
  "procedureId": "78dad3d8-5978-4f48-b14d-7f4b66b03d01",
  "isChangeNotice": true,
  "changeReason": "cor-buy",
  "supersedesNoticeIds": [],
  "title": "EMPREITADA DE REABILITAÇÃO DO ESTABELECIMENTO PRISIONAL CADEIA DE APOIO DA HORTA",
  "titleEnglishHeading": "Portugal – Prison building construction work – EMPREITADA DE REABILITAÇÃO …",
  "buyerName": "Município da Horta",
  "buyerNameKey": "MUNICIPIO DA HORTA",
  "buyerCountry": "PT",
  "cpvMain": "45216113",
  "estimatedValue": 1000000,
  "estimatedValueCurrency": "EUR",
  "estimatedValueRaw": 1000000,
  "submissionDeadline": "2026-11-16",
  "isOpen": true,
  "winners": [],
  "dataQualityFlags": [],
  "source": "Source: TED (Tenders Electronic Daily), published by the Publications Office of the European Union, © European Union, https://ted.europa.eu …"
}
```

Award notices also carry `winners: [{ "name", "nameKey", "country", "size" }]` and `awardedTotalValue` / `awardedCurrency`. Other fields:

- `pdfUrl`, `xmlUrl`
- `dispatchDate`, `noticeType`, `procedureType`, `contractNature`
- `cpvCodes`, `performanceCountries`, `lotsCount`
- `buyerCity`, `buyerLegalType`
- `frameworkAgreement`

### Daily alerts: "only new since last run"

Turn on **Incremental** and give the alert a **State name** (e.g. `pt-it-tenders`), then add an Apify **Schedule** (e.g. every weekday at 08:00). Each run returns only notices you haven't received before. If a run hits *Max rows*, the remaining notices are delivered next time. Connect the dataset to email, Slack, Google Sheets, Make or Zapier with Apify integrations. Use a different State name for each saved search.

### GDPR-safe by default

- The Actor never requests contact persons, emails or phone numbers from TED. Rows contain organisation-level data only.
- A winner's name can occasionally be a sole trader (a natural person). If you process winners, you need a lawful basis. Set **Include winner organisations** to off to drop them.

### FAQ

**Is it really free?** Yes, for now. There is no Actor fee; you only pay Apify platform usage. If pricing is introduced later, Apify notifies users in advance.

**How fresh is the data?** Live from the TED API at run time. TED publishes new notices every working day.

**Which notices are covered?** eForms-era notices (TED from November 2023 onward) from the EU, EEA and other countries that publish on TED. Below-threshold national tenders that never reach TED are not included.

**Why is `estimatedValue` null?** Either the buyer published no value, or the value was a placeholder. Check `dataQualityFlags` and `estimatedValueRaw`.

**Are corrections merged across runs?** Within a run, all versions of a procedure collapse into the latest one. If a correction appears later, an incremental run returns it as an updated row (`isChangeNotice: true`), so you can overwrite the earlier row by `procedureId`.

**Are values converted to EUR?** No. Values are reported in the notice currency. Currency is only used to judge plausibility.

**Is this an official copy?** No. Always check the original notice (`noticeUrl`) before bidding.

### Source and licence

Source: TED (Tenders Electronic Daily), published by the Publications Office of the European Union, © European Union, https://ted.europa.eu. Notices are reused under Commission Decision 2011/833/EU, which allows commercial and non-commercial reuse. Every row carries this attribution. Records are reformatted and abridged. This Actor is not affiliated with or endorsed by the Publications Office of the European Union or the European Commission.

# Actor input Schema

## `keywords` (type: `array`):

Full-text search terms, OR-combined. Multi-word terms are searched as phrases.

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

ISO codes, e.g. PT, ES, DE (2- or 3-letter).

## `cpvPrefixes` (type: `array`):

e.g. 72 (IT services), 48 (software), 4521. Prefixes match all sub-codes.

## `noticeCategories` (type: `array`):

competition = open calls; award = contract awards (winners & values).

## `lastDays` (type: `integer`):

Ignored if 'Published from' is set.

## `publishedFrom` (type: `string`):

Overrides 'last N days'. Format YYYY-MM-DD.

## `publishedTo` (type: `string`):

Optional upper bound, YYYY-MM-DD.

## `onlyOpen` (type: `boolean`):

Keep only competition notices whose earliest submission deadline is today or later.

## `minEstimatedValue` (type: `integer`):

Filter on the procedure's estimated value (as published; currency as in notice).

## `maxEstimatedValue` (type: `integer`):

Rows with a larger cleaned estimated value are dropped.

## `dedupeByProcedure` (type: `boolean`):

Corrigenda create new notices for the same procedure; keep only the latest and list superseded IDs.

## `excludeFlagged` (type: `boolean`):

Drop rows where TED values look like placeholders (0, 1, -1, 99999…, implausibly low or > €10bn) or dates are impossible (deadline before publication, etc.).

## `includeWinners` (type: `boolean`):

Award notices: winner organisation name, normalised key, country, size. Never emails or phone numbers.

## `incremental` (type: `boolean`):

Remembers what it already returned (per 'State name') — ideal for scheduled daily alerts.

## `stateName` (type: `string`):

Use different names to keep separate 'already seen' memories for different alerts.

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

Maximum rows in the dataset.

## Actor input object example

```json
{
  "keywords": [
    "software"
  ],
  "noticeCategories": [
    "competition"
  ],
  "lastDays": 7,
  "onlyOpen": false,
  "dedupeByProcedure": true,
  "excludeFlagged": false,
  "includeWinners": true,
  "incremental": false,
  "stateName": "default",
  "maxItems": 1000
}
```

# Actor output Schema

## `tenders` (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 = {
    "keywords": [
        "software"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hazel_bedstead/ted-tenders-clean").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 = { "keywords": ["software"] }

# Run the Actor and wait for it to finish
run = client.actor("hazel_bedstead/ted-tenders-clean").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 '{
  "keywords": [
    "software"
  ]
}' |
apify call hazel_bedstead/ted-tenders-clean --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hazel_bedstead/ted-tenders-clean"
        }
    }
}
```

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/4oy0jRjfBtXT2vFV7/builds/o53hqX3j5ggnKRUyG/openapi.json
