{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Public Tenders & Awards – Find a Tender + Contracts Finder",
    "description": "UK government tenders and contract awards from Find a Tender and Contracts Finder: open tenders with buyer contacts and deadlines, plus winning suppliers with Companies House numbers. Official API.",
    "version": "0.1",
    "x-build-id": "VMPvdsjqql4U7sCDK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stimulating_stilbite~uk-public-tenders-contracts-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stimulating_stilbite-uk-public-tenders-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/stimulating_stilbite~uk-public-tenders-contracts-finder/runs": {
      "post": {
        "operationId": "runs-sync-stimulating_stilbite-uk-public-tenders-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/stimulating_stilbite~uk-public-tenders-contracts-finder/run-sync": {
      "post": {
        "operationId": "run-sync-stimulating_stilbite-uk-public-tenders-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": {
          "mode": {
            "title": "What to find",
            "enum": [
              "all",
              "open",
              "awards",
              "planned"
            ],
            "type": "string",
            "description": "<b>open</b> = tenders you can bid on; <b>awards</b> = contract awards with suppliers; <b>planned</b> = pipeline / preliminary market engagement notices; <b>all</b> = every notice.",
            "default": "all"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Matched in the title or description (any of them, case-insensitive), e.g. \"software\", \"cyber\", \"cleaning\".",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "CPV codes or prefixes: 72 = IT services, 48 = software, 45 = construction, 79 = business services, 85 = health & social, 90 = cleaning & environmental. Sub-codes included.",
            "items": {
              "type": "string"
            }
          },
          "buyerKeywords": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Keep notices whose buyer name contains any of these, e.g. \"NHS\", \"council\", \"university\", \"Ministry of Defence\".",
            "items": {
              "type": "string"
            }
          },
          "regionCodes": {
            "title": "Delivery regions (NUTS / ITL codes)",
            "type": "array",
            "description": "Prefixes of delivery-region codes: UKI = London, UKJ = South East, UKD = North West, UKM = Scotland, UKL = Wales, UKN = Northern Ireland, UKG = West Midlands.",
            "items": {
              "type": "string"
            }
          },
          "postcodePrefixes": {
            "title": "Buyer postcode starts with",
            "type": "array",
            "description": "e.g. \"M\" (Manchester), \"EH\" (Edinburgh), \"SW1\".",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Ignored when 'Published from' is set. Newest day is fetched first.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "YYYY-MM-DD (inclusive). Default: today."
          },
          "minValue": {
            "title": "Minimum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum estimated or awarded value. Notices without a value are excluded when set."
          },
          "onlyOpenDeadlines": {
            "title": "Open tenders: only with a future deadline",
            "type": "boolean",
            "description": "In 'open' mode, keep only tenders whose deadline is still in the future.",
            "default": true
          },
          "onlySmeSuitable": {
            "title": "Only tenders marked suitable for SMEs",
            "type": "boolean",
            "description": "Keep only tenders the buyer marked as suitable for small and medium-sized enterprises.",
            "default": false
          },
          "onlyWithCompanyNumber": {
            "title": "Only awards with a supplier Companies House number",
            "type": "boolean",
            "description": "Lead-list mode: every row has at least one UK company number you can enrich.",
            "default": false
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "findATender and/or contractsFinder.",
            "default": [
              "findATender",
              "contractsFinder"
            ],
            "items": {
              "type": "string"
            }
          },
          "enrichFtsRecords": {
            "title": "Complete Find a Tender records",
            "type": "boolean",
            "description": "Find a Tender publishes updates as partial releases. When on, the full compiled record is fetched so CPV codes, values and suppliers are filled in.",
            "default": true
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum notices to return (newest day first).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}