{
  "openapi": "3.0.1",
  "info": {
    "title": "Government Contract Winners B2B Leads – UK & Singapore",
    "description": "B2B lead list of companies that just won public-sector contracts (UK Contracts Finder, Singapore GeBIZ). Each lead: award, buyer, value, Companies House no., verified website, tech stack, contact page, generic company email. Company-level data only. From $3 per 1,000 basic leads.",
    "version": "0.2",
    "x-build-id": "CcvVTzyX0UoMGceML"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhucl1006~government-contract-winners-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhucl1006-government-contract-winners-leads",
        "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/zhucl1006~government-contract-winners-leads/runs": {
      "post": {
        "operationId": "runs-sync-zhucl1006-government-contract-winners-leads",
        "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/zhucl1006~government-contract-winners-leads/run-sync": {
      "post": {
        "operationId": "run-sync-zhucl1006-government-contract-winners-leads",
        "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": "Award sources",
            "type": "array",
            "description": "uk = UK Contracts Finder award notices (updated daily). sg = Singapore GeBIZ awards from data.gov.sg (the government publishes this dataset in yearly batches; see README).",
            "items": {
              "type": "string",
              "enum": [
                "uk",
                "sg"
              ],
              "enumTitles": [
                "UK - Contracts Finder",
                "Singapore - GeBIZ"
              ]
            },
            "default": [
              "uk"
            ]
          },
          "daysBack": {
            "title": "UK: award notices published in the last N days",
            "minimum": 1,
            "maximum": 92,
            "type": "integer",
            "description": "Ignored when dateFrom is set.",
            "default": 14
          },
          "sgDaysBack": {
            "title": "Singapore: days back from the latest award in the dataset",
            "minimum": 1,
            "maximum": 1825,
            "type": "integer",
            "description": "Singapore awards are published by the Ministry of Finance in yearly batches, so the window ends at the latest award date in the dataset.",
            "default": 90
          },
          "dateFrom": {
            "title": "Date from (YYYY-MM-DD, optional)",
            "type": "string",
            "description": "UK: notice published date. Singapore: award date."
          },
          "dateTo": {
            "title": "Date to (YYYY-MM-DD, optional)",
            "type": "string",
            "description": "Optional end date."
          },
          "keywords": {
            "title": "Contract keywords",
            "type": "array",
            "description": "Keep awards whose title/description contains any of these words, e.g. software, cleaning, cyber, consultancy.",
            "items": {
              "type": "string"
            }
          },
          "buyerKeywords": {
            "title": "Buyer / agency contains",
            "type": "array",
            "description": "e.g. NHS, council, Ministry of Defence, Land Transport Authority.",
            "items": {
              "type": "string"
            }
          },
          "cpvPrefixes": {
            "title": "UK: CPV code prefixes",
            "type": "array",
            "description": "e.g. 72 (IT services), 48 (software), 79 (business services), 90 (cleaning/environmental).",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "UK: delivery region contains",
            "type": "array",
            "description": "e.g. London, North West, Scotland.",
            "items": {
              "type": "string"
            }
          },
          "minAwardValue": {
            "title": "Minimum award value (GBP / SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum award value (GBP / SGD)"
          },
          "maxAwardValue": {
            "title": "Maximum award value (GBP / SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum award value (GBP / SGD)"
          },
          "smeOnly": {
            "title": "UK: SME suppliers only",
            "type": "boolean",
            "description": "Only suppliers flagged as SME in the notice.",
            "default": false
          },
          "excludePublicBodies": {
            "title": "Exclude public bodies as suppliers (councils, NHS trusts, universities...)",
            "type": "boolean",
            "description": "Skip suppliers that are themselves public bodies.",
            "default": true
          },
          "excludeCompanies": {
            "title": "Exclude companies whose name contains",
            "type": "array",
            "description": "Skip suppliers whose name contains any of these strings.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "latestAward",
              "totalValue",
              "awardsCount"
            ],
            "type": "string",
            "description": "Which contract winners are enriched first.",
            "default": "latestAward"
          },
          "maxLeads": {
            "title": "Maximum leads",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The run stops when this many leads are saved.",
            "default": 50
          },
          "onlyWithWebsite": {
            "title": "Only companies with a verified website",
            "type": "boolean",
            "description": "On: you only get (and pay for) enriched leads. Off: companies whose website could not be verified are also returned as cheaper basic leads (award + company data only).",
            "default": true
          },
          "includeTechStack": {
            "title": "Detect website technology stack",
            "type": "boolean",
            "description": "Detect CMS, analytics, e-commerce, marketing tools and email provider from the homepage and DNS.",
            "default": true
          },
          "maxContactPages": {
            "title": "Contact/about pages to read per website",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "0 = homepage only.",
            "default": 2
          },
          "concurrency": {
            "title": "Companies processed in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Higher is faster.",
            "default": 8
          },
          "requestTimeoutSecs": {
            "title": "HTTP timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per HTTP request.",
            "default": 12
          },
          "includeUnincorporated": {
            "title": "Include suppliers without a company form (may be sole traders)",
            "type": "boolean",
            "description": "Off by default: names without Ltd/LLP/PLC/Pte etc. and without a Companies House number may be individuals, and this Actor exports company-level data only.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}