{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders Scraper: TED Public Procurement Alerts",
    "description": "Find and monitor EU public tenders from the official TED API. Relevance-scored to your keywords and CPV codes, only-new alerts, lots, deadlines and award winners.",
    "version": "0.1",
    "x-build-id": "Kx4lNO3dCEP57kbQg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/durance_dev~eu-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-durance_dev-eu-tender-radar",
        "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/durance_dev~eu-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-durance_dev-eu-tender-radar",
        "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/durance_dev~eu-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-durance_dev-eu-tender-radar",
        "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 (any language)",
            "type": "array",
            "description": "Full-text search terms. A notice matches if it contains ANY keyword. Also used for relevance scoring (whole words, case and accents ignored). Tip: English words also match the translated CPV label in every notice title.",
            "items": {
              "type": "string",
              "maxLength": 100
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Notices containing any of these words are left out (in the TED query and again after scoring).",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV codes or prefixes",
            "type": "array",
            "description": "e.g. 72 (IT services), 48 (software packages), 45 (construction), 90911 (cleaning). Prefixes match all sub-codes; trailing zeros are ignored, so 72000000 = 72. Matches the main and the additional CPV codes of a notice.",
            "items": {
              "type": "string",
              "pattern": "^\\s*\\d{2,8}(-\\d)?\\s*$"
            }
          },
          "countries": {
            "title": "Buyer countries (ISO 3166-1 alpha-3)",
            "type": "array",
            "description": "e.g. EST, LVA, LTU, FIN, SWE, DEU. Empty = all countries.",
            "items": {
              "type": "string",
              "pattern": "^\\s*[A-Za-z]{3}\\s*$"
            }
          },
          "noticeGroups": {
            "title": "Notice types",
            "type": "array",
            "description": "competition = open calls you can bid on (contract notices, calls for competition); award = contract award notices with winners; planning = prior information and pre-market consultation notices.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "award",
                "planning"
              ],
              "enumTitles": [
                "Competition (open tenders)",
                "Award (winners)",
                "Planning (prior information)"
              ]
            },
            "default": [
              "competition"
            ]
          },
          "publishedWithinDays": {
            "title": "Published within the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only notices published in this window. Use 1-2 for a daily monitor.",
            "default": 7
          },
          "deadlineAfterDays": {
            "title": "Only open tenders: deadline at least N days away",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Applies to competition notices. Notices without a published deadline are kept. Leave empty to include all."
          },
          "minValueEur": {
            "title": "Minimum estimated value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Drops notices whose estimated value in EUR is below this. Notices without a value, or with a value in another currency, are kept."
          },
          "maxValueEur": {
            "title": "Maximum estimated value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Drops notices whose estimated value in EUR is above this. Notices without a value, or with a value in another currency, are kept."
          },
          "expertQuery": {
            "title": "Advanced: raw TED expert query (overrides the filters above)",
            "type": "string",
            "description": "Example: classification-cpv=72* AND buyer-country IN (EST LVA) AND publication-date>=20261101. Syntax help: https://ted.europa.eu/en/search/expert-search. Keywords are still used for scoring."
          },
          "onlyNew": {
            "title": "Monitor mode: only notices not seen in earlier runs",
            "type": "boolean",
            "description": "Remembers every delivered notice under the watch list name below. Notices seen before are skipped and never charged again. Schedule the Actor daily to get alerts.",
            "default": false
          },
          "watchName": {
            "title": "Watch list name (monitor mode)",
            "pattern": "^[a-zA-Z0-9-]{1,40}$",
            "type": "string",
            "description": "Use a different name for each saved search, e.g. baltic-it or fi-construction. Letters, digits and hyphens.",
            "default": "default"
          },
          "remindDeadlineDays": {
            "title": "Monitor mode: re-send open tenders whose deadline is within N days",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "0 = off. A reminder is sent once per notice and charged as a cheap deadline-reminder event.",
            "default": 0
          },
          "includeBuyerContact": {
            "title": "Include buyer's organisational email",
            "type": "boolean",
            "description": "Organisation-level email as published by the buyer. Names of contact persons are never requested or output.",
            "default": true
          },
          "maxResults": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Upper limit of notices delivered (and charged) in one run. For more than 10,000, give the run 1 GB of memory.",
            "default": 500
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "publicationDate",
              "deadline"
            ],
            "type": "string",
            "description": "Order of the dataset: best relevance score first, newest first, or soonest deadline first.",
            "default": "relevance"
          },
          "compactOutput": {
            "title": "Compact output (for AI agents and spreadsheets)",
            "type": "boolean",
            "description": "16 flat fields per notice instead of the full record with lots and winners.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}