{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders (TED) for Central & Eastern Europe → JSON",
    "description": "Public procurement notices from TED (Tenders Electronic Daily) for PL, CZ, SK, HU, SI, HR, RO, BG, AT, LT, LV, EE as clean JSON: buyer, CPV, values, deadlines, winners. Official TED API v3, personal contact data removed by default, incremental mode.",
    "version": "0.1",
    "x-build-id": "g4JdAx2R9M1CqZhEK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quietpinelabs~ted-cee-notices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quietpinelabs-ted-cee-notices",
        "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/quietpinelabs~ted-cee-notices/runs": {
      "post": {
        "operationId": "runs-sync-quietpinelabs-ted-cee-notices",
        "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/quietpinelabs~ted-cee-notices/run-sync": {
      "post": {
        "operationId": "run-sync-quietpinelabs-ted-cee-notices",
        "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": "Buyer countries",
            "type": "array",
            "description": "ISO 3166-1 codes of the buyer's country (alpha-2 `CZ` or alpha-3 `CZE`). Empty = all 12 CEE countries: POL CZE SVK HUN SVN HRV ROU BGR AUT LTU LVA EST.",
            "items": {
              "type": "string"
            }
          },
          "cpv": {
            "title": "CPV codes / prefixes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. Full 8-digit codes match exactly; shorter values are prefixes (`45` = all construction work, `7132` → `7132*`).",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "eForms notice-type codes, e.g. `cn-standard` (contract notice), `can-standard` (contract award), `pin-only`, `can-modif`, `cn-social`. Empty = all types.",
            "items": {
              "type": "string"
            }
          },
          "placeOfPerformance": {
            "title": "Place of performance",
            "type": "array",
            "description": "Country codes (alpha-2/alpha-3) or NUTS codes (e.g. `CZ06`, `PL9`) of the place of performance. Empty = no filter.",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Words that must appear in the buyer (contracting authority) name, e.g. `Praha` or `Ministerstvo`."
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Publication date lower bound (YYYY-MM-DD or DD.MM.YYYY). Default: today minus `daysBack` days."
          },
          "dateTo": {
            "title": "Published to",
            "type": "string",
            "description": "Publication date upper bound (YYYY-MM-DD or DD.MM.YYYY). Default: no upper bound."
          },
          "daysBack": {
            "title": "Days back (default range)",
            "minimum": 0,
            "maximum": 366,
            "type": "integer",
            "description": "Used only when `dateFrom` is empty: search notices published in the last N days. TED publishes Mon–Fri, so keep ≥ 3 to always get results.",
            "default": 7
          },
          "scope": {
            "title": "Scope",
            "enum": [
              "ALL",
              "ACTIVE",
              "LATEST"
            ],
            "type": "string",
            "description": "`ALL` = every notice; `ACTIVE` = notices whose deadline has not passed; `LATEST` = only today's OJ S edition (date filters are then applied only if you set them).",
            "default": "ALL"
          },
          "includeContactPersons": {
            "title": "Include buyer contact persons (GDPR opt-in)",
            "type": "boolean",
            "description": "Adds a `contacts[]` block with the buyer's contact point name, e-mail and phone as published on TED. You become the data controller for this personal data — enable only with a lawful basis.",
            "default": false
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "full",
              "incremental"
            ],
            "type": "string",
            "description": "`full` returns everything matching; `incremental` returns only notices published after the previous run (cursor `CURSOR` in the key-value store: last publication date + numbers already returned that day).",
            "default": "full"
          },
          "maxRecords": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many notices (also protects your budget).",
            "default": 1000
          },
          "icos": {
            "title": "IČO list (ignored)",
            "type": "array",
            "description": "Common field of the CEE actor family; TED has no IČO lookup, so this field is ignored here. Filter by `name` or search award notices by winner in the TED XML instead.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region (ignored)",
            "type": "string",
            "description": "Common field of the CEE actor family; use `placeOfPerformance` (NUTS codes) instead."
          },
          "cursorStore": {
            "title": "Cursor store name",
            "type": "string",
            "description": "Named key-value store that keeps the incremental-mode cursor across runs (default `ted-cee-notices-cursor`). Use a different name per watch-list."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}