DEV Community

Tarek Etman for SpecStream

Posted on

Monitoring 28,799 EU and UK Public Procurement Tenders With Python and Official TED Data

Public tenders in Europe are published in one place, and almost nobody reads it well. TED, the EU's Tenders Electronic Daily, carries every above threshold notice from 27 member states plus the EEA, and it has a free search API that needs no key. The UK left TED in 2021 and publishes on Find a Tender and Contracts Finder instead.

On December 3, 2026 those sources held 28,799 open tenders across 40 countries that were still taking bids. A bid team that sees a notice the day it lands has weeks to prepare. One that finds it through a weekly newsletter often has days.

This guide builds a tender monitor in plain Python: prototype the filters on a free 5,000 notice sample, then point the same logic at the live TED API and keep only the notices you have not seen before.

1. Prototype on the open sample

We published a 5,000 notice sample under CC BY 4.0: every notice was still open on December 4, 2026, across 35 countries and 1,578 CPV codes, with the official notice link on each row. It loads in one line:

import pandas as pd

URL = ("https://raw.githubusercontent.com/specstream/eu-uk-public-tenders-2026-python/"
       "main/data/eu_uk_public_procurement_tenders_2026.csv")
t = pd.read_csv(URL, dtype={"cpv_code": str})

# IT services (CPV division 72) closing before the end of the year, by country
it = t[t.cpv_code.str.startswith("72") & (t.deadline_date <= "2026-12-31")]
print(it.groupby("country").size().sort_values(ascending=False).head())

# Median published value by sector, in euros
eur = t[t.currency == "EUR"].dropna(subset=["estimated_value"])
print(eur.groupby("sector")["estimated_value"].median().sort_values(ascending=False).head())
Enter fullscreen mode Exit fullscreen mode

Read cpv_code as text. CPV codes are eight digits and many start with a zero (03000000 is agricultural products), so a numeric read silently breaks your prefix filters.

Three things this sample teaches before you touch the API:

  • Filter on CPV prefixes, not exact codes. Buyers pick the most specific code they can find. 72 catches all IT services, 7226 only software related services. Start wide and narrow once you see what comes back.
  • Fewer than half of notices publish a value. In the sample 2,416 of 5,000 do. A minimum value filter drops every notice without one, so keep those in a second list rather than losing them.
  • Most deadlines are close. 3,638 of the 5,000 deadlines fall in December 2026 and 1,241 in January 2027. A monitor that runs weekly misses the short ones; run it daily.

2. Ask TED directly

The TED Search API takes an expert query in the same syntax as the TED website. This script asks for contract notices in your CPV codes and countries published in the last seven days, skips the ones it has already shown you, and keeps a small state file between runs:

import json
import urllib.request
from datetime import date, timedelta
from pathlib import Path

TED = "https://api.ted.europa.eu/v3/notices/search"
CPV = ["72000000", "48000000"]          # IT services, software packages
COUNTRIES = ["DEU", "AUT", "NLD"]       # ISO 3 codes of the buyer's country
STATE = Path("ted_seen.json")


def search(since, page=1):
    query = (f"classification-cpv IN ({' '.join(CPV)}) AND buyer-country IN ({' '.join(COUNTRIES)}) "
             f"AND notice-type IN (cn-standard cn-social) AND publication-date>={since:%Y%m%d}")
    body = {"query": query, "page": page, "limit": 100,
            "fields": ["publication-number", "notice-title", "buyer-name", "buyer-country",
                       "deadline-receipt-tender-date-lot", "publication-date"]}
    req = urllib.request.Request(TED, data=json.dumps(body).encode(), headers={"Content-Type": "application/json"})
    with urllib.request.urlopen(req, timeout=60) as resp:
        return json.load(resp)


def first(value):
    if isinstance(value, dict):
        value = value.get("eng") or next(iter(value.values()), "")
    return (value[0] if isinstance(value, list) and value else value) or ""


seen = set(json.loads(STATE.read_text())) if STATE.exists() else set()
since = date.today() + timedelta(days=-7)
page, new = 1, []
while True:
    data = search(since, page)
    notices = data.get("notices", [])
    new += [n for n in notices if n["publication-number"] not in seen]
    if len(notices) < 100:
        break
    page += 1

today = date.today().isoformat()
open_now = [n for n in new if (first(n.get("deadline-receipt-tender-date-lot"))[:10] or "9999") >= today]
for n in sorted(open_now, key=lambda n: first(n.get("deadline-receipt-tender-date-lot")) or "9999"):
    number = n["publication-number"]
    print(first(n.get("deadline-receipt-tender-date-lot"))[:10] or "no deadline", first(n.get("buyer-country")),
          first(n.get("notice-title"))[:80])
    print("   ", first(n.get("buyer-name"))[:70], f"https://ted.europa.eu/en/notice/{number}")

STATE.write_text(json.dumps(sorted(seen | {n["publication-number"] for n in new})))
print(f"{len(new)} new notices since {since}, {len(open_now)} still open")
Enter fullscreen mode Exit fullscreen mode

Run it from cron once a day and the output is only what is new. On December 4, 2026 the first run found 234 new IT and software contract notices from Germany, Austria and the Netherlands for the previous week, 223 of them still open; the second run, a minute later, found none.

A few details that save time:

  • notice-type IN (cn-standard cn-social) keeps calls for competition and drops award and result notices, which have no deadline and nothing to bid on.
  • Country codes are ISO 3 (DEU, FRA, POL) in the query, while the notice titles start with the English country name.
  • Titles come in the buyer's language. TED prefixes them with the country and CPV name in English, which is enough for a first screen; translate only the ones you keep.
  • Page through results. The API returns at most 100 notices a page, so a broad query needs the loop above.

3. Add the UK

Find a Tender, the UK's above threshold service, has its own OCDS API, and Contracts Finder covers lower value UK work. Their field names differ from TED's, so a real monitor maps all three into one shape: notice ID, title, buyer, country, CPV code, value, currency, published date, deadline and the official URL. That is the shape of the sample file above, and of the filter script on GitHub, which runs the same CPV, country, deadline and value filters on the command line:

python tenders.py country=France,Belgium cpv=45 min_value=1000000 currency=EUR
python tenders.py live cpv=72000000 country=DEU since=20261120
Enter fullscreen mode Exit fullscreen mode

4. When to stop maintaining it

The monitor above is a good weekend project. Running it for a team is different work: three sources with three schemas, notices that change after publication, lots with their own deadlines, buyers that appear under five spellings, and someone on call when an API changes its fields.

That is the job we do every day. Open tenders on SpecStream holds all 28,799 open notices from TED, Find a Tender and Contracts Finder, on 7,986 pages by country, CPV sector and contracting authority, with the official link on every row. The newest 100 rows are $15 as a CSV, and the tenders monitor sends new notices for your CPV codes and countries every week. If you also bid on US federal work, the expiring contracts list shows the contracts about to be recompeted with their incumbents, and if you are weighing a GovWin seat, the GovWin alternative page compares coverage and price.

For questions the lists do not answer, such as who the buyer awarded last time or what a supplier's references look like, the Search API reads the live web and returns a source for each value. New accounts get $2 of credit with no card, and search packs start at 80,000 searches for $49, paid once.

The data

Copy Link
Zenodo (DOI) 10.5281/zenodo.24827603
Hugging Face EU and UK tenders 2026
Kaggle EU and UK tenders 2026
GitHub, MIT code Python filter and sample

The sample is CC BY 4.0. It carries no contact emails or phone numbers: every cell was scanned before release.

Top comments (0)