{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Companies House — Full Records (Officers + PSC), Live API",
    "description": "Pulls UK company records LIVE from the official Companies House API — full profile plus officers and PSC, by company number or advanced search (dates, SIC, status). Monitoring mode emits only new companies, with a built-in alert webhook.",
    "version": "0.1",
    "x-build-id": "86SO9AyJ7LPNgGYFr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apitory~uk-companies-house/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apitory-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/apitory~uk-companies-house/runs": {
      "post": {
        "operationId": "runs-sync-apitory-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/apitory~uk-companies-house/run-sync": {
      "post": {
        "operationId": "run-sync-apitory-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": {
          "alertWebhookUrl": {
            "title": "Alert webhook URL (optional)",
            "type": "string",
            "description": "If set and the run emits at least one company, the Actor POSTs a JSON alert ({ source, runId, emitted, companies: [...] }) to this URL at the end of the run — built-in alert delivery, no external integration wiring needed."
          },
          "companiesHouseApiKey": {
            "title": "Your Companies House API key (optional)",
            "type": "string",
            "description": "Optional. Your own free Companies House API key (issued instantly in the Companies House Developer Hub). Recommended for bulk pulls: your key gets its own 600-requests-per-5-minutes limit. If empty, the Actor's shared key is used."
          },
          "companyNumbers": {
            "title": "Company numbers",
            "type": "array",
            "description": "Explicit list of UK company numbers to pull (e.g. 00445790 for Tesco PLC). If this is non-empty, the search filters below are ignored.",
            "items": {
              "type": "string"
            }
          },
          "companyStatuses": {
            "title": "Company statuses",
            "type": "array",
            "description": "Advanced search: company statuses to match. Common values: active, dissolved, liquidation, receivership, administration, voluntary-arrangement, converted-closed, insolvency-proceedings, registered, removed, open, closed.",
            "items": {
              "type": "string"
            }
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Advanced search: company types to match. Common values: ltd, plc, llp, private-unlimited, private-limited-guarant-nsc, private-limited-guarant-nsc-limited-exemption, registered-society-non-jurisdictional, industrial-and-provident-society, charitable-incorporated-organisation.",
            "items": {
              "type": "string"
            }
          },
          "includeOfficers": {
            "title": "Include officers",
            "type": "boolean",
            "description": "Fetch each company's officers (directors, secretaries) live and include them in the record. Together with PSC this makes the record a full record ($0.001 total).",
            "default": true
          },
          "includePSCs": {
            "title": "Include persons with significant control (PSC)",
            "type": "boolean",
            "description": "Fetch each company's persons with significant control (PSC) live and include them in the record.",
            "default": true
          },
          "incorporatedFrom": {
            "title": "Incorporated from",
            "type": "string",
            "description": "Advanced search: incorporated on or after this date (YYYY-MM-DD)."
          },
          "incorporatedTo": {
            "title": "Incorporated to",
            "type": "string",
            "description": "Advanced search: incorporated on or before this date (YYYY-MM-DD)."
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after emitting this many company records.",
            "default": 100
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new companies)",
            "type": "boolean",
            "description": "Remember every company number this Actor has already emitted (in a named Key-Value store) and emit only companies not seen before. Combine with a schedule (e.g. daily) and an incorporation-date window to build a new-registrations feed.",
            "default": false
          },
          "searchNameIncludes": {
            "title": "Company name contains",
            "type": "string",
            "description": "Advanced search: only companies whose name contains this text."
          },
          "sicCodes": {
            "title": "SIC codes",
            "type": "array",
            "description": "Advanced search: SIC codes to match (e.g. 47910 = retail via mail order / internet, 62012 = business and domestic software development, 56101 = licensed restaurants). A company matches if any of its SIC codes is listed.",
            "items": {
              "type": "string"
            }
          },
          "stateStoreName": {
            "title": "Monitoring state store name",
            "type": "string",
            "description": "Name of the Key-Value store used for monitoring-mode state. Only needed if you run several independent monitors."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}