Medicare Nursing Home Compare Scraper avatar

Medicare Nursing Home Compare Scraper

Pricing

from $2.00 / 1,000 nursing home records

Go to Apify Store
Medicare Nursing Home Compare Scraper

Medicare Nursing Home Compare Scraper

Search CMS Nursing Home Compare data by state, city, county, name or rating and export clean nursing home records.

Pricing

from $2.00 / 1,000 nursing home records

Rating

0.0

(0)

Developer

Nick Randall

Nick Randall

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Search CMS Nursing Home Compare by state, city, county, name or star rating and export clean, flat facility records.

Get clean, structured nursing home records from the CMS Provider Data Catalog as JSON, CSV or Excel, or call it as a tool from Claude, Cursor, ChatGPT or any MCP client. Pay only for the results you receive.

What you get

One record per Medicare-certified nursing home: certification number (CCN), name, address, city, state, zip, phone, county and SSA county code, ownership type, certified bed count and average daily residents, provider type, whether it is hospital-based, continuing care retirement community and special focus status flags, the abuse icon flag, all five CMS star ratings (overall, health inspection, quality measures, long-stay QM, short-stay QM, staffing), staff turnover rates, fines and payment denial counts, latitude and longitude, the CMS processing date, and a direct link to the facility's page on medicare.gov/care-compare.

Every result is a flat record with stable field names, so it drops straight into a spreadsheet, a database or an AI agent's context.

Why use this instead of the website

  • Filter by state, city, county, name and minimum star rating in one call
  • Pagination handled for you, with automatic retries and polite rate limiting
  • Results in JSON, CSV, Excel or via API, or piped into Zapier, Make, n8n and Google Sheets
  • Works as an MCP tool, so AI agents can look up nursing homes on demand
  • No browser, no proxies, no personal data: fast runs and a tiny cost per result

Input

FieldTypeDefaultMeaning
statestringTwo-letter state or territory code, e.g. "AZ". Strongly recommended.
citystringCity or town name, matched exactly (case-insensitive).
countystringCounty name.
nameContainsstringOnly facilities whose name contains this text.
minOverallRatingintegerMinimum overall Medicare star rating, 1 to 5.
ownershipTypestringanyExact CMS ownership category, e.g. "For profit - Corporation".
maxResultsinteger100Cap on facilities saved. You are charged per facility, so this caps your cost.

Example input:

{ "state": "AZ", "minOverallRating": 4, "maxResults": 40 }

Output

Example result:

{
"ccn": "035003",
"providerName": "The Terraces of Phoenix",
"address": "7550 NORTH 16TH STREET",
"city": "PHOENIX",
"state": "AZ",
"zipCode": "85020",
"phone": "6029444455",
"countyName": "Maricopa",
"ssaCountyCode": "0140",
"ownershipType": "Non profit - Corporation",
"certifiedBeds": 64,
"averageResidentsPerDay": 51.5,
"providerType": "Medicare and Medicaid",
"residesInHospital": "N",
"continuingCareRetirementCommunity": "N",
"specialFocusStatus": null,
"abuseIcon": "N",
"overallRating": 5,
"healthInspectionRating": 4,
"qmRating": 5,
"longStayQmRating": 5,
"shortStayQmRating": 4,
"staffingRating": 5,
"totalNursingStaffTurnover": 20.6,
"registeredNurseTurnover": 14.3,
"numberOfFines": 0,
"totalAmountOfFinesInDollars": 0,
"numberOfPaymentDenials": 0,
"latitude": 33.577,
"longitude": -112.061,
"processingDate": "2026-08-01",
"careCompareUrl": "https://www.medicare.gov/care-compare/details/nursing-home/035003"
}

Field reference: ccn, providerName, address, city, state, zipCode, phone, countyName, ssaCountyCode, ownershipType, certifiedBeds, averageResidentsPerDay, providerType, residesInHospital, continuingCareRetirementCommunity, specialFocusStatus, abuseIcon, overallRating, healthInspectionRating, qmRating, longStayQmRating, shortStayQmRating, staffingRating, totalNursingStaffTurnover, registeredNurseTurnover, numberOfFines, totalAmountOfFinesInDollars, numberOfPaymentDenials, latitude, longitude, processingDate, careCompareUrl. Numbers are parsed from the source; empty CMS values become null.

Pricing

Pay per event. You are charged $2.00 per 1,000 results saved to the dataset, plus a fraction of a cent per run start. Nothing is charged for results you do not receive. Set "Max total charge per run" in the run options to cap spending on any run. When a run reaches your cap it stops cleanly and keeps everything it already saved.

Rough guide: 1,000 results cost $2.00 and take about 15 seconds.

Use it from an AI agent (MCP)

This Actor is available as an MCP tool through the Apify MCP server. Add it to your client, then ask the agent for the data in plain language.

Claude Desktop, Claude Code or Cursor (mcp.json / claude_desktop_config.json):

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?actors=brightpath-data/cms-nursing-home-compare",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}

ChatGPT and other clients that support remote MCP servers: add https://mcp.apify.com/?actors=brightpath-data/cms-nursing-home-compare as a connector with your Apify token.

Example prompt once connected: "Find 5-star nursing homes in Maricopa County, Arizona and list their ownership type and staffing rating."

Use it from code

curl -X POST "https://api.apify.com/v2/acts/brightpath-data~cms-nursing-home-compare/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"state":"AZ","minOverallRating":4,"maxResults":40}'

Python:

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("brightpath-data/cms-nursing-home-compare").call(run_input={"state": "AZ", "minOverallRating": 4, "maxResults": 40})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Limits and fair use

  • Up to 10,000 facilities per run. For larger exports, split by state or city.
  • Requests are paced at one per 250 ms and fetch up to 500 records per request.
  • careCompareUrl is built from the CCN and omitted when a facility has no CCN.
  • minOverallRating is applied after fetching each page, so very narrow filters on a huge unfiltered run (no state) can take longer than the item count suggests. Set a state for fast runs.

Data comes from the CMS Provider Data Catalog (data.cms.gov), the official public API behind Medicare Care Compare, published by the Centers for Medicare & Medicaid Services. The data is public and free to use. This Actor collects public, non-personal data only and does not bypass logins, paywalls or access controls. You are responsible for how you use the data.

Support

Found a problem or need a field added? Open an issue on the Actor's Issues tab. Fixes for broken runs are prioritized.