{
  "openapi": "3.0.1",
  "info": {
    "title": "EU TED Tenders Scraper – Public Procurement, Bids & Awards",
    "description": "Scrape EU public procurement from TED (Tenders Electronic Daily) via the official open API: calls for tender, RFPs and contract awards with winners and values. No API key, no start fee. Filter by CPV, country, NUTS, deadline and value; only-new alerts. USD 2 per 1,000 notices. By IntegriApps.",
    "version": "0.1",
    "x-build-id": "hRavz7j4O7CE9qcZI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/integriapps~ted-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-integriapps-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/integriapps~ted-tenders/runs": {
      "post": {
        "operationId": "runs-sync-integriapps-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/integriapps~ted-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-integriapps-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": "Words or phrases searched in the full text of the notice (all languages as published; e.g. \"cloud hosting\", \"cybersécurité\"). End a single word with * for a prefix search (softw*). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Whether a notice must contain any or all of the keywords.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip notices that contain any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "searchIn": {
            "title": "Search keywords in",
            "enum": [
              "fulltext",
              "title"
            ],
            "type": "string",
            "description": "Full text (default) or only the notice title.",
            "default": "fulltext"
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV codes or prefixes; sub-codes are included automatically (72 = all IT services, 7226 = software-related services, 72261000 exact). The check digit (-8) is optional.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Notice category",
            "type": "array",
            "description": "Leave empty for all categories.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "planning",
                "result",
                "dir-awa-pre",
                "cont-modif",
                "consultation"
              ],
              "enumTitles": [
                "Calls for tender (contract notices)",
                "Prior information / planning",
                "Contract awards (results)",
                "Direct award pre-announcements (VEAT)",
                "Contract modifications",
                "Preliminary market consultations"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types (advanced)",
            "type": "array",
            "description": "Exact eForms notice-type codes, e.g. cn-standard, cn-social, can-standard, pin-only, veat, can-modif.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Buyer countries as ISO codes (DE, FR, ES or DEU, FRA). EU, EEA, Switzerland, UK and candidate countries. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "countryScope": {
            "title": "Country matches",
            "enum": [
              "buyer",
              "performance",
              "either"
            ],
            "type": "string",
            "description": "Which country the Countries filter is applied to.",
            "default": "buyer"
          },
          "nutsCodes": {
            "title": "NUTS regions",
            "type": "array",
            "description": "Place-of-performance NUTS codes or prefixes (FRJ, FRJ23, DE21). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "buyerNames": {
            "title": "Buyer names",
            "type": "array",
            "description": "Words in the buyer (contracting authority) name, e.g. \"Toulouse\", \"Ministry of Defence\".",
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Publication date window (TED publishes on working days). Ignored if Published from is set.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "YYYY-MM-DD (optional)."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "YYYY-MM-DD (optional)."
          },
          "onlyOpen": {
            "title": "Only open for tenders",
            "type": "boolean",
            "description": "Only notices with a tender submission deadline today or later (calls for tender; awards and planning notices have none).",
            "default": false
          },
          "deadlineWithinDays": {
            "title": "Deadline within N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices whose tender deadline is in the next N days."
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum estimated (procedure or lot) or total value, in the notice currency (mostly EUR; no conversion)."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum estimated or total value, in the notice currency."
          },
          "customQuery": {
            "title": "Extra TED expert query (advanced)",
            "type": "string",
            "description": "Optional TED expert-search expression added with AND, e.g. procedure-type IN (open). See ted.europa.eu expert search help. SORT BY is not allowed."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 15000,
            "type": "integer",
            "description": "Maximum notices returned (and charged) in this run. TED allows up to 15,000 per query.",
            "default": 100
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "pl",
              "pt",
              "ro",
              "cs",
              "sk",
              "sl",
              "hu",
              "bg",
              "el",
              "hr",
              "da",
              "sv",
              "fi",
              "et",
              "lv",
              "lt",
              "mt",
              "ga"
            ],
            "type": "string",
            "description": "Language for noticeTitle (TED translates it into all EU languages). Title, description and buyer name stay in the original language when no translation exists.",
            "default": "en"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Procedure description as published (original language).",
            "default": true
          },
          "maxDescriptionChars": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit.",
            "default": 3000
          },
          "includeBuyerContacts": {
            "title": "Include buyer contact emails",
            "type": "boolean",
            "description": "Official contact email addresses published by the buyer. Use them only for the procurement (GDPR).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new notices (for schedules)",
            "type": "boolean",
            "description": "Remember the notices already returned for the same filters and skip them on the next runs. Uses a named key-value store in your account.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store used by only-new mode. Use a different name per schedule if you want separate memories.",
            "default": "ted-tenders-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}