# EU Tenders Feed (TED): new public tenders by CPV & country (`asunoki/ted-tenders-feed`) Actor

New EU public procurement notices from the official TED Search API. Filter by CPV, buyer country, notice type, keywords and deadline; schedule it and get only notices you have not seen. No API key. CC BY 4.0 attribution.

- **URL**: https://apify.com/asunoki/ted-tenders-feed.md
- **Developed by:** [Seisuke Nagahara](https://apify.com/asunoki) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 new tender notices

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## EU Tenders Feed (TED): new public tenders by CPV & country

Get **new EU public procurement notices** from the **official TED Search API** (Tenders Electronic Daily, Publications Office of the European Union), filtered by CPV code, buyer country, notice type, keywords and tender deadline. Run it on a schedule and receive only the notices you have not received before.

### What it does

- Queries the official TED Search API v3 (`api.ted.europa.eu/v3/notices/search`). No API key and no login: the API is anonymous for published notices.
- Filters on the TED side by publication date window, CPV prefixes, buyer countries and notice types; then locally by keywords (title or buyer) and days left to the deadline.
- Pages through results (250 per request, iteration mode) up to your `maxItems`.
- With `onlyNew` (default on), remembers which publication numbers it already returned for the same filter, so a daily schedule outputs only new notices.

### Input (main fields)

| Field | Default | Meaning |
|---|---|---|
| `cpvCodes` | `["72"]` | CPV code prefixes (72 = IT services) |
| `countries` | all | Buyer countries, ISO alpha-3 (e.g. `DEU`, `FRA`) |
| `noticeTypes` | `cn-standard`, `cn-social` | eForms notice types (contract notices) |
| `keywords` | none | Match in title or buyer name (any keyword) |
| `lookbackDays` | 3 | Publication date window |
| `minDaysToDeadline` / `excludePastDeadline` | – / on | Deadline filters |
| `preferredLanguage` | `eng` | Language for titles and buyer names (falls back to English, then any) |
| `onlyNew` | on | Skip notices already output for this filter |
| `maxItems` | 500 | Upper limit of notices per run |

### Output (one row per notice)

`publicationNumber`, `title`, `buyerName`, `buyerCountry`, `noticeType`, `publicationDate`, `tenderDeadline`, `daysToDeadline`, `cpvCodes`, `placeOfPerformance`, `noticeUrl`, plus one free `summary` row per run (counts, query, attribution).

- `tenderDeadline` is the **earliest** lot deadline TED returns; `daysToDeadline` is computed at run time (not a TED field).
- **No contact details** (names, e-mails, phone numbers) are requested from TED or output. Read the full notice on TED via `noticeUrl`.

### Data source, licence and attribution

- Source: *TED – Tenders Electronic Daily (Publications Office of the European Union)*. Every notice row carries it in the `license` field, and every run also stores it in the summary row and the `OUTPUT` record.
- **What the TED legal notice says (checked 24 Nov 2026, https://ted.europa.eu/en/legal-notice):** (1) *Procurement notices* published in the Supplement to the Official Journal of the EU can be freely reused for commercial or non-commercial purposes, unless otherwise noted (Commission reuse policy, Decision 2011/833/EU). This is the basis for the notice data this Actor returns. (2) The *editorial content of the TED websites* is licensed CC BY 4.0, and (3) the *SIMAP system metadata* is CC0. Those two are separate from the notice data, and this Actor does not apply either licence to the notices.
- Each notice row has a `license` text with the source, this reuse basis and a note that fields were selected and reshaped by this Actor, plus `noticeUrl` (the original notice on TED). Some notices may carry their own conditions (for example third-party material or identifiable individuals): check the original notice before redistributing it. TED/EU logos and trademarks are not covered, and documents published by buyers (tender documents linked from notices) are separate.
- This Actor is not affiliated with or endorsed by the Publications Office of the EU.

### Reading the summary row

Every run ends with one free `summary` row (also in the `OUTPUT` record). The fields that tell you whether you have everything:

- `stoppedBy`: `null` (all matching notices were read), `max_items` (you reached your `maxItems` cap), `time_limit` (the run stopped itself before the platform time limit), `page_limit` (very large result set) or `spending_limit` (your max total charge).
- `capped`: `true` only when more matching notices exist than `maxItems`. The run reads one notice beyond the cap to know this, so exactly `maxItems` matches is **not** reported as capped. `notReadYetEstimate` is TED's reported total minus what was read. Those notices stay new: run again (Only new on) and you get them, once each (for example 41 matches with `maxItems` 30 gives 30 now and the remaining 11 on the next run).
- `complete`: `false` only when reading was cut short by `time_limit` or `page_limit` (the platform or the safety cap, not your own choice). `complete: true` means the run was not cut by time or page limits; it does **not** mean nothing is left: check `capped` and `moreAvailable` too.
- `moreAvailable`: `true` whenever anything matching is left for a later run (cap, time, page or spending limit).

### How this differs from other TED Actors

Other Actors on the Store also read TED. This one is built for **scheduled monitoring**, and each point below is covered by the local tests (offline tests, including simulated pay-per-event billing):

- **Incremental runs:** with `onlyNew` on, a daily schedule returns only notices not returned before for the same filters.
- **No repeats:** the same notice is never output twice for the same filters, and its charge key is the publication number, so a repeated charge call for one notice is ignored within a run.
- **Partial runs are shown, not hidden:** if a run is close to its time limit it stops reading, stores what it read, and sets `complete: false` in the summary row and `OUTPUT`.
- **Safe re-run:** with `onlyNew` on, notices already output are remembered as the run goes, so re-running after a stop or timeout continues without repeating or charging them again.
- **Easy to wire into monitoring:** one free summary row per run (counts, `complete`, `stoppedBy`, attribution), a stable `OUTPUT` record and a status message.
- **Cost control:** it stops storing before your max total charge, and the summary row is free.
  It does not claim more coverage than TED itself provides; it does not request contact details.

### Cost, run time and partial runs

- Pay per event is planned: one `notice` event per notice stored (price to be set at publication; see `docs/COST.md`). The summary row and filtered-out or already-seen notices are free. A run stops storing before it would exceed your **max total charge**, and notices it did not store stay new.
- A run reads up to 250 notices per request; a normal daily run needs a few requests (seconds). `maxItems` (default 500) caps what is stored.
- **Partial runs are safe.** The run watches its own time limit. If the next request would not fit, it stops reading, stores everything read so far, and marks the summary row `complete: false`, `timeLimitReached: true` (status message starts with `PARTIAL`). With **Only new** on, notices already output are remembered as the run goes, so a re-run continues without repeating or charging them again. If a run is killed before it finishes, the `OUTPUT` record shows `complete: false`.

### Limits

- Data are as published by TED (daily publication on working days). Corrections and cancellations are separate notices.
- Language coverage depends on what the buyer published.
- Status: local MVP. Not yet published; pricing not set.

# Actor input Schema

## `cpvCodes` (type: `array`):

2 to 8 digits; a full code such as 72000000 matches every code under it.

## `countries` (type: `array`):

e.g. DEU, FRA, IRL. Empty = all.

## `noticeTypes` (type: `array`):

Default: cn-standard, cn-social (contract notices). Others: pin-only, can-standard, veat, corr …

## `keywords` (type: `array`):

Keep only notices whose title or buyer name contains at least one of these words (case-insensitive). Leave empty for no keyword filter.

## `lookbackDays` (type: `integer`):

How many days back to search by publication date, from 1 to 30. Use 1 to 3 for a daily schedule.

## `minDaysToDeadline` (type: `integer`):

Keep only notices with at least this many days left until the tender deadline. Leave empty for no minimum.

## `excludePastDeadline` (type: `boolean`):

Skip notices whose tender deadline has already passed. On by default.

## `preferredLanguage` (type: `string`):

Three-letter language code used for titles and buyer names when the buyer published it (for example eng, deu, fra). Falls back to English, then the first available language.

## `onlyNew` (type: `boolean`):

Return only notices not returned before for the same filters. Recommended for scheduled runs. Turn off to get every matching notice each time (every run then outputs and charges all of them).

## `maxItems` (type: `integer`):

Maximum number of notices stored in one run. Notices beyond this stay new for the next run when Only new is on.

## `stateStoreName` (type: `string`):

Advanced: name of the key-value store that remembers which notices were already returned. Change it to start with an empty memory.

## Actor input object example

```json
{
  "cpvCodes": [
    "72"
  ],
  "noticeTypes": [
    "cn-standard",
    "cn-social"
  ],
  "lookbackDays": 3,
  "excludePastDeadline": true,
  "preferredLanguage": "eng",
  "onlyNew": true,
  "maxItems": 500
}
```

# Actor output Schema

## `notices` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cpvCodes": [
        "72"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("asunoki/ted-tenders-feed").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "cpvCodes": ["72"] }

# Run the Actor and wait for it to finish
run = client.actor("asunoki/ted-tenders-feed").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cpvCodes": [
    "72"
  ]
}' |
apify call asunoki/ted-tenders-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,asunoki/ted-tenders-feed"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vDMhgiuIP1v68nQlY/builds/lh1uCQXrBXx2o2aJ0/openapi.json
