# HealthParse Hospital Quality Search

> HealthParse Hospital Quality Search is a paid API for AI agents from api.healthparse.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Search and filter hospitals by location (state, city, ZIP) and CMS star rating to identify facilities meeting quality thresholds in a market.

## Facts

- Endpoint: GET https://api.healthparse.io/v1/facilities/hospitals/search
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/healthparse-hospital-quality-search-c3295b2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mMmORyjGzl7RV35hgndSD

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 healthparse-hospital-quality-search-c3295b2c
```

Example prompt: Find me all hospitals in Chicago, IL with a CMS overall star rating of at least 4 stars — show me up to 50 results.

## When to prefer this

Use this endpoint when you need to search or filter hospitals across a geographic market by location and CMS quality ratings. Prefer this over single-record CCN lookups when you don't know the specific hospital CCN and need to discover which facilities meet quality thresholds in a region. Best for market analysis, provider network evaluation, or patient referral workflows.

## Known failure modes

- No hospitals found matching filters — returns empty result set
- Invalid state abbreviation — returns validation error
- ZIP prefix not found or too short — may return empty or broad results
- overall_rating_min greater than overall_rating_max — returns error or empty set
- limit exceeds 100 — returns validation error
- Rate limit or payment failure for x402 micropayment — returns 402 error

## How this service works

Search hospitals quality data by state, city, ZIP, or CMS star rating. Answers: which hospitals meet quality thresholds in a market? Source: CMS Care Compare, monthly refresh.

## Output

A paginated list of hospitals matching the location and quality filters, each including facility name, location details, and CMS overall star rating, sourced from CMS Care Compare with monthly data refresh.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "city": {
     "type": "string"
    },
    "limit": {
     "type": "integer",
     "default": 25,
     "maximum": 100
    },
    "state": {
     "type": "string"
    },
    "offset": {
     "type": "integer",
     "default": 0
    },
    "zip_prefix": {
     "type": "string"
    },
    "overall_rating_max": {
     "type": "number"
    },
    "overall_rating_min": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/healthparse-hospital-quality-search-c3295b2c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.healthparse.io](https://www.zero.xyz/host/api.healthparse.io/llms.txt)
