{
  "openapi": "3.0.1",
  "info": {
    "title": "Companies House Scraper - UK Companies, Directors & PSCs",
    "description": "Search the UK Companies House register and export companies, directors, persons with significant control (PSCs) and filing history. Filter new incorporations by SIC code, date, status, type and location, up to 5,000 companies per search. No API key, no login.",
    "version": "1.0",
    "x-build-id": "WXhDM9MVZ3tvfD091"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~companies-house-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-companies-house-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/sian.agency~companies-house-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-companies-house-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/sian.agency~companies-house-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-companies-house-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "searchCompanies",
              "advancedSearch",
              "companyProfile",
              "officers",
              "pscs",
              "filingHistory"
            ],
            "type": "string",
            "description": "Search companies finds companies by name or keyword. Find companies by filters lists companies by SIC code, incorporation date, status, type and location, up to 5,000 per run, with SIC codes on every row. Company profile, Officers, PSCs and Filing history read the company numbers you give.",
            "default": "searchCompanies"
          },
          "searchQueries": {
            "title": "🔍 Company names or keywords",
            "type": "array",
            "description": "Used by Search companies. One search per line, for example a company name (Tesco) or a word in it (bakery). Each search returns up to 1,000 companies, best matches first.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "🔢 Max companies per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many companies to return for each search line in Search companies. The register shows at most 1,000 per search.",
            "default": 50
          },
          "nameIncludes": {
            "title": "🔤 Company name contains",
            "type": "string",
            "description": "Used by Find companies by filters. Only companies whose name contains this word or phrase, for example consulting. Optional when you set another filter."
          },
          "sicCodes": {
            "title": "🏭 SIC codes",
            "type": "array",
            "description": "Only companies registered under these 5-digit SIC codes (nature of business), for example 62012 for business software development or 56101 for restaurants. A company matches if any of its codes is in your list.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "📍 Registered office location",
            "type": "string",
            "description": "Only companies with a registered office in this town, city, county or postcode area, for example Manchester or M1. The register matches the wider area, so nearby towns can appear too."
          },
          "incorporatedFrom": {
            "title": "📅 Incorporated on or after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only companies incorporated on or after this date (YYYY-MM-DD). With Incorporated on or before, this gives you a list of new companies for any week or month."
          },
          "incorporatedTo": {
            "title": "📅 Incorporated on or before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only companies incorporated on or before this date (YYYY-MM-DD)."
          },
          "companyStatus": {
            "title": "🚦 Company status",
            "uniqueItems": true,
            "type": "array",
            "description": "Only companies with one of these statuses, for example Active for trading companies or Liquidation for companies being wound up. Leave empty for every status.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "dissolved",
                "open",
                "closed",
                "converted-closed",
                "removed",
                "receivership",
                "liquidation",
                "administration",
                "insolvency-proceedings",
                "voluntary-arrangement"
              ],
              "enumTitles": [
                "🟢 Active",
                "⚫ Dissolved",
                "🔓 Open",
                "🔒 Closed",
                "🔁 Converted closed",
                "🗑️ Removed",
                "🧾 Receivership",
                "💧 Liquidation",
                "🛟 Administration",
                "⚖️ Insolvency proceedings",
                "🤝 Voluntary arrangement"
              ]
            }
          },
          "companyTypes": {
            "title": "🏷️ Company type",
            "uniqueItems": true,
            "type": "array",
            "description": "Only companies of these types, for example Private limited company or Limited liability partnership. Leave empty for every type.",
            "items": {
              "type": "string",
              "enum": [
                "assurance-company",
                "charitable-incorporated-organisation",
                "converted-or-closed",
                "eeig",
                "european-public-limited-liability-company-se",
                "further-education-or-sixth-form-college-corporation",
                "industrial-and-provident-society",
                "icvc",
                "llp",
                "limited-partnership",
                "old-public-company",
                "oversea-company",
                "registered-overseas-entity",
                "private-limited-guarant-nsc",
                "ltd",
                "private-limited-guarant-nsc-limited-exemption",
                "private-limited-shares-section-30-exemption",
                "private-unlimited",
                "private-unlimited-nsc",
                "protected-cell-company",
                "plc",
                "registered-society-non-jurisdictional",
                "royal-charter",
                "scottish-charitable-incorporated-organisation",
                "scottish-partnership",
                "uk-establishment",
                "unregistered-company"
              ],
              "enumTitles": [
                "🏛️ Assurance company",
                "💚 Charitable incorporated organisation",
                "🏛️ Converted or closed",
                "🏛️ European Economic Interest Grouping (EEIG)",
                "🏛️ European public limited liability company (SE)",
                "🏛️ Further education or sixth form college corporation",
                "🏛️ Industrial and Provident society",
                "🏛️ Investment company with variable capital",
                "🤝 Limited liability partnership",
                "🤝 Limited partnership",
                "🏛️ Old public company",
                "🌍 Overseas company",
                "🌍 Overseas entity",
                "🏛️ Private limited by guarantee without share capital",
                "🏢 Private limited company",
                "🏛️ Private Limited Company by guarantee without share capital, use of 'Limited' exemption",
                "🏛️ Private Limited Company, use of 'Limited' exemption",
                "🏛️ Private unlimited company",
                "🏛️ Private unlimited company without share capital",
                "🏛️ Protected cell company",
                "📈 Public limited company",
                "🏛️ Registered society",
                "🏛️ Royal charter company",
                "💚 Scottish charitable incorporated organisation",
                "🤝 Scottish qualifying partnership",
                "🌍 UK establishment company",
                "🏛️ Unregistered company"
              ]
            }
          },
          "maxFilteredCompanies": {
            "title": "🔢 Max companies from filters",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many companies Find companies by filters returns. The register exports at most 5,000 per filter set. Narrow the incorporation dates to get the rest in another run.",
            "default": 1000
          },
          "companies": {
            "title": "🏢 Company numbers or URLs",
            "type": "array",
            "description": "Used by Company profile, Officers, PSCs and Filing history. One per line: a company number (00445790, SC548639, OC447300) or the company's Companies House page address. Short numbers are padded to 8 digits for you.",
            "items": {
              "type": "string"
            }
          },
          "includeResignedOfficers": {
            "title": "📜 Include resigned officers",
            "type": "boolean",
            "description": "Used by Officers. On: every current and past director and secretary. Off: only current officers.",
            "default": true
          },
          "maxFilingsPerCompany": {
            "title": "🔢 Max filings per company",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Used by Filing history. Newest filings come first, so 25 gives you roughly the last few years for a small company.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}