{
  "openapi": "3.0.1",
  "info": {
    "title": "UK CQC Care Provider Leads Scraper - Care Homes, GPs & Dentists",
    "description": "Scrape every CQC-registered care provider in England — care homes, home care, GP & dental practices, hospitals & hospices: phone, website, registered manager, beds, CQC rating, provider & Companies House details, geo + lead score. Filter by region, service & rating. Official CQC data + monitor.",
    "version": "0.1",
    "x-build-id": "zwQuKkvegod8uyzmM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~uk-cqc-care-provider-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-uk-cqc-care-provider-leads",
        "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/scrapesage~uk-cqc-care-provider-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-uk-cqc-care-provider-leads",
        "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/scrapesage~uk-cqc-care-provider-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-uk-cqc-care-provider-leads",
        "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": {
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Filter by CQC region (case-insensitive contains), e.g. <code>London</code>, <code>North West</code>, <code>South East</code>, <code>Yorkshire</code>, <code>East of England</code>, <code>West Midlands</code>, <code>South West</code>, <code>North East</code>, <code>East Midlands</code>. Leave empty for all of England.",
            "items": {
              "type": "string"
            }
          },
          "localAuthorities": {
            "title": "Local authorities / councils",
            "type": "array",
            "description": "Filter by local authority (case-insensitive contains), e.g. <code>Manchester</code>, <code>Kent</code>, <code>Birmingham</code>, <code>Cornwall</code>.",
            "items": {
              "type": "string"
            }
          },
          "postcodePrefixes": {
            "title": "Postcode prefixes",
            "type": "array",
            "description": "Filter by UK outward postcode prefix, e.g. <code>SW1</code>, <code>M</code> (all Manchester), <code>CH63</code>. Matches the start of the location postcode.",
            "items": {
              "type": "string"
            }
          },
          "serviceCategories": {
            "title": "Service categories",
            "type": "array",
            "description": "Keep only these provider types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Care home (nursing)",
                "Care home (residential)",
                "Homecare / domiciliary",
                "Supported living",
                "GP / Doctors",
                "Dental",
                "Hospital",
                "Hospice",
                "Ambulance",
                "Mental health",
                "Substance misuse",
                "Social care",
                "Other"
              ]
            }
          },
          "serviceTypeQuery": {
            "title": "Service type contains",
            "type": "array",
            "description": "Keep only locations whose CQC service type or primary category contains one of these words (case-insensitive), e.g. <code>nursing</code>, <code>domiciliary</code>, <code>dental</code>, <code>hospice</code>, <code>learning disabilit</code>, <code>acute</code>.",
            "items": {
              "type": "string"
            }
          },
          "specialisms": {
            "title": "Specialism / service-user band contains",
            "type": "array",
            "description": "Keep only locations serving one of these groups (case-insensitive), e.g. <code>Dementia</code>, <code>Older People</code>, <code>Learning disabilities</code>, <code>Mental Health</code>, <code>Children</code>, <code>Physical Disability</code>.",
            "items": {
              "type": "string"
            }
          },
          "ratings": {
            "title": "CQC overall rating",
            "type": "array",
            "description": "Keep only locations with one of these latest overall ratings. <b>Requires improvement</b> and <b>Inadequate</b> are prime targets for compliance, training and consultancy vendors; <b>Outstanding</b>/<b>Good</b> for premium services.",
            "items": {
              "type": "string",
              "enum": [
                "Outstanding",
                "Good",
                "Requires improvement",
                "Inadequate"
              ]
            }
          },
          "careHomesOnly": {
            "title": "Care homes only",
            "type": "boolean",
            "description": "Only return registered care homes (with or without nursing).",
            "default": false
          },
          "minBeds": {
            "title": "Min care-home beds",
            "type": "integer",
            "description": "Only care homes with at least this many beds — great for targeting larger, higher-budget homes. E.g. <code>40</code>."
          },
          "nameQuery": {
            "title": "Location name contains",
            "type": "string",
            "description": "Only return locations whose name contains this text (case-insensitive)."
          },
          "providerNameQuery": {
            "title": "Provider / group name contains",
            "type": "string",
            "description": "Only return locations run by a provider whose name contains this text — target a specific care group, e.g. <code>Bupa</code>, <code>HC-One</code>, <code>Barchester</code>."
          },
          "ownershipTypes": {
            "title": "Provider ownership type",
            "type": "array",
            "description": "Filter by provider ownership type.",
            "items": {
              "type": "string",
              "enum": [
                "Organisation",
                "Partnership",
                "Individual",
                "NHS Body"
              ]
            }
          },
          "hasPhone": {
            "title": "Has phone only",
            "type": "boolean",
            "description": "Only return locations with a phone number (location or provider).",
            "default": false
          },
          "hasWebsite": {
            "title": "Has website only",
            "type": "boolean",
            "description": "Only return locations with a website (location or provider).",
            "default": false
          },
          "hasManager": {
            "title": "Has named contact only",
            "type": "boolean",
            "description": "Only return locations with a named registered manager or nominated individual.",
            "default": false
          },
          "hasCompaniesHouse": {
            "title": "Has Companies House number only",
            "type": "boolean",
            "description": "Only return locations whose provider has a Companies House number (limited companies) — pair with our Companies House Scraper to enrich directors & financials.",
            "default": false
          },
          "excludeDormant": {
            "title": "Exclude dormant locations",
            "type": "boolean",
            "description": "Skip locations CQC has flagged as dormant (registered but not currently operating).",
            "default": true
          },
          "includeRatingBreakdown": {
            "title": "Include rating breakdown (slower)",
            "type": "boolean",
            "description": "Also attach the five CQC key-question sub-ratings (Safe, Effective, Caring, Responsive, Well-led). This parses the full ratings file and adds ~2 minutes to the run — the overall rating is always included without it.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "type": "integer",
            "description": "Maximum number of location records to return. The actor ranks by your chosen sort order and returns the top N. Lower this for quick, cheap test runs.",
            "default": 1000
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "beds",
              "ratingDate",
              "registeredDate",
              "name",
              "region"
            ],
            "type": "string",
            "description": "Ordering of the returned records.",
            "default": "leadScore"
          },
          "deduplicateResults": {
            "title": "De-duplicate",
            "type": "boolean",
            "description": "Drop duplicate locations (by CQC location ID) within a run.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember which locations were already returned (in a per-key store) and, on later runs, emit only <b>new</b> or <b>changed</b> records — each tagged with <code>monitorEvent</code>. Combine with Apify Schedules to auto-detect new registrations, rating changes, manager changes and closures. Does not conflict with scheduling — it simply de-duplicates across runs.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitor mode. Use a different key per saved search / market (e.g. <code>london-care-homes</code>) so they track independently.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. CQC open data is served directly from cqc.org.uk and needs no proxy — the default (no proxy) is fastest. You may enable Apify Proxy if you prefer.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}