DEV Community

DataForge
DataForge

Posted on

How to get EU public tenders as JSON with Python (TED, no scraping)

Every public buyer in the EU above a threshold must publish its tenders on TED (Tenders Electronic Daily). The data is open, but the official search is built for people, not for scripts. Here is a short way to get open tenders for one product category as JSON.

Disclosure: I wrote the Actor used below. It is my tool, it costs money per result, and the data itself is free at the source.

What you get

For each notice: publication number, title, buyer name and country, CPV codes, estimated value, submission deadline and the notice URL. Real output from a run on industrial machinery (CPV 42):

{
  "publication_number": "775240-2026",
  "title": "France – Air-conditioning installations – Acquisition d'ACU ...",
  "buyer_names": ["Aéroport de Toulouse-Blagnac"],
  "buyer_countries": ["FRA"],
  "cpv_codes": ["42512000"],
  "estimated_value": ["3100000"],
  "notice_url": "https://ted.europa.eu/en/notice/-/detail/775240-2026"
}
Enter fullscreen mode Exit fullscreen mode

Titles are in the language of the notice. Fields such as deadline or value appear only when the notice states them.

Run it from Python

from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("dataforge_api/eu-ted-tenders-electronic-ppe").call(run_input={
    "noticeTypes": ["cn-standard"],      # open contract notices
    "cpvPrefixes": ["42"],               # industrial machinery
    "buyerCountries": ["DEU", "POL"],    # optional
    "lastDays": 14,
    "maxResults": 25,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["publication_number"], item["buyer_names"], item.get("submission_deadline"))
Enter fullscreen mode Exit fullscreen mode

Use "noticeTypes": ["can-standard"] to get contract award notices, which list the winning companies.

Cost

Pay per event: $0.0045 per notice, so 1,000 notices cost $4.50. Apify's free monthly credit covers a few hundred test notices.

Limits worth knowing

  • Only what TED publishes. Tenders below the EU threshold usually appear on national portals, not here.
  • Winners appear on award notices, and only when the notice names them.
  • Text is not translated.

When this is useful

Weekly monitoring of your CPV category, finding which companies win contracts in your market, and sizing a market by country.

Actor page and ready-made examples: https://apify.com/dataforge_api/eu-ted-tenders-electronic-ppe

Top comments (0)