# Hospital Price Discover

> Hospital Price Discover is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Discovers US hospital machine-readable price files by reading the CMS-required cms-hpt.txt pointer from a hospital's website domain, returning location names, source pages, MRF URLs, and detected file formats.

## Facts

- Endpoint: GET https://payai.agentstools.dev/price/discover
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hospital-price-discover-102fcefd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HPwSdg7PGKjO_3i6rSOdk

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 hospital-price-discover-102fcefd
```

Example prompt: Can you find the machine-readable price files for nemours.org? I need the MRF file URLs and file formats for all their locations.

## When to prefer this

Use this endpoint when you need to programmatically locate CMS-mandated hospital price transparency files from a hospital's domain without manually browsing the hospital's website. It is specifically designed for the US hospital price transparency regulatory framework (cms-hpt.txt standard) and handles format detection automatically. Prefer this over general web scraping when you need structured MRF metadata across one or multiple hospital systems.

## Known failure modes

- Hospital domain does not publish a cms-hpt.txt file — returns empty or error
- cms-hpt.txt exists but links are malformed or inaccessible
- Non-US or non-hospital domain provided — no meaningful results
- Provided mrf_url is unreachable or has an unrecognized format
- Domain resolves but hospital site blocks crawling or returns 403/404

## How this service works

Find a US hospital's machine-readable price files from its website domain. Reads the hospital's root cms-hpt.txt pointer and returns the location name, source page and machine-readable-file URL for each location, with the detected file format.

## Output

A list of hospital locations, each with: the location name, the source page where the MRF link was found, the direct URL to the machine-readable file (MRF), and the detected file format (e.g. JSON, CSV, JSON.gz).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Hospital website domain, e.g. nemours.org"
      },
      "mrf_url": {
       "type": "string",
       "description": "A machine-readable-file URL to classify directly instead of discovering from a domain"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hospital-price-discover-102fcefd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
