# Hospital Price & File Changes Feed

> Hospital Price & File Changes Feed is a paid API for AI agents from data.spencermcw.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-22).

Returns a paginated feed of detected changes to hospital pricing data and source files, filterable by time and cursor

## Facts

- Endpoint: GET https://data.spencermcw.com/v1/hospital/changes?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hospital-price-file-changes-feed-e1104c24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LMX21nW668sLP7pkp5PRV

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-file-changes-feed-e1104c24
```

Example prompt: Show me the last 50 hospital price changes detected since January 1, 2025 — I want to see what fields changed, the old and new values, and which hospital or plan they belong to.

## When to prefer this

Use this endpoint when you need to incrementally track changes to hospital pricing data over time — ideal for change-data-capture pipelines, compliance audits, alerting systems, or any workflow that needs to detect when hospital prices, rates, plans, or source files have been added, updated, or removed. Prefer this over point-in-time price lookup endpoints when you want a changelog rather than a current snapshot.

## Known failure modes

- Invalid since datetime format returns a 400 validation error
- Cursor string not matching numeric pattern returns a 400 error
- Limit out of range (below 1 or above 100) returns a 400 error
- Payment not included or insufficient USDC returns a 402 error
- No changes in the requested window returns empty records array with null next_cursor
- Rate limiting or server overload may return 429 or 503

## How this service works

Hospital price and file changes, as a paged feed

## Output

A paginated JSON object containing an array of change records (each with id, entity type, key, changed field, old value, new value, unit, detection timestamp, old/new source SHA256 hashes, and method version) plus a next_cursor string for fetching the next page (null when exhausted).

## 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",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      },
      "since": {
       "type": "string",
       "format": "date-time",
       "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
      },
      "cursor": {
       "type": "string",
       "pattern": "^\\d{1,12}$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "records",
        "next_cursor"
       ],
       "properties": {
        "records": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "id",
           "entity",
           "key",
           "field",
           "old",
           "new",
           "unit",
           "detected_at",
           "source_sha256_old",
           "source_sha256_new",
           "method_version"
          ],
          "properties": {
           "id": {
            "type": "string"
           },
           "key": {
            "type": "string"
           },
           "new": {
            "type": [
             "string",
             "null"
            ]
           },
           "old": {
            "type": [
             "string",
             "null"
            ]
           },
           "unit": {
            "anyOf": [
             {
              "enum": [
               "usd_micro",
               "percent"
              ],
              "type": "string"
             },
             {
              "type": "null"
             }
            ],
            "description": "usd_micro: integer micro-USD (10
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hospital-price-file-changes-feed-e1104c24/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)
