{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Companies House: Directors, Owners & Financials",
    "description": "Official Companies House API: UK company profiles with directors, owners (PSC), charges and key accounts figures in one row. Find new companies by SIC code, town and date. $2 per 1,000.",
    "version": "0.1",
    "x-build-id": "qmYrrQR3HkxoGVJ2O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/veritable_frieze~uk-companies-house/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-veritable_frieze-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/veritable_frieze~uk-companies-house/runs": {
      "post": {
        "operationId": "runs-sync-veritable_frieze-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/veritable_frieze~uk-companies-house/run-sync": {
      "post": {
        "operationId": "run-sync-veritable_frieze-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": "UK company numbers or Companies House links, e.g. 00445790, SC123456, OC301540, https://find-and-update.company-information.service.gov.uk/company/09446231. Short numbers are zero-padded. Leave empty and add a search below to build a lead list instead.",
            "default": [
              "09638976",
              "09270945"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search by company name",
            "type": "array",
            "description": "Company names or keywords, searched like the Companies House search box (current and previous names). Each query returns up to 'Results per name search' companies.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Results per name search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many matches to keep for each name search (1-100).",
            "default": 5
          },
          "sicCodes": {
            "title": "SIC codes (industry)",
            "type": "array",
            "description": "5-digit UK SIC 2007 codes, e.g. 62012 (software development), 56101 (restaurants), 68100 (buying and selling own real estate), 70229 (management consultancy). Matches ANY code.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Town, city, county or postcode area in the registered office address, e.g. Manchester, Leeds, EC1V."
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "Earliest incorporation date: YYYY-MM-DD, or relative such as '7 days', '2 weeks', '3 months', 'yesterday'."
          },
          "incorporatedTo": {
            "title": "Incorporated to",
            "type": "string",
            "description": "Latest incorporation date: YYYY-MM-DD or relative ('today', '1 day'). Ranges with more than 10,000 companies are split automatically."
          },
          "companyStatus": {
            "title": "Company status",
            "type": "array",
            "description": "Keep only these statuses. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "liquidation",
                "receivership",
                "administration",
                "voluntary-arrangement",
                "converted-closed",
                "insolvency-proceedings",
                "registered",
                "removed",
                "closed",
                "open"
              ],
              "enumTitles": [
                "Active",
                "Dissolved",
                "Liquidation",
                "Receiver action",
                "In administration",
                "Voluntary arrangement",
                "Converted / closed",
                "Insolvency proceedings",
                "Registered",
                "Removed",
                "Closed",
                "Open"
              ]
            }
          },
          "companyTypes": {
            "title": "Company type",
            "type": "array",
            "description": "Keep only these company types. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "ltd",
                "plc",
                "llp",
                "private-limited-guarant-nsc",
                "private-limited-guarant-nsc-limited-exemption",
                "private-unlimited",
                "private-unlimited-nsc",
                "limited-partnership",
                "scottish-partnership",
                "registered-overseas-entity",
                "royal-charter",
                "industrial-and-provident-society",
                "registered-society-non-jurisdictional",
                "charitable-incorporated-organisation",
                "scottish-charitable-incorporated-organisation",
                "uk-establishment",
                "old-public-company",
                "eeig",
                "icvc-securities",
                "icvc-warrant",
                "icvc-umbrella",
                "assurance-company",
                "unregistered-company",
                "other",
                "oversea-company",
                "further-education-or-sixth-form-college-corporation",
                "investment-company-with-variable-capital",
                "protected-cell-company",
                "european-public-limited-liability-company-se",
                "northern-ireland",
                "northern-ireland-other",
                "converted-or-closed",
                "private-limited-shares-section-30-exemption"
              ],
              "enumTitles": [
                "Private limited company",
                "Public limited company",
                "Limited liability partnership",
                "Private limited by guarantee without share capital",
                "Private Limited Company by guarantee without share capital, use of 'Limited' exemption",
                "Private unlimited company",
                "Private unlimited company without share capital",
                "Limited partnership",
                "Scottish qualifying partnership",
                "Overseas entity",
                "Royal charter company",
                "Industrial and Provident society",
                "Registered society",
                "Charitable incorporated organisation",
                "Scottish charitable incorporated organisation",
                "UK establishment company",
                "Old public company",
                "European Economic Interest Grouping (EEIG)",
                "Investment company with variable capital",
                "Investment company with variable capital",
                "Investment company with variable capital",
                "Assurance company",
                "Unregistered company",
                "Other company type",
                "Overseas company",
                "Further education or sixth form college corporation",
                "Investment company with variable capital",
                "Protected cell company",
                "European public limited liability company (SE)",
                "Northern Ireland company",
                "Credit union (Northern Ireland)",
                "Converted / closed",
                "Private Limited Company, use of 'Limited' exemption"
              ]
            }
          },
          "companyNameIncludes": {
            "title": "Name contains",
            "type": "string",
            "description": "Company name must contain this word or phrase, e.g. 'solar'."
          },
          "companyNameExcludes": {
            "title": "Name does not contain",
            "type": "string",
            "description": "Drop companies whose name contains this word or phrase, e.g. 'holdings'."
          },
          "dissolvedFrom": {
            "title": "Dissolved from",
            "type": "string",
            "description": "Earliest dissolution date (YYYY-MM-DD or relative). Use with status 'dissolved'."
          },
          "dissolvedTo": {
            "title": "Dissolved to",
            "type": "string",
            "description": "Latest dissolution date (YYYY-MM-DD or relative)."
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many company rows. You are charged only for rows returned.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new companies since last run",
            "type": "boolean",
            "description": "For scheduled lead lists: remember companies already returned by the same search and return (and charge for) only new ones. Applies to the advanced search.",
            "default": false
          },
          "stateKey": {
            "title": "State key (optional)",
            "type": "string",
            "description": "Name for the only-new memory. Leave empty to derive it from the search filters. Use one key per lead list."
          },
          "includeOfficers": {
            "title": "Directors and officers",
            "type": "boolean",
            "description": "Current directors, secretaries and LLP members: name, role, appointed date, nationality, occupation, country of residence, birth month and year.",
            "default": true
          },
          "includeResignedOfficers": {
            "title": "Include resigned officers and ceased PSCs",
            "type": "boolean",
            "description": "Also list resigned officers and former persons with significant control.",
            "default": false
          },
          "includePscs": {
            "title": "Owners (persons with significant control)",
            "type": "boolean",
            "description": "People and companies that own or control the company, with nature of control (share and voting bands).",
            "default": true
          },
          "includeCharges": {
            "title": "Charges (secured lending)",
            "type": "boolean",
            "description": "Total, outstanding and satisfied charges plus the lenders holding outstanding charges. Costs no extra request when a company has no charges.",
            "default": true
          },
          "includeFinancials": {
            "title": "Key financials from latest accounts",
            "type": "boolean",
            "description": "Net assets, cash, current assets, employees and (when filed) turnover and profit, read from the latest digitally filed (iXBRL) accounts, with the prior year. Most small and micro companies file this way; PDF or paper accounts return a note instead.",
            "default": true
          },
          "latestFilingsCount": {
            "title": "Latest filings",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Add the most recent N filing-history entries (date, type, description, document link). 0 = off.",
            "default": 0
          },
          "includeOfficerAddresses": {
            "title": "Include officer and PSC correspondence addresses",
            "type": "boolean",
            "description": "Off by default to keep personal data to a minimum. Turn on only if you have a lawful reason to process it.",
            "default": false
          },
          "basicOnly": {
            "title": "Basic rows only (cheapest)",
            "type": "boolean",
            "description": "Skip all enrichment and return only the register's search data (name, number, status, type, incorporation date, address, SIC codes). Charged at the lower 'basic company' price. Best for very large lead lists.",
            "default": false
          },
          "companiesHouseApiKey": {
            "title": "Your own Companies House API key (optional)",
            "type": "string",
            "description": "Not needed. The Actor has its own key. Add your free key from developer.company-information.service.gov.uk to get your own rate limit (600 requests per 5 minutes) for very large runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}