Healthgrades API endpoint
Use Crawlora's Healthgrades facility search API to extract supported public Healthgrades data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/healthgrades/facilities/searchReturns one page of Healthgrades facility search results near a location for one facility type (hospital, pharmacy, group practice, or urgent care), with name, address, phone, distance, profile URL, affiliated provider and rating counts, hospital awards, and the filters available for the search. Requests use US egress because Healthgrades restricts content by region. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| type | string | Yes | Facility type Allowed values: hospital, pharmacy, group_practice, urgent_care. | hospital | |
| query | string | No | Optional facility name or keyword | Mass General | |
| where | string | Yes | City and state, or ZIP code | Boston, MA | |
| page | integer | No | Result page (1-500, 20 results per page) | ||
| sort | string | No | Result order; patientsatisfaction is hospital-only and group_practice supports only distance Allowed values: bestmatch, distance, patientsatisfaction. | ||
| distance | string | No | Search radius in miles Allowed values: 0.5, 1, 5, 10, 25, 50, 100, national. | ||
| rating | string | No | Hospital specialty-rating value from /healthgrades/facilities/filters (type=hospital only) | Bowel Obstruction|BLO | |
| award | string | No | Hospital award value from /healthgrades/facilities/filters (type=hospital only) | Critical Care Excellence Award|CCU | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/healthgrades/facilities/search?type=hospital&query=coffee&where=Boston%2C+MA&page=1&sort=bestmatch&distance=0.5" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 0,
"message": "success",
"data": {
"type": "hospital",
"query": "Mass General",
"where": "Boston, MA",
"page": 1,
"page_size": 20,
"total_results": 7,
"total_pages": 1,
"sort": "bestmatch",
"facilities": [
{
"id": "60C282",
"name": "Massachusetts General Hospital",
"type": "hospital",
"type_code": "STAC",
"url": "https://www.healthgrades.com/hospital/massachusetts-general-hospital-60c282",
"city": "Boston",
"state": "MA",
"awards": [
"America's 250 Best Hospitals Award"
]
}
],
"filters": [
{
"param": "distance",
"label": "Distance",
"values": [
{
"value": "0.5",
"label": "0.5 miles"
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/healthgrades.facilitySearchResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | healthgrades.FacilitySearchResponse | No | ||||
| data.facilities | array | No | ||||
| data.facilities[].about | string | No | ||||
| data.facilities[].affiliated_provider_count | integer | No | ||||
| data.facilities[].awards | array | No | ||||
| data.facilities[].city | string | No | ||||
| data.facilities[].distance_miles | number | No | ||||
| data.facilities[].five_star_ratings_count | integer | No | ||||
| data.facilities[].id | string | No | ||||
| data.facilities[].latitude | number | No | ||||
| data.facilities[].longitude | number | No | ||||
| data.facilities[].name | string | No | ||||
| data.facilities[].phone | string | No | ||||
| data.facilities[].postal_code | string | No | ||||
| data.facilities[].ratings_count | integer | No | ||||
| data.facilities[].state | string | No | ||||
| data.facilities[].street | string | No | ||||
| data.facilities[].type | string | No | ||||
| data.facilities[].type_code | string | No | ||||
| data.facilities[].url | string | No | ||||
| data.filters | array | No | ||||
| data.filters[].label | string | No | ||||
| data.filters[].param | string | No | ||||
| data.filters[].values | array | No | ||||
| data.filters[].values[].count | integer | No | ||||
| data.filters[].values[].label | string | No | ||||
| data.filters[].values[].plans | array | No | ||||
| data.filters[].values[].plans[].id | string | No | ||||
| data.filters[].values[].plans[].name | string | No | ||||
| data.filters[].values[].selected | boolean | No | ||||
| data.filters[].values[].value | string | No | ||||
| data.page | integer | No | ||||
| data.page_size | integer | No | ||||
| data.query | string | No | ||||
| data.sort | string | No | ||||
| data.sorts | array | No | ||||
| data.sorts[].key | string | No | ||||
| data.sorts[].label | string | No | ||||
| data.total_pages | integer | No | ||||
| data.total_results | integer | No | ||||
| data.type | string | No | ||||
| data.where | string | No |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/healthgrades/facilities/search?type=hospital&query=coffee&where=Boston%2C+MA&page=1&sort=bestmatch&distance=0.5" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms