{
  "openapi": "3.0.1",
  "info": {
    "title": "CQC Care Home Inspection Reports & Homecare API",
    "description": "Find CQC care home inspection reports and homecare report links in England. Look up known service IDs or filter a dated ratings snapshot; export provider-grouped CSV. $0.01/provider plus Apify usage. Independent metadata tool; no clinical findings.",
    "version": "1.0",
    "x-build-id": "GcEWVw8MNT9uZL33d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/changeable_peddler~cqc-report-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-changeable_peddler-cqc-report-finder",
        "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/changeable_peddler~cqc-report-finder/runs": {
      "post": {
        "operationId": "runs-sync-changeable_peddler-cqc-report-finder",
        "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/changeable_peddler~cqc-report-finder/run-sync": {
      "post": {
        "operationId": "run-sync-changeable_peddler-cqc-report-finder",
        "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": "Search mode",
            "enum": [
              "DISCOVERY",
              "LOOKUP"
            ],
            "type": "string",
            "description": "Lookup fetches the current public page for known service IDs. Discovery uses the monthly ratings workbook as its candidate index; it is not a complete real-time report feed.",
            "default": "LOOKUP"
          },
          "locationIds": {
            "title": "CQC location IDs (Lookup)",
            "maxItems": 100,
            "type": "array",
            "description": "Supply up to 100 CQC location IDs, such as the ID in a CQC service URL. The default is one public care-service example verified on 27 October 2026. Replace it with your own IDs. URLs, provider IDs and arbitrary websites are not accepted.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9-]{1,80}$"
            },
            "default": [
              "1-13361514096"
            ]
          },
          "originPostcode": {
            "title": "Optional radius centre postcode",
            "type": "string",
            "description": "Discovery only: your chosen postcode, sent to Postcodes.io for geocoding. It is encrypted by Apify and omitted from datasets/logs. No publisher postcode is inherited. BT postcodes are unsupported. Leave blank for region/service filters instead."
          },
          "maxDistanceMiles": {
            "title": "Radius in straight-line miles",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Used only when a postcode is provided. Distance is to each care location, not a provider headquarters or driving route.",
            "default": 40
          },
          "lookbackDays": {
            "title": "Publication lookback days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Discovery only: filter known publication dates. The monthly index can omit newer reports; check its source date in RUN_SUMMARY. Unknown dates are excluded. Lookup ignores this filter.",
            "default": 90
          },
          "ratings": {
            "title": "Overall ratings",
            "maxItems": 4,
            "type": "array",
            "description": "Discovery only: select exact overall ratings; an empty list accepts any known or unknown rating. A weak domain rating never substitutes for missing overall. Lookup ignores this filter.",
            "items": {
              "type": "string",
              "enum": [
                "Outstanding",
                "Good",
                "Requires improvement",
                "Inadequate"
              ]
            },
            "default": [
              "Requires improvement",
              "Inadequate"
            ]
          },
          "regions": {
            "title": "Optional CQC regions (Discovery)",
            "maxItems": 10,
            "type": "array",
            "description": "Exact region names, case-insensitive. Leave empty to include all regions covered by the source.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "serviceTypes": {
            "title": "Optional service-type filters (Discovery)",
            "maxItems": 10,
            "type": "array",
            "description": "Case-insensitive fragments of source service descriptions, such as care home or domiciliary. Scope is adult social care, not hospitals, dentists or GP services.",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "default": []
          },
          "maxLocationsToCheck": {
            "title": "Maximum public pages to check",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Bounds work before provider grouping. Discovery sorts candidates by source date first; reaching this cap means partial coverage, explicitly reported in RUN_SUMMARY.",
            "default": 25
          },
          "maxProviders": {
            "title": "Maximum provider records",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One provider is billed once even when several matching locations are grouped beneath it. No report fee for errors or empty output; platform usage still applies.",
            "default": 25
          },
          "maxSourceLocations": {
            "title": "Maximum ratings-index candidates",
            "minimum": 20,
            "maximum": 20000,
            "type": "integer",
            "description": "Advanced bound on recent rows retained from the source. Any source truncation is reported; this is not a promise to search every CQC service.",
            "default": 5000
          },
          "concurrency": {
            "title": "Request concurrency",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Maximum public report lookups in parallel. No authentication, proxies, LLMs or paid routing APIs are used.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}