# ted.notices

EU public tenders and contract awards from TED: title, buyer, country, deadline, CPV codes, value and winners, by words, stage, country, code and date.

EU tenders (TED), one of the TED scrapers.

| | |
| --- | --- |
| Id | `ted.notices` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/ted.notices/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | no | A word or phrase anywhere in the notice, in any language it is published in. Limit: at least 2 characters, at most 200 characters. |
| `stage` | "any" \| "tender" \| "award" \| "planning" | no | `tender` (calls for tenders), `award` (contract awards), `planning` (prior notices) or `any`. Default: `"any"`. |
| `country` | string | no | Only buyers in this country, as a three-letter code, e.g. `DEU`, `FRA`, `POL`. |
| `cpv` | string | no | Only notices with this CPV code, eight digits, e.g. `72000000`. |
| `published_from` | string | no | Only notices published on or after this day, `YYYY-MM-DD`. Default: the last 30 days. |
| `published_to` | string | no | Only notices published on or before this day, `YYYY-MM-DD`. |
| `max_results` | integer | no | Notices a page, at most 100. Limit: 1 to 100. Default: `25`. |
| `page` | integer | no | The page of results, from 1. Limit: 1 to 150. Default: `1`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `notice_id` | string | TED's publication number, e.g. `814181-2026`. |
| `url` | string | The notice's page on ted.europa.eu. |
| `pdf_url` | string or null | The notice as a PDF, in English where TED has it. |
| `title` | string or null | The notice's title. |
| `language` | string or null | The three-letter language of the title, e.g. `eng`, `deu`. |
| `stage` | string or null | `tender` (a call for tenders), `award` (a contract award) or `planning` (a prior notice). |
| `notice_type` | string or null | TED's type of notice, e.g. `cn-standard`, `can-standard`. |
| `procedure` | string or null | The procedure, e.g. `open`, `restricted`. |
| `contract_nature` | string or null | `works`, `supplies` or `services`. |
| `buyer` | string or null | The public body buying. |
| `buyer_country` | string or null | Its country, as a three-letter code, e.g. `DEU`. |
| `published_date` | string or null | The day the notice was published, `YYYY-MM-DD`. |
| `deadline_date` | string or null | The day tenders are due, `YYYY-MM-DD`, for a call for tenders. |
| `cpv_codes` | array of string | The notice's CPV codes (the EU's vocabulary of what is bought). |
| `places` | array of string | Where the work is done, as NUTS regions and country codes. |
| `value` | number or null | The notice's total value, where it states one. |
| `currency` | string or null | The currency of that value, e.g. `EUR`. |
| `winners` | array of string | Who won, on an award notice. |
| `total_results` | integer or null | How many notices match the search in all. |
| `fetched_at` | string (date-time) | When TED was asked, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/ted.notices/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"stage":"tender","country":"DEU","cpv":"72000000","published_from":"2026-11-01","published_to":"2026-11-23","max_results":2}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "ted.notices",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "stage": "tender",
    "country": "DEU",
    "cpv": "72000000",
    "published_from": "2026-11-01",
    "published_to": "2026-11-23",
    "max_results": 2
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "notice_id": "813257-2026",
      "url": "https://ted.europa.eu/en/notice/-/detail/813257-2026",
      "pdf_url": "https://ted.europa.eu/en/notice/813257-2026/pdf",
      "title": "Germany – Business and management consultancy and related services – Beratung Digitalisierung - Lose 2 bis 5",
      "language": "eng",
      "stage": "tender",
      "notice_type": "cn-standard",
      "procedure": "neg-w-call",
      "contract_nature": "services",
      "buyer": "Studierendenwerk Münster AÖR",
      "buyer_country": "DEU",
      "published_date": "2026-11-23",
      "deadline_date": null,
      "cpv_codes": [
        "79400000",
        "72222000",
        "72000000"
      ],
      "places": [
        "DEA33",
        "DEU"
      ],
      "value": null,
      "currency": null,
      "winners": [],
      "total_results": 304,
      "fetched_at": "2026-11-23T23:24:05.072895Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the TED scrapers](https://docs.enrichednow.com/results-and-statuses.md#ted) are in their own section there.
