{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Tenders Scraper - Find a Tender + Contracts Finder",
    "description": "UK government tenders, contract awards and pipeline notices from Find a Tender and Contracts Finder via the official OCDS APIs. Filter by keyword, CPV, region, buyer, deadline, value and SME flag; monitor daily. Clean JSON with buyer contacts, values, deadlines and winning suppliers.",
    "version": "0.1",
    "x-build-id": "QkJNV9GLbpl1B0rIa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/orzelcolony~uk-public-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-orzelcolony-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/orzelcolony~uk-public-tenders/runs": {
      "post": {
        "operationId": "runs-sync-orzelcolony-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/orzelcolony~uk-public-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-orzelcolony-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": "Find a Tender = above-threshold notices (Procurement Act 2023 and legacy regimes), all four UK nations. Contracts Finder = lower-value English public sector opportunities and awards. Default: both.",
            "items": {
              "type": "string",
              "enum": [
                "find-a-tender",
                "contracts-finder"
              ],
              "enumTitles": [
                "Find a Tender (above threshold)",
                "Contracts Finder (below threshold)"
              ]
            }
          },
          "noticeCategories": {
            "title": "Notice categories",
            "type": "array",
            "description": "tender = opportunities (calls for tender, including updates/amendments); award = contract awards and contract notices (who won, for how much); planning = pipeline, planned procurement and early engagement notices. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award",
                "planning"
              ],
              "enumTitles": [
                "Opportunities (tender)",
                "Contract awards (award)",
                "Planning / pipeline (planning)"
              ]
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases matched (case-insensitive) against the notice title and description, e.g. \"software\", \"cloud\", \"road maintenance\", \"catering\". Narrow keywords over many days mean more pages to read (Find a Tender allows about one request per 10 s), so combine them with a short date window or a monitor name.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Match notices containing ANY of the keywords, or ALL of them.",
            "default": "any"
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Common Procurement Vocabulary codes. Full 8-digit codes match exactly; shorter prefixes match the whole group, e.g. 72 = IT services, 45 = construction, 33 = medical, 79 = business services, 90 = environmental.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Delivery region: a NUTS/ITL code prefix (UKI = London, UKE = Yorkshire, UKM = Scotland, UKL = Wales, UKN = Northern Ireland) or part of a region name used by Contracts Finder (\"London\", \"North West\", \"South East\", \"Yorkshire\"). Matched against delivery regions and the buyer's region.",
            "items": {
              "type": "string"
            }
          },
          "buyerNames": {
            "title": "Buyer name contains",
            "type": "array",
            "description": "Only notices whose contracting authority name contains one of these texts, e.g. \"NHS\", \"Council\", \"Ministry of Defence\", \"University\".",
            "items": {
              "type": "string"
            }
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Earliest publication date, YYYY-MM-DD. Default: 7 days ago. Up to 400 days per run."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Latest publication date, YYYY-MM-DD. Default: today."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "How many days (ending at 'Published before') to scan when 'Published after' is empty. Default 7. Use 1-2 with Find a Tender and narrow filters: that API allows about 12 requests per 2 minutes, so each day of Find a Tender costs about a minute.",
            "default": 7
          },
          "openOnly": {
            "title": "Only open opportunities",
            "type": "boolean",
            "description": "Only tender notices whose submission deadline has not passed yet.",
            "default": false
          },
          "deadlineAfter": {
            "title": "Submission deadline after",
            "type": "string",
            "description": "Only notices with a tender deadline on or after this date, YYYY-MM-DD."
          },
          "deadlineBefore": {
            "title": "Submission deadline before",
            "type": "string",
            "description": "Only notices with a tender deadline on or before this date, YYYY-MM-DD."
          },
          "minValue": {
            "title": "Minimum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with an estimated (or, for awards, awarded) value at or above this amount. Notices without any value are dropped when a value filter is set."
          },
          "maxValue": {
            "title": "Maximum value (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices with an estimated (or awarded) value at or below this amount."
          },
          "smeOnly": {
            "title": "Suitable for SMEs only",
            "type": "boolean",
            "description": "Only notices the buyer flagged as suitable for small and medium enterprises.",
            "default": false
          },
          "excludeUpdates": {
            "title": "Exclude updates, amendments and cancellations",
            "type": "boolean",
            "description": "Drop releases that only change, amend or cancel an earlier notice, so you get each opportunity or award once. Keep them when monitoring deadlines and cancellations.",
            "default": false
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "OCDS procurement method: open, selective, limited, direct.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum number of notices to return (newest first).",
            "default": 100
          },
          "monitorName": {
            "title": "Monitor name (only new notices)",
            "type": "string",
            "description": "Set any name, e.g. 'it-tenders-london', and schedule the task: each run then returns only notices not delivered under this key before. Leave empty to disable."
          },
          "includeRaw": {
            "title": "Include raw OCDS release",
            "type": "boolean",
            "description": "Attach the original OCDS release under 'raw' (large).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}