{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Tenders API — TED, Find a Tender & Contracts Finder",
    "description": "EU and UK public tenders in one dataset: TED notices from across the EU/EEA, UK Find a Tender and Contracts Finder. Filter by keyword, CPV code, country, stage, dates, deadline, value and buyer. Deadlines, values, winners and links on one row. No API key.",
    "version": "0.1",
    "x-build-id": "VzZ5PaSJRw8eDh0WX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insight.solutions~public-tenders-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insight.solutions-public-tenders-api",
        "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/insight.solutions~public-tenders-api/runs": {
      "post": {
        "operationId": "runs-sync-insight.solutions-public-tenders-api",
        "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/insight.solutions~public-tenders-api/run-sync": {
      "post": {
        "operationId": "run-sync-insight.solutions-public-tenders-api",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official procurement journals to read. `ted` is the EU's Tenders Electronic Daily (every above-threshold notice in the EU/EEA). `uk-fts` is the UK's Find a Tender service (above-threshold UK notices since 2021). `uk-cf` is UK Contracts Finder (lower-value public-sector contracts, mostly England). All three are keyless and produce the same columns.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk-fts",
                "uk-cf"
              ],
              "enumTitles": [
                "TED — EU Tenders Electronic Daily",
                "UK Find a Tender",
                "UK Contracts Finder"
              ]
            },
            "default": [
              "ted",
              "uk-fts",
              "uk-cf"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Free text. A notice must match at least one. TED searches the full notice text server-side; the UK services have no working keyword filter, so there the words are matched (case-insensitively) against the title, description, buyer name and CPV descriptions before a row is written — never billed if it does not match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, 2 to 8 digits: `72` is IT services, `45` construction, `85` health and social work. A short code covers everything under it on every source (TED walks the CPV hierarchy; the UK rows are matched on the code prefix). A check digit like `72000000-6` is accepted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO 3166-1 alpha-3 as TED uses them (`DEU`, `FRA`, `NLD`); alpha-2 (`DE`, `FR`, `EL`, `UK`) is accepted and mapped. Filters TED on the buyer's country. The UK sources only publish UK notices: if this list is set and does not include `GBR`, they are skipped with a free row saying so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Which stage of the procurement to return. `planning` prior-information and market-engagement notices, `tender` open calls for competition, `award` contract awards, `modification` changes to let contracts, `other` corrigenda and everything else.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "tender",
                "award",
                "modification",
                "other"
              ],
              "enumTitles": [
                "Planning (prior information)",
                "Tender (open calls)",
                "Award (contract awards)",
                "Modification (contract changes)",
                "Other (corrigenda, …)"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "ISO date, e.g. `2026-09-01`. Leave empty for 7 days before \"Published to\". On Find a Tender this is the last-updated date — the only window that API offers.",
            "default": ""
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "ISO date. Leave empty for today.",
            "default": ""
          },
          "deadlineFrom": {
            "title": "Deadline from",
            "type": "string",
            "description": "Keep only notices whose tender deadline is on or after this ISO date. A notice without a published deadline is left out when this is set.",
            "default": ""
          },
          "deadlineTo": {
            "title": "Deadline to",
            "type": "string",
            "description": "Keep only notices whose tender deadline is on or before this ISO date.",
            "default": ""
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "number",
            "description": "Keep only notices worth at least this much, in the notice's own currency (no currency conversion): the estimated value, else the awarded value. A notice publishing neither is left out when this is set."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "number",
            "description": "Keep only notices worth at most this much, in the notice's own currency."
          },
          "buyerNames": {
            "title": "Buyer names",
            "type": "array",
            "description": "Contracting-authority names or parts of them, e.g. `Home Office`, `Stadt`. TED matches them server-side; the UK rows are matched as a case-insensitive substring of the buyer name.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDescriptions": {
            "title": "Include descriptions",
            "type": "boolean",
            "description": "Return each notice's description (clipped to 4,000 characters). Descriptions are most of a TED response, so turning this off makes TED runs lighter. Keyword matching on the UK sources still reads them either way.",
            "default": true
          },
          "language": {
            "title": "Preferred language (TED)",
            "enum": [
              "eng",
              "deu",
              "fra",
              "spa",
              "ita",
              "nld",
              "pol",
              "por",
              "ron",
              "swe",
              "ces",
              "dan",
              "fin",
              "ell",
              "hun",
              "slk",
              "slv",
              "bul",
              "hrv",
              "est",
              "lav",
              "lit",
              "mlt",
              "gle"
            ],
            "type": "string",
            "description": "TED publishes every title in all 24 EU languages (machine-translated). Which one to return; falls back to English, then to the notice's own language. The original language is always in the `language` column.",
            "default": "eng"
          },
          "maxResults": {
            "title": "Max results per source",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "How many paid notices each selected source may return. `0` means no cap (bounded by the time budget). A three-source run at the default tops out at 600 notices.",
            "default": 200
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many sources are read at once. Pages within one source are always read one after another, with a pause between them.",
            "default": 3
          },
          "maxRunSecs": {
            "title": "Time budget (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Stop fetching after this many seconds and keep everything already returned.",
            "default": 240
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "All three APIs answered from Apify's datacenter proxy and from no proxy at all in testing, so the cheap datacenter pool is the default and a cleared field still works.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}