{
  "openapi": "3.0.1",
  "info": {
    "title": "UK B2B Lead Verifier: Companies House Register",
    "description": "Verify UK B2B leads against the Companies House register: dissolved firms and those in liquidation or administration are flagged, with the register page as proof. Each lead gets a verdict, company number, status, address, email domain, website and phone checks for $0.005. Paste or upload your list.",
    "version": "0.2",
    "x-build-id": "Bau3RdspMBcl4fg2T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pradio~b2b-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pradio-b2b-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/pradio~b2b-leads/runs": {
      "post": {
        "operationId": "runs-sync-pradio-b2b-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/pradio~b2b-leads/run-sync": {
      "post": {
        "operationId": "run-sync-pradio-b2b-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": {
          "emails": {
            "title": "Emails",
            "type": "array",
            "description": "The email column of the lead list. One entry per lead, kept parallel with the other columns: position 1 in each array is the same lead. The domain is checked for MX records; the mailbox itself is never probed.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "The website column of the lead list, one URL per lead. Each is fetched once to see whether the site still answers, and its domain helps match the company on the register.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The most leads one run judges, capped at 100. Leads past the cap are still named in free status rows, unjudged and uncharged.",
            "default": 100
          },
          "companies": {
            "title": "Company names",
            "type": "array",
            "description": "The company column of the lead list: the name or UK company number each lead claims. Matched against the UK Companies House register when the row carries a UK signal: a company number, a +44 phone, a .uk domain or a UK legal form in the name.",
            "items": {
              "type": "string"
            }
          },
          "phones": {
            "title": "Phones",
            "type": "array",
            "description": "The phone column of the lead list, one number per lead. Each is parsed for validity and line type; whether the line rings is not checked.",
            "items": {
              "type": "string"
            }
          },
          "leadListUrl": {
            "title": "Lead list URL",
            "type": "string",
            "description": "A URL to a CSV or JSON lead list, read instead of or as well as the columns above, including an Apify dataset URL from a lead-finder run. Column names such as email, url, company and phone are recognised."
          },
          "leadListFile": {
            "title": "Upload a lead list file",
            "type": "string",
            "description": "A CSV or JSON lead list from your computer, uploaded with the file picker. Read like the lead list URL, as well as any columns above: column names such as email, website, company, company number and phone are recognised, and comma or semicolon separated CSV both work. An Excel workbook is refused with a message; save it as CSV first. Only those columns are read."
          },
          "datasetId": {
            "title": "Apify dataset",
            "type": "string",
            "description": "An Apify dataset to read leads from, such as the output of a lead-finder run. Pick one of your datasets, or give a public dataset ID. Each item becomes a lead: its company name, company number, email, phone and website are read, and nothing else on the item is copied. Items are read until the run has as many distinct leads as maxItems allows. A dataset that cannot be read fails the run and names the ID."
          },
          "datasetFieldMap": {
            "title": "Dataset field names",
            "type": "object",
            "description": "Optional. Which field of each dataset item holds each lead value, when the guesses miss. Keys: company, companyNumber, email, phone, url. Values are field names or paths such as contact.email or emails[0]. Left out, the run looks for companyName, company_name, company, title or name (title and name only when the item carries no person fields such as firstName or jobTitle); companyNumber or company_number; email or emails[0]; phone or phones[0]; and website, url or domain. An empty string skips that value."
          },
          "seenDatasetId": {
            "title": "Skip leads a previous run judged",
            "type": "string",
            "description": "The dataset of a previous run of this Actor. A lead whose email, website domain, company number or company name already appears there comes back on a free status row saying it was judged before. It is not judged again, not billed, and does not spend the judged-lead cap. This is how a weekly re-check of a fresh list pays only for leads never seen. Leave empty to judge every lead."
          },
          "dryRun": {
            "title": "Estimate only (free)",
            "type": "boolean",
            "description": "Read the list, de-duplicate it, screen it against the exclusion list and report, without judging or billing any lead. One free row carries the counts: leads read, entries a paid run would reject (each also named on its own free row), leads already judged in a seenDatasetId dataset, leads carrying a UK signal the register can be asked about, and the most verdicts a paid run over this input would bill.",
            "default": false
          },
          "includeRegisterDetail": {
            "title": "Read register detail",
            "type": "boolean",
            "description": "For each matched company, also read its SIC codes, whether its accounts or confirmation statement are overdue, and its number of active officers. Two extra register reads per matched company, one at a time. Turn off for a faster run that returns the verdict and the company particulars only.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}