{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders Scraper (TED) - Tenders, Awards & Deadlines",
    "description": "Scrape EU public procurement tenders from TED (Tenders Electronic Daily), the official EU tenders journal. Search by keyword, country, CPV code and notice type; get buyer, title, deadline, estimated value, winners and awarded value. Official API, no key or proxy. $0.65 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "dSuuf6YbIxsojnfpj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/consequential_programmer~eu-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-consequential_programmer-eu-tenders-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/consequential_programmer~eu-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-consequential_programmer-eu-tenders-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/consequential_programmer~eu-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-consequential_programmer-eu-tenders-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search words or phrases in the full notice text (any of them may match). Notices are written in the buyer's language, so add local terms for better coverage, e.g. software, Software, logiciel. Leave empty to search by the other filters only.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Only notices from buyers in these countries. Use 2-letter (DE) or 3-letter (DEU) ISO codes or English names (Germany). Leave empty for all 30+ countries on TED.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Only notices with these CPV (Common Procurement Vocabulary) codes. Parent codes include their sub-codes, e.g. 72000000 = all IT services. Examples: 72000000 IT services, 48000000 software, 79340000 marketing, 45000000 construction, 33100000 medical equipment.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which kinds of notices to return. Default: contract notices (open calls for tender). Pick contract award notices to see winners and awarded values.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "result",
                "planning",
                "cont-modif",
                "dir-awa-pre",
                "consultation"
              ],
              "enumTitles": [
                "Contract notices - open calls for tender",
                "Contract award notices - winners and values",
                "Prior information notices - upcoming tenders",
                "Contract modification notices",
                "Voluntary ex-ante transparency notices (direct awards)",
                "Preliminary market consultations"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "onlyOpenTenders": {
            "title": "Only tenders still open for bids",
            "type": "boolean",
            "description": "Keep only notices whose tender submission deadline is today or later. Best used with contract notices.",
            "default": false
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "Only notices published in the last N days. Ignored when \"Published from\" is set. 0 = no limit.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Only notices published on or after this date (YYYY-MM-DD). Overrides \"Published within (days)\"."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Only notices published on or before this date (YYYY-MM-DD)."
          },
          "maxResults": {
            "title": "Max notices",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many notices. 0 = all matching notices (up to 100,000). Use a small number for a quick test.",
            "default": 100
          },
          "language": {
            "title": "Preferred language for titles and links",
            "enum": [
              "ENG",
              "DEU",
              "FRA",
              "ITA",
              "SPA",
              "POL",
              "NLD",
              "POR",
              "RON",
              "SWE",
              "DAN",
              "FIN",
              "CES",
              "SLK",
              "HUN",
              "ELL",
              "BUL",
              "HRV",
              "SLV",
              "EST",
              "LAV",
              "LIT",
              "MLT",
              "GLE"
            ],
            "type": "string",
            "description": "Titles, descriptions and notice/PDF links are returned in this language when TED has it, otherwise in English or the original language.",
            "default": "ENG"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Add the procedure description (what is being bought). Turn off for smaller rows.",
            "default": true
          },
          "customQuery": {
            "title": "Advanced: TED expert query",
            "type": "string",
            "description": "Optional extra condition in TED expert-query syntax, combined with AND, e.g. buyer-name~\"university\" or estimated-value-proc>=1000000. See the TED Search API docs.",
            "default": ""
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for each API request. Failed requests are retried automatically with back-off.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}