# AgentBodega Hospital Quality Rating

> AgentBodega Hospital Quality Rating is a paid API for AI agents from agentbodega.store, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Looks up CMS hospital quality ratings and HCAHPS/complication measures for a given US hospital by name, CCN, city, state, or Care Compare URL.

## Facts

- Endpoint: POST https://agentbodega.store/api/public-data/hospital-quality-rating
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbodega-hospital-quality-rating-d07b2bbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PuxwXG2ppDZoBAp8yYAvS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentbodega-hospital-quality-rating-d07b2bbf -d '<json body>'
```

Example prompt: What's the CMS overall star rating for Mayo Clinic Hospital in Rochester, MN? Include the HCAHPS and complication measures too.

## When to prefer this

Use this endpoint when you need official CMS hospital star ratings or HCAHPS patient experience data for a specific US hospital. It's particularly useful for patient decision support, healthcare research, or quality benchmarking tasks. Prefer this over general web search when you need structured, machine-readable CMS quality data rather than narrative descriptions.

## Known failure modes

- Hospital not found by name/city/state — ambiguous or misspelled input returns empty result
- CCN not recognized — invalid or outdated CMS identifier
- Missing required identifiers — no ccn, hospitalName, or careCompareUrl provided
- CMS data unavailable for the requested facility — some hospitals not rated
- Rate limit or payment failure — x402 payment not accepted or insufficient USDC balance

## How this service works

Small x402-payable utility APIs for agents: endpoint inspection, launch checks, and hosted artifacts.

## Output

Returns a JSON object with the hospital's facility name, CCN, state, overall CMS star rating (1–5), and optionally arrays of HCAHPS patient experience scores and complications/deaths measures. Includes a success boolean and tool metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "fields": [
      {
       "name": "ccn",
       "type": "string",
       "required": false
      },
      {
       "name": "careCompareUrl",
       "type": "string",
       "required": false
      },
      {
       "name": "hospitalName",
       "type": "string",
       "required": false
      },
      {
       "name": "city",
       "type": "string",
       "required": false
      },
      {
       "name": "state",
       "type": "string",
       "required": false
      },
      {
       "name": "includeMeasures",
       "type": "boolean",
       "required": false
      },
      {
       "name": "compareTo",
       "type": "array",
       "required": false
      },
      {
       "name": "proxiesSx",
       "type": "boolean | object",
       "required": false
      }
     ],
     "required": [],
     "fieldCount": 8,
     "contentType": "application/json",
     "optionalPreview": [
      "ccn",
      "careCompareUrl",
      "hospitalName",
      "city",
      "state",
      "includeMeasures",
      "compareTo",
      "proxiesSx"
     ],
     "omittedFieldCount": 0
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": {
   "id": "hospital-quality-rating",
   "name": "Hospital Quality Rating",
   "department": "Public Data"
  },
  "result": {
   "ccn": "240010",
   "state": "MN",
   "measures": {
    "hcahps": [],
    "complications_and_deaths": []
   },
   "facility_name": "MAYO CLINIC HOSPITAL ROCHESTER",
   "overall_rating": "5"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbodega-hospital-quality-rating-d07b2bbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbodega.store](https://www.zero.xyz/host/agentbodega.store/llms.txt)
