{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Green Public Tenders Radar (TED): Waste, Water, Forestry",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "4acsKY0bbtSe1HjvC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rubenpa~ted-green-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rubenpa-ted-green-radar",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/rubenpa~ted-green-radar/runs": {
      "post": {
        "operationId": "runs-sync-rubenpa-ted-green-radar",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/rubenpa~ted-green-radar/run-sync": {
      "post": {
        "operationId": "run-sync-rubenpa-ted-green-radar",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "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",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "UA",
                "RS",
                "ME",
                "MK",
                "AL",
                "BA",
                "MD",
                "TR"
              ],
              "enumTitles": [
                "Austria (AT)",
                "Belgium (BE)",
                "Bulgaria (BG)",
                "Croatia (HR)",
                "Cyprus (CY)",
                "Czechia (CZ)",
                "Denmark (DK)",
                "Estonia (EE)",
                "Finland (FI)",
                "France (FR)",
                "Germany (DE)",
                "Greece (GR)",
                "Hungary (HU)",
                "Ireland (IE)",
                "Italy (IT)",
                "Latvia (LV)",
                "Lithuania (LT)",
                "Luxembourg (LU)",
                "Malta (MT)",
                "Netherlands (NL)",
                "Poland (PL)",
                "Portugal (PT)",
                "Romania (RO)",
                "Slovakia (SK)",
                "Slovenia (SI)",
                "Spain (ES)",
                "Sweden (SE)",
                "Norway (NO)",
                "Iceland (IS)",
                "Liechtenstein (LI)",
                "Switzerland (CH)",
                "United Kingdom (GB)",
                "Ukraine (UA)",
                "Serbia (RS)",
                "Montenegro (ME)",
                "North Macedonia (MK)",
                "Albania (AL)",
                "Bosnia and Herzegovina (BA)",
                "Moldova (MD)",
                "Türkiye (TR)"
              ]
            },
            "default": [
              "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": {
            "title": "Sectors",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "waste",
                "water_sanitation",
                "forestry",
                "wildfire",
                "street_cleaning",
                "environment",
                "green_spaces"
              ],
              "enumTitles": [
                "Waste & circular economy",
                "Water & sanitation",
                "Forestry & land clearing",
                "Wildfire prevention & forest fire fighting",
                "Street cleaning & public spaces",
                "Environment & nature (impact assessments, remediation, biodiversity)",
                "Green spaces & gardening (optional)"
              ]
            },
            "default": [
              "waste",
              "water_sanitation",
              "forestry",
              "wildfire",
              "street_cleaning",
              "environment"
            ]
          },
          "minRelevance": {
            "title": "Minimum relevance (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only tenders scoring at least this are delivered. 40 (default) balances precision and coverage; 60+ keeps only clear-cut cases.",
            "default": 40
          },
          "onlyOpenDeadlines": {
            "title": "Only tenders still open for bids",
            "type": "boolean",
            "description": "Keep only contract notices whose submission deadline has not passed (recommended). Turn off to also get notices with past or missing deadlines.",
            "default": true
          },
          "daysBack": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Look-back window on the TED publication date (1-365).",
            "default": 30
          },
          "minBudget": {
            "title": "Minimum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "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.",
            "default": 0
          },
          "maxBudget": {
            "title": "Maximum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum estimated contract value, same currency rules as the minimum. 0 = no limit.",
            "default": 0
          },
          "includeUnknownBudget": {
            "title": "Include tenders with no published value",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "keywords": {
            "title": "Extra keywords",
            "type": "array",
            "description": "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.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "Extra CPV prefixes",
            "type": "array",
            "description": "Optional own CPV code prefixes (e.g. 90513 or 77230000) that count as strong evidence under the 'custom' sector.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Words to exclude",
            "type": "array",
            "description": "Tenders whose title or description contains any of these words are dropped.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "titleLanguage": {
            "title": "Language of titles and TED links",
            "enum": [
              "en",
              "bg",
              "cs",
              "da",
              "de",
              "el",
              "es",
              "et",
              "fi",
              "fr",
              "ga",
              "hr",
              "hu",
              "it",
              "lt",
              "lv",
              "mt",
              "nl",
              "pl",
              "pt",
              "ro",
              "sk",
              "sl",
              "sv"
            ],
            "type": "string",
            "description": "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.",
            "default": "en"
          },
          "maxItems": {
            "title": "Maximum tenders",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stops after this many relevant tenders (you are charged per delivered tender).",
            "default": 100
          },
          "maxPerCountry": {
            "title": "Maximum per country",
            "minimum": 0,
            "type": "integer",
            "description": "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.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum TED result pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Safety limit: pages of 100 TED notices scanned (1-100). If reached, the run is flagged truncated in RUN_SUMMARY.",
            "default": 40
          },
          "extendedRetrieval": {
            "title": "Extended retrieval (recommended)",
            "type": "boolean",
            "description": "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.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}