# EU Green Public Tenders Radar (TED): Waste, Water, Forestry (`rubenpa/ted-green-radar`) Actor

Open EU tenders in waste, water, forestry, wildfire prevention, street cleaning and environment from the official TED API. 0-100 relevance score, false positives removed, no personal data. Unofficial service.

- **URL**: https://apify.com/rubenpa/ted-green-radar.md
- **Developed by:** [Ruben](https://apify.com/rubenpa) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 green tender delivereds

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 Green Public Tenders Radar (TED)

**Find the open EU public tenders that matter for the green economy (waste, water, forestry, wildfire prevention, street cleaning, environment), already scored, cleaned and without personal data.**

Built exclusively on the **official TED (Tenders Electronic Daily) v3 Search API** (`api.ted.europa.eu`, anonymous open-data access, no HTML scraping, no login). One run returns relevant, de-duplicated tenders across all 27 EU member states (plus optional EEA/EFTA, UK and other TED publishers), each with a **0-100 relevance score**, the reason it matched and the **official TED link**.

> Unofficial service. **Not affiliated with, endorsed by or sponsored by the European Union, the European Commission or the Publications Office of the EU.** Only notices published in the Official Journal of the EU (Supplement) are authentic: always verify against the official TED notice (`officialUrl`) before acting.

### Why this actor and not a generic TED scraper?

Generic TED scrapers dump every notice that matches a CPV code or a keyword. This one answers a specific question, *"which open tenders in Europe are really about waste, water, forests, wildfire or the environment?"*:

| | Generic TED scrapers | **EU Green Public Tenders Radar** |
|---|---|---|
| Focus | everything | **green sectors only**, curated CPV rules + multilingual text rules (24 EU languages covered by stems of the main ones) |
| Relevance | none (you filter yourself) | **0-100 score per tender + `matchReason`** (which CPV / phrase counted, which penalty applied) |
| False positives | many ("cleaning of schools" as waste, extinguishers as wildfire, firewood as forestry) | **actively removed**: building cleaning (CPV 909xxxxx), fire protection of buildings, wood/fuel supply, IT or insurance contracts that just mention a keyword, waste-management plans inside construction projects, hospital/indoor environment... |
| Personal data | many expose buyer contact persons, emails and phones | **never downloaded**: contact fields are not even requested from TED; free text is scrubbed; person-like buyer names are withheld |
| Coverage | one query, one country at a time | **all EU countries in one run**, `maxPerCountry` (default 25) so big buyers do not crowd out the rest |
| Legal | rarely documented | **attribution and licence in every item** (Commission Decision 2011/833/EU), polite API usage within TED fair-usage limits |
| Sister actor | n/a | pairs with *Spain Green Public Tenders Radar (PLACSP)*, same scoring philosophy, for Spanish sub-threshold tenders TED does not carry |

### What you get (output)

Each dataset item (English field names):

| Field | Description |
|---|---|
| `id` | TED publication number (e.g. `756427-2026`) |
| `title`, `titleLanguage` | Title in your language when TED has it, otherwise the original (ISO 639-3 code shown) |
| `buyer` | Contracting authority (institution). Person-like names are withheld |
| `country`, `nuts` | Buyer country (ISO 3166-1 alpha-2) and NUTS place of performance |
| `cpv` | CPV codes (main first) |
| `estimatedValue`, `currency` | Estimated value as published (notice currency; `null` when not published) |
| `deadline` | Earliest future tender deadline (ISO date or date-time with offset) |
| `procedureType`, `noticeType` | e.g. `Open`, `Contract notice` |
| `publicationDate` | TED publication date |
| `officialUrl` | Official TED notice page (in your chosen language) |
| `contractNature` | `works`, `services` or `supplies` |
| `categories`, `primaryCategory` | Matched sectors: `waste`, `water_sanitation`, `forestry`, `wildfire`, `street_cleaning`, `environment` (+ optional `green_spaces`, `custom`) |
| `relevanceScore` | 0-100 |
| `matchReason` | Human-readable evidence and penalties |
| `source`, `legalNotice` | Attribution, licence basis and the unofficial/not-affiliated disclaimer |

A run summary (tenders per country and per sector, TED query used) is stored in the key-value store under `SUMMARY`. See [`examples/sample-output.json`](examples/sample-output.json) for real output.

### Quick start

**In the Apify Console:** open the actor, keep the defaults (all EU countries, six green sectors, open deadlines, last 30 days, 100 tenders) and press **Start**. Typical run: ~10 seconds.

**Via API (curl):**

```bash
curl -X POST "https://api.apify.com/v2/acts/rubenpa~ted-green-radar/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"countries":["ES","FR","IT","PT"],"categories":["wildfire","forestry"],"minBudget":100000,"maxItems":50,"titleLanguage":"en"}'
```

**With the JavaScript client:**

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('rubenpa/ted-green-radar').call({ countries: ['DE', 'AT'], categories: ['waste', 'water_sanitation'], minRelevance: 60 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Schedule it daily (Apify Schedules + `daysBack: 2`) to get a fresh feed of new green tenders.

### Input

| Field | Default | Description |
|---|---|---|
| `countries` | all 27 EU states | ISO-2 codes of the **buyer** country (EEA/EFTA, UK, UA, RS... selectable) |
| `categories` | the 6 core sectors | `waste`, `water_sanitation`, `forestry`, `wildfire`, `street_cleaning`, `environment`; optional `green_spaces`. Spanish aliases (`residuos`, `agua_saneamiento`, `forestal`, `incendios`, `limpieza_viaria`, `medio_ambiente`) are accepted via API |
| `minRelevance` | 40 | Minimum score (60+ for clear-cut cases only) |
| `onlyOpenDeadlines` | true | Only tenders whose deadline has not passed |
| `daysBack` | 30 | Publication window (1-365 days) |
| `minBudget` / `maxBudget` | 0 (no limit) | Estimated value in the notice's own currency; tenders without value are dropped if set |
| `includeUnknownBudget` | no | When a budget filter is set, also keep notices with no published value (flagged as `budgetUnknown`). Off by default: they are dropped and not charged (pay-per-event) |
| `keywords` | none | Your own words (any language): searched in TED full text, counted as strong evidence ("custom" sector) |
| `cpvPrefixes` | none | Your own CPV prefixes counted as strong evidence |
| `excludeKeywords` | none | Drop tenders mentioning these words |
| `titleLanguage` | `en` | Language for titles (when TED provides it) and TED links |
| `maxItems` | 100 | Stop after N relevant tenders (you pay per delivered tender) |
| `maxPerCountry` | 25 | Cap per country for a balanced result (0 = unlimited) |
| `maxPages` | 12 | Safety limit: pages of 100 TED notices scanned |

### How relevance is scored

- **CPV** (Common Procurement Vocabulary) is the backbone: a main CPV in a green group (e.g. 905xxxxx waste, 904xxxxx sewage, 772xxxxx forestry, 75251120 forest fire fighting, 907xxxxx environment) = 60 points, plus up to 20 for additional green CPVs. A secondary CPV alone (35) is never enough.
- **Text** (title and description, 24-language coverage through stems of the main EU languages) adds 45 points for a clear sector phrase (e.g. *odpady komunalne*, *Abwasser*, *incendios forestales*, *feux de forêt*, *wastewater*). A mention only in the description of a generic works/supply contract counts half.
- **Penalties** remove typical false friends (see table above). A strong main CPV is attenuated, not erased, by text-based penalties, except for hard cases (building cleaning CPV 909xxxxx, wood supply).
- Everything is shown in `matchReason`, so you can audit every decision.

### Legal, licence and data protection

- **Source:** Tenders Electronic Daily (TED), Publications Office of the European Union, via the official **TED v3 Search API** (`POST https://api.ted.europa.eu/v3/notices/search`). Documentation: <https://docs.ted.europa.eu/api/latest/search.html>. The Search API is anonymous by design ("primarily targeted at data reusers and does not require authentication").
- **Reuse licence:** the TED legal notice states that "the European Commission's reuse policy is implemented by the Commission Decision of 12 December 2011 on the reuse of Commission documents (2011/833/EU). 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." (<https://ted.europa.eu/en/legal-notice>). Editorial content of the TED sites is CC BY 4.0. **Attribution is included in every item** (`source`, `legalNotice`).
- **What we do not reuse:** no logos, emblems or flags of the EU/TED (the actor icon is original); no third-party content. Notices are filtered, scored and reformatted: such changes are indicated and the original meaning is not altered. The score and categories are our own annotation, not an official classification.
- **Fair usage:** one request about every 0.4 s (TED allows 700/min per IP), automatic back-off on HTTP 429/5xx, identifying `User-Agent`. See <https://ted.europa.eu/en/news/fair-usage-policy-on-ted>.
- **GDPR / personal data:** the actor requests only non-personal fields from TED. Buyer contact points, contact persons, emails, phones, bidders and winners are **never downloaded**. Free text (titles, buyer name) is scrubbed for emails, phones, IBANs and national-ID-like numbers, and buyer names that look like a natural person are replaced by `[withheld: possible natural person]`. Contracting authorities are public bodies or utilities; if you spot personal data anyway, tell us and we will fix it.
- **No guarantees:** data can be incomplete, late or wrong. This is not legal or bidding advice.
- **Your responsibility:** you must comply with the TED legal notice and applicable law when you reuse the data (keep the attribution).

### Pricing

Pay-per-event: **$0.003 per delivered tender** (event `tender-item`). A default run of 100 tenders costs $0.30 plus a negligible amount of Apify platform usage (a few thousandths of a dollar). You can cap spending with the standard Apify "maximum cost per run" setting; the actor stops cleanly when the cap is reached.

### Limitations

- TED only carries notices above the EU thresholds (plus voluntary ones). National sub-threshold tenders are not included (for Spain see the sister actor).
- Titles are published in the buyer's language; translations exist only sometimes.
- `estimatedValue` is `null` when the buyer did not publish it. Values are in the notice currency (no conversion).
- The multilingual text rules are heuristics; use `minRelevance`, `excludeKeywords` and `matchReason` to tune precision.

***

## Radar de licitaciones verdes de la UE (TED)

**Encuentra las licitaciones públicas europeas abiertas que importan para la economía verde (residuos, agua, forestal, prevención de incendios forestales, limpieza viaria, medio ambiente), ya puntuadas, depuradas y sin datos personales.**

Se basa únicamente en la **API oficial de búsqueda v3 de TED** (Tenders Electronic Daily, `api.ted.europa.eu`, acceso anónimo a datos abiertos, sin scraping de HTML ni login). Una ejecución devuelve licitaciones relevantes y sin duplicados de los 27 Estados miembros (y opcionalmente EEE/AELC, Reino Unido y otros), cada una con una **puntuación de relevancia 0-100**, el motivo de la coincidencia y el **enlace oficial a TED**.

> Servicio no oficial. **Sin vinculación, respaldo ni patrocinio de la Unión Europea, la Comisión Europea ni la Oficina de Publicaciones de la UE.** Solo los anuncios publicados en el Diario Oficial de la UE (Suplemento) son auténticos: contrasta siempre con el anuncio oficial de TED (`officialUrl`) antes de actuar.

### ¿Por qué este actor y no un scraper genérico de TED?

- **Enfoque verde:** reglas CPV curadas y reglas de texto multilingües (los 24 idiomas oficiales, mediante raíces de los principales).
- **Puntuación 0-100 y `matchReason`:** sabes por qué entró cada licitación y qué penalización se aplicó.
- **Falsos positivos eliminados:** limpieza de edificios (CPV 909xxxxx), protección contra incendios de edificios (extintores, alarmas), suministro de leña/madera, contratos de TI o seguros que solo mencionan una palabra, planes de gestión de residuos dentro de obras, ambiente interior de hospitales...
- **Privacidad (RGPD):** los datos de contacto ni siquiera se piden a TED; los textos libres se depuran (correos, teléfonos, IBAN, identificadores) y los nombres de comprador que parecen de persona física se ocultan.
- **Multipaís:** todos los países de la UE en una ejecución, con `maxPerCountry` (25 por defecto) para que los grandes compradores no tapen al resto.
- **Legal:** atribución y licencia en cada ítem (Decisión 2011/833/UE) y uso respetuoso de la API (límites de uso justo de TED).
- **Actor hermano:** complementa a *Spain Green Public Tenders Radar (PLACSP)*, que cubre las licitaciones españolas por debajo de umbral que TED no recoge.

### Qué obtienes (salida)

Cada ítem del dataset (campos en inglés): `id`, `title`, `titleLanguage`, `buyer`, `country`, `nuts`, `cpv`, `estimatedValue`, `currency`, `deadline`, `procedureType`, `noticeType`, `publicationDate`, `officialUrl`, `contractNature`, `categories`, `primaryCategory`, `relevanceScore`, `matchReason`, `source` y `legalNotice`. En el almacén clave-valor, bajo `SUMMARY`, se guarda el resumen de la ejecución (licitaciones por país y sector, consulta usada). Mira [`examples/sample-output.json`](examples/sample-output.json).

### Inicio rápido

**En la Consola de Apify:** abre el actor, deja los valores por defecto (toda la UE, seis sectores verdes, plazos abiertos, últimos 30 días, 100 licitaciones) y pulsa **Start**. Una ejecución típica tarda unos 10 segundos.

**Por API:**

```bash
curl -X POST "https://api.apify.com/v2/acts/rubenpa~ted-green-radar/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"countries":["ES","FR","IT","PT"],"categories":["wildfire","forestry"],"minBudget":100000,"maxItems":50,"titleLanguage":"es"}'
```

Prográmalo cada día (Schedules de Apify con `daysBack: 2`) para recibir las licitaciones verdes nuevas.

### Entrada

`countries` (países del comprador, ISO-2; por defecto toda la UE), `categories` (por defecto los 6 sectores principales: `waste`/`residuos`, `water_sanitation`/`agua_saneamiento`, `forestry`/`forestal`, `wildfire`/`incendios`, `street_cleaning`/`limpieza_viaria`, `environment`/`medio_ambiente`; opcional `green_spaces`/`zonas_verdes`), `minRelevance` (40), `onlyOpenDeadlines` (sí), `daysBack` (30), `minBudget`/`maxBudget` (importe estimado en la moneda del anuncio; si se fija, se descartan las licitaciones sin importe, salvo `includeUnknownBudget`), `includeUnknownBudget` (no; opt-in para importes no publicados), `keywords` (palabras propias en cualquier idioma), `cpvPrefixes`, `excludeKeywords`, `titleLanguage` (idioma de los títulos cuando TED lo ofrece y de los enlaces; por defecto inglés), `maxItems` (100), `maxPerCountry` (25 por defecto; 0 = sin tope) y `maxPages` (12).

### Cómo se puntúa la relevancia

- **CPV** como base: un CPV principal verde (905 residuos, 904 saneamiento, 772 forestal, 75251120 extinción de incendios forestales, 907 medio ambiente) da 60 puntos, más hasta 20 por CPV verdes adicionales. Un CPV secundario solo (35) nunca basta.
- **Texto** (título y descripción): +45 por una expresión clara del sector (*odpady komunalne*, *Abwasser*, *incendios forestales*, *feux de forêt*...). Una mención solo en la descripción de una obra o suministro genérico cuenta la mitad.
- **Penalizaciones** para los falsos amigos habituales. Todo queda explicado en `matchReason`.

### Aspectos legales, licencia y protección de datos

- **Fuente:** Tenders Electronic Daily (TED), Oficina de Publicaciones de la Unión Europea, mediante la **API oficial de búsqueda v3** (<https://docs.ted.europa.eu/api/latest/search.html>), de acceso anónimo.
- **Licencia de reutilización:** el aviso legal de TED indica que los anuncios de contratación publicados en el Suplemento del Diario Oficial de la UE «pueden reutilizarse libremente, con fines comerciales o no comerciales» conforme a la Decisión de la Comisión de 12 de diciembre de 2011 sobre la reutilización de documentos de la Comisión (2011/833/UE) (<https://ted.europa.eu/en/legal-notice>). El contenido editorial de los sitios TED es CC BY 4.0. **La atribución va en cada ítem** (`source`, `legalNotice`).
- **Lo que no usamos:** ningún logotipo, emblema ni bandera de la UE/TED (el icono es original). Los anuncios se filtran, puntúan y reformatean; el sentido original no se altera. La puntuación y las categorías son anotación propia, no una clasificación oficial.
- **Uso justo:** una petición cada 0,4 s aprox. (TED permite 700/min por IP), con reintentos y espera ante errores 429/5xx y `User-Agent` identificativo.
- **RGPD:** solo se piden a TED campos no personales. Puntos de contacto, personas de contacto, correos, teléfonos, licitadores y adjudicatarios **no se descargan nunca**. Los textos libres se depuran y los nombres de comprador que parecen de persona física se sustituyen por `[withheld: possible natural person]`.
- **Sin garantías:** los datos pueden ser incompletos, tardíos o erróneos. No es asesoramiento jurídico ni para licitar. Eres responsable de cumplir el aviso legal de TED y la normativa aplicable al reutilizar los datos (mantén la atribución).

### Precio

Pago por evento: **0,003 USD por licitación entregada** (evento `tender-item`). Una ejecución por defecto de 100 licitaciones cuesta 0,30 USD más un uso de plataforma insignificante. Puedes limitar el gasto con el coste máximo por ejecución de Apify; el actor se detiene limpiamente al alcanzarlo.

### Limitaciones

- TED solo recoge anuncios por encima de los umbrales europeos (más los voluntarios); las licitaciones nacionales menores no están (para España, usa el actor hermano).
- Los títulos se publican en el idioma del comprador; las traducciones existen solo a veces.
- `estimatedValue` es `null` si el comprador no lo publica; no hay conversión de moneda.
- Las reglas de texto multilingües son heurísticas: ajusta `minRelevance`, `excludeKeywords` y revisa `matchReason`.

# Actor input Schema

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

Countries of the contracting authority (ISO 3166-1 alpha-2). Default: all 27 EU member states. EEA/EFTA, UK and other TED publishers can be added.

## `categories` (type: `array`):

Green sectors to search. Default: the six core sectors. 'Green spaces & gardening' is optional. Building cleaning (CPV 909xxxxx) is deliberately NOT a sector: it is not green.

## `minRelevance` (type: `integer`):

Only tenders scoring at least this are delivered. 40 (default) balances precision and coverage; 60+ keeps only clear-cut cases.

## `onlyOpenDeadlines` (type: `boolean`):

Keep only contract notices whose submission deadline has not passed (recommended). Turn off to also get notices with past or missing deadlines.

## `daysBack` (type: `integer`):

Look-back window on the TED publication date (1-365).

## `minBudget` (type: `integer`):

Minimum estimated contract value, in the notice's own currency (EUR for most countries; PLN, CZK, RON, HUF... elsewhere). Tenders without a published value are dropped when this is set, unless includeUnknownBudget is true. 0 = no limit.

## `maxBudget` (type: `integer`):

Maximum estimated contract value, same currency rules as the minimum. 0 = no limit.

## `includeUnknownBudget` (type: `boolean`):

Off by default. When a min/max budget filter is set, tenders without a published estimated value are dropped and not charged (pay-per-event). Turn this on only if you want them delivered, flagged as budgetUnknown.

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

Optional own words/phrases (any language). They are searched in TED full text and count as strong evidence under the 'custom' sector, in addition to the sectors above.

## `cpvPrefixes` (type: `array`):

Optional own CPV code prefixes (e.g. 90513 or 77230000) that count as strong evidence under the 'custom' sector.

## `excludeKeywords` (type: `array`):

Tenders whose title or description contains any of these words are dropped.

## `titleLanguage` (type: `string`):

TED publishes each title in the buyer's language, sometimes also translated. This language is used when available (otherwise the original is delivered, see titleLanguage in each item), and the TED link opens in this language.

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

Stops after this many relevant tenders (you are charged per delivered tender).

## `maxPerCountry` (type: `integer`):

Cap per country so that big buyers (for example the Polish state forests, which publish hundreds of near-identical tenders) do not crowd out other countries. 25 by default; 0 = unlimited.

## `maxPages` (type: `integer`):

Safety limit: pages of 100 TED notices scanned (1-100). If reached, the run is flagged truncated in RUN_SUMMARY.

## `extendedRetrieval` (type: `boolean`):

Also query TED full text with multilingual sector phrases and extra CPV codes (drinking water, street sweeping, forestry machinery...). Catches green notices filed under generic CPV codes. The classifier still decides what is relevant.

## Actor input object example

```json
{
  "countries": [
    "AT",
    "BE",
    "BG",
    "HR",
    "CY",
    "CZ",
    "DK",
    "EE",
    "FI",
    "FR",
    "DE",
    "GR",
    "HU",
    "IE",
    "IT",
    "LV",
    "LT",
    "LU",
    "MT",
    "NL",
    "PL",
    "PT",
    "RO",
    "SK",
    "SI",
    "ES",
    "SE"
  ],
  "categories": [
    "waste",
    "water_sanitation",
    "forestry",
    "wildfire",
    "street_cleaning",
    "environment"
  ],
  "minRelevance": 40,
  "onlyOpenDeadlines": true,
  "daysBack": 30,
  "minBudget": 0,
  "maxBudget": 0,
  "includeUnknownBudget": false,
  "keywords": [],
  "cpvPrefixes": [],
  "excludeKeywords": [],
  "titleLanguage": "en",
  "maxItems": 100,
  "maxPerCountry": 25,
  "maxPages": 40,
  "extendedRetrieval": true
}
```

# Actor output Schema

## `tenders` (type: `string`):

No description

## `dataset` (type: `string`):

No description

## `summary` (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 = {
    "countries": [
        "AT",
        "BE",
        "BG",
        "HR",
        "CY",
        "CZ",
        "DK",
        "EE",
        "FI",
        "FR",
        "DE",
        "GR",
        "HU",
        "IE",
        "IT",
        "LV",
        "LT",
        "LU",
        "MT",
        "NL",
        "PL",
        "PT",
        "RO",
        "SK",
        "SI",
        "ES",
        "SE"
    ],
    "categories": [
        "waste",
        "water_sanitation",
        "forestry",
        "wildfire",
        "street_cleaning",
        "environment"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rubenpa/ted-green-radar").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 = {
    "countries": [
        "AT",
        "BE",
        "BG",
        "HR",
        "CY",
        "CZ",
        "DK",
        "EE",
        "FI",
        "FR",
        "DE",
        "GR",
        "HU",
        "IE",
        "IT",
        "LV",
        "LT",
        "LU",
        "MT",
        "NL",
        "PL",
        "PT",
        "RO",
        "SK",
        "SI",
        "ES",
        "SE",
    ],
    "categories": [
        "waste",
        "water_sanitation",
        "forestry",
        "wildfire",
        "street_cleaning",
        "environment",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("rubenpa/ted-green-radar").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 '{
  "countries": [
    "AT",
    "BE",
    "BG",
    "HR",
    "CY",
    "CZ",
    "DK",
    "EE",
    "FI",
    "FR",
    "DE",
    "GR",
    "HU",
    "IE",
    "IT",
    "LV",
    "LT",
    "LU",
    "MT",
    "NL",
    "PL",
    "PT",
    "RO",
    "SK",
    "SI",
    "ES",
    "SE"
  ],
  "categories": [
    "waste",
    "water_sanitation",
    "forestry",
    "wildfire",
    "street_cleaning",
    "environment"
  ]
}' |
apify call rubenpa/ted-green-radar --silent --output-dataset

```

## MCP server setup

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

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/XIRHJQmLtIU6pSEWZ/builds/4acsKY0bbtSe1HjvC/openapi.json
