{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders Scraper (TED) — Official API",
    "description": "Search and export EU public procurement notices from TED (Tenders Electronic Daily). Filter by country, CPV category, keyword and deadline; get clean one-language records with buyer, value, deadline, CPV labels and document links.",
    "version": "0.1",
    "x-build-id": "4vHmuamguS2ApM8NG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/perceptr0n~eu-tenders-ted-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-perceptr0n-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/perceptr0n~eu-tenders-ted-scraper/runs": {
      "post": {
        "operationId": "runs-sync-perceptr0n-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/perceptr0n~eu-tenders-ted-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-perceptr0n-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": "Countries",
            "type": "array",
            "description": "Buyer countries as 3-letter codes — DEU, AUT, CHE, FRA, ITA, ESP, NLD, POL, BEL, SWE … Leave empty for all of Europe.",
            "items": {
              "type": "string"
            }
          },
          "cpv_codes": {
            "title": "CPV codes / categories",
            "type": "array",
            "description": "Filter by procurement category. Use a 2-digit division for a whole sector (`72` = IT services, `45` = construction, `85` = health, `79` = business services) or a full 8-digit code for something specific. Prefixes match automatically.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords in title",
            "type": "string",
            "description": "Only notices whose title contains this text — e.g. `Software`, `Reinigung`, `consulting`."
          },
          "published_since_days": {
            "title": "Published within last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Rolling window — `7` for a weekly run, `1` for daily monitoring.",
            "default": 30
          },
          "published_from": {
            "title": "Published from (date)",
            "type": "string",
            "description": "Fixed start date `YYYY-MM-DD`. Overrides the rolling window above."
          },
          "deadline_after": {
            "title": "Deadline after (date)",
            "type": "string",
            "description": "Only tenders whose submission deadline falls after this date `YYYY-MM-DD`."
          },
          "only_open_tenders": {
            "title": "Only tenders you can still bid on",
            "type": "boolean",
            "description": "Drops notices whose submission deadline has passed and those without a deadline.",
            "default": false
          },
          "notice_types": {
            "title": "Notice types",
            "type": "array",
            "description": "Optional. `cn-standard` = contract notice (open call for bids), `can-standard` = contract award notice (who won), `pin-only` = prior information notice.",
            "items": {
              "type": "string",
              "enum": [
                "cn-standard",
                "can-standard",
                "pin-only",
                "cn-social",
                "can-social"
              ],
              "enumTitles": [
                "Contract notice (open for bids)",
                "Contract award notice (winner published)",
                "Prior information notice",
                "Contract notice — social & other services",
                "Award notice — social & other services"
              ]
            }
          },
          "language": {
            "title": "Output language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "sv",
              "da",
              "fi",
              "cs",
              "ro",
              "hu",
              "el",
              "bg",
              "hr",
              "sk",
              "sl",
              "et",
              "lv",
              "lt"
            ],
            "type": "string",
            "description": "TED publishes every notice in all EU languages. Titles, descriptions, buyer names and document links are returned in this language, falling back to English.",
            "default": "en"
          },
          "max_items": {
            "title": "Maximum tenders",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many notices.",
            "default": 500
          },
          "raw_query": {
            "title": "Expert query (advanced)",
            "type": "string",
            "description": "Optional TED expert-search query, e.g. `buyer-country=DEU AND classification-cpv=72*`. When set, all filters above are ignored."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}