{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders API — TED Tenders Electronic Daily (EU-27 + EEA)",
    "description": "EU public tenders, awards and prior notices from TED (Tenders Electronic Daily) official API, all 27 EU countries + EEA. Filter by keyword, country, NUTS, CPV, deadline and value in EUR. Daily only-new alerts. $1 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "b4becaQQyocYv636z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/icarodata~eu-ted-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-icarodata-eu-ted-tenders",
        "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/icarodata~eu-ted-tenders/runs": {
      "post": {
        "operationId": "runs-sync-icarodata-eu-ted-tenders",
        "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/icarodata~eu-ted-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-icarodata-eu-ted-tenders",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. Full-text search in the notice (any language TED indexes). A notice is kept if ANY keyword or phrase matches, e.g. 'cybersecurity', 'cloud computing', 'logiciel', 'mantenimiento'. Leave empty for all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywordsInTitleOnly": {
            "title": "Match keywords in title only",
            "type": "boolean",
            "description": "Search keywords only in the notice title instead of the full text (fewer, more precise hits).",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Optional. Drop notices whose title, description or buyer contains ANY of these words.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Optional. ISO codes (ES, FR, DE, IT, PL or ESP, FRA…), English names (Spain) or 'EU' for the 27 member states. Leave empty for every country on TED (EU, EEA, Switzerland, candidates, EU institutions).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "nutsCodes": {
            "title": "NUTS codes (place of performance)",
            "type": "array",
            "description": "Optional NUTS prefixes for the place of performance, e.g. ES51 (Catalonia), ES30 (Madrid), FR10 (Île-de-France), DE21 (Upper Bavaria), ITC4 (Lombardy).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Optional CPV codes or prefixes: 72000000 (IT services), 45 (construction), 33600000 (pharmaceuticals). Trailing zeros are a prefix. Matches main and additional CPV codes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which kinds of notices to return. Default: calls for tenders.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award",
                "planning",
                "contract_change",
                "direct_award",
                "market_consultation"
              ],
              "enumTitles": [
                "Contract notice / call for tenders (open for bids)",
                "Contract award notice (result, winners)",
                "Prior information / planning",
                "Contract modification",
                "Voluntary ex-ante transparency (direct award)",
                "Preliminary market consultation"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Optional. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "services",
                "supplies"
              ],
              "enumTitles": [
                "Works",
                "Services",
                "Supplies"
              ]
            },
            "default": []
          },
          "minValueEur": {
            "title": "Minimum value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Estimated value (award value for results), converted to EUR with the latest ECB reference rates."
          },
          "maxValueEur": {
            "title": "Maximum value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper bound in EUR."
          },
          "includeUnknownValue": {
            "title": "Keep notices without a value",
            "type": "boolean",
            "description": "When a value filter is set, keep notices that publish no value. Turn off for strict filtering.",
            "default": true
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Publication window in days, counting today (TED publishes Monday–Friday). Ignored when 'Published from' is set.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Optional start date (YYYY-MM-DD)."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Optional end date (YYYY-MM-DD). Default: today."
          },
          "openForBidsOnly": {
            "title": "Only open for bids",
            "type": "boolean",
            "description": "Keep only notices with a tender deadline today or later.",
            "default": false
          },
          "deadlineFrom": {
            "title": "Deadline on or after",
            "type": "string",
            "description": "Optional. Tender submission deadline on or after this date."
          },
          "smeSuitableOnly": {
            "title": "Only suitable for SMEs",
            "type": "boolean",
            "description": "Keep only notices whose buyer marked at least one lot as suitable for SMEs.",
            "default": false
          },
          "excludeChangeNotices": {
            "title": "Exclude change notices (corrigenda)",
            "type": "boolean",
            "description": "Drop eForms change notices that correct an earlier notice.",
            "default": false
          },
          "buyerKeywords": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Optional. Keep only buyers whose name contains ANY of these words (e.g. 'hospital', 'ministerio', 'Stadt').",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "en",
              "fr",
              "es",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "sv",
              "da",
              "fi",
              "cs",
              "sk",
              "sl",
              "hu",
              "ro",
              "bg",
              "el",
              "hr",
              "et",
              "lv",
              "lt",
              "mt",
              "ga"
            ],
            "type": "string",
            "description": "Language for title, description and buyer name when the notice has it; falls back to the official language. 'summaryTitle' (country – CPV – title) is always translated by TED.",
            "default": "en"
          },
          "advancedQuery": {
            "title": "Advanced TED expert query (optional)",
            "type": "string",
            "description": "Power users: extra TED expert-search clause ANDed to the filters, e.g. procedure-type IN (open) or buyer-legal-type=cga."
          },
          "maxItems": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after saving this many notices (you are charged per saved notice).",
            "default": 100
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Alert mode for schedules: return only notices not delivered by a previous run with the same filters. Already-seen notices are skipped for free.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}