# Hospital Billing Code Price Comparison (Multi-Hospital)

> Hospital Billing Code Price Comparison (Multi-Hospital) is a paid API for AI agents from data.spencermcw.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-22).

Returns normalized, side-by-side price rows for a single billing code across up to 10 named hospitals.

## Facts

- Endpoint: GET https://data.spencermcw.com/v1/hospital/compare?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hospital-billing-code-price-comparison-multi-hospital-b1ede79c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DszrUZtL0tMwqLQmEMFIA

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-billing-code-price-comparison-multi-hospital-b1ede79c
```

Example prompt: Compare what these six hospitals charge for CPT code 99213 under commercial insurance outpatient billing — use hospital IDs hospital-a, hospital-b, hospital-c, hospital-d, hospital-e, hospital-f and show me a normalized row for each.

## When to prefer this

Use this endpoint when you need to compare prices for a single billing code across multiple specific, named hospitals simultaneously. It returns one normalized row per hospital, making it ideal for side-by-side cost comparison, benefits analysis, or price transparency research. Prefer this over the single-hospital or ZIP-based endpoints when you already know the hospital identifiers and need structured multi-institution output in one call.

## Known failure modes

- Invalid billing code format (must match 3-5 alphanumeric pattern) — returns validation error
- Hospital identifier not found in dataset — hospital appears in not_found list rather than results
- Fewer than 1 or more than 10 hospital IDs provided — schema validation failure
- Unknown code type for the given code — code metadata may have null description
- No matching price data for specified payer/plan/setting filters — rows returned with null rates
- Malformed hospital ID format — rejected by pattern validation before query executes

## How this service works

One billing code across up to 10 named hospitals, one normalized row each

## Output

Returns a structured object with: the resolved code metadata (type, description, DRG info, statewide MRF count), the filters applied (payer, plan type, plan name, setting, billing class), a list of hospitals not found in the dataset, and one normalized price row per matched hospital — allowing direct side-by-side comparison of negotiated rates.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code",
      "hospitals"
     ],
     "properties": {
      "code": {
       "type": "string",
       "pattern": "^[0-9A-Za-z]{3,5}$"
      },
      "plan": {
       "type": "string",
       "maxLength": 80,
       "minLength": 2
      },
      "payer": {
       "type": "string",
       "pattern": "^[a-z0-9_]{2,40}$"
      },
      "setting": {
       "enum": [
        "inpatient",
        "outpatient"
       ],
       "type": "string"
      },
      "code_type": {
       "enum": [
        "CPT",
        "HCPCS",
        "MS-DRG"
       ],
       "type": "string"
      },
      "hospitals": {
       "type": "string",
       "pattern": "^[A-Za-z0-9-]{6,20}(,[A-Za-z0-9-]{6,20}){0,9}$"
      },
      "plan_type": {
       "enum": [
        "commercial",
        "medicare_advantage",
        "medicaid",
        "medicare",
        "exchange",
        "tricare",
        "va",
        "workers_comp",
        "auto",
        "supplemental",
        "other",
        "unspecified"
       ],
       "type": "string"
      },
      "billing_class": {
       "enum": [
        "facility",
        "professional"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "code",
        "filters",
        "hospitals",
        "not_found"
       ],
       "properties": {
        "code": {
         "type": "object",
         "required": [
          "type",
          "code",
          "description",
          "description_source",
          "drg",
          "mrfs_statewide"
         ],
         "properties": {
          "drg": {
           "anyOf": [
            {
             "type": "object"
            },
            {
             "type": "null"
            }
           ]
          },
          "code": {
           "type": "string"
        
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hospital-billing-code-price-comparison-multi-hospital-b1ede79c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.spencermcw.com](https://www.zero.xyz/host/data.spencermcw.com/llms.txt)
