{
  "openapi": "3.0.1",
  "info": {
    "title": "Companies House Scraper (UK Company Data, New UK Companies)",
    "description": "UK Companies House data: search UK companies by SIC code, status, type, address or incorporation date, or look up numbers and names. Accounts dates, officers, PSC owners and filing history. New UK companies on a schedule. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "qTzrA3gM2A3aZ9Grx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~companies-house-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-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/steadyscrape~companies-house-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-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/steadyscrape~companies-house-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-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": {
          "sicCodes": {
            "title": "SIC codes",
            "type": "array",
            "description": "Keep companies with any of these SIC codes (business activities), e.g. <code>62012</code> business and domestic software, <code>56101</code> licensed restaurants, <code>41100</code> development of building projects. The site takes one code a search, so each code is one search; a company two of them find is delivered and charged once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Company status",
            "type": "array",
            "description": "Keep companies with any of these statuses. Empty keeps every status.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "open",
                "closed",
                "converted-closed",
                "removed",
                "receivership",
                "liquidation",
                "administration",
                "insolvency-proceedings",
                "voluntary-arrangement"
              ],
              "enumTitles": [
                "Active",
                "Dissolved",
                "Open",
                "Closed",
                "Converted closed",
                "Removed",
                "Receivership",
                "Liquidation",
                "Administration",
                "Insolvency proceedings",
                "Voluntary arrangement"
              ]
            },
            "default": []
          },
          "companyTypes": {
            "title": "Company type",
            "type": "array",
            "description": "Keep companies of any of these types. Empty keeps every type.",
            "items": {
              "type": "string",
              "enum": [
                "ltd",
                "plc",
                "llp",
                "limited-partnership",
                "scottish-partnership",
                "private-limited-guarant-nsc",
                "private-limited-guarant-nsc-limited-exemption",
                "private-limited-shares-section-30-exemption",
                "private-unlimited",
                "private-unlimited-nsc",
                "old-public-company",
                "charitable-incorporated-organisation",
                "scottish-charitable-incorporated-organisation",
                "registered-society-non-jurisdictional",
                "industrial-and-provident-society",
                "royal-charter",
                "oversea-company",
                "registered-overseas-entity",
                "uk-establishment",
                "unregistered-company",
                "assurance-company",
                "converted-or-closed",
                "eeig",
                "european-public-limited-liability-company-se",
                "further-education-or-sixth-form-college-corporation",
                "icvc",
                "protected-cell-company"
              ],
              "enumTitles": [
                "Private limited company",
                "Public limited company",
                "Limited liability partnership",
                "Limited partnership",
                "Scottish qualifying partnership",
                "Private limited by guarantee without share capital",
                "Private Limited Company by guarantee without share capital, use of 'Limited' exemption",
                "Private Limited Company, use of 'Limited' exemption",
                "Private unlimited company",
                "Private unlimited company without share capital",
                "Old public company",
                "Charitable incorporated organisation",
                "Scottish charitable incorporated organisation",
                "Registered society",
                "Industrial and Provident society",
                "Royal charter company",
                "Overseas company",
                "Overseas entity",
                "UK establishment company",
                "Unregistered company",
                "Assurance company",
                "Converted or closed",
                "European Economic Interest Grouping (EEIG)",
                "European public limited liability company (SE)",
                "Further education or sixth form college corporation",
                "Investment company with variable capital",
                "Protected cell company"
              ]
            },
            "default": []
          },
          "companySubtypes": {
            "title": "Company subtype",
            "type": "array",
            "description": "Keep only Community Interest Companies or private fund limited partnerships.",
            "items": {
              "type": "string",
              "enum": [
                "community-interest-company",
                "private-fund-limited-partnership"
              ],
              "enumTitles": [
                "Community interest company",
                "Private fund limited partnership"
              ]
            },
            "default": []
          },
          "companyNameIncludes": {
            "title": "Name includes",
            "type": "string",
            "description": "Words the company name must have, e.g. <code>bakery</code>. For one company by name, use <b>Company names</b> below.",
            "default": ""
          },
          "companyNameExcludes": {
            "title": "Name excludes",
            "type": "string",
            "description": "Words the company name must not have.",
            "default": ""
          },
          "registeredOfficeAddress": {
            "title": "Registered office address",
            "type": "string",
            "description": "A town, street or postcode in the registered office address, e.g. <code>Manchester</code> or <code>M1 1AE</code>.",
            "default": ""
          },
          "incorporatedInLastDays": {
            "title": "Incorporated in the last days",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "New UK companies: those incorporated in this many days up to today, which keeps a schedule moving. Ignored when you fill in one of the two days below. Give it together with <b>Only new companies</b> to follow new companies."
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>."
          },
          "incorporatedTo": {
            "title": "Incorporated to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>."
          },
          "dissolvedFrom": {
            "title": "Dissolved from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>. The site shows companies dissolved since 1 January 2010. Change the company status above if you want dissolved companies."
          },
          "dissolvedTo": {
            "title": "Dissolved to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>."
          },
          "maxResults": {
            "title": "Maximum companies from the search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most companies the search delivers, up to 10,000, the most one search shows on the site. For more, or the whole register, use Companies House's free monthly file (see the README): its website is not meant for bulk downloads.",
            "default": 100
          },
          "onlyNewCompanies": {
            "title": "Only new companies",
            "type": "boolean",
            "description": "Deliver only the companies an earlier run of this same search has not delivered: run it on a schedule to follow new UK companies. The first run delivers up to the maximum, and what it leaves out comes in the next runs, for a search of up to about 25,000 companies.",
            "default": false
          },
          "companyNumbers": {
            "title": "Company numbers or links",
            "type": "array",
            "description": "One per line: <code>00445790</code>, <code>445790</code>, <code>OC303675</code> or a company link. Each is one row with details. A run with numbers or names reads only those: the search above is not run and costs nothing, whatever its fields hold.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Exact names, one per line: <code>Tesco PLC</code>. Case, punctuation and Ltd/Limited do not matter, and a former name counts. A name that fits several companies, or none, is a free row with the candidates: this Actor never guesses. A run with numbers or names reads only those: the search above is not run and costs nothing, whatever its fields hold.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeCompanyDetails": {
            "title": "Accounts and confirmation statement",
            "type": "boolean",
            "description": "Read each search result's own page: accounts and confirmation statement dates, overdue flags, previous names, SIC descriptions, charges and insolvency flags. Priced as a company with details. Numbers and names always include it.",
            "default": false
          },
          "includeOfficers": {
            "title": "Officers",
            "type": "boolean",
            "description": "Current directors and secretaries: name, role, appointment date, country of residence, correspondence address and their id on the register. Date of birth and nationality are left out (see the README).",
            "default": false
          },
          "includeResignedOfficers": {
            "title": "Resigned officers too",
            "type": "boolean",
            "description": "Past officers as well, up to the first 10 pages of 35.",
            "default": false
          },
          "includePersonsWithSignificantControl": {
            "title": "Persons with significant control (PSC)",
            "type": "boolean",
            "description": "Who owns or controls the company: name, kind, natures of control, dates; for entities the legal form and registration number. Date of birth and nationality are left out (see the README).",
            "default": false
          },
          "includeFilingHistory": {
            "title": "Filing history",
            "type": "boolean",
            "description": "The latest 25 filings: date, form type, description, pages and PDF link.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}