Api Endpoint

data.spencermcw.com … /hospital/prices

What does a procedure cost at hospitals near this ZIP? Cash price, gross charge and every insurer’s negotiated rate for a CPT, HCPCS or MS-DRG code at Colorado hospitals, normalized by Distill from the hospitals’ federally required price files. Refreshed monthly (live freshness: /status). $0.02 per call (x402, USDC on Base); 3 free calls a day.

Open interactive test console

Offering

Provider
data.spencermcw.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://data.spencermcw.com/v1/hospital/prices
MIME type
application/json
First seen
2026-10-23T22:25:34.290Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xE6900aE625875b748f56Fb45C3e06a59Be8870DF"
  }
]

Observed health

Status
Healthy
Latest latency
103 ms
Average latency
142 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "pattern": "^[0-9A-Za-z]{3,5}$"
        },
        "code_type": {
          "type": "string",
          "enum": [
            "CPT",
            "HCPCS",
            "MS-DRG"
          ]
        },
        "zip": {
          "type": "string",
          "pattern": "^\\d{5}$"
        },
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        },
        "radius_miles": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 100
        },
        "payer": {
          "type": "string",
          "pattern": "^[a-z0-9_]{2,40}$"
        },
        "plan_type": {
          "type": "string",
          "enum": [
            "commercial",
            "medicare_advantage",
            "medicaid",
            "medicare",
            "exchange",
            "tricare",
            "va",
            "workers_comp",
            "auto",
            "supplemental",
            "other",
            "unspecified"
          ]
        },
        "plan": {
          "type": "string",
          "minLength": 2,
          "maxLength": 80
        },
        "setting": {
          "type": "string",
          "enum": [
            "inpatient",
            "outpatient"
          ]
        },
        "billing_class": {
          "type": "string",
          "enum": [
            "facility",
            "professional"
          ]
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        }
      },
      "required": [
        "code"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "billing_class": {
              "enum": [
                "facility",
                "professional"
              ],
              "type": "string"
            },
            "code": {
              "pattern": "^[0-9A-Za-z]{3,5}$",
              "type": "string"
            },
            "code_type": {
              "enum": [
                "CPT",
                "HCPCS",
                "MS-DRG"
              ],
              "type": "string"
            },
            "lat": {
              "maximum": 90,
              "minimum": -90,
              "type": "number"
            },
            "limit": {
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            },
            "lon": {
              "maximum": 180,
              "minimum": -180,
              "type": "number"
            },
            "payer": {
              "pattern": "^[a-z0-9_]{2,40}$",
              "type": "string"
            },
            "plan": {
              "maxLength": 80,
              "minLength": 2,
              "type": "string"
            },
            "plan_type": {
              "enum": [
                "commercial",
                "medicare_advantage",
                "medicaid",
                "medicare",
                "exchange",
                "tricare",
                "va",
                "workers_comp",
                "auto",
                "supplemental",
                "other",
                "unspecified"
              ],
              "type": "string"
            },
            "radius_miles": {
              "exclusiveMinimum": 0,
              "maximum": 100,
              "type": "number"
            },
            "setting": {
              "enum": [
                "inpatient",
                "outpatient"
              ],
              "type": "string"
            },
            "zip": {
              "pattern": "^\\d{5}$",
              "type": "string"
            }
          },
          "required": [
            "code"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "description_source": {
                      "anyOf": [
                        {
                          "enum": [
                            "cms_hcpcs_level_ii",
                            "cms_ms_drg"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "drg": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mrfs_statewide": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    "type": {
                      "enum": [
                        "CPT",
                        "HCPCS",
                        "MS-DRG"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "code",
                    "description",
                    "description_source",
                    "drg",
                    "mrfs_statewide"
                  ],
                  "type": "object"
                },
                "filters": {
                  "additionalProperties": false,
                  "properties": {
                    "billing_class": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "payer": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "plan": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "plan_type": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "setting": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "payer",
                    "plan_type",
                    "plan",
                    "setting",
                    "billing_class"
                  ],
                  "type": "object"
                },
                "hospitals": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "ccn": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "confidence": {
                        "type": "number"
                      },
                      "distance_miles": {
                        "type": "number"
                      },
                      "id": {
                        "type": "string"
                      },
                      "items": {
                        "type": "array"
                      },
                      "mrfs": {
                        "type": "array"
                      },
                      "name": {
                        "type": "string"
                      },
                      "zip": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "ccn",
                      "name",
                      "city",
                      "zip",
                      "distance_miles",
                      "mrfs",
                      "items",
                      "confidence"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "hospitals_in_radius": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "hospitals_with_file": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "hospitals_with_prices": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "location": {
                  "additionalProperties": false,
                  "properties": {
                    "lat": {
                      "type": "number"
                    },
                    "lon": {
                      "type": "number"
                    },
                    "radius_miles": {
                      "type": "number"
                    },
                    "zip": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "zip",
                    "lat",
                    "lon",
                    "radius_miles"
                  ],
                  "type": "object"
                },
                "summary": {
                  "additionalProperties": false,
                  "properties": {
                    "discounted_cash": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "gross": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "hospitals": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    "items": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    "negotiated_dollar": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rates": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "hospitals",
                    "items",
                    "rates",
                    "negotiated_dollar",
                    "discounted_cash",
                    "gross"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "code",
                "location",
                "filters",
                "hospitals_in_radius",
                "hospitals_with_file",
                "hospitals_with_prices",
                "hospitals",
                "summary"
              ],
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}