Skip to main content
POST
List the hospitals registered with Medicare in a US ZIP code, from the hospital list of the US Centers for Medicare & Medicaid Services. Each hospital has its name, address, county, published main telephone line, type, ownership, whether it has emergency services and its overall quality rating from 1 to 5. The rating is null when the source gives no number for the hospital. A ZIP code with no registered hospital gives a total of 0 and an empty list. The total is the number of hospitals in the ZIP code, which can be more than the number returned.

Authentication

Requires x402 payment in the payment-signature header.

Request Body

string
required
A five-digit US ZIP code, for example 45220. zip_code must be five digits.
integer
The most hospitals to return. Default 10. From 1 to 25. Defaults to 10.

Response (200 OK)

Top-level envelope: success (boolean) and data (object). All fields below are nested under data.
string
Durable job ID for audit and lookup
string
Job status: completed
string
Always place_hospitals
object
The answer, described under Result below
object
Where the answer came from and when
string
The public body the data comes from. Always US Centers for Medicare & Medicaid Services.
string
public when the data comes from a public body, commercial otherwise
string
When the lookup was made, as an ISO 8601 UTC time
string
When the source says the fact was last updated, or null when the source gives no date

Result

Nested under data.result.
number
How many hospitals the source lists in the ZIP code.
object[]
The hospitals in the ZIP code, up to the limit. Empty when none is registered.
string
The hospital’s Medicare provider number.
string
The hospital’s name.
string
Street address.
string
City or town.
string
Two-letter state code.
string
ZIP code.
string
County or parish.
string
The hospital’s published main telephone line.
string
Kind of hospital, for example Acute Care Hospitals.
string
Who owns the hospital, for example Voluntary non-profit - Private.
boolean
Whether the hospital has emergency services, or null when the source gives no answer.
number
Overall quality rating from 1 to 5, or null when the source gives no number.
Price: $0.005 per lookup. See Pricing for every tool.

Notes

  • Results return inline. The finished job stays available at /v1/requests/{request_id}