{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Government Tenders Scraper: Contracts Finder + Find a Tender",
    "description": "UK government tenders scraper for Contracts Finder and Find a Tender in one deduplicated feed. Filter by keyword, CPV, value, region and buyer. Daily new-tender alerts. $3 per 1,000 notices.",
    "version": "1.3",
    "x-build-id": "65Lg4CY7woH6shkbK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mossfetch~uk-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mossfetch-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/mossfetch~uk-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-mossfetch-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/mossfetch~uk-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-mossfetch-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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official feeds to read. Contracts Finder covers lower-value English notices; Find a Tender covers all notices under the Procurement Act 2023 and higher-value contracts across the UK.",
            "items": {
              "type": "string",
              "enum": [
                "contractsFinder",
                "findATender"
              ],
              "enumTitles": [
                "Contracts Finder",
                "Find a Tender"
              ]
            },
            "default": [
              "contractsFinder",
              "findATender"
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "all",
              "newSinceLastRun"
            ],
            "type": "string",
            "description": "<b>All notices in window</b> returns every matching notice. <b>New since last run</b> returns only notices that are new or have a new version since the previous run with the same monitoring key. Schedule it daily for tender alerts.",
            "default": "all"
          },
          "monitorKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this saved search's memory in monitoring mode. Use a different key for each search you schedule so they don't share seen-notice history.",
            "default": "default"
          },
          "lookbackDays": {
            "title": "Look back (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How many days back to read when no start date is set (prefilled 3 for a fast first run; default 7). In monitoring mode this only applies to the first run.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Start of the window (UTC). Overrides look-back."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last day of the window (inclusive, UTC). Defaults to now."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Match notices whose title or description contains these words (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Whether a notice must contain any or all of the keywords.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes or prefixes. '72000000' or '72' matches all IT services; '45' matches all construction work.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Delivery region of the contract (falls back to the buyer's region).",
            "items": {
              "type": "string",
              "enum": [
                "North East",
                "North West",
                "Yorkshire and the Humber",
                "East Midlands",
                "West Midlands",
                "East of England",
                "London",
                "South East",
                "South West",
                "Wales",
                "Scotland",
                "Northern Ireland"
              ]
            }
          },
          "includeNationwide": {
            "title": "Include UK-wide notices in region filter",
            "type": "boolean",
            "description": "When filtering by region, also keep notices delivered UK-wide or nationally.",
            "default": true
          },
          "buyers": {
            "title": "Buyers",
            "type": "array",
            "description": "Keep notices whose buyer name contains any of these (e.g. 'NHS', 'Leeds City Council').",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Tender status",
            "type": "array",
            "description": "OCDS tender status.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "planned",
                "active",
                "complete",
                "cancelled",
                "unsuccessful",
                "withdrawn"
              ],
              "enumTitles": [
                "Planning",
                "Planned",
                "Active (open)",
                "Complete (awarded)",
                "Cancelled",
                "Unsuccessful",
                "Withdrawn"
              ]
            }
          },
          "noticeStages": {
            "title": "Notice stage",
            "type": "array",
            "description": "Stage of the latest notice.",
            "items": {
              "type": "string",
              "enum": [
                "planning",
                "tender",
                "award",
                "contract",
                "implementation"
              ],
              "enumTitles": [
                "Planning / market engagement",
                "Tender (opportunity)",
                "Award",
                "Contract",
                "Implementation / change"
              ]
            }
          },
          "openForBidsOnly": {
            "title": "Open for bids only",
            "type": "boolean",
            "description": "Only active tenders whose submission deadline is still in the future.",
            "default": false
          },
          "minValue": {
            "title": "Minimum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Uses the tender value, or the awarded value when there is no tender value."
          },
          "maxValue": {
            "title": "Maximum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Uses the tender value, or the awarded value when there is no tender value."
          },
          "includeUnknownValue": {
            "title": "Keep notices without a value",
            "type": "boolean",
            "description": "When a value filter is set, keep notices that publish no value.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many notices. 0 = no limit. Each notice costs $0.003, so the prefilled 3 is a test run under $0.01. Raise it (or set 0) for a full export.",
            "default": 1000
          },
          "dedupeAcrossSources": {
            "title": "Remove cross-source duplicates",
            "type": "boolean",
            "description": "Drop a Contracts Finder notice when the same buyer published the same title on Find a Tender. The kept row links to the other copy.",
            "default": true
          },
          "redactEmailsInText": {
            "title": "Redact email addresses in descriptions",
            "type": "boolean",
            "description": "Contact person fields are always removed. This also masks email addresses written into free-text descriptions.",
            "default": true
          },
          "includeRawRelease": {
            "title": "Include raw OCDS release",
            "type": "boolean",
            "description": "Attach the full OCDS release (with contact points removed) to each row.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}