{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Tenders API: Find a Tender + Contracts Finder",
    "description": "UK public tenders and contract awards from Find a Tender and Contracts Finder in one feed. Filter by keyword, CPV, region, value, open deadline and SME suitability. Deadlines, values, lots, award criteria and suppliers (companies only). Only-new mode for daily tender alerts.",
    "version": "1.0",
    "x-build-id": "dSgNEQiQvrdvKlsTX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamhaleworks~uk-tenders-find-a-tender-contracts-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamhaleworks-uk-tenders-find-a-tender-contracts-finder",
        "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/adamhaleworks~uk-tenders-find-a-tender-contracts-finder/runs": {
      "post": {
        "operationId": "runs-sync-adamhaleworks-uk-tenders-find-a-tender-contracts-finder",
        "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/adamhaleworks~uk-tenders-find-a-tender-contracts-finder/run-sync": {
      "post": {
        "operationId": "run-sync-adamhaleworks-uk-tenders-find-a-tender-contracts-finder",
        "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": "Notices matching ANY of these words or phrases (whole words, case-insensitive) in the title, description or lot titles. A trailing * matches word endings, for example cyber* matches cybersecurity. Empty = no keyword filter.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Tender = open opportunities to bid (UK4 tender notices and their updates). Planning = pipeline, market engagement and planned procurement notices. Award = contract awards, contract details and transparency (direct award) notices. Contract = contract changes and terminations. Cancellation = procurements cancelled. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "planning",
                "award",
                "contract",
                "cancellation"
              ],
              "enumTitles": [
                "Tenders (open opportunities)",
                "Planning and market engagement",
                "Contract awards",
                "Contract changes and terminations",
                "Cancelled procurements"
              ]
            }
          },
          "onlyOpen": {
            "title": "Only open tenders (deadline not passed)",
            "type": "boolean",
            "description": "Keep only notices whose deadline for tenders or requests to participate is still in the future.",
            "default": false
          },
          "cpvCodes": {
            "title": "CPV codes (business sectors)",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. A short code covers everything below it: 72 = all IT services, 48 = software packages, 45 = construction work, 79 = business services, 85 = health and social care, 90 = waste and cleaning.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Where the contract is delivered: names (London, South East, Scotland, Wales, Northern Ireland, England, …) or ITL/NUTS codes (UKI, TLI, UKM7). Falls back to the buyer's region when the notice names no delivery region.",
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices published in the last N days. Ignored when \"Published from\" is set. Up to 3 days finishes in under a minute. Find a Tender serves about 1,100 notices per 2 minutes, so longer windows take about 6 minutes per 10 days. For daily alerts use 2 days with \"Only new notices\".",
            "default": 3
          },
          "minValueGbp": {
            "title": "Minimum value (GBP, excl. VAT)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notices with an estimated (or awarded) value of at least this amount. Notices without a published GBP value are dropped when this is set."
          },
          "maxValueGbp": {
            "title": "Maximum value (GBP, excl. VAT)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notices with an estimated (or awarded) value of at most this amount. Notices without a published GBP value are dropped when this is set."
          },
          "smeSuitableOnly": {
            "title": "Only notices marked suitable for SMEs",
            "type": "boolean",
            "description": "Keep only notices where the buyer marked the contract (or a lot) as suitable for small and medium-sized enterprises.",
            "default": false
          },
          "vcseSuitableOnly": {
            "title": "Only notices marked suitable for VCSEs",
            "type": "boolean",
            "description": "Keep only notices marked as suitable for voluntary, community and social enterprises.",
            "default": false
          },
          "buyerNames": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Keep only notices whose buyer name contains any of these texts, for example NHS, Council, Ministry of Defence.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices that contain any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "searchIn": {
            "title": "Search keywords in",
            "enum": [
              "titleAndDescription",
              "title"
            ],
            "type": "string",
            "description": "Title and description (incl. lot titles and the main CPV description), or the title only.",
            "default": "titleAndDescription"
          },
          "includeNationwide": {
            "title": "Region filter: include UK-wide notices",
            "type": "boolean",
            "description": "With a region filter, also keep notices delivered across the whole UK.",
            "default": true
          },
          "includeUpdates": {
            "title": "Include updates and amendments",
            "type": "boolean",
            "description": "Keep update notices (for example a tender notice with a changed deadline). They are marked isUpdate = true.",
            "default": true
          },
          "latestVersionOnly": {
            "title": "Only the latest version of each notice",
            "type": "boolean",
            "description": "Find a Tender publishes every update as a new notice. When on, a run outputs only the newest notice per procurement and notice type (older versions in the window are skipped and not charged).",
            "default": true
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Find a Tender carries all Procurement Act 2023 notices (above and below threshold) since 24 February 2025. Contracts Finder still carries older procurements and call-offs. Empty = both.",
            "items": {
              "type": "string",
              "enum": [
                "fts",
                "cf"
              ],
              "enumTitles": [
                "Find a Tender",
                "Contracts Finder"
              ]
            }
          },
          "publishedFrom": {
            "title": "Published from (date)",
            "type": "string",
            "description": "Start date, for example 2026-09-01. Overrides \"Published in the last N days\"."
          },
          "publishedTo": {
            "title": "Published until (date)",
            "type": "string",
            "description": "End date (inclusive), for example 2026-09-30."
          },
          "onlyNew": {
            "title": "Only new notices since the last run (alerts)",
            "type": "boolean",
            "description": "Remember which notices were already output for this search and skip them next time. Schedule the actor daily with a window of 2-3 days to get tender alerts. The first run outputs all matches in the date window.",
            "default": false
          },
          "stateStoreName": {
            "title": "Alert memory store name",
            "type": "string",
            "description": "Named key-value store that remembers output notices for \"Only new\" mode. Each different search keeps its own memory inside it.",
            "default": "uk-tenders-state"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Add the procurement description (up to 4,000 characters) and submission details. E-mail addresses and phone numbers are removed.",
            "default": true
          },
          "includeLots": {
            "title": "Include lots",
            "type": "boolean",
            "description": "Add a list of lots with title, value, SME suitability, contract dates and award criteria with weights.",
            "default": true
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many notices. 0 = up to 200,000.",
            "default": 1000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Timeout for one API request.",
            "default": 60
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries for network errors, rate limits and 5xx responses. Rate-limit waits follow the API's Retry-After header (2 minutes on Find a Tender, 5 minutes on Contracts Finder).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}