{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders (TED) Scraper",
    "description": "EU public procurement notices from TED (Tenders Electronic Daily) as clean dataset items: title, buyer, country, CPV codes, values, deadline, procedure type and document links. Filter by country, CPV, keywords, notice type, dates and value, or pass a raw TED expert query. Official open API, no key.",
    "version": "0.1",
    "x-build-id": "4hY0wIeueKldSnzSv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/davidts~eu-tenders-ted-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-davidts-eu-tenders-ted-scraper",
        "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/davidts~eu-tenders-ted-scraper/runs": {
      "post": {
        "operationId": "runs-sync-davidts-eu-tenders-ted-scraper",
        "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/davidts~eu-tenders-ted-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-davidts-eu-tenders-ted-scraper",
        "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",
            "uniqueItems": true,
            "type": "array",
            "description": "Only notices whose buyer is in one of these countries. Use the ISO 3166-1 alpha-3 codes TED uses (`CYP` Cyprus, `GRC` Greece, `DEU` Germany, `FRA` France, `ITA` Italy, `ESP` Spain, `POL` Poland, `NLD` Netherlands, `GBR` United Kingdom, `NOR` Norway, `CHE` Switzerland, ...). Two-letter EU/EEA codes (`CY`, `GR`, `DE`, ...) are converted automatically. Leave empty for all countries.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2,3}$"
            }
          },
          "cpvCodes": {
            "title": "CPV codes or prefixes",
            "uniqueItems": true,
            "type": "array",
            "description": "Common Procurement Vocabulary codes that classify what is being bought. Give full 8-digit codes (`72260000` software-related services, `45000000` construction work) or just a prefix to cover a whole division (`72` = all IT services, `33` = medical equipment, `79` = business services). Leave empty for all sectors. Not sure which code? Look it up in the official CPV list or use Keywords instead.",
            "items": {
              "type": "string",
              "pattern": "^\\d{2,8}(-\\d)?$"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words that must all appear in the notice text (title, descriptions, buyer name ... in any language, stemmed). Put phrases in double quotes, e.g. `\"software maintenance\" ERP`. Leave empty for no text filter."
          },
          "noticeTypes": {
            "title": "Notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Only notices of these TED notice types. The most useful ones: `cn-standard` = contract notice (a call for tenders you can bid on), `can-standard` = contract award notice (who won and for how much), `pin-only` = prior information notice (a buyer announcing what it plans to buy). Leave empty for all types. To find tenders you can still bid on, choose `cn-standard` (or tick Only tenders open for submission).",
            "items": {
              "type": "string",
              "enum": [
                "cn-standard",
                "cn-social",
                "cn-desg",
                "pin-only",
                "pin-buyer",
                "pin-rtl",
                "pin-cfc-standard",
                "pin-cfc-social",
                "pin-tran",
                "qu-sy",
                "subco",
                "veat",
                "can-standard",
                "can-social",
                "can-desg",
                "can-tran",
                "can-modif",
                "compl",
                "pmc",
                "brin-ecs",
                "brin-eeig"
              ],
              "enumTitles": [
                "Contract or concession notice - standard regime (cn-standard)",
                "Contract notice - light regime, social and other specific services (cn-social)",
                "Design contest notice (cn-desg)",
                "Prior information notice - information only (pin-only)",
                "Prior information notice on a buyer profile (pin-buyer)",
                "Prior information notice used to shorten time limits (pin-rtl)",
                "Prior information notice used as a call for competition - standard regime (pin-cfc-standard)",
                "Prior information notice used as a call for competition - light regime (pin-cfc-social)",
                "Prior information notice for public passenger transport (pin-tran)",
                "Notice on the existence of a qualification system (qu-sy)",
                "Subcontracting notice (subco)",
                "Voluntary ex-ante transparency notice (veat)",
                "Contract or concession award notice - standard regime (can-standard)",
                "Contract or concession award notice - light regime (can-social)",
                "Design contest result notice (can-desg)",
                "Contract award notice for public passenger transport (can-tran)",
                "Contract modification notice (can-modif)",
                "Contract completion notice (compl)",
                "Pre-market consultation notice (pmc)",
                "European Company / European Cooperative Society notice (brin-ecs)",
                "European Economic Interest Grouping notice (brin-eeig)"
              ]
            }
          },
          "publishedAfter": {
            "title": "Published after",
            "pattern": "^(\\d{4})-?(0[1-9]|1[0-2])-?(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Only notices published on TED on or after this date. Absolute date (`2026-01-31` or `20260131`, UTC) or a period counted back from now (`30 days`, `2 weeks`, `6 months`)."
          },
          "publishedBefore": {
            "title": "Published before",
            "pattern": "^(\\d{4})-?(0[1-9]|1[0-2])-?(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Only notices published on TED on or before this date. Absolute date (`2026-03-31`) or a period counted back from now (`7 days`)."
          },
          "deadlineAfter": {
            "title": "Submission deadline after",
            "pattern": "^(\\d{4})-?(0[1-9]|1[0-2])-?(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Only notices whose deadline for receipt of tenders is on or after this date, so you skip tenders you can no longer bid on. Absolute date (`2026-11-15`) or a period counted forward from now (`7 days` = deadline at least a week away). Only competition notices have a deadline."
          },
          "minValue": {
            "title": "Minimum value (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Only notices whose estimated value (or awarded value for award notices) is at least this amount in EUR. Notices that state their value in another currency or do not state a value are excluded when this filter is set."
          },
          "onlyOpenForSubmission": {
            "title": "Only tenders open for submission",
            "type": "boolean",
            "description": "Keep only competition notices (calls for tenders) whose submission deadline has not passed yet, as of the day the run starts.",
            "default": false
          },
          "maxNotices": {
            "title": "Max notices",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of notices to save. Use `0` for all matching notices (careful: broad queries match hundreds of thousands of notices). Each saved notice is one dataset item and one paid result. For a first test, 20-100 is plenty.",
            "default": 500
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "publication-date-desc",
              "publication-date-asc",
              "deadline-asc"
            ],
            "type": "string",
            "description": "`publication-date-desc` = newest first (default), `publication-date-asc` = oldest first, `deadline-asc` = earliest submission deadline first (notices without a deadline, such as award notices, come last or first depending on TED's ordering).",
            "default": "publication-date-desc"
          },
          "fields": {
            "title": "Fields",
            "enum": [
              "basic",
              "full"
            ],
            "type": "string",
            "description": "`basic` = the curated fields documented in the README (title, buyer, CPV, values, dates, links). `full` adds the description, notice and procedure identifiers, OJ S number, dispatch date, submission URL and a `raw` object with every field exactly as the TED API returned it.",
            "default": "basic"
          },
          "includeDocumentLinks": {
            "title": "Include procurement document links",
            "type": "boolean",
            "description": "Add `documentsUrl`, the address where the buyer publishes the tender documents (specifications, forms), when the notice states one.",
            "default": true
          },
          "query": {
            "title": "Raw TED expert query",
            "type": "string",
            "description": "Your own TED expert search query, e.g. `(buyer-country IN (CYP GRC)) AND (classification-cpv = 72*) AND (publication-date >= 20260101)`. When set, it replaces all the filters above (sorting is still applied unless the query has its own `SORT BY`). Build and test queries on https://ted.europa.eu/en/search/expert-search and paste them here."
          },
          "scope": {
            "title": "Search scope",
            "enum": [
              "ALL",
              "ACTIVE",
              "LATEST"
            ],
            "type": "string",
            "description": "`ALL` = every notice published in the last 10 years (default). `ACTIVE` = TED's active notices: planning notices from the last 364 days, competition notices whose deadline has not passed and result notices from the last 99 days. `LATEST` = only the latest OJ S issue (TED's daily publication). Use `LATEST` for a daily scheduled tender alert that returns only the newest day's notices.",
            "default": "ALL"
          },
          "preferredLanguage": {
            "title": "Preferred language",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "3-letter language code for multilingual values (`title`, `buyer.name`, `description`, links): `eng` English (default), `deu` German, `fra` French, `ell` Greek, `ita` Italian, `spa` Spanish, `pol` Polish, `nld` Dutch, ... When a notice has no text in this language, English is tried, then the notice's own language; `titleLanguage` tells you which one you got.",
            "default": "eng"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}