{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Government Tenders Scraper: Find a Tender & Contracts Finder",
    "description": "UK government tenders from Find a Tender, Contracts Finder and Public Contracts Scotland in one search: buyer, deadline, value, CPV codes, region, SME and VCSE suitability, awardee and contact email. UK public procurement data. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "RxZaZliGy4rg5V0T1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~uk-government-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-uk-government-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/steadyscrape~uk-government-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-uk-government-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/steadyscrape~uk-government-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-uk-government-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",
        "required": [
          "sources"
        ],
        "properties": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "The official UK sources to search, all at once, each one's newest notices first. <b>Find a Tender</b> holds the UK's higher-value public contracts (Procurement Act 2023 notices UK1–UK17 and the older forms), <b>Contracts Finder</b> the public contracts of England and of UK-wide buyers, lower-value ones too, and <b>Public Contracts Scotland</b> the Scottish public sector's notices, read through its official OCDS API. Every row names its source and the Open Government Licence.",
            "items": {
              "type": "string",
              "enum": [
                "find-a-tender",
                "contracts-finder",
                "public-contracts-scotland"
              ],
              "enumTitles": [
                "Find a Tender (UK-wide, above threshold)",
                "Contracts Finder (England and UK-wide buyers, lower-value too)",
                "Public Contracts Scotland"
              ]
            },
            "default": [
              "find-a-tender",
              "contracts-finder",
              "public-contracts-scotland"
            ]
          },
          "postedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Notices published from this many days ago up to today. Ignored when the dates below are set.",
            "default": 7
          },
          "postedFrom": {
            "title": "Published from (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "The first publication day, YYYY-MM-DD. Leave empty to count back from the last day."
          },
          "postedTo": {
            "title": "Published to (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "The last publication day, YYYY-MM-DD. Leave empty for today."
          },
          "noticeKinds": {
            "title": "Kinds of notice",
            "type": "array",
            "description": "<b>Open opportunities</b> are calls to bid (tender notices: UK4, contract notices, Quick Quote and website notices in Scotland). <b>Planned</b> are early notices (pipeline, planned procurement and preliminary market engagement: UK1–UK3, prior information notices). <b>Awards</b> name who won, for how much, and whether the winner is an SME (UK5–UK7, contract award notices). <b>Other</b> are corrections, modifications, cancellations and terminations. Each row says its kind in <code>noticeKind</code> and the source's own form in <code>noticeType</code>.",
            "items": {
              "type": "string",
              "enum": [
                "opportunity",
                "planned",
                "award",
                "other"
              ],
              "enumTitles": [
                "Open opportunities",
                "Planned and early notices",
                "Awards",
                "Other notices"
              ]
            },
            "default": [
              "opportunity"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only notices whose title or description contains any of these words or phrases, from the start of a word, case and accents aside: <code>cleaning</code>, <code>road maintenance</code>, <code>software</code>. Leave empty for every notice.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only notices still open",
            "type": "boolean",
            "description": "Leave out opportunities and planned notices whose response deadline has passed. Notices without a deadline are kept.",
            "default": false
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Only notices classified under these CPV codes or their sub-codes: <code>45000000</code> (construction work) also matches 45210000; <code>72</code> is all IT services; <code>85</code> health and social work. Leave empty for every code.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "UK regions",
            "type": "array",
            "description": "Only notices for these regions (ITL1, the former NUTS 1): a notice passes when the place it is delivered in lies in one of them, or covers it (a notice for the whole UK, or for England, counts for each of its regions). A notice that names no place of delivery is judged by the buyer's own region. Leave empty for every region.",
            "items": {
              "type": "string",
              "enum": [
                "UKC",
                "UKD",
                "UKE",
                "UKF",
                "UKG",
                "UKH",
                "UKI",
                "UKJ",
                "UKK",
                "UKL",
                "UKM",
                "UKN"
              ],
              "enumTitles": [
                "North East (UKC)",
                "North West (UKD)",
                "Yorkshire and the Humber (UKE)",
                "East Midlands (UKF)",
                "West Midlands (UKG)",
                "East of England (UKH)",
                "London (UKI)",
                "South East (UKJ)",
                "South West (UKK)",
                "Wales (UKL)",
                "Scotland (UKM)",
                "Northern Ireland (UKN)"
              ]
            },
            "default": []
          },
          "suitableFor": {
            "title": "Only notices marked suitable for",
            "type": "array",
            "description": "Only tender notices the buyer marked as particularly suitable for small and medium-sized enterprises or for voluntary, community and social enterprises, as Find a Tender and Contracts Finder publish it. Public Contracts Scotland does not publish this mark, so it is not read while this is set, and a free row says so.",
            "items": {
              "type": "string",
              "enum": [
                "sme",
                "vcse"
              ],
              "enumTitles": [
                "SMEs (small and medium-sized enterprises)",
                "VCSEs (voluntary, community and social enterprises)"
              ]
            },
            "default": []
          },
          "maxResultsPerSource": {
            "title": "Max notices per source",
            "minimum": 0,
            "type": "integer",
            "description": "Stop reading a source after this many notices. 0 for no limit.",
            "default": 50
          },
          "maxResults": {
            "title": "Max notices in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many notices across every source. 0 for no limit.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}