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).pagestarts at 1.scope:ALL(the default),ACTIVE("only active notices") orLATEST("only notices of the current OJ S release").paginationMode:PAGE_NUMBER(the default) orITERATION, which pages withiterationNextToken.checkQuerySyntax: true checks the query without running it.
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:
FTis the full text. With~, several terms in parentheses must all match, and in multilingual fields such asFTthe search is stemmed:FT ~ (agriculture food).=looks for an exact match, and several values needORbetween them:buyer-country = FRAuses three-letter country codes.INtakes a list with an implicit OR:FT IN (INFRABEL STIB SNCB SNCF RATP).>,<,>=and<=work on numeric fields, dates included, written YYYYMMDD as inpublication-date >= 20261117.- Wildcards:
classification-cpv = 30*finds every CPV code that starts with 30. SORT BYsorts by a keyword or numeric field, ascending unless you addDESC.
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:
{
"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-titlecame 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-nameis keyed by the notice's language, and most values are lists.notice-typeis an eForms code: in the code list,cn-standardis a "Contract or concession notice – standard regime" andcan-standarda "Contract or concession award notice – standard regime". The two award notices in the answer had nodeadline-receipt-requestat 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.
ITERATIONmode 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) andhttps://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.
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:
{
"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 DESCas above. - No further pages, and no filters for dates, countries or CPV codes. Contact details and tender documents are not included;
urlleads 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 need | Use |
|---|---|
| Notices by country, CPV code, buyer or date, sorted, with history | The official Search API |
| Every notice, to load into your own database | TED's daily or monthly XML packages |
| Recent notices for one keyword as flat JSON, open calls first, in one GET | An 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.
APIs used in this guide
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python