{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Public Tenders (TED) - Normalised & New-Only",
    "description": "Public procurement notices from all 27 EU member states via the official TED API, flattened from 1830 eForms fields to one stable schema, with per-country filters, any of the 24 official languages, and an only-new mode for daily polling.",
    "version": "0.1",
    "x-build-id": "ynv9z1ZXwdSuByzzb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arcuate_owl~eu-tender-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arcuate_owl-eu-tender-watch",
        "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/arcuate_owl~eu-tender-watch/runs": {
      "post": {
        "operationId": "runs-sync-arcuate_owl-eu-tender-watch",
        "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/arcuate_owl~eu-tender-watch/run-sync": {
      "post": {
        "operationId": "run-sync-arcuate_owl-eu-tender-watch",
        "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 alpha-3 codes of the buyer's country, for example DNK for Denmark, DEU for Germany, FRA for France. Leave empty to search all of TED.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Look back this many days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to search from today. Ignored when you set an explicit 'Published since' date.",
            "default": 7
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Only notices published on or after this date (YYYY-MM-DD). Overrides the look-back setting."
          },
          "publishedUntil": {
            "title": "Published until",
            "type": "string",
            "description": "Only notices published on or before this date (YYYY-MM-DD)."
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes to match, for example 72000000 for IT services. Any match counts. Leave empty for all sectors.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words that must appear in the notice title or description. Any match counts.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "TED notice type codes, for example cn-standard for a contract notice or can-standard for a contract award notice. Leave empty for all types.",
            "items": {
              "type": "string"
            }
          },
          "scope": {
            "title": "Scope",
            "enum": [
              "ACTIVE",
              "ALL",
              "LATEST"
            ],
            "type": "string",
            "description": "ALL searches everything, including closed and historical notices, and is the default so nothing is hidden from you. ACTIVE narrows to notices that are still open, which is what you want when you are looking for something to bid on; it returned about 11% fewer notices when measured. LATEST covers only the current OJ S release.",
            "default": "ALL"
          },
          "onlyNew": {
            "title": "Only notices I have not seen before",
            "type": "boolean",
            "description": "Remembers delivered publication numbers between runs and skips them next time. Turn this on for a daily schedule so you are only billed for genuinely new notices.",
            "default": false
          },
          "stateStoreName": {
            "title": "Name of the store holding seen notices",
            "type": "string",
            "description": "Only used when 'Only notices I have not seen before' is on. Change it to keep separate watchlists apart. It is a named key-value store on your own account, because the run's default store is wiped between runs.",
            "default": "eu-tender-watch-state"
          },
          "maxNotices": {
            "title": "Maximum notices per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap on delivered notices, which is also a hard cap on what the run can cost you. There is no upstream ceiling on this: the Actor walks the result set with iteration tokens, so a full-history backfill of hundreds of thousands of notices is possible if you ask for it.",
            "default": 100
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "eng",
              "dan",
              "deu",
              "fra",
              "swe",
              "nld",
              "ita",
              "spa",
              "pol"
            ],
            "type": "string",
            "description": "TED carries titles and descriptions in several of the 24 official languages. This picks which one to prefer, falling back to English and then to whatever the notice actually has.",
            "default": "eng"
          },
          "extraFields": {
            "title": "Extra TED fields to include",
            "type": "array",
            "description": "TED exposes 1830 eForms business terms. Fifteen of them are normalised into documented keys; name any others here and they are returned verbatim under an \"extra\" object. Useful ones include winner-name, winner-country, organisation-name-buyer, place-performance-city-lot, deadline-receipt-request-date-lot and result-value-lot. An unknown field name makes TED reject the whole query, so add them a few at a time.",
            "items": {
              "type": "string"
            }
          },
          "paginationMode": {
            "title": "Pagination mode",
            "enum": [
              "ITERATION",
              "PAGE_NUMBER"
            ],
            "type": "string",
            "description": "ITERATION walks the result set with tokens and has no ceiling, which is why it is the default. PAGE_NUMBER lets you jump to a known offset but TED refuses page times limit above 15000, so it cannot reach the whole corpus.",
            "default": "ITERATION"
          },
          "onlyLatestVersions": {
            "title": "Only the latest version of each notice",
            "type": "boolean",
            "description": "On by default, so a corrected notice appears once. Turn it off to also receive superseded versions and corrigenda, which matters if you are reconstructing what a buyer published and when.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}