# TED Search ## Overview | Property | Value | |----------|-------| | **Status** | active | | **Method** | `GET` | | **Endpoint** | `/v2/ted/search` | | **Base URL** | `https://api.piloterr.com` | | **Credit Cost** | 1 credit per call | | **Documentation** | https://www.piloterr.com/library/ted-search | ## Description Search TED procurement notices by keyword or filters. Returns notice cards and pagination (1 credit). ## Authentication - **Key Name:** `x-api-key` - **Location:** HTTP Header - **Get an API key:** https://app.piloterr.com/register ## Example Request ```bash curl --location --request GET 'https://api.piloterr.com/v2/ted/search' \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Example Response ### Notice 30-2026 ```json { "results": [ { "cpv": [ "50312610", "35125100" ], "url": "https://ted.europa.eu/en/notice/-/detail/30-2026", "place": "FRK24", "title": "France – Maintenance of information technology equipment – OBSERVATOIRE DES MOBILITES. FOURNITURE, INSTALLATION D'INFRASTRUCTURES DE MATERIELS DE COMPTAGES DES MODES ACTIFS ET MAINTENANCE", "currency": null, "deadline": "2026-02-02", "buyer_name": "SMMAG, Syndicat Mixte des Mobilités de l'Aire Grenobloise, Grenoble-Alpes Métropole", "notice_type": "cn-standard", "buyer_country": "FRA", "value_display": null, "estimated_value": null, "publication_date": "2026-01-02", "publication_number": "30-2026" } ], "pagination": { "next": null, "page": 1, "per_page": 20, "total_pages": 1, "total_results": 1 } } ``` ## Documentation ## Overview Search notices on **TED** (Tenders Electronic Daily). **1 credit** per call. `query` is a keyword, a publication number such as `30-2026`, or a TED search URL. Filters narrow the list. The default scope is active notices. The response is `{ results, pagination }`. A notice URL passed here returns `400`. Use the notice endpoint for the full profile. ## Quickstart ``` GET https://api.piloterr.com/v2/ted/search?query=software&country=FR GET https://api.piloterr.com/v2/ted/search?query=30-2026 ``` ## `query` **Example (keyword):** software **Example (publication number):** 30-2026 **Example (search URL):** https://ted.europa.eu/en/search/result?query=software `query` is optional when another filter is set. At least one of `query`, `notice_type`, `country`, `place`, `cpv` or `buyer` is required. | Form | Example | What happens | |---|---|---| | Keyword | `software` | Full-text search. Quotes in the text are dropped | | Publication number | `30-2026` | One to eight digits, a hyphen, then a 4-digit year. The response stays a list | | Expert query | `classification-cpv = 72000000` | A value that already contains `=` is sent as written | | Search URL | `https://ted.europa.eu/en/search/result?query=tram` | `query` or `q` is read from the URL and interpreted as above | A notice URL (`/notice/`) returns `400`. Use [TED Notice](https://www.piloterr.com/library/ted-notice). A host other than `ted.europa.eu` returns `400`. The filters are combined with AND. `country` is alpha-2 or alpha-3 (`FR` becomes `FRA`). A name such as `France` returns `400`. `place` is a country code or a NUTS code such as `FRK24`. `cpv` is digits with an optional star (`72000000` or `30*`). `notice_type` is a code such as `cn-standard`. `buyer` is a name. `page` defaults to `1`. Below 1 returns `400`. A page past the last one returns `404`. `next` is always null: pass `page` + 1 yourself. The default scope is active notices, so a broad keyword can return an old publication number. ## Parameters | Parameter | Type | Required | Description | |---|---|---|---| | `query` | string | no | Keyword, number `30-2026`, expert query containing `=`, or a TED search URL | | `notice_type` | string | no | Code such as `cn-standard` | | `country` | string | no | Buyer country, `FR` or `FRA` | | `place` | string | no | Place of performance, country or NUTS code | | `cpv` | string | no | CPV code or prefix such as `30*` | | `buyer` | string | no | Buyer name | | `page` | integer | no | Page, default `1`. Pass the next page yourself | ## Response fields | Field | Type | Description | |---|---|---| | `results[]` | array | Notice cards | | `results[].publication_number` | string | Publication number, such as `30-2026` | | `results[].title` | string \| null | Title | | `results[].notice_type` | string \| null | Code such as `cn-standard` or `can-standard` | | `results[].url` | string | Notice URL | | `results[].publication_date` | string \| null | Publication date | | `results[].deadline` | string \| null | Submission deadline | | `results[].buyer_name` | string \| null | Buyer names | | `results[].buyer_country` | string \| null | Buyer country, ISO alpha-3 | | `results[].place` | string \| null | Place of performance | | `results[].cpv` | string[] | CPV codes | | `results[].estimated_value` | number \| null | Estimated or total value | | `results[].currency` | string \| null | Currency | | `results[].value_display` | string \| null | Value with currency | | `pagination.page` / `per_page` | integer | Page and page size (`20`) | | `pagination.total_results` / `total_pages` | integer \| null | Totals | | `pagination.next` | null | Pass `page` + 1 | ## Notes - A notice URL (`/notice/`) passed to search returns `400`. - An empty list returns `404`. - Pass `results[].publication_number` to [TED Notice](https://www.piloterr.com/library/ted-notice). ## Error codes | Code | Meaning | |---|---| | `400` | Missing query, bad country, or a notice URL | | `404` | No notices | | `500` | Request failed | ## Related endpoints - [TED Notice](https://www.piloterr.com/library/ted-notice)