{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders (TED) Search & Monitor – open data",
    "description": "EU public procurement notices from TED (Tenders Electronic Daily) via the official TED Search API: contract notices, awards and prior information with buyer, country, CPV, deadline, value and notice links. Open data (Commission Decision 2011/833/EU); no personal data.",
    "version": "0.1",
    "x-build-id": "IhDC1R03ujGibgqmI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalrows~tenders-eu-ted/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalrows-tenders-eu-ted",
        "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/signalrows~tenders-eu-ted/runs": {
      "post": {
        "operationId": "runs-sync-signalrows-tenders-eu-ted",
        "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/signalrows~tenders-eu-ted/run-sync": {
      "post": {
        "operationId": "run-sync-signalrows-tenders-eu-ted",
        "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": {
          "query": {
            "title": "Search text or TED expert query",
            "type": "string",
            "description": "Optional. Plain words search the full text of notices (e.g. \"solar panels\"). Text containing operators (=, ~, IN, AND, OR, SORT BY) is passed through as a TED expert query, e.g. classification-cpv IN (72*) AND buyer-country=DEU. Build and test expert queries at https://ted.europa.eu/en/search/expert-search.",
            "default": ""
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "Optional. ISO 3166-1 codes of the buyer's country, alpha-2 (DE, FR, PL) or alpha-3 (DEU, FRA, POL). Empty = all countries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpv": {
            "title": "CPV codes",
            "type": "array",
            "description": "Optional. Common Procurement Vocabulary codes. 8 digits = exact code (72000000); 2–7 digits = prefix (72 = all IT services, 4521 = building construction). A trailing * is accepted. Empty = all sectors.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Which TED notice families to return: contract notices (calls for competition, default), contract award notices (results, with winners and awarded values) and prior information / planning notices.",
            "items": {
              "type": "string",
              "enum": [
                "contract-notice",
                "contract-award",
                "prior-information"
              ],
              "enumTitles": [
                "Contract notices (calls for competition)",
                "Contract award notices (results)",
                "Prior information / planning notices"
              ]
            },
            "default": [
              "contract-notice"
            ]
          },
          "publishedFrom": {
            "title": "Published from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional ISO date (YYYY-MM-DD). Only notices published on TED on or after this date. Default: 7 days before the run."
          },
          "openOnly": {
            "title": "Open only",
            "type": "boolean",
            "description": "Drop notices whose (latest lot) submission deadline has already passed. Notices without a deadline (award and planning notices) are kept.",
            "default": true
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "search: return matching notices. monitor: page through all matches, compare with the previous run's STATE (key-value store) and return only new/changed/closed/awarded notices with a changeType.",
            "default": "search"
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after this many records. You are charged per record extracted.",
            "default": 100
          },
          "maskContacts": {
            "title": "Mask contact details",
            "type": "boolean",
            "description": "Default on: e-mails, phone numbers and ID-like numbers are redacted from titles/descriptions and the raw API payload is dropped. Contact-person fields are never requested from TED in either setting. Turn off only with a declared, lawful purpose (keeps the raw payload).",
            "default": true
          },
          "maskWinnerIndividuals": {
            "title": "Mask winners that look like individuals",
            "type": "boolean",
            "description": "Default on: in contract award notices a winner name is kept only when it looks like an organisation (legal-form marker such as GmbH, Ltd, S.A., Sp. z o.o., or an acronym); otherwise the name is replaced by null and winnerType is set to masked-individual. Turn off only with a declared, lawful purpose.",
            "default": true
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The TED API is reachable without a proxy; use Apify Proxy only if your runs are blocked.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxPages": {
            "title": "Max API pages",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on TED API pages (250 notices each, 1 request/second) per run. Monitor mode pages through all matches up to this cap.",
            "default": 40
          },
          "stateStore": {
            "title": "Monitor state store name",
            "type": "string",
            "description": "Optional named key-value store for monitor STATE so it persists across runs (the run's default store is per run on the platform). Example: tenders-eu-ted-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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}