The short answer

  1. TED's search API holds every above-threshold EU notice, and it answers a plain POST, free, with no API key.
  2. A national register covers what TED cannot contain; Poland's BZP behaves like an API rather than a form.
  3. Dedupe is the work — normalise both into one record keyed on (source, source_id, version) before the second adapter.

What this will not solve: it will not hand you the tender's documents, cover 26 national portals, or tell you which provider to buy. It teaches a two-source pipeline, then counts what it covers.

Pick your layer first

If the requirement is Reach for Because
Everything EU-wide, above thresholdTED search APIOne schema, 27 member states, no registration
One country in depth, small valuesThat country's national registerBelow-threshold notices never reach TED
The tender's actual documentsNeither — that is a second buildTED returns notice links, BZP returns HTML
Historical bulk, analysed offlineTED daily and monthly packagesOne XML package per OJ S number

Two layers, and only one is a European API

TED feels like a product: one endpoint, one query language, one schema, 27 member states, no signup. If the requirement is "every EU tender above the threshold", you are done by lunchtime. The TED API documentation is good, and its expert-search language is the one the website's expert search page exposes, so you can build a query in a browser and paste it into code.

The second layer is where the work lives: below-threshold work, framework mini-competitions, procedures a member state runs on its own platform. Some are real APIs. Some are a CSV published on a Tuesday. Some are a form behind SSO — not a data source, a scrape target with a login page.

The trap fits in one sentence: TED cannot contain below-threshold notices, so a TED-only build misses most small-value tenders in most member states, and nobody notices until a client asks why their competitor's wins are not in the feed.

TED, with no key at all

POST https://api.ted.europa.eu/v3/notices/search returns 200 to an anonymous caller. Keys exist only for the publishing side, where notices are not yet public; a 401 means the wrong host or path.

The body is JSON, not a query string. Nine keys are published; six matter: query, fields, limit, page, paginationMode, and iterationNextToken once you page. Also useful: scope (ALL, ACTIVE, LATEST for the current OJ S release) and checkQuerySyntax. There is no sort key on the body; ordering lives inside the query itself.

Queries are field-operator-value joined with AND / OR / NOT: ~ for full-text, IN (...) for sets, dates as YYYYMMDD. This one, as written, returned 200 with totalNoticeCount: 152:

curl -s https://api.ted.europa.eu/v3/notices/search \
  -H 'Content-Type: application/json' \
  -d '{
    "query": "FT~(\"offshore wind\") AND publication-date>=20251101",
    "fields": ["publication-number","notice-title","buyer-name","buyer-country",
               "publication-date","deadline-date-lot","estimated-value-lot",
               "estimated-value-cur-lot"],
    "page": 1, "limit": 2
  }'

Captured 2026-11-30, trimmed — note what the values look like:

{
  "notices": [{
    "publication-number": "729485-2025",
    "notice-title": {
      "eng": "Sweden – Repair and maintenance services – Framework Agreement - Fast Response Plan - Subsea Cables - Repair and Jointing",
      "deu": "Schweden – Reparatur- und Wartungsdienste – Framework Agreement - Fast Response Plan - Subsea Cables - Repair and Jointing"
    },
    "buyer-name": { "eng": ["Vattenfall AB"] },
    "buyer-country": ["SWE"],
    "publication-date": "2025-11-04+01:00",
    "links": { "xml": {"MUL": "https://ted.europa.eu/en/notice/729485-2025/xml"},
               "pdf": {"ENG": "https://ted.europa.eu/en/notice/729485-2025/pdf" } }
  }],
  "totalNoticeCount": 152,
  "iterationNextToken": null,
  "timedOut": false
}

That sample decides your data model. notice-title and buyer-name are maps keyed by language — 24 of them — so "the title" is a choice per record. buyer-country, value and deadline are lists of strings. A field the notice does not carry is simply absent: this one has no deadline-date-lot or estimated-value-lot, hence the .get(…) or [None] below. And links always points at the notice, never at the tender's attachments — which is why the document layer is a separate build.

Limits, from the contract and reproduced live: in the default PAGE_NUMBER mode, 15,000 notices per query, 250 per page, 10,000 fields per page (page size × fields per notice). limit: 251 answers 400, "SEARCH_EXCEEDS_MAX_LIMIT". Above 15,000, paginationMode: "ITERATION" has no total ceiling, holds a point-in-time snapshot, and expires at the next OJ S release plus 24 hours.

import json, urllib.request

SEARCH = "https://api.ted.europa.eu/v3/notices/search"
FIELDS = ["publication-number", "notice-title", "buyer-name", "buyer-country",
          "publication-date", "deadline-date-lot", "estimated-value-lot",
          "estimated-value-cur-lot"]

def search_ted(query, page_size=250):
    """Yield notices for one query, past the 15k page-mode ceiling."""
    token = None
    while True:
        body = {"query": query, "fields": FIELDS, "limit": page_size,
                "paginationMode": "ITERATION"}
        if token:
            body["iterationNextToken"] = token
        req = urllib.request.Request(
            SEARCH, data=json.dumps(body).encode(),
            headers={"Content-Type": "application/json",
                     "User-Agent": "yourapp/1.0"}, method="POST")
        with urllib.request.urlopen(req, timeout=60) as r:
            payload = json.loads(r.read())
        if payload.get("timedOut"):
            raise RuntimeError("TED timed out; narrow the date window")
        page = payload.get("notices") or []
        if not page:
            return                    # empty page means done, token or no token
        yield from page
        token = payload["iterationNextToken"]

Two behaviours there are load-bearing, both checked live: stop on an empty page, not a missing token, because the token keeps coming back after the last notice; and repeat query and fields on every call, or the token alone gets 400 ("must not be empty" on query).

Then guard the silently empty result: ask for a field that does not exist and TED names it — 400, "type": "QUERY_UNKNOWN_FIELD", "fieldName", and a location naming the column. Log the body, not just the status. In CI, run saved queries with "checkQuerySyntax": true — 200 with empty notices and a null count is a pass, not an empty index.

A national register that works differently

GET https://ezamowienia.gov.pl/mo-board/api/v1/notice is the closest thing to a contract in a national register. It requires NoticeType (e.g. ContractNotice), PublicationDateFrom and PublicationDateTo; PageSize is capped at 500 — PageSize=1000 is refused with a Polish-language validation message. No auth, and because the window is mandatory the feed is incremental by construction.

One notice, requested alone, came back at 58 KB, almost all of it htmlBody — the notice as HTML, with styles. Beside it: noticeNumber (2025/BZP 00549829/01), bzpNumber, isTenderAmountBelowEU, orderObject, submittingOffersDate, organizationName, and tenderId — an OCDS-shaped ocds-148610-<uuid>, though nothing else is OCDS.

Two traps in that payload. cpvCode is a single concatenated string — "15800000-6 (Różne produkty spożywcze),15810000-9 (Pieczywo…)" — needing a split before it is a classification. And there is no documents field at all, not even a link: attachments sit on the platform behind tenderId, which has no public API. The absence is the lesson: the portal is not an API.

import json, urllib.parse, urllib.request
from datetime import timedelta

def fetch_bzp(day):
    q = urllib.parse.urlencode({
        "NoticeType": "ContractNotice",
        "PublicationDateFrom": day.isoformat(),
        "PublicationDateTo": (day + timedelta(days=1)).isoformat(),
        "PageSize": 500})
    url = "https://ezamowienia.gov.pl/mo-board/api/v1/notice?" + q
    req = urllib.request.Request(url, headers={"User-Agent": "yourapp/1.0",
                                               "Accept": "application/json"})
    with urllib.request.urlopen(req, timeout=60) as r:
        return json.loads(r.read())

What each EU portal actually publishes

The table to keep, and the one nobody maintains in English.

Portal Country Notice types Formats API? Auth Depth Gotcha
TEDEU-27 (+ EEA in OJ S)Contract, award; eForms + legacy schemaJSON API; XML, PDF, HTML per notice; daily XML packagesYes — POST /v3/notices/searchNone for published noticesDaily OJ S packages, monthly rollupsNo attachments; 15k ceiling
Find a TenderUKAbove-threshold: planning, tender, awardOCDS 1.1.5 JSON; daily XML ZIPsYes — /api/1.0/ocdsReleasePackagesNoneContinuous, cursorMax limit 100; record packages take no parameters
Contracts FinderUKBelow-threshold England + wider public sectorOCDS JSONYes — /Published/Notices/OCDS/SearchNoneContinuousIgnores unknown parameters silently; tender.documents often empty
e-Zamówienia / BZPPLContract notices, above and below thresholdJSON + htmlBody; no attachmentsYes — /mo-board/api/v1/noticeNoneDate window; depth not publishedCPV as one string; no documents
e-ProPublicoPLPlatform-hosted proceduresHTML; per-tender zipNo public APISessionNot verifiedTLS chain incomplete
Platforma ZakupowaPLPlatform-hosted proceduresHTMLNoSSONot verified302 to /sso/authorize
ProzorroUABelow and above threshold, OCDS-alignedJSON; signed document URLsYes — /api/2.5/tendersNone for readsOffset paging, near-real-timeList returns id + dateModified; 429 + backoff
SAM.govUS, for contrastFederal opportunities, with attachmentsJSON + attachment endpointsYesSystem key + attachment authorisationContinuous; quota unverifiedHeaviest approval flow here

Verified 2026-11-26 against each operator's documentation, with a live call where one exists; TED and BZP re-checked 2026-11-30. Doffin and TenderNed are absent on purpose: Doffin answered 404 on its documented path, TenderNed's API host did not resolve.

And the limits you will actually hit:

Limit What it costs What to do
TED has no attachmentsEvery "download the documents" feature starts at zeroFetch the notice XML, resolve files per authority
The 15k ceiling looks like completenessA broad query returns a slice with no warningCompare totalNoticeCount to what you collected
Contracts Finder ignores unknown parametersA typo returns unfiltered data with 200Assert on a known record
BZP returns HTML, not fieldsEverything below the summary is a parsing jobParse htmlBody once, into your own fields
No two registers share a key modelYour source_id is per-source foreverComposite key from the first commit
Two Polish platforms have no API at allTheir procedures never appear in an API buildTreat them as a scrape project, or say plainly that you exclude them

Normalise both into one record

Record field TED BZP
source_idpublication-numbertenderId (ocds-148610-…)
titlenotice-title[lang] — pick oneorderObject
buyerbuyer-name[lang][0], buyer-country[0]organizationName, organizationCountry
cpvclassification-cpv[], already 8 digitsregex \d{8} out of cpvCode
value / currencyestimated-value-lot[0], estimated-value-cur-lot[0]Not in the payload
published / deadlinepublication-date[:10], deadline-date-lot[0]publicationDate, submittingOffersDate
documentslinks.xml.MUL — the notice, not the fileshtmlBody only
import re

def normalise_ted(n):
    titles = n.get("notice-title") or {}
    return {
        "source": "ted", "source_id": n["publication-number"],
        "title": titles.get("eng") or next(iter(titles.values()), None),
        "buyer_name": (n.get("buyer-name") or {}).get("eng", [None])[0],
        "buyer_country": (n.get("buyer-country") or [None])[0],
        "cpv": [c[:8] for c in n.get("classification-cpv", [])],
        "value": (n.get("estimated-value-lot") or [None])[0],
        "currency": (n.get("estimated-value-cur-lot") or [None])[0],
        "published": (n.get("publication-date") or "")[:10],
        "deadline": (n.get("deadline-date-lot") or [None])[0],
        "documents": [],        # links.xml.MUL is the notice, not the attachments
    }

def normalise_bzp(n):
    return {
        "source": "bzp", "source_id": n["tenderId"],
        "title": n.get("orderObject"),
        "buyer_name": n.get("organizationName"),
        "buyer_country": n.get("organizationCountry"),
        "cpv": re.findall(r"\d{8}", n.get("cpvCode") or ""),
        "value": None, "currency": None,   # not in the notice payload
        "published": (n.get("publicationDate") or "")[:10],
        "deadline": (n.get("submittingOffersDate") or "")[:10],
        "documents": [],        # htmlBody only; files sit on the platform
    }

Dedupe is the work

The same Polish road contract appears in TED and BZP: different ids, a different title language, a value rounded differently. OCDS ids align only sometimes — ocds-148610-… helps inside Poland and nowhere else.

A matcher that survives real data, cheapest test first: exact source_id within a source; buyer identifier plus title similarity (0.6 is a serviceable floor on normalised text); value within 1% with the same CPV division; and a hard filter on the deadline, because two procedures from one buyer with similar titles and equal deadlines are one procedure. Never dedupe on title alone — 24 languages and a buyer reusing "Delivery of food supplies" will collapse a month into one tender.

How often it happens you measure yourself: one week of your own notices, pairs collapsed, divide. We publish no EU-wide collision rate — it depends on which sources you ingest and whether a corrigendum counts as a new tender.

Which answers the version question: a corrigendum is a new version of the same tender. Key on (source, source_id, version) and idempotency comes free — re-running yesterday's window writes nothing, a corrected notice adds a row instead of overwriting history. TED exposes onlyLatestVersions for exactly this.

Run it on a schedule

TED gives two routes that fail differently. Daily packages — one XML file per OJ S number, monthly rollups at /packages/monthly/{yyyy-n} — are the archive route: no token, no ceiling. The search API is the incremental route: a publication-date window overlapping the previous run by a day, in ITERATION mode, so a slow run cannot truncate.

National registers are window-driven by design: BZP refuses a request without one. The pipeline settles on three tables — notice, document, extraction — and only the notice needs a version column.

What breaks, in the order it costs you time

  1. A filter a portal silently ignored. Contracts Finder answers 200 to parameters it does not know, so a typo returns unfiltered data and your numbers triple.
  2. A broad query at the 15,000 ceiling. You think you have everything and you have a slice, with nothing in the payload to say so.
  3. Documents. Not on TED, behind a platform in Poland. Budget a second build, not a feature flag.
  4. Duplicates and language. Both silent: duplicates make every downstream count wrong, titles arrive translated, buyer names do not.

What your own build covers

The arithmetic no tutorial prints — 28 days, 2026-10-29 to 2026-11-26, counting OCDS notice events, not tenders and not lots.

Build Countries Notices/day Documents Who maintains it
TED only27, above-threshold only~2,200NoneYou
TED + BZP+ Poland's below-threshold flow — 12,328 notices in 28 days, part of it overlapping TED~2,600, before dedupePer portalYou
TED + 80 national sources33 reachable, 29 with a national source5,976 mean, 4,488 medianOn demandYou, on 81 rhythms
A managed APIAs claimed — count portals, not countriesAsk, then measureVariesThem

TED alone is 27 countries at ~2,200 notices a day on the EC's published annual figure; our own pipeline kept 35,481 TED notices in the same 28 days — 1,267 a day — and the gap between those two counts is a reconciliation nobody has published, us included. Of the 5,976 notices a day a full build ingests, only 20.5% are TED's. The other 79.5% come from 80 national sources — 37 of them in Poland alone — and 60 of those 81 sources are active on 8 days or fewer out of 28. Twelve are near-daily.

That is what coverage costs: not twenty-seven adapters, but eighty-one sources on eighty-one rhythms, most slow enough that a broken one looks like a quiet week. The build is not the hard part; the maintenance is — every portal changes a form field, and every change is a silent zero-result until a client tells you. That is the argument in the comparison post. If the consumer is an agent, this is the surface it needs, and /mcp/ is where ours will land.

If you would rather not own eighty-one adapters

Everything above is buildable, and it is also a standing job: adapters break, feeds change shape, and a document layer is a second product. The kosmobids API is that same pipeline with the ingest, the dedupe and the documents already behind it — one x-api-key header, company-scoped, with the reference published at api.kosmobids.com and an llms.txt a model can read without being told about it.

Mapped onto the five steps in this post:

The step you just built The call What it returns
Search TED for candidatesPOST /api/v1/searchCPV, keyword and semantic phrases, country, value range, published and deadline windows; score, rerankingScore, recommended, match per result
Open the noticeGET /api/v1/tenders/:idlots, buyer, values, deadlines, files
Run it again every morningPOST /saved-searches, then POST /saved-searches/:id/runsan async run you poll; matches carry fit and page 500 at a time
Fetch the documentsPOST /tenders/:id/documents/downloadpoll, then GET /files, stream GET /files/:fileId/download, or take the set as /files/zip
Read themGET /documents/:fileId, /pages, /headerspage text, a page range, running headers and footers — parsed, not a PDF to rasterise

Past the point this post stops: POST /tenders/:id/analyze takes 1–20 questions and returns answers whose citations resolve to a page and a region, POST /tenders/:id/look-alike finds semantically similar tenders, and POST /pipeline/private-tenders keeps your own records out of matching. The limits are published rather than implied — 3 requests a second, 100 a minute, 1,000 an hour per company, Retry-After on a 429 — which matters when you are the one writing the retry loop, and they are the first thing to measure against your own build.

FAQ

Do I need a TED API key?

No, not for published notices. Keys are for the publishing side, generated in the TED Developer Portal behind an EU Login account, so a sender can submit notices that are not yet public.

How many notices can one TED query return?

15,000 in default page mode, 250 per page, 10,000 fields per page. ITERATION mode removes the total ceiling and holds a point-in-time snapshot; the token expires at the next OJ S release plus 24 hours.

Does TED include below-threshold tenders?

No. TED carries notices above the EU thresholds, published in the Supplement to the Official Journal. Everything below belongs to national registers, which is why a TED-only build and a full EU build are different products.

Can I download the tender documents from TED?

Not from TED. The API returns the notice's XML, PDF and HTML links; specifications live with the contracting authority. Prozorro is the European exception with signed document URLs; SAM.gov is the model where attachments share the API.

Why does my TED query return zero results?

Usually a field that does not exist (that one fails loudly), a date written 2026-01-01 instead of 20260101, a scope narrower than you think, or a swallowed 400. Validate saved queries with checkQuerySyntax and log the error body.