# EU TED Public Tenders Scraper (`chrisrosil/eu-ted-public-tenders-scraper`) Actor

Search EU TED public procurement notices via the official TED Search API. Filter by country, CPV, dates; get normalized JSON with deadlines, buyers, and document links. HTTP-only.

- **URL**: https://apify.com/chrisrosil/eu-ted-public-tenders-scraper.md
- **Developed by:** [Christopher Rosil](https://apify.com/chrisrosil) (community)
- **Categories:** Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 notice results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## EU TED Public Tenders Scraper

Search and download **European Union public procurement notices** from the official **TED (Tenders Electronic Daily)** portal — normalized JSON rows ready for CRM, alerts, or bid research.

Built for buyers who need structured EU tender data without writing TED expert queries by hand. Day-1 covers **TED Europa’s public Search API** (HTTP/JSON). No browser automation. No India GeM login.

#### What it returns

Each dataset item is one TED notice (normalized), including:

- `noticeId` — TED publication number (e.g. `579968-2026`)
- `title` — preferred-language title
- `buyerName` — contracting authority
- `buyerCountry` — ISO-3 country code
- `cpvCodes` — unique CPV list
- `publicationDate` — when TED published the notice
- `deadline` — earliest tender receipt deadline when present
- `estimatedValue` / `estimatedValueCurrency` — when present on the notice
- `totalValue` / `totalValueCurrency` — award/total value when present
- `procedureType` / `noticeType` / `contractNature`
- `documentUrls` — procurement document links when present
- `noticeUrl` — public TED HTML detail page
- `xmlUrl` — official XML link
- `source` — always `ted` on Day-1 (extensible later)

#### Copy-paste input example

```json
{
  "searchQuery": "software",
  "countries": ["DEU"],
  "cpvCodes": ["72000000"],
  "dateFrom": "2026-08-01",
  "scope": "ACTIVE",
  "preferredLanguage": "eng",
  "maxResults": 50,
  "dedupeBy": "notice-id"
}
```

#### Sample output (EXAMPLE — synthetic shape from live TED fields)

```json
{
  "noticeId": "579968-2026",
  "title": "Germany – IT services: consulting, software development, Internet and support – EXAMPLE framework IT consulting",
  "buyerName": "Example Universitätsmedizin Berlin",
  "buyerCountry": "DEU",
  "cpvCodes": ["72000000", "72220000", "72224000"],
  "publicationDate": "2026-08-21",
  "deadline": "2026-08-28",
  "estimatedValue": null,
  "estimatedValueCurrency": null,
  "totalValue": null,
  "totalValueCurrency": null,
  "procedureType": "open",
  "noticeType": "cn-standard",
  "contractNature": ["services"],
  "documentUrls": ["https://example-buyer-portal.example/tenderdocuments"],
  "noticeUrl": "https://ted.europa.eu/en/notice/-/detail/579968-2026",
  "xmlUrl": "https://ted.europa.eu/en/notice/579968-2026/xml",
  "source": "ted",
  "ojsNumber": null,
  "procedureId": null
}
```

*(Labeled EXAMPLE: field names and URL patterns match the live API; org names/titles may be shortened for Store readability.)*

#### Pricing (PPE)

| Event | Price | Notes |
| --- | --- | --- |
| `notice-result` | **$0.005 / notice** | Primary event — one charge per unique notice pushed |
| First **~50** results | **Free** | Configure free event count in Console monetization |
| Actor start | Free / platform default | Do not charge start-only |

One serious buyer pulling ~4,000 paid notices/month clears **~$20**. Charge path uses `Actor.pushData(row, "notice-result")` with in-run dedupe by `noticeId`; the Actor stops cleanly when `ACTOR_MAX_TOTAL_CHARGE_USD` / `eventChargeLimitReached` is hit.

#### Honest limitations

- **TED only on Day-1.** National portals (and India **GeM**) are out of scope for this release.
- **Public notices only** — anonymous Search API; no eSender submission, no unpublished drafts.
- **Rate limits** apply (TED fair use: e.g. ≤700 HTTP requests/minute). Large pulls use ITERATION pagination and may take time.
- Search returns **notice projections**, not a full lot-relational model. Lot-perfect joins may require following XML (optional future).
- `ACTIVE` scope is TED’s convenience set — not a guarantee every row is still open for bids; always check `deadline` / notice type.
- Historical depth via Search is roughly the **last 10 years** (`scope: ALL`), not a permanent legal archive.

#### Who it is for

Bid teams, market-intel analysts, and integrators who want EU OJ S / TED notices as clean JSON with filters for country, CPV, and dates.

#### Multi-portal roadmap (v1+)

Same dataset schema (`source` discriminator). Planned adapters (public HTTP where possible): **DTVP**, **evergabe**, **UNGM** / World Bank. v0 ships TED-class depth (batch queries, ITERATION pagination, normalize, cross-query dedup) so the product is not a thin single-endpoint wrapper.

#### Memory / runtime

- Default **256 MB** (min 256 / max 512). HTTP JSON only — no browser.
- One run = many queries/pages (batch input). Pagination mode: **ITERATION** (`iterationNextToken`).

#### Source

- TED Search API docs: https://docs.ted.europa.eu/api/latest/search.html
- Actor slug: `eu-ted-public-tenders-scraper`
- Publisher: `chrisrosil`

# Actor input Schema

## `searchQuery` (type: `string`):

Optional full-text keywords. Mapped to FT~"..." when expertQuery is empty.

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

Full-text keywords. Each keyword becomes its own TED expert query (FT~"keyword").

## `expertQuery` (type: `string`):

Optional raw TED expert-search string. When set, overrides structured filters.

## `advancedQueries` (type: `array`):

Optional raw TED expert-search strings. Runs in addition to keyword/CPV/country queries when expertQuery is empty.

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

ISO-3166-1 alpha-3 buyer country codes (e.g. DEU, FRA, NLD). Empty = any country.

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

CPV codes or prefixes (e.g. 72000000 or 72\*). Empty = any CPV.

## `buyerNameContains` (type: `string`):

Optional substring filter applied after fetch. Leave empty to skip.

## `dateFrom` (type: `string`):

Inclusive publication date lower bound. Converted to PD>=YYYYMMDD.

## `dateTo` (type: `string`):

Inclusive publication date upper bound.

## `publishedAfter` (type: `string`):

Alias for dateFrom in YYYYMMDD form.

## `noticeTypes` (type: `array`):

TED notice-type codes, e.g. cn-standard. Empty = any.

## `scope` (type: `string`):

TED scope: ACTIVE, LATEST, or ALL (~10y).

## `preferredLanguage` (type: `string`):

ISO-639-3 style TED language key (eng, deu, fra…). Falls back to first available.

## `maxResults` (type: `integer`):

Stop after this many unique notices (post-dedupe). Caps PPE spend.

## `maxPagesPerQuery` (type: `integer`):

Caps ITERATION pagination depth per query.

## `pageSize` (type: `integer`):

Notices requested per TED API call (1–250; keep fields×limit ≤ 10\_000).

## `dedupeBy` (type: `string`):

Field used for in-run idempotency. Default notice-id (publication-number).

## `onlyLatestVersions` (type: `boolean`):

Maps to TED onlyLatestVersions. Default false (keep versions for monitoring).

## Actor input object example

```json
{
  "searchQuery": "",
  "keywords": [
    "software"
  ],
  "expertQuery": "",
  "advancedQueries": [],
  "countries": [
    "DEU",
    "FRA"
  ],
  "cpvCodes": [
    "72000000"
  ],
  "buyerNameContains": "",
  "dateFrom": "",
  "dateTo": "",
  "publishedAfter": "",
  "noticeTypes": [],
  "scope": "ACTIVE",
  "preferredLanguage": "eng",
  "maxResults": 100,
  "maxPagesPerQuery": 10,
  "pageSize": 50,
  "dedupeBy": "notice-id",
  "onlyLatestVersions": false
}
```

# Actor output Schema

## `notices` (type: `string`):

Dataset items — one normalized notice per row.

# 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"
    ],
    "advancedQueries": [],
    "countries": [
        "DEU",
        "FRA"
    ],
    "cpvCodes": [
        "72000000"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("chrisrosil/eu-ted-public-tenders-scraper").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"],
    "advancedQueries": [],
    "countries": [
        "DEU",
        "FRA",
    ],
    "cpvCodes": ["72000000"],
}

# Run the Actor and wait for it to finish
run = client.actor("chrisrosil/eu-ted-public-tenders-scraper").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"
  ],
  "advancedQueries": [],
  "countries": [
    "DEU",
    "FRA"
  ],
  "cpvCodes": [
    "72000000"
  ]
}' |
apify call chrisrosil/eu-ted-public-tenders-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/qMjyUHyY17habyUVF/builds/LQhU6JTer1Niq4RE6/openapi.json
