{
  "openapi": "3.0.1",
  "info": {
    "title": "Find a Tender Scraper + Contracts Finder | UK Public Tenders",
    "description": "Search UK government tenders, planning and contract award notices from Find a Tender and Contracts Finder in one dataset. Filter by keyword, CPV, region, value and dates; export buyers, deadlines and Companies House supplier numbers.",
    "version": "0.1",
    "x-build-id": "bN75rFiFV2Oi8liLK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~uk-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-uk-public-tenders",
        "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/s-r~uk-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-s-r-uk-public-tenders",
        "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/s-r~uk-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-uk-public-tenders",
        "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": "OR match, ignoring case, in title, description, lot title/description or buyer.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "maxLength": 2000,
            "type": "string",
            "description": "Alias: comma-separated keywords."
          },
          "query": {
            "title": "Query",
            "maxLength": 2000,
            "type": "string",
            "description": "Alias: comma-separated keywords."
          },
          "cpv_codes": {
            "title": "Cpv codes",
            "type": "array",
            "description": "CPV prefixes: 2–8 digits, optional check digit. Trailing zeros after the first two division digits are removed before matching all classifications (70000000 becomes 70, 45210000 becomes 4521).",
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "title": "Stages",
            "type": "array",
            "description": "Match release tags, including amendments and cancellations. Default: all three stages.",
            "items": {
              "type": "string"
            }
          },
          "date_from": {
            "title": "Date from",
            "maxLength": 40,
            "type": "string",
            "description": "Inclusive publication/update boundary. YYYY-MM-DD uses UK midnight; ISO timestamp requires timezone. Default: seven days ago."
          },
          "date_to": {
            "title": "Date to",
            "maxLength": 40,
            "type": "string",
            "description": "Exclusive ISO timestamp or inclusive UK calendar date. Default: now; today is capped at now. Maximum window: 366 days."
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "UK delivery regions. UK and Any region notices match every region. England-only notices match English regions and UK-wide, but not Scotland, Wales or Northern Ireland. England selects all English regions; Any region aliases UK-wide. Missing delivery regions are excluded; buyer region is not substituted.",
            "items": {
              "type": "string"
            }
          },
          "min_value": {
            "title": "Min value",
            "minimum": 0,
            "type": "number",
            "description": "Minimum GBP value. Missing values and other currencies are excluded. Award totals or highest disclosed individual award qualify."
          },
          "portal": {
            "title": "Portal",
            "enum": [
              "both",
              "find_a_tender",
              "contracts_finder",
              "fts",
              "cf"
            ],
            "type": "string",
            "description": "Source choice. Default both; fts/cf are aliases."
          },
          "source": {
            "title": "Source",
            "enum": [
              "both",
              "find_a_tender",
              "contracts_finder",
              "fts",
              "cf"
            ],
            "type": "string",
            "description": "Alias for portal. Output source is always uk-public-tenders."
          },
          "max_items": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Total matching rows across all continuation requests. Default 100."
          },
          "maxItems": {
            "title": "Maxitems",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Alias for max_items."
          },
          "dedupe_by_ocid": {
            "title": "Dedupe by ocid",
            "type": "boolean",
            "description": "Default true: newest matching notice per portal OCID. False: each release remains a row."
          },
          "cursor": {
            "title": "Cursor",
            "minLength": 1,
            "maxLength": 1000000,
            "type": "string",
            "description": "Opaque next_cursor from a previous response. Keep all search filters unchanged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}