{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Companies House Company Search & Profiles (Official API)",
    "description": "Search UK companies by name, SIC code, status, incorporation date and location, or look up company numbers via the official Companies House API. Clean profiles with SIC descriptions, registered office and filing due/overdue flags. No officers or PSCs.",
    "version": "1.0",
    "x-build-id": "ms4kF7bujaE61HDam"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/immemorial_damask~uk-companies-house-profiles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-immemorial_damask-uk-companies-house-profiles",
        "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/immemorial_damask~uk-companies-house-profiles/runs": {
      "post": {
        "operationId": "runs-sync-immemorial_damask-uk-companies-house-profiles",
        "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/immemorial_damask~uk-companies-house-profiles/run-sync": {
      "post": {
        "operationId": "run-sync-immemorial_damask-uk-companies-house-profiles",
        "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 (e.g. 00102498, SC123456, OC300001). Leading zeros dropped by spreadsheets are restored automatically. Unknown numbers are reported as NOT_FOUND and never charged.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Company name search",
            "type": "array",
            "description": "Company names or keywords to search (official /search/companies). When any advanced filter below is set, each query is used as a 'company name includes' filter in the official advanced search instead.",
            "items": {
              "type": "string"
            }
          },
          "sicCodes": {
            "title": "SIC codes (advanced search)",
            "type": "array",
            "description": "Filter by 5-digit UK SIC 2007 codes, e.g. 43220 (plumbing, heat and air-conditioning installation) or 62020 (IT consultancy). Uses the official advanced company search.",
            "items": {
              "type": "string"
            }
          },
          "companyStatus": {
            "title": "Company status (advanced search)",
            "type": "array",
            "description": "Only return companies with these statuses.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "open",
                "closed",
                "converted-closed",
                "receivership",
                "administration",
                "liquidation",
                "insolvency-proceedings",
                "voluntary-arrangement",
                "removed"
              ],
              "enumTitles": [
                "Active",
                "Dissolved",
                "Open",
                "Closed",
                "Converted / closed",
                "Receivership",
                "Administration",
                "Liquidation",
                "Insolvency proceedings",
                "Voluntary arrangement",
                "Removed"
              ]
            }
          },
          "companyType": {
            "title": "Company type (advanced search)",
            "type": "array",
            "description": "Official company type codes, e.g. ltd, plc, llp, private-unlimited, limited-partnership, overseas-company.",
            "items": {
              "type": "string"
            }
          },
          "incorporatedFrom": {
            "title": "Incorporated from (advanced search)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Earliest incorporation date, YYYY-MM-DD."
          },
          "incorporatedTo": {
            "title": "Incorporated to (advanced search)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Latest incorporation date, YYYY-MM-DD."
          },
          "location": {
            "title": "Location (advanced search)",
            "type": "string",
            "description": "Town, city or postcode area of the registered office, e.g. Leeds or Manchester."
          },
          "maxItems": {
            "title": "Maximum company profiles",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on company profiles written (and charged). Also respects the run's maximum total charge. Default 100.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Maximum results per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap on companies taken from each name search or advanced search. Default 100.",
            "default": 100
          },
          "includeFilingHistorySummary": {
            "title": "Include filing history summary",
            "type": "boolean",
            "description": "Adds the total number of filings and the 5 most recent filings (date, form type, category, description code). One extra API call per company; no extra charge.",
            "default": false
          },
          "includeCharges": {
            "title": "Include charges (mortgages) summary",
            "type": "boolean",
            "description": "Adds counts of registered charges: total, outstanding, satisfied and part-satisfied. Lender names are not returned. One extra API call per company; no extra charge.",
            "default": false
          },
          "companiesHouseApiKey": {
            "title": "Companies House API key (optional)",
            "type": "string",
            "description": "Your own free REST API key from https://developer.company-information.service.gov.uk/. Recommended for large or frequent runs: you get your own 600 requests / 5 minutes quota. Leave empty to use the Actor's shared key."
          },
          "maxConcurrency": {
            "title": "Max concurrent requests",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Parallel requests to Companies House (1–5).",
            "default": 3
          },
          "requestsPer5Minutes": {
            "title": "Requests per 5 minutes",
            "minimum": 10,
            "maximum": 590,
            "type": "integer",
            "description": "Self-imposed throttle under the official 600 requests / 5 minutes limit per key. HTTP 429 responses are retried with backoff automatically.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}