Api Endpoint

data.spencermcw.com … /hospital/compare

How do these hospitals compare on price for one procedure? Cash, gross and negotiated-rate statistics for a CPT, HCPCS or MS-DRG code at up to 10 Colorado hospitals, normalized by Distill from their price-transparency 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/compare
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
104 ms
Average latency
109 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"
          ]
        },
        "hospitals": {
          "type": "string",
          "pattern": "^[A-Za-z0-9-]{6,20}(,[A-Za-z0-9-]{6,20}){0,9}$"
        },
        "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"
          ]
        }
      },
      "required": [
        "code",
        "hospitals"
      ]
    }
  },
  "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"
            },
            "hospitals": {
              "pattern": "^[A-Za-z0-9-]{6,20}(,[A-Za-z0-9-]{6,20}){0,9}$",
              "type": "string"
            },
            "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"
            },
            "setting": {
              "enum": [
                "inpatient",
                "outpatient"
              ],
              "type": "string"
            }
          },
          "required": [
            "code",
            "hospitals"
          ],
          "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": {
                      "basis": {
                        "anyOf": [
                          {
                            "enum": [
                              "unmodified",
                              "all"
                            ],
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "ccn": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "confidence": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "deidentified_max": {
                        "anyOf": [
                          {
                            "pattern": "^\\d{1,12}(\\.\\d{1,6})?$",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deidentified_min": {
                        "anyOf": [
                          {
                            "pattern": "^\\d{1,12}(\\.\\d{1,6})?$",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "discounted_cash": {
                        "anyOf": [
                          {
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "gross": {
                        "anyOf": [
                          {
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "type": "string"
                      },
                      "items": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "mrfs": {
                        "type": "array"
                      },
                      "name": {
                        "type": "string"
                      },
                      "negotiated_dollar": {
                        "anyOf": [
                          {
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "negotiated_percentage": {
                        "anyOf": [
                          {
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "payers": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "priced": {
                        "type": "boolean"
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "ccn",
                      "name",
                      "city",
                      "status",
                      "priced",
                      "basis",
                      "mrfs",
                      "items",
                      "payers",
                      "gross",
                      "discounted_cash",
                      "negotiated_dollar",
                      "negotiated_percentage",
                      "deidentified_min",
                      "deidentified_max",
                      "confidence"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "not_found": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "code",
                "filters",
                "hospitals",
                "not_found"
              ],
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}