{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Companies House: Company, Directors, PSC & Filings",
    "description": "UK company data from the Companies House register: search by name or number, company profile, officers (directors), persons with significant control and filing history with PDF links. Works without a key, or faster with your own free API key.",
    "version": "0.1",
    "x-build-id": "Y6LUtkxElIcDLo6fg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~uk-companies-house/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-uk-companies-house",
        "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/dottti~uk-companies-house/runs": {
      "post": {
        "operationId": "runs-sync-dottti-uk-companies-house",
        "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/dottti~uk-companies-house/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-uk-companies-house",
        "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": {
          "companyNumbers": {
            "title": "Company numbers",
            "type": "array",
            "description": "Companies House company numbers, for example 00445790, SC123456, OC301540, or a register link such as https://find-and-update.company-information.service.gov.uk/company/00445790. Short numbers are zero-padded (445790 becomes 00445790). Leave empty and add searches below to look companies up by name.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search by name or number",
            "type": "array",
            "description": "Words to search the register with, for example \"green energy\" or a company name. Companies House matches current and previous company names (and company numbers). Each search returns up to \"Maximum results per search\" companies.",
            "items": {
              "type": "string"
            }
          },
          "dataTypes": {
            "title": "What to get for each company",
            "type": "array",
            "description": "Profile: status, type, incorporation date, registered office, SIC codes, accounts and confirmation statement dates, previous names. Officers: directors, secretaries and LLP members as published on the register. PSC: persons with significant control (owners). Filings: filing history with links to the PDF documents. Each list type is one row per officer, PSC or filing.",
            "items": {
              "type": "string",
              "enum": [
                "profile",
                "officers",
                "psc",
                "filings"
              ],
              "enumTitles": [
                "Company profile",
                "Officers (directors)",
                "Persons with significant control",
                "Filing history"
              ]
            },
            "default": [
              "profile"
            ]
          },
          "getDetailsForSearchResults": {
            "title": "Get the chosen data for companies found by search",
            "type": "boolean",
            "description": "Off: searches return one short row per company found (number, name, status, address, dates). On: for every company found, the data chosen above (profile, officers, PSC, filings) is fetched instead, and the short search rows are left out.",
            "default": false
          },
          "maxResultsPerSearch": {
            "title": "Maximum results per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each search after this many companies (1 to 1,000).",
            "default": 20
          },
          "maxItemsPerCompany": {
            "title": "Maximum officers, PSCs or filings per company",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap for each list per company (1 to 5,000). Filing histories of large companies run to thousands of entries; the newest come first.",
            "default": 100
          },
          "onlyActive": {
            "title": "Only current officers and PSCs",
            "type": "boolean",
            "description": "Leave out resigned officers and ceased persons with significant control.",
            "default": false
          },
          "filingCategories": {
            "title": "Filing categories",
            "type": "array",
            "description": "Only filings in these categories. Leave empty for all filings.",
            "items": {
              "type": "string",
              "enum": [
                "accounts",
                "confirmation-statement",
                "officers",
                "capital",
                "mortgage",
                "incorporation"
              ],
              "enumTitles": [
                "Accounts",
                "Confirmation statements / annual returns",
                "Officers",
                "Capital",
                "Charges (mortgages)",
                "Incorporation"
              ]
            }
          },
          "apiKey": {
            "title": "Companies House API key (optional)",
            "type": "string",
            "description": "Your own free REST API key from developer.company-information.service.gov.uk (create an account, add an application, create a REST key). With a key the Actor uses the official Public Data API: faster, larger jobs, and extra fields (occupation, has charges, insolvency history, filing categories). It is sent only to api.company-information.service.gov.uk and never written to the dataset or log. Without a key the public register pages are read instead, at most 2,000 pages per run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}