74trust / 100

Hospital

by ClearCheck in Security & trust

x402 APIPassing, checked 45 min ago

CMS star rating and quality profile for a US hospital: mortality, safety and readmission versus the national average.

GET
https://loonie-toll.onrender.com/hospital
Price
$0.02
per call in USDC
Uptime
95.3%
last 30 days
Response time
237 ms
805 ms slowest 5%
Last check
Passed
45 min ago, next in 5 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://loonie-toll.onrender.com/hospital

Each call costs $0.02 in USDC on Polygon, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://loonie-toll.onrender.com/hospital?name=Mayo+Clinic

Parameters

ParameterTypeRequiredDescription
citystringNoCity name
limitintegerNoMax hospitals to return, default 5
namestringNoHospital name or part of it
statestringNoTwo-letter state code

Example response

The provider's example. We can't check it without paying.

Example response, 71 lines
{
  "bestMatch": {
    "address": "5777 EAST MAYO BOULEVARD, PHOENIX, AZ, 85054",
    "cmsFacilityId": "030103",
    "county": "MARICOPA",
    "emergencyServices": true,
    "name": "MAYO CLINIC HOSPITAL",
    "overallRating": 5,
    "ownership": "Voluntary non-profit - Private",
    "phone": "(480) 342-4201",
    "type": "Acute Care Hospitals",
    "versusNationalAverage": {
      "mortalityBetter": 5,
      "mortalityWorse": 0,
      "readmissionBetter": 4,
      "readmissionWorse": 0,
      "safetyBetter": 1,
      "safetyWorse": 0
    }
  },
  "disclaimer": "Advisory only, provided as is without warranty of accuracy or completeness. CMS star ratings summarise measures that lag by quarters and do not describe the care any individual patient will receive. N…",
  "hospitals": [
    {
      "address": "5777 EAST MAYO BOULEVARD, PHOENIX, AZ, 85054",
      "cmsFacilityId": "030103",
      "county": "MARICOPA",
      "emergencyServices": true,
      "name": "MAYO CLINIC HOSPITAL",
      "overallRating": 5,
      "ownership": "Voluntary non-profit - Private",
      "phone": "(480) 342-4201",
      "type": "Acute Care Hospitals",
      "versusNationalAverage": {
        "mortalityBetter": 5,
        "mortalityWorse": 0,
        "readmissionBetter": 4,
        "readmissionWorse": 0,
        "safetyBetter": 1,
        "safetyWorse": 0
      }
    },
    {
      "address": "4500 SAN PABLO RD, JACKSONVILLE, FL, 32224",
      "cmsFacilityId": "100151",
      "county": "DUVAL",
      "emergencyServices": true,
      "name": "MAYO CLINIC",
      "overallRating": 5,
      "ownership": "Voluntary non-profit - Private",
      "phone": "(904) 953-2000",
      "type": "Acute Care Hospitals",
      "versusNationalAverage": {
        "mortalityBetter": 6,
        "mortalityWorse": 0,
        "readmissionBetter": 1,
        "readmissionWorse": 1,
        "safetyBetter": 4,
        "safetyWorse": 0
      }
    }
  ],
  "matchCount": 19,
  "reasons": [
    "MAYO CLINIC HOSPITAL holds 5 of 5 CMS stars — above the national middle.",
    "Across mortality, safety and readmission measures: 10 better than the national average, 0 worse.",
    "…1 more"
  ],
  "retrievedAt": "2026-09-17T16:24:28.660Z",
  "source": "CMS Care Compare — Hospital General Information",
  "verdict": "ABOVE_AVERAGE"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://loonie-toll.onrender.com/hospital?name=Mayo+Clinic'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://loonie-toll.onrender.com/hospital?name=Mayo+Clinic' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Floonie-toll.onrender.com%2Fhospital
const res = await pay("https://loonie-toll.onrender.com/hospital?name=Mayo+Clinic");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://loonie-toll.onrender.com/hospital?name=Mayo+Clinic")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
45 min agoPassed402259 ms$0.02
35 h agoTimed out---
5 days agoExpected HTTP 402, got 503503222 ms-
5 days agoExpected HTTP 402, got 503503209 ms-
6 days agoExpected HTTP 402, got 503503232 ms-
Show 10 older checks
7 days agoPassed402253 ms$0.02
7 days agoPassed402257 ms$0.02
8 days agoPassed402218 ms$0.02
8 days agoPassed402242 ms$0.02
9 days agoPassed402194 ms$0.02
9 days agoPassed402815 ms$0.02
10 days agoPassed402581 ms$0.02
10 days agoPassed402208 ms$0.02
11 days agoPassed402212 ms$0.02
11 days agoPassed402242 ms$0.02