Healthgrades API endpoint
Returns the sorts and filters for a Healthgrades facility search: distance values and, for hospitals, every specialty rating and award value accepted by /healthgrades/facilities/search.
/healthgrades/facilities/filtersQuery parameters:
type (required): hospital, pharmacy, group_practice, or urgent_care.query (optional): facility name or keyword.where (required): city and state or ZIP code.Returns the supported sorts and the filter groups. Each group's param names the /api/v1/healthgrades/facilities/search parameter: distance (0.5, 1, 5, 10, 25, 50, 100, national) and, for hospitals, rating (specialty ratings such as Bowel Obstruction|BLO, with counts) and award (hospital awards such as Critical Care Excellence Award|CCU, with counts; present only where nearby hospitals hold awards).
| Field | Filled in, of 3 checked |
|---|---|
| key | 3 |
| label | 3 |
| 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 | ||
| where | string | Yes | City and state, or ZIP code | Boston, MA | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/healthgrades/facilities/filters?type=hospital&query=coffee&where=Boston%2C+MA" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 0,
"message": "success",
"data": {
"type": "hospital",
"where": "Boston, MA",
"sorts": [
{
"key": "bestmatch",
"label": "Best Match"
},
{
"key": "distance",
"label": "Closest"
},
{
"key": "patientsatisfaction",
"label": "Patient Satisfaction"
}
],
"filters": [
{
"param": "rating",
"label": "Ratings",
"values": [
{
"value": "Bowel Obstruction|BLO",
"label": "Bowel Obstruction"
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/healthgrades.facilityFiltersResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | healthgrades.FacilityFiltersResponse | No | ||||
| data.filters | array | No | PhysicianFilterGroup record, 10 fields: label, param, values. Described under Healthgrades facility search API. | |||
| data.query | string | No | ||||
| data.sorts | array | No | ||||
| data.sorts[].key | string | No | ||||
| data.sorts[].label | string | No | ||||
| data.type | string | No | ||||
| data.where | string | No |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/healthgrades/facilities/filters?type=hospital&query=coffee&where=Boston%2C+MA" \
-H "x-api-key: $CRAWLORA_API_KEY"