{
  "openapi": "3.0.1",
  "info": {
    "title": "Companies House Scraper — New Companies & Directors (MCP)",
    "description": "The UK Companies House register without an API key: search 5M+ companies by name, type, status, SIC codes, address & incorporation/dissolution date windows — directors & PSCs included FREE. Monitor mode = daily new-incorporations feed (only never-seen numbers). 5x cheaper than the leader. MCP-ready.",
    "version": "0.0",
    "x-build-id": "kTbj0I3tyZzHrPf67"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amygraphics~companies-house-uk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amygraphics-companies-house-uk-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/amygraphics~companies-house-uk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-amygraphics-companies-house-uk-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/amygraphics~companies-house-uk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-amygraphics-companies-house-uk-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": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "search = your filters once · monitor = return ONLY never-seen-before companies (schedule daily for a new-incorporations feed).",
            "default": "search"
          },
          "companyNameIncludes": {
            "title": "Name includes",
            "type": "string",
            "description": "Only keep companies whose name contains this text (e.g. HOLDINGS, CARE, MARKETING).",
            "default": ""
          },
          "companyNameExcludes": {
            "title": "Name excludes",
            "type": "string",
            "description": "Drop companies whose name contains this text.",
            "default": ""
          },
          "companyType": {
            "title": "Company type",
            "enum": [
              "any",
              "ltd",
              "plc",
              "llp",
              "limited-partnership",
              "private-unlimited",
              "private-unlimited-nsc",
              "private-limited-guarant-nsc",
              "old-public-company",
              "charitable-incorporated-organisation",
              "industrial-and-provident-society",
              "scottish-partnership",
              "private-fund-limited-partnership"
            ],
            "type": "string",
            "description": "ltd = Private Limited (the 90% case) · any = every legal form.",
            "default": "ltd"
          },
          "status": {
            "title": "Status",
            "type": "array",
            "description": "Company status filter. active default; 'any' = no filter.",
            "default": [
              "active"
            ]
          },
          "sicCodes": {
            "title": "SIC codes (up to 9, comma-separated in one item)",
            "type": "array",
            "description": "UK SIC codes (5 digits). 62012 = software · 82990 = business support · 70100 = head offices. Companies matching at least one are kept.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "addressKeyword": {
            "title": "Registered office keyword",
            "type": "string",
            "description": "Filter by address text — city, street or postcode fragment (London, EC1V, Cardiff…).",
            "default": ""
          },
          "timeFrom": {
            "title": "Incorporated from (YYYY-MM-DD)",
            "type": "string",
            "description": "Window start. Empty = daysBack days ago.",
            "default": ""
          },
          "timeTo": {
            "title": "Incorporated to (YYYY-MM-DD)",
            "type": "string",
            "description": "Window end. Empty = today.",
            "default": ""
          },
          "daysBack": {
            "title": "Rolling window (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "number",
            "description": "When timeFrom/timeTo are empty: go back this many days (monitor defaults to 7).",
            "default": 30
          },
          "maxResults": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 100000,
            "type": "number",
            "description": "Cap of company rows to return.",
            "default": 500
          },
          "maxPages": {
            "title": "Max pages per window",
            "minimum": 1,
            "maximum": 500,
            "type": "number",
            "description": "20 companies per page; the engine auto-splits the date window when too large.",
            "default": 100
          },
          "includeOfficers": {
            "title": "Include directors & secretaries",
            "type": "boolean",
            "description": "Open each company officers page — free bonus (the leader charges +$0.002 per officer).",
            "default": false
          },
          "includePsc": {
            "title": "Include PSCs (beneficial owners)",
            "type": "boolean",
            "description": "Also collect Persons with Significant Control per company.",
            "default": false
          },
          "maxProfiles": {
            "title": "Max officer enrichments",
            "minimum": 1,
            "maximum": 2000,
            "type": "number",
            "description": "Polite cap on profile opens per run (1 request per officer, 1 per PSC).",
            "default": 100
          },
          "requestDelaySecs": {
            "title": "Delay between requests (s)",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Politeness delay. Gov.UK prefers steady, slow scraping.",
            "default": 0.5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (s)",
            "minimum": 5,
            "maximum": 120,
            "type": "number",
            "description": "Per-request timeout.",
            "default": 30
          },
          "respectRobots": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Keep on (the register has no robots.txt restrictions anyway).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Only for heavy bulk jobs (thousands of officer pages). Datacenter is fine otherwise."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}