{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders Monitor (TED) - Public Procurement",
    "description": "Track new and changed EU public procurement tenders from TED. Filter by keyword, CPV code and buyer country. Each run returns only what changed, for alerts and AI agents. Like a TED scraper, but via the official API. No Actor fee during launch (Apify usage only). Not affiliated with the EU.",
    "version": "0.1",
    "x-build-id": "sv0KVgFAhfMeaPpCQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/keelfeed~ted-tenders-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-keelfeed-ted-tenders-monitor",
        "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/keelfeed~ted-tenders-monitor/runs": {
      "post": {
        "operationId": "runs-sync-keelfeed-ted-tenders-monitor",
        "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/keelfeed~ted-tenders-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-keelfeed-ted-tenders-monitor",
        "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": "Full-text search terms. A notice matches if it contains any of them (each term is matched as a phrase).",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "8-digit CPV codes (e.g. 72000000 for IT services). A trailing check digit like -5 is ignored.",
            "items": {
              "type": "string"
            }
          },
          "buyerCountries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO 3166-1 alpha-3 country codes of the buyer, e.g. DEU, FRA, POL.",
            "items": {
              "type": "string"
            }
          },
          "formTypes": {
            "title": "Notice form types",
            "type": "array",
            "description": "Limit to TED form types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "competition",
                "result",
                "change",
                "dir-awa-pre",
                "cont-modif",
                "consultation"
              ],
              "enumTitles": [
                "Planning (prior information)",
                "Competition (contract notices)",
                "Result (contract awards)",
                "Change (corrigenda)",
                "Direct award prenotification",
                "Contract modification",
                "Consultation"
              ]
            }
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices published in the last N days. 0 disables the date filter (use with scope ACTIVE for full-snapshot monitoring and removals).",
            "default": 7
          },
          "scope": {
            "title": "Scope",
            "enum": [
              "ACTIVE",
              "ALL",
              "LATEST"
            ],
            "type": "string",
            "description": "ACTIVE: notices still open. ALL: all notices. LATEST: only the current Official Journal S issue.",
            "default": "ACTIVE"
          },
          "expertQuery": {
            "title": "TED expert query (advanced)",
            "type": "string",
            "description": "Optional TED expert-search query, combined with the filters above using AND. Do not include SORT BY. Test queries on the TED Expert Search page."
          },
          "language": {
            "title": "Preferred language",
            "type": "string",
            "description": "3-letter language code for titles, buyer names, descriptions and links (falls back to English, then an official language of the notice).",
            "default": "eng"
          },
          "emitBaseline": {
            "title": "Output current tenders on the first run",
            "type": "boolean",
            "description": "First run only. If on (default), the first run outputs every matching tender as new (charged as new items, capped by maxItems). If off, the first run silently records what exists today and later runs report only what is new or changed.",
            "default": true
          },
          "emitRemoved": {
            "title": "Report removed tenders",
            "type": "boolean",
            "description": "Also output tenders that no longer match the query (never charged). Only reported after a complete run. With a date filter, ageing out of the window counts as removed.",
            "default": false
          },
          "emitHeartbeat": {
            "title": "Write a status row when nothing changed",
            "type": "boolean",
            "description": "If on, a run that finds no new, changed or removed items outputs one row with changeType \"none\" and the run status (items checked, stop reason). It is never charged and does not count toward maxItems. Turn off if you only want change rows.",
            "default": false
          },
          "maxItems": {
            "title": "Max output rows per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Main cost limit. The run stops cleanly once this many rows (new, changed and removed together) are output, the same way as when the maximum charge is reached. Anything left over is reported on the next run.",
            "default": 100
          },
          "maxRequests": {
            "title": "Max API requests per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit on requests to the TED API per run (1 request per second). Newest notices are processed first.",
            "default": 20
          },
          "pageSize": {
            "title": "Page size",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Notices per API request (max 250).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}