TED API: how to search EU tender notices in Python

Checked on 2026-11-24.

TED, the EU's journal of public procurement notices, has an official Search API that needs no key and no account. You send a POST to https://api.ted.europa.eu/v3/notices/search with an expert query and the fields you want, and get the matching notices as JSON. It is free and covers every notice TED publishes; the work is in the query language and in an answer whose fields come in many languages.

1. The Search API: one POST, no key

TED's developer documentation says the Search API "is primarily targeted at data reusers and does not require authentication, making it openly accessible to any system or user". TED's API keys, made with an EU Login account in the TED Developer Portal, are for "those TED APIs that require it", such as publishing notices. The request body, from the API's OpenAPI description:

  • query (required): the expert query.
  • fields (required, at least one): the fields to return for each notice.
  • limit: notices per page, 10 by default and at most 250, with at most 10,000 fields per page (fields times notices). page starts at 1.
  • scope: ALL (the default), ACTIVE ("only active notices") or LATEST ("only notices of the current OJ S release").
  • paginationMode: PAGE_NUMBER (the default) or ITERATION, which pages with iterationNextToken.
  • checkQuerySyntax: true checks the query without running it.
Python
from datetime import date, timedelta
import requests

since = (date.today() - timedelta(days=7)).strftime("%Y%m%d")
body = {
    "query": f'FT ~ "software" AND publication-date >= {since} SORT BY publication-number DESC',
    "fields": ["publication-number", "notice-title", "buyer-name", "buyer-country",
               "publication-date", "deadline-receipt-request", "notice-type", "links"],
    "limit": 20,
}
res = requests.post("https://api.ted.europa.eu/v3/notices/search", json=body, timeout=60)
res.raise_for_status()
data = res.json()
print(data["totalNoticeCount"], "notices match")
for notice in data["notices"]:
    title = notice["notice-title"].get("eng")
    deadline = notice.get("deadline-receipt-request", [None])[0]
    print(notice["publication-number"], notice["notice-type"], notice["buyer-country"], deadline, title)
    print("   ", notice["links"]["html"]["ENG"])

Sent on 24 November 2026 with a limit of 3, this query matched 1,797 notices, and the three it returned had been published that day.

The expert query

An expert query is field expressions joined with AND, OR, NOT and parentheses; each expression is a search field, an operator and search terms. From TED's search help:

  • FT is the full text. With ~, several terms in parentheses must all match, and in multilingual fields such as FT the search is stemmed: FT ~ (agriculture food).
  • = looks for an exact match, and several values need OR between them: buyer-country = FRA uses three-letter country codes.
  • IN takes a list with an implicit OR: FT IN (INFRABEL STIB SNCB SNCF RATP).
  • >, <, >= and <= work on numeric fields, dates included, written YYYYMMDD as in publication-date >= 20261117.
  • Wildcards: classification-cpv = 30* finds every CPV code that starts with 30.
  • SORT BY sorts by a keyword or numeric field, ascending unless you add DESC.

The Expert Search page on TED writes a query, checks its syntax, lists every field and runs it, and the API's documentation points there for debugging. All fields are in the search field list.

What a notice looks like

One of the three notices from that request, with the titles in other languages and most links left out:

JSON
{
  "publication-number": "817540-2026",
  "publication-date": "2026-11-24+01:00",
  "notice-type": "cn-standard",
  "buyer-name": { "por": ["Autoridade Tributária e Aduaneira"] },
  "buyer-country": ["PRT"],
  "deadline-receipt-request": ["2026-12-20T17:00:59Z"],
  "notice-title": {
    "eng": "Portugal – Software programming and consultancy services – 33/CLPQ-AT/2026 Aquisição de serviços para o projeto de Manutenção corretiva e evolutiva do Sistema de Execuções Fiscais - SEF - Gestão de Devedores"
  },
  "links": { "html": { "ENG": "https://ted.europa.eu/en/notice/-/detail/817540-2026" } }
}
  • notice-title came in 24 languages. Its last part is the buyer's own title, and it stayed in Portuguese in the English version: only the country and the CPV label before it were translated. Search with the words the buyer would write.
  • buyer-name is keyed by the notice's language, and most values are lists.
  • notice-type is an eForms code: in the code list, cn-standard is a "Contract or concession notice – standard regime" and can-standard a "Contract or concession award notice – standard regime". The two award notices in the answer had no deadline-receipt-request at all; the code above allows for that.
  • The three notices came to about 26 KB.

Where the free route stops

  • Paging: in the default mode the "Maximum number of retrievable notices" is 15,000 per query. ITERATION mode has "no limit on the number of retrievable notices"; its token stays valid until "the date of the next OJS release plus 24 hours".
  • Shape: language objects, lists and three-letter country codes; flattening them is most of your code.
  • Everything at once: the reusers' page offers every notice of a day or a month as an XML package, at https://ted.europa.eu/packages/daily/{yyyynnnnn} (the OJ S number) and https://ted.europa.eu/packages/monthly/{yyyy-n}, and a CSV subset of contract and award notices on data.europa.eu.

Reuse is allowed. TED's legal notice says: "Unless otherwise noted, the procurement notices published in the Supplement to the Official Journal of the European Union can be freely reused, for commercial or non-commercial purposes."

2. A flat keyword search: an HTTP API

The Pipefetch tenders endpoint asks TED's Search API for you and returns each notice as one flat object, with open calls for bids first. It takes a keyword and a limit, nothing more.

Python
import os
import requests

res = requests.get(
    "https://pipefetch.com/v1/tenders/search",
    params={"q": "software", "limit": 20},   # limit 1 to 50
    headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
    timeout=90,
)
if res.status_code == 404:
    print("No recent notices with this keyword")  # not charged
else:
    res.raise_for_status()
    data = res.json()["data"]
    search = data["search"]
    print(search["noticeCount"], "found,", search["openCount"], "still open")
    for t in data["tenders"]:
        print(t["deadline"], t["noticeType"], t["buyer"]["country"], t["buyer"]["name"], "|", t["title"])
        print("   ", t["url"])

One notice from the answer saved for "software" on 19 November 2026, without its description and procedure id:

JSON
{
  "id": "787753-2026",
  "url": "https://ted.europa.eu/en/notice/-/detail/787753-2026",
  "title": "Beschaffung Software Tableau Lizenzen",
  "titleLanguage": "de",
  "buyer": { "name": "Flughafen Wien AG", "country": "AT", "city": "Wien-Flughafen" },
  "valueAmount": null,
  "valueCurrency": null,
  "cpvCodes": ["48000000"],
  "cpvDescription": "Software package and information systems",
  "noticeType": "tender",
  "procurementMethod": "selective",
  "contractNature": "supplies",
  "publishedAt": "2026-11-11T23:00:00.000Z",
  "deadline": "2026-11-26T22:59:00.000Z",
  "daysUntilDeadline": 7
}

noticeType is tender for a call for bids, award for a contract already given and planning for an early notice. search counts every notice found: how many are open, how many close within 7 days, their countries, currencies, top buyers and CPV codes, and TED's own count for the keyword. A search costs 1 credit whatever the limit, and most take 2 to 9 seconds. A search that finds nothing answers 404 no_results and costs nothing, and a new account has 100 free credits without a card.

Where it stops:

  • It reads the 250 notices TED lists first for the keyword among those published in the last 7 days, and keeps the ones whose title, description or buyer name contains it. For "software" on 19 November 2026 TED counted 1,810 notices from those days that mention the word anywhere (search.totalAvailable); 44 were found, and the default limit returned the 20 calls for bids still open.
  • It does not ask TED to sort. For a keyword with more notices than it reads, the 250 are the ones TED lists first, and in that example all 44 had been published on the first day of the period, 7 days before the request. For the newest notices, use the official API with SORT BY publication-number DESC as above.
  • No further pages, and no filters for dates, countries or CPV codes. Contact details and tender documents are not included; url leads to the full notice.
  • It reads TED only. It is not an official TED API, and Pipefetch is not affiliated with TED, the Publications Office of the European Union or any EU institution.

Which one should you use?

You needUse
Notices by country, CPV code, buyer or date, sorted, with historyThe official Search API
Every notice, to load into your own databaseTED's daily or monthly XML packages
Recent notices for one keyword as flat JSON, open calls first, in one GETAn HTTP API such as Pipefetch

Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.

Every source

YouTube

Instagram

Websites

TikTok

Facebook

Google

Threads

LinkedIn

App stores

Steam

X

Pinterest

Airbnb

Real estate

Keywords

Job boards

Eventbrite

Shopify stores

All guides