{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Companies House Data – Search, Lookup & Changes",
    "description": "Search and monitor UK companies (Companies House data): by name, activity (SIC), town, status, overdue accounts and monthly changes. Companies only, no personal data. Unofficial.",
    "version": "0.1",
    "x-build-id": "ubhwp5Q5pWOIPntwn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shadow-tools~uk-companies-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shadow-tools-uk-companies-register",
        "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/shadow-tools~uk-companies-register/runs": {
      "post": {
        "operationId": "runs-sync-shadow-tools-uk-companies-register",
        "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/shadow-tools~uk-companies-register/run-sync": {
      "post": {
        "operationId": "run-sync-shadow-tools-uk-companies-register",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "lookup",
              "changes"
            ],
            "type": "string",
            "description": "Pick one. \"lookup\" = use when you already have company numbers (companyNumbers, e.g. [\"00445790\"]) and want those exact companies. \"search\" = use when you only have a name or criteria (query, sicPrefix, town, status...); no name and no filter lists companies incorporated in the last 45 days. \"changes\" = use to monitor what changed since the previous monthly snapshot (name, status, address, activity, new and removed companies). Allowed values: search, lookup, changes. Default: search.",
            "default": "search"
          },
          "query": {
            "title": "Company name (search)",
            "type": "string",
            "description": "Search mode: words of the company name or of a previous name, e.g. \"tesco stores\" or \"acme soft\" (the last word may be partial). Format: plain text, case ignored. Empty = no name filter. With no name and no filter at all, the search lists companies incorporated in the last 45 days.",
            "default": ""
          },
          "companyNumbers": {
            "title": "Company numbers",
            "maxItems": 5000,
            "type": "array",
            "description": "List of Companies House numbers, 6 to 10 characters: digits or a prefix such as SC, NI, OC followed by digits (keep leading zeros), e.g. [\"00445790\", \"SC123456\"]. Required in lookup mode (up to 5000); in changes mode, optionally restricts the changes to these companies.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "status": {
            "title": "Status",
            "maxItems": 10,
            "type": "array",
            "description": "Search mode: list of exact Companies House statuses, e.g. [\"Active\"] or [\"Liquidation\"]; others: Active - Proposal to Strike off, Receivership, Administration, Voluntary Arrangement. Maximum 10. Empty = any status.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "sicPrefix": {
            "title": "Activity code (SIC) prefix",
            "type": "string",
            "description": "Search mode: SIC activity code prefix, 2 to 5 digits, e.g. \"62\" (computer programming and consultancy), \"6201\", \"47\" (retail). Companies can declare up to four codes. Empty = any activity.",
            "default": ""
          },
          "town": {
            "title": "Registered town",
            "type": "string",
            "description": "Search mode: town of the registered office in capitals, e.g. \"LEEDS\". Street addresses are not provided. Empty = any town.",
            "default": ""
          },
          "postcodeDistrict": {
            "title": "Postcode district",
            "type": "string",
            "description": "Search mode: first part of the postcode of the registered office, e.g. \"LS1\" or \"EC1A\". Full postcodes are not stored. Empty = any district.",
            "default": ""
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "Search mode: earliest incorporation date, format YYYY-MM-DD (inclusive), e.g. \"2025-01-01\". Combine with a SIC code or town to follow new companies. The data is monthly: companies created after the last snapshot are not there yet.",
            "default": ""
          },
          "incorporatedTo": {
            "title": "Incorporated until",
            "type": "string",
            "description": "Search mode: latest incorporation date, format YYYY-MM-DD (inclusive), e.g. \"2025-12-31\".",
            "default": ""
          },
          "accountsOverdue": {
            "title": "Accounts overdue",
            "type": "boolean",
            "description": "Active companies whose next accounts deadline has passed (late filing is a common risk signal).",
            "default": false
          },
          "confirmationOverdue": {
            "title": "Confirmation statement overdue",
            "type": "boolean",
            "description": "Active companies whose confirmation statement deadline has passed.",
            "default": false
          },
          "hasOutstandingCharges": {
            "title": "Has outstanding charges",
            "type": "boolean",
            "description": "Companies with at least one outstanding charge (security over their assets).",
            "default": false
          },
          "changesSince": {
            "title": "Changes since (changes mode)",
            "type": "string",
            "description": "Changes mode: earliest change date, format YYYY-MM-DD, e.g. \"2026-10-01\". Default: the last 31 days of the data. Changes are detected between monthly snapshots, so their date is the snapshot date.",
            "default": ""
          },
          "changeTypes": {
            "title": "Change types (changes mode)",
            "type": "array",
            "description": "Changes mode: list of change types to keep, e.g. [\"name_changed\", \"status_changed\"]; allowed: name_changed, status_changed, category_changed, address_changed, activity_changed, appeared, removed. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "name_changed",
                "status_changed",
                "category_changed",
                "address_changed",
                "activity_changed",
                "appeared",
                "removed"
              ]
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum records returned, integer 1 to 5000, e.g. 20. Default 20; raise it only when the SUMMARY note says results were capped. One record is one billed event; the \"Maximum cost per run\" limit applies.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}