{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Tenders Scraper",
    "description": "UK public tenders and awards from Find a Tender and Contracts Finder: filter by keyword, CPV, buyer and value; see who won; watch for new notices with Slack alerts. $5.00 per 1,000 notices on Free, $3.50 on Gold, plus $0.00005 per run.",
    "version": "0.1",
    "x-build-id": "c2Ct4qXrKwMFAagTb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetchwright~uk-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetchwright-uk-tenders-scraper",
        "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/fetchwright~uk-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetchwright-uk-tenders-scraper",
        "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/fetchwright~uk-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetchwright-uk-tenders-scraper",
        "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 find in a notice's title or description, one per line, for example **software** or **grounds maintenance**. A notice matches when it contains any of them (upper or lower case does not matter). Leave empty to keep every notice that passes the other filters.",
            "items": {
              "type": "string"
            }
          },
          "maxNotices": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "A hard cap for the whole run, both services together, for example **100**. You pay per notice saved, so this caps the cost of a run. Newest notices come first. Notices over this cap are never charged. Default: 100.",
            "default": 100
          },
          "sources": {
            "title": "Services",
            "type": "array",
            "description": "Which UK notice services to read. Default: **Find a Tender**, which carries notices under the Procurement Act 2023 (also below the threshold since February 2025) and higher-value notices since 2021. Add **Contracts Finder (newer in this actor)** for lower-value notices, mostly in England: it sometimes answers with a list that ignores the search; the run then reports it as refused and partial, and keeps what it saved.",
            "items": {
              "type": "string",
              "enum": [
                "find_a_tender",
                "contracts_finder"
              ],
              "enumTitles": [
                "Find a Tender",
                "Contracts Finder (newer in this actor)"
              ]
            },
            "default": [
              "find_a_tender"
            ]
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Optional. Keep only these kinds of notice, for example **Tenders** for contracts you can bid on, or **Awards** to see who won and for how much. Updates and cancellations count with their kind (each row's noticeTypeLabel says which). Leave empty for every kind.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award",
                "planning"
              ],
              "enumTitles": [
                "Tenders (calls for bids)",
                "Awards (winners and values)",
                "Planning (upcoming purchases)"
              ]
            }
          },
          "cpvCodes": {
            "title": "CPV codes (sector)",
            "type": "array",
            "description": "Optional. Common Procurement Vocabulary codes, one per line, for example **72000000** (IT services) or **45000000** (construction work). A code also matches every code below it, and matches any CPV code of a notice. The check digit is optional (72000000-5 works).",
            "items": {
              "type": "string"
            }
          },
          "buyers": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Optional. A word or phrase in the buying organisation's name, one per line, for example **NHS** or **Leeds City Council**. A notice matches when its buyer's name contains any of them.",
            "items": {
              "type": "string"
            }
          },
          "publishedFrom": {
            "title": "Published on or after",
            "type": "string",
            "description": "Optional start date, for example **2026-11-01**. Default: 7 days before the run. The range can span up to 366 days. A watch's first run reads at most the last 7 days; later runs read from where the watch stopped, or from this date when it is later."
          },
          "publishedTo": {
            "title": "Published on or before",
            "type": "string",
            "description": "Optional end date, for example **2026-11-30**. Default: the moment the run starts. A date in the future is read as now."
          },
          "minValue": {
            "title": "Minimum value",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only notices worth at least this amount, for example **100000**: the estimated value (net, else including VAT), else the awarded value, in the notice's currency (almost always GBP). Notices without a stated value are left out."
          },
          "maxValue": {
            "title": "Maximum value",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only notices worth at most this amount, for example **5000000**, compared the same way as the minimum. Notices without a stated value are left out."
          },
          "openOnly": {
            "title": "Open calls only",
            "type": "boolean",
            "description": "Keep only tenders you can still bid on: tender notices that are active and whose deadline is still ahead (deadlineStatus open), for example for a daily **bid list**. Notices left out are not saved and not charged. Default: off.",
            "default": false
          },
          "watchName": {
            "title": "Watch name (only notices not returned before)",
            "type": "string",
            "description": "Give the same name on every scheduled run, for example **it-tenders-uk**, and each run returns only notices this watch has not returned before, reading back to where the last run stopped. One run of a watch at a time; a second run started meanwhile stops at once and charges nothing. Changing the filters starts a new memory."
          },
          "firstRunBehaviour": {
            "title": "On a watch's first run",
            "enum": [
              "return_current",
              "remember_only"
            ],
            "type": "string",
            "description": "Applies with a watch name. **Return current notices** returns the matching notices of the last 7 days at most (from your start date, when it is later) up to your maximum. **Only remember them** returns and charges nothing on the first run, for example when you want alerts only for what is new from today.",
            "default": "return_current"
          },
          "alertWebhookUrl": {
            "title": "Alert address (Slack, Discord or webhook)",
            "type": "string",
            "description": "An https:// incoming-webhook address, for example a Slack or Discord webhook. After each run it gets one short message with what is new and a link to the rows. Leave empty for no alert."
          },
          "alertWhenNothingNew": {
            "title": "Alert also when nothing is new",
            "type": "boolean",
            "description": "Off by default: a run that finds nothing new sends no message. Turn it on to get a message after every run, for example as a sign that the schedule is still running.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}