{
  "openapi": "3.0.1",
  "info": {
    "title": "TED Tenders Scraper: EU Public Procurement",
    "description": "Scrape TED, the EU public procurement portal. Get open tenders and contract awards with buyer, winner, estimated and awarded value, deadline, CPV codes, country, procedure and links. Filter by words, CPV, country and value, or rank winners and buyers. Export to CSV or Excel.",
    "version": "1.0",
    "x-build-id": "XbJ4wERGFdTvWjZKJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~ted-eu-public-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-ted-eu-public-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/parselab~ted-eu-public-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-ted-eu-public-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/parselab~ted-eu-public-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-ted-eu-public-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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "notices",
              "leaderboard"
            ],
            "type": "string",
            "description": "Notices returns one row per tender or award notice. Ranking reads a sample of notices and ranks winners, buyers, countries or sectors by value and number of notices.",
            "default": "notices"
          },
          "kind": {
            "title": "Kind of notice",
            "enum": [
              "opportunities",
              "awards",
              "all"
            ],
            "type": "string",
            "description": "Tenders that ask for offers, contract awards with the winners, or both.",
            "default": "opportunities"
          },
          "onlyOpen": {
            "title": "Only open tenders",
            "type": "boolean",
            "description": "Tenders mode only. Keep tenders whose deadline has not passed.",
            "default": true
          },
          "searchTerms": {
            "title": "Search words",
            "type": "array",
            "description": "Words searched in the whole notice, for example cloud computing, cybersecurity or road maintenance. Each word is an alternative.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Two letter country codes of the buyer, for example DE, FR, ES, IT, PL, NL.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Product and service codes. A short code such as 72 or 7222 matches everything below it, for example 72 for IT services, 45 for construction, 33 for medical equipment.",
            "items": {
              "type": "string"
            }
          },
          "contractNatures": {
            "title": "Contract nature",
            "type": "array",
            "description": "Works, supplies or services.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "supplies",
                "services"
              ]
            }
          },
          "procedureTypes": {
            "title": "Procedure types",
            "type": "array",
            "description": "For example open, restricted, neg-w-call, comp-dial, innovation.",
            "items": {
              "type": "string"
            }
          },
          "buyerNames": {
            "title": "Buyer names",
            "type": "array",
            "description": "Part of the name of the contracting authority, for example Ministry, Hospital or Deutsche Bahn.",
            "items": {
              "type": "string"
            }
          },
          "winnerNames": {
            "title": "Winner names",
            "type": "array",
            "description": "Part of the name of a winning company. Useful to follow a competitor in award notices.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Estimated or awarded value, in the currency of the notice. Most notices use euro."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit of the estimated or awarded value, in the currency of the notice."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Notices published in the last number of days. Ignored when you set a start date.",
            "default": 14
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Start date in the form 2026-10-01. It overrides the number of days."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "End date in the form 2026-10-31."
          },
          "deadlineFrom": {
            "title": "Deadline from",
            "type": "string",
            "description": "Keep tenders whose offer deadline is on or after this date, in the form 2026-12-01."
          },
          "deadlineTo": {
            "title": "Deadline to",
            "type": "string",
            "description": "Keep tenders whose offer deadline is on or before this date."
          },
          "includeDescription": {
            "title": "Add the description",
            "type": "boolean",
            "description": "Adds the first 700 characters of the description of the lot, in its original language.",
            "default": true
          },
          "groupBy": {
            "title": "Rank by",
            "enum": [
              "winners",
              "buyers",
              "countries",
              "cpvDivisions"
            ],
            "type": "string",
            "description": "Ranking mode. Winners and buyers are best with contract awards and tenders. Sectors group by the first two digits of the main CPV code.",
            "default": "winners"
          },
          "sampleSize": {
            "title": "Notices in the sample (ranking)",
            "minimum": 50,
            "maximum": 30000,
            "type": "integer",
            "description": "Ranking mode. How many notices to read before ranking. More notices give steadier numbers and take longer, one second per 250 notices.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}