{
  "openapi": "3.0.1",
  "info": {
    "title": "Companies House UK Company Scraper",
    "description": "Companies House UK Company Scraper exports UK companies by number, name, officer or advanced search: status, type, address, SIC, accounts dates, officers, PSCs (beneficial owners), charges, filings and parsed accounts (turnover, profit, assets, employees). No API key, no login.",
    "version": "1.0",
    "x-build-id": "AucUVy2UZmXaVvJ4a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~companies-house-uk-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-companies-house-uk-company-scraper",
        "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/neuro-scraper~companies-house-uk-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-companies-house-uk-company-scraper",
        "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/neuro-scraper~companies-house-uk-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-companies-house-uk-company-scraper",
        "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": "Query mode",
            "enum": [
              "auto",
              "by_company_number",
              "by_name",
              "by_sic_code",
              "by_psc_name",
              "advanced_search"
            ],
            "type": "string",
            "description": "Automatic uses every input you fill in. The other values only document your intent; the inputs decide what is read.",
            "default": "auto"
          },
          "companyNumbers": {
            "title": "Company numbers",
            "type": "array",
            "description": "Company registration numbers, e.g. 00445790, SC123456.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries (company names)",
            "type": "array",
            "description": "Company names or words searched in the register, e.g. green energy.",
            "items": {
              "type": "string"
            }
          },
          "officerNames": {
            "title": "Officer / beneficial owner names",
            "type": "array",
            "description": "Names of directors, secretaries or persons with significant control; their companies are returned.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Company links, search result links or advanced-search result links of the register.",
            "items": {
              "type": "string"
            }
          },
          "urlsFromFile": {
            "title": "Import URLs from a file",
            "type": "string",
            "description": "Optional link to a plain text file with one company link or company number per line."
          },
          "companyNameIncludes": {
            "title": "Company name includes",
            "type": "string",
            "description": "Advanced search: the name must contain these words."
          },
          "companyNameExcludes": {
            "title": "Company name excludes",
            "type": "string",
            "description": "Advanced search: the name must not contain these words."
          },
          "location": {
            "title": "Registered office location",
            "type": "string",
            "description": "Advanced search: town, county or postcode of the registered office, e.g. Leeds or LS1."
          },
          "postTowns": {
            "title": "Post towns",
            "type": "array",
            "description": "Advanced search for each post town, e.g. Manchester, Bristol.",
            "items": {
              "type": "string"
            }
          },
          "postCodePrefixes": {
            "title": "Post-code prefixes",
            "type": "array",
            "description": "Advanced search for each postcode area, e.g. EC1, M1.",
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Advanced search for each county, e.g. Kent.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Advanced search for each country of the registered office: England, Wales, Scotland, Northern Ireland.",
            "items": {
              "type": "string"
            }
          },
          "sicCodes": {
            "title": "SIC codes",
            "type": "array",
            "description": "Advanced search: nature-of-business codes, e.g. 56101, 62012.",
            "items": {
              "type": "string"
            }
          },
          "sicCodePrefixes": {
            "title": "SIC code prefixes",
            "type": "array",
            "description": "Keep only companies whose SIC code starts with one of these, e.g. 62 (IT), 56 (food service).",
            "items": {
              "type": "string"
            }
          },
          "sicKeywords": {
            "title": "SIC keywords",
            "type": "array",
            "description": "Keep only companies whose SIC description contains one of these words, e.g. software, restaurant.",
            "items": {
              "type": "string"
            }
          },
          "companyStatus": {
            "title": "Company status",
            "type": "array",
            "description": "Advanced search: one or more company statuses.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "open",
                "closed",
                "converted-closed",
                "removed",
                "receivership",
                "liquidation",
                "administration",
                "insolvency-proceedings",
                "voluntary-arrangement"
              ]
            }
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Advanced search: one or more company types.",
            "items": {
              "type": "string",
              "enum": [
                "ltd",
                "plc",
                "llp",
                "private-unlimited",
                "limited-partnership",
                "private-limited-guarant-nsc",
                "charitable-incorporated-organisation",
                "oversea-company",
                "registered-overseas-entity",
                "industrial-and-provident-society",
                "royal-charter",
                "scottish-partnership",
                "other"
              ]
            }
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "Advanced search: incorporated on or after this date."
          },
          "incorporatedTo": {
            "title": "Incorporated to",
            "type": "string",
            "description": "Advanced search: incorporated on or before this date."
          },
          "dissolvedFrom": {
            "title": "Dissolved from",
            "type": "string",
            "description": "Advanced search: dissolved on or after this date."
          },
          "dissolvedTo": {
            "title": "Dissolved to",
            "type": "string",
            "description": "Advanced search: dissolved on or before this date."
          },
          "includeOfficers": {
            "title": "Include officers & directors",
            "type": "boolean",
            "description": "Add every officer (directors, secretaries) with role, dates, nationality and address.",
            "default": true
          },
          "includePSCs": {
            "title": "Include PSCs (beneficial owners)",
            "type": "boolean",
            "description": "Add the persons with significant control and their nature of control.",
            "default": true
          },
          "includeCharges": {
            "title": "Include charges / mortgages",
            "type": "boolean",
            "description": "Add registered charges with status, dates and persons entitled.",
            "default": true
          },
          "includeFilingHistory": {
            "title": "Include filing history",
            "type": "boolean",
            "description": "Add the latest 25 filings with type, description and document link.",
            "default": true
          },
          "includeFinancials": {
            "title": "Parse filed accounts (iXBRL)",
            "type": "boolean",
            "description": "Read the digital accounts: turnover, profit, assets, liabilities, cash, employees, director pay.",
            "default": true
          },
          "financialYears": {
            "title": "Years of financials to parse",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many of the latest digital accounts to read per company.",
            "default": 1
          },
          "emitOfficerRecords": {
            "title": "Emit one record per officer",
            "type": "boolean",
            "description": "Also output one row per officer (recordType officer) next to the company row.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new companies)",
            "type": "boolean",
            "description": "Remember earlier runs and output only companies not seen before (or changed).",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results per query",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Companies per search query, officer name, location or advanced search. 0 = all the register shows (search: up to 1,000; advanced: up to 10,000).",
            "default": 20
          },
          "maxItems": {
            "title": "Max items (total)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total row limit. 0 = no total limit.",
            "default": 0
          },
          "logEveryNRows": {
            "title": "Progress log frequency (rows)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Write a progress line to the log every N rows. 0 = off.",
            "default": 0
          },
          "incrementalMode": {
            "title": "Incremental mode (only new / changed rows)",
            "type": "boolean",
            "description": "Remember every row of this run; the next run outputs only NEW and UPDATED rows (column changeType).",
            "default": false
          },
          "stateKey": {
            "title": "Incremental memory name",
            "type": "string",
            "description": "Optional name of the memory used by incremental mode, e.g. \"brand-a\". Different names = independent monitors."
          },
          "emitUnchanged": {
            "title": "Incremental: also output unchanged rows",
            "type": "boolean",
            "description": "With incremental mode, also output rows that did not change (changeType UNCHANGED).",
            "default": false
          },
          "emitExpired": {
            "title": "Incremental: output expired rows",
            "type": "boolean",
            "description": "With incremental mode, output one EXPIRED row for every row of the last run that is no longer found.",
            "default": false
          },
          "notifyOnlyNew": {
            "title": "Notify only when there are new rows",
            "type": "boolean",
            "description": "With incremental mode, send the notification only when the run found NEW rows.",
            "default": false
          },
          "notifyOnlyChanges": {
            "title": "Notify only on changes",
            "type": "boolean",
            "description": "With incremental mode, send the notification only when rows are NEW, UPDATED or EXPIRED.",
            "default": false
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Output only the core columns (smaller files, easier sheets).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Drop columns that are empty on a row.",
            "default": false
          },
          "flatten": {
            "title": "Flatten for CSV",
            "type": "boolean",
            "description": "Nested objects become separate columns (parent.child), lists become comma-separated text.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL (notification)",
            "type": "string",
            "description": "Optional: at the end of the run, POST a JSON summary (counts + first rows) to this URL (n8n, Make, Zapier...)."
          },
          "webhookHeaders": {
            "title": "Webhook headers",
            "type": "object",
            "description": "Optional extra HTTP headers for the webhook, e.g. {\"Authorization\": \"Bearer ...\"}."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Optional Slack incoming-webhook URL for a run summary."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional Discord webhook URL for a run summary."
          },
          "telegramToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional token of your own Telegram bot, used with the chat ID for a run summary."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Optional Telegram chat ID that receives the run summary."
          },
          "notificationLimit": {
            "title": "Rows in a notification",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many rows the notification lists.",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are read in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (default group works).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}