{
  "openapi": "3.0.1",
  "info": {
    "title": "CQC Care Homes & Providers Search (Ratings, Beds, Contacts)",
    "description": "Every care home, home care agency, GP, dentist, hospital and clinic registered with the CQC in England, with latest ratings (overall plus the five key questions), beds, phone, website and provider. Filter by postcode radius, council, region, service type or rating.",
    "version": "1.0",
    "x-build-id": "JuC54oShTeD7zfQlb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/onibaku~uk-cqc-care-ratings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-onibaku-uk-cqc-care-ratings",
        "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/onibaku~uk-cqc-care-ratings/runs": {
      "post": {
        "operationId": "runs-sync-onibaku-uk-cqc-care-ratings",
        "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/onibaku~uk-cqc-care-ratings/run-sync": {
      "post": {
        "operationId": "run-sync-onibaku-uk-cqc-care-ratings",
        "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": {
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Part of the care home, practice or service name. Case and punctuation are ignored."
          },
          "locationIds": {
            "title": "CQC location IDs",
            "type": "array",
            "description": "Look up specific locations, e.g. \"1-10000302982\" (the ID at the end of a cqc.org.uk/location/ link).",
            "items": {
              "type": "string"
            }
          },
          "postcode": {
            "title": "Near postcode",
            "type": "string",
            "description": "A full postcode (\"M20 2LR\") or postcode district (\"M20\"). Results are sorted nearest first."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 0.1,
            "maximum": 100,
            "type": "number",
            "description": "How far from the postcode to look.",
            "default": 5
          },
          "localAuthorities": {
            "title": "Local authorities",
            "type": "array",
            "description": "Council areas, e.g. \"Manchester\", \"Kent\", \"Tower Hamlets\".",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Only these English regions.",
            "items": {
              "type": "string",
              "enum": [
                "North East",
                "North West",
                "Yorkshire and The Humber",
                "East Midlands",
                "West Midlands",
                "East of England",
                "London",
                "South East",
                "South West"
              ]
            }
          },
          "categories": {
            "title": "Kind of service",
            "type": "array",
            "description": "CQC's main inspection category for the location. Care homes are \"Residential social care\"; home care agencies and supported living are \"Community based adult social care services\".",
            "items": {
              "type": "string",
              "enum": [
                "Residential social care",
                "Community based adult social care services",
                "GP Practices",
                "Dentists",
                "Independent consulting doctors",
                "Acute hospital - NHS non-specialist",
                "Acute hospital - NHS specialist",
                "Acute hospital - Independent non-specialist",
                "Acute hospital - Independent specialist",
                "Community health - NHS & Independent",
                "Mental health - community & residential - NHS",
                "Mental health - community & hospital - independent",
                "Hospice services",
                "Ambulance service",
                "Urgent care services & mobile doctors",
                "Out of hours",
                "Remote clinical advice",
                "Community substance misuse",
                "Residential substance misuse",
                "Prison Healthcare",
                "Slimming Clinics"
              ]
            }
          },
          "serviceTypes": {
            "title": "Service types",
            "type": "array",
            "description": "Any of these registered service types. A location can have several.",
            "items": {
              "type": "string",
              "enum": [
                "Care home service with nursing",
                "Care home service without nursing",
                "Domiciliary care service",
                "Supported living service",
                "Extra Care housing services",
                "Shared Lives",
                "Doctors consultation service",
                "Doctors treatment service",
                "Dental service",
                "Acute services with overnight beds",
                "Acute services without overnight beds / listed acute services with or without overnight beds",
                "Hospital services for people with mental health needs, learning disabilities and problems with substance misuse",
                "Community healthcare service",
                "Community based services for people with a learning disability",
                "Community based services for people with mental health needs",
                "Community based services for people who misuse substances",
                "Community health care services - Nurses Agency only",
                "Community health care services - Independent Midwives",
                "Diagnostic and/or screening service",
                "Diagnostic and/or screening service - single handed sessional providers",
                "Hospice services",
                "Hospice services at home",
                "Rehabilitation services",
                "Residential substance misuse treatment and/or rehabilitation service",
                "Long term conditions services",
                "Urgent care services",
                "Mobile doctors service",
                "Remote clinical advice service",
                "Ambulance service",
                "Prison Healthcare Services",
                "Specialist college service",
                "Blood and Transplant service",
                "Hyperbaric Chamber"
              ]
            }
          },
          "specialisms": {
            "title": "Specialisms (who they care for)",
            "type": "array",
            "description": "Any of these service user bands.",
            "items": {
              "type": "string",
              "enum": [
                "Older People",
                "Younger Adults",
                "Dementia",
                "Learning disabilities or autistic spectrum disorder",
                "Mental Health",
                "Physical Disability",
                "Sensory Impairment",
                "Children 0-18 years",
                "People detained under the Mental Health Act",
                "People who misuse drugs and alcohol",
                "People with an eating disorder",
                "Whole Population"
              ]
            }
          },
          "overallRatings": {
            "title": "Overall rating",
            "type": "array",
            "description": "The latest overall rating. \"Not rated\" covers new services, dentists (CQC doesn't rate them) and locations CQC now rates service by service.",
            "items": {
              "type": "string",
              "enum": [
                "Outstanding",
                "Good",
                "Requires improvement",
                "Inadequate",
                "Not rated"
              ]
            }
          },
          "providerName": {
            "title": "Provider or brand contains",
            "type": "string",
            "description": "Part of the provider (the registered company or partnership) or brand name, e.g. \"Barchester\"."
          },
          "minBeds": {
            "title": "Minimum care home beds",
            "minimum": 1,
            "type": "integer",
            "description": "Only care homes with at least this many beds."
          },
          "ratedSince": {
            "title": "Rating published on or after",
            "type": "string",
            "description": "Date the latest overall rating was published (YYYY-MM-DD)."
          },
          "registeredSince": {
            "title": "Registered on or after",
            "type": "string",
            "description": "Date the location was registered with CQC (YYYY-MM-DD). Handy for finding new services."
          },
          "includeKeyQuestionRatings": {
            "title": "Include key question ratings",
            "type": "boolean",
            "description": "Safe, effective, caring, responsive and well-led, plus per-service ratings. Turn off for a quicker run (about 20 seconds less).",
            "default": true
          },
          "includeRegisteredManager": {
            "title": "Include registered manager names",
            "type": "boolean",
            "description": "These are named people, so their use is covered by UK GDPR rather than the Open Government Licence. Only turn on if you have a lawful basis.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many locations.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}