{
  "openapi": "3.0.1",
  "info": {
    "title": "Gas Safe Register Businesses - UK Gas Firm Leads",
    "description": "From $4 per 1,000 businesses, no start fee. Search the official Gas Safe Register by UK postcode: business name, registration number, full address, phone and email. Measured on 95 live businesses: 96.8% email, 95.8% phone, 100% address. Optional appliance qualifications. Deduped by reg number.",
    "version": "0.1",
    "x-build-id": "kpc0ZVXYP6sOz3DdA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~gas-safe-businesses-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-gas-safe-businesses-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/scrapersdelight~gas-safe-businesses-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-gas-safe-businesses-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/scrapersdelight~gas-safe-businesses-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-gas-safe-businesses-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": [
          "postcodes"
        ],
        "properties": {
          "postcodes": {
            "title": "UK postcodes to search",
            "type": "array",
            "description": "One search per postcode. The register answers every search with AT MOST 50 businesses across 5 pages of 10, ordered nearest first, and never publishes a national total - so coverage is a function of how densely you space these, not of paging deeper. Measured in central London on 2026-09-16: the 50 slots were used up within 1.24 miles, so dense metros need postcodes roughly 2 miles apart; a rural search reaches much further for the same 50. Anything that is not a valid UK postcode is rejected before a request is made, listed in RUN_SUMMARY.invalidPostcodes, and never charged.",
            "items": {
              "type": "string"
            }
          },
          "serviceType": {
            "title": "Service type",
            "enum": [
              "Domestic",
              "Commercial"
            ],
            "type": "string",
            "description": "Which register the search runs against. Domestic covers household work (boilers, cookers, fires); Commercial covers commercial installations. These are separate searches on the site and a business can appear in either or both - run it twice if you want both, the registration-number dedupe is per run.",
            "default": "Domestic"
          },
          "maxPagesPerPostcode": {
            "title": "Pages per postcode (10 businesses each)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many of the 5 result pages to walk per postcode. Each page is 10 businesses, so 5 pages is the register's hard ceiling of 50 per search - there is no page-size override. Lower it to sample a wide postcode grid cheaply.",
            "default": 5
          },
          "maxBusinesses": {
            "title": "Maximum businesses to deliver",
            "minimum": 0,
            "type": "integer",
            "description": "Hard stop on delivered - and therefore charged - rows across the whole run, counted after deduplication by registration number. 0 means no cap. The cap is checked against rows PRODUCED, not rows flushed to the dataset, so it never overshoots.",
            "default": 1000
          },
          "includeQualifications": {
            "title": "Include appliance qualifications (slow)",
            "type": "boolean",
            "description": "Fetch each business's 'Qualified to work on' table: every appliance category and specific qualification it holds, with a Natural Gas / LPG / Building Regulations flag each. One extra page load per business - measured live on 2026-09-16 at about 1.9 seconds each at the default delay, so a full 50-business postcode takes roughly 95 extra seconds. It adds no charge. A business whose qualification page cannot be read keeps qualifications: null rather than an empty list.",
            "default": false
          },
          "requireContact": {
            "title": "Only deliver businesses with a phone or an email",
            "type": "boolean",
            "description": "Excluded rows are never delivered and never charged. Measured on 95 live businesses on 2026-09-16, every one of them published at least one of the two, so this filter usually removes nothing - it is here so you never pay for a contactless row on the day that changes.",
            "default": false
          },
          "requireEmail": {
            "title": "Only deliver businesses with an email address",
            "type": "boolean",
            "description": "Excluded rows are never delivered and never charged. Measured fill was 92 of 95 businesses (96.8%); where a business publishes no email the register prints a literal '-', which this actor turns into null, never into a string.",
            "default": false
          },
          "searchIntervalSecs": {
            "title": "Seconds to wait between postcode searches",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "The register is rate limited, and its rate-limit response is the dangerous kind: HTTP 200 carrying an Imperva block page rather than an error. Measured 2026-09-16: three back-to-back searches tripped it and it recovered after about 50 seconds idle, while one search every 15 seconds ran clean. Lower this and you will be blocked, not faster.",
            "default": 15
          },
          "requestDelayMs": {
            "title": "Milliseconds between page loads inside one search",
            "minimum": 300,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between the 5 result pages of a single search (and between qualification pages). The search session dies 3 minutes after it is minted, so this cannot be raised far without the token expiring mid-walk.",
            "default": 1200
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The site sits behind Imperva. Residential is the default because a datacenter IP is the first thing an edge like this scores against you - this actor already pays for a real headful browser, and cheaping out on the IP is what turns that into a 403. UNMEASURED and stated plainly: the build was verified from a single ordinary IP, not through Apify's proxy pools, so if you see RUN_SUMMARY.blockedPostcodes fill up, point this at your own proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}