Scraper APITED
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.
- 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; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
query | string | 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" | tender (calls for tenders), award (contract awards), planning (prior notices) or any.Default: "any". |
country | string | Only buyers in this country, as a three-letter code, e.g. DEU, FRA, POL. |
cpv | string | Only notices with this CPV code, eight digits, e.g. 72000000. |
published_from | string | Only notices published on or after this day, YYYY-MM-DD. Default: the last 30 days. |
published_to | string | Only notices published on or before this day, YYYY-MM-DD. |
max_results | integer | Notices a page, at most 100.Limit: 1 to 100. Default: 25. |
page | integer | 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
# Start a run and wait up to 60 seconds for it to finish
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}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("ted.notices", {
"stage": "tender",
"country": "DEU",
"cpv": "72000000",
"published_from": "2026-11-01",
"published_to": "2026-11-23",
"max_results": 2,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("ted.notices", {
stage: "tender",
country: "DEU",
cpv: "72000000",
published_from: "2026-11-01",
published_to: "2026-11-23",
max_results: 2,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "ted.notices", map[string]any{"stage": "tender", "country": "DEU", "cpv": "72000000", "published_from": "2026-11-01", "published_to": "2026-11-23", "max_results": 2})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("ted.notices", Map.of("stage", "tender", "country", "DEU", "cpv", "72000000", "published_from", "2026-11-01", "published_to", "2026-11-23", "max_results", 2));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run ted.notices --input-json '{"stage":"tender","country":"DEU","cpv":"72000000","published_from":"2026-11-01","published_to":"2026-11-23","max_results":2}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"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.
{
"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.
{
"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 lists every status and the reasons every scraper shares; the reasons of the TED scrapers are in their own section there.