{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Companies House Scraper - New Companies & Directors",
    "description": "Companies House scraper: search the UK company register by name, SIC code, location and incorporation date. Find newly incorporated companies with address, status, accounts due dates and directors. Lead lists, KYC. $1 per 1,000 companies. UK business leads.",
    "version": "0.1",
    "x-build-id": "Zz4DXGI9Qohr4sACT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrolahdata~uk-companies-house-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrolahdata-uk-companies-house-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/scrolahdata~uk-companies-house-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrolahdata-uk-companies-house-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/scrolahdata~uk-companies-house-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrolahdata-uk-companies-house-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",
        "properties": {
          "searchTerms": {
            "title": "Company name contains",
            "type": "array",
            "description": "Optional words in the company name, e.g. coffee, consulting, solar. One search per term. Empty = all companies matching the filters.",
            "items": {
              "type": "string"
            }
          },
          "sicCodes": {
            "title": "SIC codes (industry)",
            "type": "array",
            "description": "UK SIC 2007 codes, e.g. 62012 (software development), 56101 (restaurants), 68100 (real estate), 47910 (online retail). Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Registered office location",
            "type": "string",
            "description": "Town, city or postcode in the registered office address, e.g. London, Manchester, EC1."
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "YYYY-MM-DD or relative: today, yesterday, 7 days, 3 months (= since that many days ago). Use it to find newly registered companies."
          },
          "incorporatedTo": {
            "title": "Incorporated to",
            "type": "string",
            "description": "YYYY-MM-DD, today or relative like 1 day. Empty = today."
          },
          "companyStatus": {
            "title": "Company status",
            "type": "array",
            "description": "e.g. active, dissolved, liquidation, administration. Empty = any status.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "open",
                "closed",
                "converted-closed",
                "removed",
                "receivership",
                "liquidation",
                "administration",
                "insolvency-proceedings",
                "voluntary-arrangement"
              ]
            }
          },
          "companyType": {
            "title": "Company type",
            "type": "array",
            "description": "e.g. ltd (private limited), plc, llp, community-interest-company. Empty = any type.",
            "items": {
              "type": "string",
              "enum": [
                "ltd",
                "plc",
                "llp",
                "private-limited-guarant-nsc",
                "private-limited-guarant-nsc-limited-exemption",
                "private-unlimited",
                "private-unlimited-nsc",
                "limited-partnership",
                "scottish-partnership",
                "charitable-incorporated-organisation",
                "scottish-charitable-incorporated-organisation",
                "registered-society-non-jurisdictional",
                "industrial-and-provident-society",
                "royal-charter",
                "uk-establishment",
                "oversea-company",
                "registered-overseas-entity",
                "old-public-company",
                "unregistered-company",
                "protected-cell-company",
                "assurance-company",
                "icvc",
                "eeig",
                "european-public-limited-liability-company-se",
                "further-education-or-sixth-form-college-corporation",
                "private-limited-shares-section-30-exemption",
                "converted-or-closed",
                "community-interest-company",
                "private-fund-limited-partnership"
              ]
            }
          },
          "nameExcludes": {
            "title": "Company name excludes",
            "type": "string",
            "description": "Optional word to exclude from company names, e.g. holdings."
          },
          "companyNumbers": {
            "title": "Company numbers or URLs",
            "type": "array",
            "description": "Specific companies: company numbers (00445790, SC123456) or Companies House company URLs. Returned with full details.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max companies per search",
            "minimum": 1,
            "type": "integer",
            "description": "Companies per search term (or for the filters). Large date ranges are split automatically beyond 5,000.",
            "default": 100
          },
          "includeDetails": {
            "title": "Add company details",
            "type": "boolean",
            "description": "Accounts and confirmation statement dates (next due, last made up to, overdue), SIC descriptions and previous names.",
            "default": false
          },
          "includeOfficers": {
            "title": "Add officers (directors)",
            "type": "boolean",
            "description": "Directors, secretaries and LLP members with role, appointment date, nationality, country of residence and correspondence address.",
            "default": false
          },
          "activeOfficersOnly": {
            "title": "Current officers only",
            "type": "boolean",
            "description": "Skip officers who have resigned.",
            "default": true
          },
          "maxOfficersPerCompany": {
            "title": "Max officers per company",
            "minimum": 1,
            "type": "integer",
            "description": "Limit for companies with very many officers.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}