{
  "openapi": "3.0.1",
  "info": {
    "title": "EU & UK Tenders Scraper: TED Procurement + Contracts Finder",
    "description": "Tenders scraper for EU TED and UK Contracts Finder: public procurement notices and government contracts in one unified schema. Filter by keywords, CPV codes, countries and value; get only new tenders since your last run; optional AI summary + bid fit score.",
    "version": "0.1",
    "x-build-id": "wWNhwASbYUzRW99Yb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tendoyo~eu-uk-tenders-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tendoyo-eu-uk-tenders-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/tendoyo~eu-uk-tenders-radar/runs": {
      "post": {
        "operationId": "runs-sync-tendoyo-eu-uk-tenders-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/tendoyo~eu-uk-tenders-radar/run-sync": {
      "post": {
        "operationId": "run-sync-tendoyo-eu-uk-tenders-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",
            "type": "array",
            "description": "Any-of match. TED: full-text search in all languages (tip: add local-language synonyms). UK: matched in title/description/buyer.",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "CPV code prefixes",
            "type": "array",
            "description": "e.g. 72 (IT services), 48 (software packages), 7222 (IT strategy/consulting). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Buyer countries (TED, ISO-3)",
            "type": "array",
            "description": "ISO 3166-1 alpha-3 codes, e.g. DEU, FRA, IRL, NLD. Applies to TED only.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "ted = EU Tenders Electronic Daily (27 EU + EEA); uk = UK Contracts Finder.",
            "items": {
              "type": "string",
              "enum": [
                "ted",
                "uk_contracts_finder"
              ],
              "enumTitles": [
                "EU TED",
                "UK Contracts Finder"
              ]
            },
            "default": [
              "ted",
              "uk_contracts_finder"
            ]
          },
          "stage": {
            "title": "Notice stage",
            "enum": [
              "competition",
              "result",
              "planning",
              "any"
            ],
            "type": "string",
            "description": "tender = open calls; award = contract awards; all = both.",
            "default": "competition"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Look back this many days (ignored if 'Published since' is set).",
            "default": 7
          },
          "publishedSince": {
            "title": "Published since (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional absolute start date."
          },
          "minValue": {
            "title": "Minimum estimated value",
            "minimum": 0,
            "type": "integer",
            "description": "Drop notices with a lower (or unknown) estimated value. Currency as published."
          },
          "excludeExpired": {
            "title": "Skip notices whose deadline has passed",
            "type": "boolean",
            "description": "Only applies when stage is \"competition\". Drops notices whose submission deadline is already in the past (some feeds republish or amend old notices). Notices without a deadline are kept.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of notices to output (and charge for).",
            "default": 200
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Remember delivered notices (per filter set) and skip them next time. Ideal for scheduled daily runs - you only pay for new notices.",
            "default": false
          },
          "llmEnrichment": {
            "title": "AI enrichment (summary, category, fit score)",
            "type": "boolean",
            "description": "Adds an English summary, category, key requirements and a 0-100 fit score. Charged per enriched notice.",
            "default": false
          },
          "companyProfile": {
            "title": "Your company profile",
            "type": "string",
            "description": "1-5 sentences about what you sell, where, and typical deal size. Used for the fit score."
          },
          "llmApiKey": {
            "title": "LLM API key (OpenAI-compatible)",
            "type": "string",
            "description": "Bring your own key. Stored encrypted by Apify."
          },
          "llmBaseUrl": {
            "title": "LLM base URL",
            "type": "string",
            "description": "Base URL of an OpenAI-compatible API, e.g. https://api.openai.com/v1.",
            "default": "https://api.openai.com/v1"
          },
          "llmModel": {
            "title": "LLM model",
            "type": "string",
            "description": "Model name passed to the OpenAI-compatible endpoint.",
            "default": "gpt-4o-mini"
          },
          "ukMaxPages": {
            "title": "UK: max pages (100 notices each)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Upper bound on Contracts Finder pages fetched (100 notices each).",
            "default": 30
          },
          "contactEmail": {
            "title": "Contact e-mail for User-Agent",
            "type": "string",
            "description": "Optional. Sent in the User-Agent header as good API citizenship."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}