{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Tenders via API – Find a Tender & Contracts Finder",
    "description": "Unofficial tool by LAX Labs. Not affiliated with or endorsed by the Cabinet Office or Crown Commercial Service. UK tenders via official APIs and scheduled alerts (Find a Tender & Contracts Finder). 0–100 score; optional AI. OGL v3. Names and contacts are filtered (best effort, see Limitations).",
    "version": "0.1",
    "x-build-id": "KGu9MOPqfhSq4x7Y0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laxlabs~uk-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laxlabs-uk-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/laxlabs~uk-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-laxlabs-uk-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/laxlabs~uk-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-laxlabs-uk-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",
            "type": "array",
            "description": "Words or phrases to look for in the tender title and description (case-insensitive, any word matches). Filtering happens before any AI call. Leave empty to get every notice that matches the other filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV codes (8 digits, check digit optional). A code matches its sub-codes, e.g. 72000000 matches 72212000. Applied client-side to the official classification of each notice.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "UK regions (ITL / NUTS codes)",
            "type": "array",
            "description": "Place of performance codes as published, e.g. UKI (London), UKM (Scotland), UKN (Northern Ireland), UKL (Wales), UKE22. A code matches its sub-regions. Notices without a region are kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Services",
            "type": "array",
            "description": "Which official services to query. Find a Tender covers notices above the thresholds and all Procurement Act 2023 notices; Contracts Finder covers lower-value English notices. Notices published on both are de-duplicated.",
            "items": {
              "type": "string",
              "enum": [
                "fts",
                "cf"
              ],
              "enumTitles": [
                "Find a Tender (FTS)",
                "Contracts Finder (CF)"
              ]
            },
            "default": [
              "fts",
              "cf"
            ]
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Which notice stages to return. Cancellations and terminations are never returned.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "tender",
                "award"
              ],
              "enumTitles": [
                "Planning / pipeline",
                "Open tenders",
                "Awards and contracts"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Start of the publication / update window: YYYY-MM-DD or relative like \"3 days\". Default: last day. The window can be at most 31 days.",
            "default": "7 days"
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest publication date: YYYY-MM-DD, \"today\" or a relative value like \"1 day\".",
            "default": "today"
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Skip notices whose submission deadline has already passed. Notices without a deadline are kept.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new tenders (for schedules)",
            "type": "boolean",
            "description": "Remember which notices this exact search already delivered (stored as notice IDs in a named key-value store in your account) and return only new ones on the next run. Ideal for a daily schedule.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on tenders delivered in this run.",
            "default": 100
          },
          "minRelevanceScore": {
            "title": "Minimum relevance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only deliver tenders whose relevance score (0-100) is at least this value. Tenders below the threshold are skipped.",
            "default": 0
          },
          "minValue": {
            "title": "Minimum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices whose published estimated or awarded value is below this (GBP). Default 0 = no lower limit. Notices without a published value are kept.",
            "default": 0
          },
          "maxValue": {
            "title": "Maximum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip notices whose published value is above this (GBP). Default 100,000,000,000 = no upper limit. Notices without a published value are kept.",
            "default": 100000000000
          },
          "maxPagesPerSource": {
            "title": "Max pages per service",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Each page has up to 100 releases (newest first). Default 1 page per service (the newest 100 releases of each service in the window), so a run that finds nothing stays cheap. Find a Tender allows only a few requests per minute, so the Actor waits about 10 seconds between its pages (and longer when the service asks it to). Raise this for longer windows or a full day; The run's status message and a log warning tell you when more pages exist.",
            "default": 1
          },
          "buyerProfile": {
            "title": "Your company profile (for scoring)",
            "type": "string",
            "description": "Describe what your company sells and which tenders you want to win. Used by the free deterministic relevance score and, if enabled, by the AI analysis. Do not include personal data."
          },
          "enableAi": {
            "title": "AI summary and AI relevance (bring your own key)",
            "type": "boolean",
            "description": "Add an AI summary, AI relevance score with reason and key requirements to tenders that already passed your filters and minimum score, using YOUR OWN LLM provider key (BYOK). Your provider bills you for tokens. There is no extra Actor fee for AI.",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "openrouter",
              "openai",
              "gemini",
              "groq",
              "custom"
            ],
            "type": "string",
            "description": "Any OpenAI-compatible provider. OpenRouter gives access to many low-cost models (and rate-limited free variants ending in :free) with one key; Google Gemini offers a free tier.",
            "default": "openrouter"
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Model ID at your provider. Leave empty for the low-cost default: google/gemini-2.5-flash-lite (OpenRouter), gpt-5-nano (OpenAI), gemini-2.5-flash-lite (Gemini), openai/gpt-oss-20b (Groq).",
            "default": ""
          },
          "aiBaseUrl": {
            "title": "Custom API base URL",
            "type": "string",
            "description": "Only for provider \"custom\": https base URL of an OpenAI-compatible API (the Actor calls {base}/chat/completions).",
            "default": ""
          },
          "aiCredentials": {
            "title": "Your AI provider key (secret)",
            "type": "object",
            "description": "Encrypted secret. Enter a JSON object with your own key, for example {\"apiKey\": \"<your provider key>\"}. It is used only for calls to your AI provider during this run and is never logged, stored or written to the output."
          },
          "aiLanguage": {
            "title": "AI summary language",
            "enum": [
              "en",
              "he",
              "de",
              "fr",
              "es",
              "it",
              "pl",
              "nl",
              "pt"
            ],
            "type": "string",
            "description": "Language of the AI summary, reason and requirements. UK notices are in English; the AI output is written in this language.",
            "default": "en"
          },
          "maxAiAnalyses": {
            "title": "Maximum AI analyses",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on AI analyses in this run. Each analysis uses your own provider tokens. Remaining tenders are delivered without an AI summary.",
            "default": 50
          },
          "minRelevanceScoreForAi": {
            "title": "Minimum relevance score for AI",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "AI runs only on tenders that already passed all your filters AND have at least this deterministic relevance score (0-100). Use it to spend AI only on strong matches; lower-scored tenders are still delivered, without AI.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}