{
  "openapi": "3.0.1",
  "info": {
    "title": "TED Tenders Scraper – EU Public Procurement",
    "description": "Search EU tenders and contract award notices on TED (Tenders Electronic Daily) by keyword, country, CPV code, notice type, publication date and deadline. Get title, buyer, CPV, estimated value, deadline, award winners and links to the notice and PDF. Official TED API. Buyer contacts optional.",
    "version": "0.1",
    "x-build-id": "9lNesjlW6ynv57KCH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/justaduck~eu-ted-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-justaduck-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/justaduck~eu-ted-tenders/runs": {
      "post": {
        "operationId": "runs-sync-justaduck-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/justaduck~eu-ted-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-justaduck-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": "Full-text search in the notice. Several keywords are combined with OR. Multi-word entries are searched as an exact phrase (e.g. solar panels). A trailing * matches word endings (e.g. softw*).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Country of the buyer. ISO 3166 alpha-3 codes (DEU, FRA, USA...) or European alpha-2 codes (DE, FR, EL, UK...). Several countries are combined with OR.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, 8 digits (72000000 or 72000000-5). TED matches child codes too: 72000000 also finds 72310000.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Official eForms notice types. Leave empty for all types. Contract notices (cn-*) are open calls for tenders; award notices (can-*) show results.",
            "items": {
              "type": "string",
              "enum": [
                "pin-only",
                "pin-buyer",
                "pin-rtl",
                "pin-tran",
                "pin-cfc-standard",
                "pin-cfc-social",
                "qu-sy",
                "pmc",
                "cn-standard",
                "cn-social",
                "cn-desg",
                "subco",
                "veat",
                "can-standard",
                "can-social",
                "can-desg",
                "can-tran",
                "can-modif",
                "compl",
                "brin-ecs",
                "brin-eeig"
              ],
              "enumTitles": [
                "Prior information notice (information only)",
                "Prior information notice published on buyer profile",
                "Prior information notice (shortens time limits)",
                "Prior information notice - public passenger transport",
                "Prior information notice as call for competition - standard regime",
                "Prior information notice as call for competition - light regime",
                "Qualification system notice",
                "Pre-market consultation notice",
                "Contract or concession notice - standard regime",
                "Contract notice - light regime",
                "Design contest notice",
                "Subcontracting notice",
                "Voluntary ex-ante transparency notice",
                "Contract or concession award notice - standard regime",
                "Contract or concession award notice - light regime",
                "Design contest result notice",
                "Contract award notice - public passenger transport",
                "Contract modification notice",
                "Contract completion notice",
                "European Company / European Cooperative Society notice",
                "European Economic Interest Grouping notice"
              ]
            }
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Relative date for scheduled runs: notices published in the last N days, today included (1 = today only), using TED's own calendar. Use this or the fixed publication dates below, not both."
          },
          "publicationDateFrom": {
            "title": "Published from",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "First publication date to include (YYYY-MM-DD)."
          },
          "publicationDateTo": {
            "title": "Published to",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "Last publication date to include (YYYY-MM-DD)."
          },
          "tenderDeadlineFrom": {
            "title": "Tender deadline from",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "Only notices with a lot whose tender submission deadline is on or after this date (YYYY-MM-DD)."
          },
          "tenderDeadlineTo": {
            "title": "Tender deadline to",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "Only notices with a lot whose tender submission deadline is on or before this date (YYYY-MM-DD)."
          },
          "expertQueries": {
            "title": "Expert queries (advanced)",
            "type": "array",
            "description": "TED expert search queries, sent to TED exactly as written (syntax: https://ted.europa.eu/en/help/search-browse). Each query runs as its own search; the filters above are not added to it. Results are de-duplicated across searches.",
            "items": {
              "type": "string"
            }
          },
          "includeWinners": {
            "title": "Include winners",
            "type": "boolean",
            "description": "Return the winning bidders of award notices (name, country, size) exactly as published in the official TED notice. Winners are almost always companies, but a winner trading under their own name (sole trader) is a person's name. Addresses and contact details of winners are never returned. Turn off to leave these fields empty.",
            "default": true
          },
          "includeContacts": {
            "title": "Include buyer contact details",
            "type": "boolean",
            "description": "Also return the buyer's official contact details published in the TED notice: email, phone, contact point and website. These come from the official public notice and may name a staff member or show a direct line; you are responsible for how you use them (e.g. GDPR). Off by default.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of notices to return in total (up to 10,000 per run). You pay only for notices returned.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}