US Nursing Homes & Assisted Living Facilities (HIFLD)
Nationwide nursing homes and assisted living facilities from the HIFLD Nursing Homes / Assisted Care layer, with address, phone, website, beds, ownership and coordinates.
53,126 rows in the dataset
Download the dataset
Get every row this scraper has collected as one CSV or JSONL file. If the data is older than maxAgeHours, the scraper is re-run with its configured settings first. The key needs the datasets:export scope.
DOWNLOAD_ID=$(curl -s -X POST "https://api.pandorlabs.com/v1/datasets/hifld-senior-facilities/downloads" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -H "Content-Type: application/json" \ -d '{"maxAgeHours":24,"format":"csv"}' | jq -r '.id')while true; do STATUS=$(curl -s "https://api.pandorlabs.com/v1/downloads/$DOWNLOAD_ID" \ -H "Authorization: Bearer $PANDORLABS_KEY" | jq -r '.status') [ "$STATUS" != "refreshing" ] && break sleep 5donecurl -s "https://api.pandorlabs.com/v1/downloads/$DOWNLOAD_ID/file" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -o dataset.csvAt its current 53,126 rows, this download costs 532 credits when the data is fresh enough, or 1,064 credits when it has to be refreshed first.
The rate is 1 credit per 100 rows cached and 2 credits live, charged on the rows in the dataset when the download becomes ready. A failed refresh is not charged. The file stays downloadable for 24 hours. See pricing.
Start a run
To choose the targets yourself, send the parameters below as input. The call returns 202 with the run; the key needs the scrapers:run scope and the account a positive credit balance.
curl -X POST "https://api.pandorlabs.com/v1/scrapers/hifld-senior-facilities/runs" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": { "states": [ "FL", "AZ", "CA" ], "types": [ "assisted-living", "nursing-home", "unknown" ], "openOnly": true, "pageSize": 2000 } }'A run is billed at the live rate once it finishes: 2 credits per 100 rows it collected. A run that collects nothing costs nothing.
Parameters
Every parameter is optional. Anything you leave out uses the default shown here; an unknown name or an invalid value is rejected with a 400 that lists each problem.
Targeting
statesstring[]
States
Two-letter state codes. Empty means nationwide.
- Default
- none
- Example
FL, AZ, CA
typesenum[]
Facility types
- Default
["assisted-living","nursing-home","unknown"]- Allowed values
assisted-livingnursing-homeunknown
openOnlyboolean
Open facilities only
- Default
true
maxItemsnumber
Max facilities
Empty means the full nationwide layer.
- Default
- none
- Range
- 1 to 1000000
Advanced
pageSizenumber
Page size
- Default
2000- Range
- 1 to 2000
requestDelayMsnumber
Delay between pages (ms)
- Default
250- Range
- 0 to 30000
layerUrlstring
Feature layer URL
HIFLD Open is retired; the default is the FEMA-hosted copy of the HIFLD Nursing Homes / Assisted Care layer. Override if it moves.
- Default
- none
Input as JSON Schema
The same schema the API validates against. Use it as a tool input schema or to generate a typed client.
{ "type": "object", "additionalProperties": false, "properties": { "states": { "type": "array", "items": { "type": "string" }, "maxItems": 1000, "title": "States", "description": "Two-letter state codes. Empty means nationwide.", "default": [], "examples": [ "FL, AZ, CA" ] }, "types": { "type": "array", "items": { "type": "string", "enum": [ "assisted-living", "nursing-home", "unknown" ] }, "uniqueItems": true, "title": "Facility types", "default": [ "assisted-living", "nursing-home", "unknown" ] }, "openOnly": { "type": "boolean", "title": "Open facilities only", "default": true }, "maxItems": { "type": "number", "minimum": 1, "maximum": 1000000, "title": "Max facilities", "description": "Empty means the full nationwide layer." }, "pageSize": { "type": "number", "minimum": 1, "maximum": 2000, "title": "Page size", "default": 2000 }, "requestDelayMs": { "type": "number", "minimum": 0, "maximum": 30000, "title": "Delay between pages (ms)", "default": 250 }, "layerUrl": { "type": "string", "maxLength": 2000, "title": "Feature layer URL", "description": "HIFLD Open is retired; the default is the FEMA-hosted copy of the HIFLD Nursing Homes / Assisted Care layer. Override if it moves." } }}Run, poll, read rows
The run is asynchronous. Poll it until it reaches a terminal status and its billing is paid, then page through its rows. Until then the rows endpoint answers 409 (still queued or running) or 402 (payment required).
RUN_ID=$(curl -s -X POST "https://api.pandorlabs.com/v1/scrapers/hifld-senior-facilities/runs" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": { "states": [ "FL", "AZ", "CA" ], "types": [ "assisted-living", "nursing-home", "unknown" ], "openOnly": true, "pageSize": 2000 } }' | jq -r '.id')while true; do RUN=$(curl -s "https://api.pandorlabs.com/v1/runs/$RUN_ID" \ -H "Authorization: Bearer $PANDORLABS_KEY") STATUS=$(echo "$RUN" | jq -r '.status') BILLING=$(echo "$RUN" | jq -r '.billing.status') case "$STATUS" in queued|running) ;; *) [ "$BILLING" != "pending" ] && break ;; esac sleep 5doneecho "$RUN" | jq '{status, rowCount, billing}'curl -s "https://api.pandorlabs.com/v1/runs/$RUN_ID/rows?page=1&limit=100" \ -H "Authorization: Bearer $PANDORLABS_KEY"See the API reference for pagination, cancelling and listing runs.
Output fields
Rows have no fixed schema; these are the fields observed in the rows collected so far. Coverage is the share of rows where the field is present.
| Field | Type | Coverage |
|---|---|---|
| address | string | 100% |
| beds | number | 93% |
| city | string | 100% |
| county | string | 100% |
| county_fips | string | 100% |
| facility_id | string | 100% |
| facility_type | string | 100% |
| latitude | number | 100% |
| longitude | number | 100% |
| medicaid_id | string | 1% |
| medicare_id | string | 1% |
| naics_code | string | 100% |
| naics_description | string | 100% |
| name | string | 100% |
| ownership | string | 33% |
| phone | string | 95% |
| residents | number | 83% |
| source_date | date | 90% |
| source_facility_type | string | 90% |
| source_url | string | 100% |
| state | string | 100% |
| state_license | string | 63% |
| status | string | 100% |
| validation_date | date | 90% |
| validation_method | string | 100% |
| website | string | 10% |
| zip | string | 100% |
| zip4 | string | 15% |
| created_at | date | 100% |
| first_seen_at | date | 100% |
| last_seen_at | date | 100% |
| updated_at | date | 100% |
| _id | string | 100% |
