{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Care Home Leads - CQC Registered Locations",
    "description": "From $0.50 per 1,000 locations, no start fee. Every CQC-registered care location in England, from the official monthly register: registered manager, bed count, CQC rating, phone, full address, provider and Companies House number. 57,069 locations, 14,887 care homes. Filter by region, rating or beds.",
    "version": "0.1",
    "x-build-id": "mZYYgMaFruTuo66Mf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~cqc-care-locations-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-cqc-care-locations-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/scrapersdelight~cqc-care-locations-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-cqc-care-locations-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/scrapersdelight~cqc-care-locations-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-cqc-care-locations-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": {
          "careHomesOnly": {
            "title": "Care homes only",
            "type": "boolean",
            "description": "Keep only locations CQC flags as a care home (14,887 of 57,069 on the September 2026 file). Off, you also get dentists, GP practices, domiciliary care agencies, clinics and ambulance services.",
            "default": false
          },
          "maxLocations": {
            "title": "Max locations",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on locations delivered - and charged. Rows excluded by your filters are never delivered and never charged. 0 means the whole register.",
            "default": 5000
          },
          "minBeds": {
            "title": "Minimum beds",
            "minimum": 0,
            "type": "integer",
            "description": "Only care homes with at least this many registered beds. 42,184 locations publish 0 beds because they are not care homes, so any value above 0 also filters those out.",
            "default": 0
          },
          "excludeDormant": {
            "title": "Exclude dormant locations",
            "type": "boolean",
            "description": "Drop the 1,082 locations CQC marks dormant - registered but not currently trading.",
            "default": true
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "CQC region names, e.g. London, North West, South East, East of England, Yorkshire and The Humber, West Midlands, East Midlands, South West, North East. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "localAuthorities": {
            "title": "Local authorities",
            "type": "array",
            "description": "Exact local-authority names as CQC writes them, e.g. Wirral, Kent, Birmingham. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postcodePrefixes": {
            "title": "Postcode prefixes",
            "type": "array",
            "description": "Match the start of the location postcode - M, SW1, CH63. Spaces and case are ignored. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "primaryInspectionCategories": {
            "title": "Primary inspection categories",
            "type": "array",
            "description": "CQC's own service category, e.g. Residential social care, Community based adult social care services, Dentists, Doctors/GPs, Hospitals. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ratings": {
            "title": "Latest overall ratings",
            "type": "array",
            "description": "Outstanding, Good, Requires improvement, Inadequate. 21,897 locations have no overall rating at all and are dropped by any value here.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "serviceTypeContains": {
            "title": "Service type contains",
            "type": "string",
            "description": "Match any of the location's CQC service types, e.g. nursing, supported living, domiciliary, hospice, dental."
          },
          "locationNameIncludes": {
            "title": "Location name contains",
            "type": "string",
            "description": "Only locations whose name contains this text."
          },
          "providerNameIncludes": {
            "title": "Provider name contains",
            "type": "string",
            "description": "Only locations run by a provider whose name contains this text - useful for pulling one group's whole estate."
          },
          "requireRegisteredManager": {
            "title": "Require a named registered manager",
            "type": "boolean",
            "description": "Keep only rows where CQC publishes the manager's name. 9,581 rows carry CQC's suppression marker instead of a name and are delivered as null.",
            "default": false
          },
          "requirePhone": {
            "title": "Require a phone number",
            "type": "boolean",
            "description": "Keep only rows with a location or provider phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "Require a website",
            "type": "boolean",
            "description": "Keep only rows with a location or provider website. CQC publishes NO email addresses, so the website is the enrichment hook.",
            "default": false
          },
          "odsUrl": {
            "title": "Register file URL (advanced)",
            "type": "string",
            "description": "Override the file to read. Leave empty and the actor reads the current link off cqc.org.uk/about-us/transparency/using-cqc-data - CQC serves only the current month, so a hardcoded URL 404s after the 1st.",
            "default": ""
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Off by default and that is deliberate: cqc.org.uk has no anti-bot and the download is 24 MB, which would cost about $0.19 per run on residential proxy. Turn it on only if your runs start getting blocked.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}