{
  "openapi": "3.0.1",
  "info": {
    "title": "Companies House API: UK Company Search & Lookup",
    "description": "Companies House API for UK company data: look up companies by number with no API key, or search by name, SIC code and location and track new incorporations with your own free key. $3 per 1,000 companies.",
    "version": "0.1",
    "x-build-id": "lO5nxx8sxTGz0wflJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/devdarfy~uk-companies-house/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-devdarfy-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/devdarfy~uk-companies-house/runs": {
      "post": {
        "operationId": "runs-sync-devdarfy-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/devdarfy~uk-companies-house/run-sync": {
      "post": {
        "operationId": "run-sync-devdarfy-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "lookup",
              "search",
              "newIncorporations"
            ],
            "type": "string",
            "description": "lookup = fetch the companies listed in Company numbers (works without an API key). search = find companies by name and filters. newIncorporations = companies incorporated in a date range, by default the last 7 days. search and newIncorporations need your own free Companies House API key.",
            "default": "lookup"
          },
          "companyNumbers": {
            "title": "Company numbers",
            "type": "array",
            "description": "Companies House numbers for lookup mode, for example 00445790 or SC095000. Short numbers are padded with zeros (445790 becomes 00445790). Duplicates are fetched once.",
            "default": [
              "00445790",
              "00102498",
              "02723534",
              "00048839"
            ],
            "items": {
              "type": "string"
            }
          },
          "apiKey": {
            "title": "Companies House API key",
            "type": "string",
            "description": "Your own free Companies House API key. Required for search and newIncorporations. Optional for lookup: with a key the Actor reads the REST API instead of the keyless URI service and adds jurisdiction, insolvency flag and recent filings. Get one at developer.company-information.service.gov.uk: create a live application, then a key of client type 'API key'. The key is used only for requests to api.company-information.service.gov.uk, stored as a secret input and never written to output or logs."
          },
          "query": {
            "title": "Company name",
            "type": "string",
            "description": "Search text for search mode. Without filters it is a relevance-ranked company search; with any filter below it means 'company name includes'. In newIncorporations mode it narrows the results to names that include this text."
          },
          "sicCodes": {
            "title": "SIC codes",
            "type": "array",
            "description": "Keep companies with any of these SIC codes (nature of business), for example 62012 for software development or 47110 for supermarkets. Used in search and newIncorporations.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Registered office location, for example Manchester or a postcode area. Used in search and newIncorporations."
          },
          "companyStatus": {
            "title": "Company status",
            "type": "array",
            "description": "Keep only companies with these statuses. Used in search and newIncorporations. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "open",
                "closed",
                "converted-closed",
                "receivership",
                "administration",
                "liquidation",
                "insolvency-proceedings",
                "voluntary-arrangement",
                "registered",
                "removed"
              ]
            }
          },
          "companyType": {
            "title": "Company type",
            "type": "array",
            "description": "Keep only these company types, for example ltd (private limited), plc, llp. Used in search and newIncorporations. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "ltd",
                "plc",
                "llp",
                "private-unlimited",
                "private-unlimited-nsc",
                "private-limited-guarant-nsc",
                "private-limited-guarant-nsc-limited-exemption",
                "private-limited-shares-section-30-exemption",
                "limited-partnership",
                "scottish-partnership",
                "old-public-company",
                "oversea-company",
                "uk-establishment",
                "registered-overseas-entity",
                "charitable-incorporated-organisation",
                "scottish-charitable-incorporated-organisation",
                "registered-society-non-jurisdictional",
                "industrial-and-provident-society",
                "royal-charter",
                "investment-company-with-variable-capital",
                "icvc-securities",
                "icvc-warrant",
                "icvc-umbrella",
                "protected-cell-company",
                "assurance-company",
                "eeig",
                "european-public-limited-liability-company-se",
                "northern-ireland",
                "northern-ireland-other",
                "further-education-or-sixth-form-college-corporation",
                "unregistered-company",
                "converted-or-closed",
                "other"
              ]
            }
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "Earliest incorporation date, YYYY-MM-DD. In newIncorporations mode the default is 7 days before Incorporated to; the range can cover at most 366 days."
          },
          "incorporatedTo": {
            "title": "Incorporated to",
            "type": "string",
            "description": "Latest incorporation date, YYYY-MM-DD. Default in newIncorporations mode: today (UTC)."
          },
          "onlyNew": {
            "title": "Only companies not delivered before",
            "type": "boolean",
            "description": "Delta mode: remember delivered company numbers in the named key-value store 'uk-companies-house-seen' in your account and skip them in later runs. One list is kept per mode and filter set. Companies cut off by Max items are not marked and come back next run. Schedule newIncorporations with this on to get a feed of new companies.",
            "default": false
          },
          "includeRecentFilings": {
            "title": "Recent filings per company",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Add the newest N filings (date, category, type, description code) to every row as recentFilings. 0 = off. Needs an API key and one extra request per company.",
            "default": 0
          },
          "fullProfile": {
            "title": "Fetch the full profile for search results",
            "type": "boolean",
            "description": "On (default): every company found by search or newIncorporations is read from its company profile, so accounts, confirmation statement, charges, previous names and insolvency flag are filled. This costs one to three requests per company (roughly 35 to 100 companies per minute). Off: rows come straight from the search index, much faster, and those fields are null.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of companies returned, 0 = unlimited. You are charged per company returned (pay per result), so this caps your spend.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}