# Medicare Care Scraper (`parseforge/medicare-care-compare-scraper`) Actor

Scrape all 48,000+ Medicare-certified facilities from Care Compare. Get data for nursing homes, hospitals, home health agencies, dialysis centers, hospice, inpatient rehab, and long-term care hospitals. Filter by state. Includes ratings, contact info, and certification data.

- **URL**: https://apify.com/parseforge/medicare-care-compare-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Other, Automation, Developer tools
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

![ParseForge Banner](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)

## 🏥 Medicare Care Compare Scraper

🚀 Collect data on all 48,000+ Medicare-certified facilities from CMS Care Compare. Get ratings, contact info, staffing levels, inspection scores, and certification data for nursing homes, hospitals, home health agencies, dialysis centers, hospice, and more. Filter by state.

🕒 Last updated: 2026-04-23

Healthcare quality data is critical for families choosing care, analysts benchmarking facilities, and insurance companies evaluating networks. The CMS Care Compare database contains ratings for 48,000+ facilities, but extracting structured data at scale from the web interface is impractical.

The Medicare Care Compare Scraper automates this process, pulling structured facility data with star ratings, quality measures, staffing levels, and contact information for 7 different facility types. Whether you are a healthcare analyst, a family researching nursing homes, or a researcher studying outcomes, this tool delivers clean data in seconds.

| | |
|---|---|
| **Target Audience** | Healthcare analysts, families, insurance companies, researchers, journalists |
| **Primary Use Cases** | Quality benchmarking, facility research, network evaluation, outcome analysis |

---

### 📋 What Does It Do

This tool collects CMS facility data from Medicare's Care Compare database. It delivers:

- 🏥 **Hospital data** - ratings, emergency services, ownership, and quality measures for 5,400+ hospitals
- 🏠 **Nursing home data** - overall ratings, staffing levels, inspection scores, bed counts for 14,700+ facilities
- 🏡 **Home health agencies** - quality ratings for 12,200+ agencies
- 💉 **Dialysis facilities** - data for 7,500+ dialysis centers
- 🕊️ **Hospice agencies** - ratings for 6,900+ hospice providers
- 🔍 **State filtering** - narrow results to any US state
- ⭐ **Star ratings** - CMS 5-star quality ratings across multiple dimensions

---

### 🎬 How to Use the Medicare Care Compare Scraper - Full Demo

🚧 Demo video coming soon. Follow the step-by-step instructions below to get started in under 2 minutes.

---

### ⚙️ Input

Select the facility type and optional state filter.

<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
</thead>
<tbody>
<tr><td><b>Facility Type</b></td><td>Select</td><td>Nursing Homes, Hospitals, Home Health, Dialysis, Hospice, Inpatient Rehab, or Long-Term Care</td></tr>
<tr><td><b>Max Items</b></td><td>Integer</td><td>Free users: Limited to 10 items. Paid users: up to 1,000,000</td></tr>
<tr><td><b>State</b></td><td>String</td><td>US state code (e.g. CA, TX, NY). Leave empty for all states</td></tr>
</tbody>
</table>

**Example 1 - California nursing homes:**
```json
{
    "facilityType": "nursing_homes",
    "maxItems": 100,
    "state": "CA"
}
````

**Example 2 - All US hospitals:**

```json
{
    "facilityType": "hospitals",
    "maxItems": 6000
}
```

> ⚠️ Free users are limited to 10 items per run. [Sign up for a paid plan](https://console.apify.com/sign-up?fpr=vmoqkp) to unlock up to 1,000,000 records.

***

### 📊 Output

#### 🧾 Output Schema

| Field | Type | Description |
|-------|------|-------------|
| facilityName | string | Facility name |
| facilityType | string | Hospital, Nursing Home, etc. |
| overallRating | integer | CMS 5-star overall rating |
| address | string | Street address |
| city | string | City |
| state | string | State code |
| zip | string | ZIP code |
| telephone | string | Contact phone |
| ownership | string | Ownership type (for-profit, nonprofit, govt) |
| emergencyServices | boolean | Hospital has an ER |
| certifiedBeds | integer | Number of certified beds |
| staffingRating | integer | Staffing star rating |
| healthInspectionRating | integer | Inspection star rating |
| qualityMeasureRating | integer | Quality measure star rating |
| scrapedAt | string | Timestamp of data collection |

#### 📦 Sample Output

**Sample 1 - Hospital:**

```json
{
    "facilityName": "Cedars-Sinai Medical Center",
    "facilityType": "hospital",
    "overallRating": 5,
    "address": "8700 Beverly Blvd",
    "city": "Los Angeles",
    "state": "CA",
    "zip": "90048",
    "telephone": "(310) 423-3277",
    "ownership": "Voluntary non-profit - Private",
    "emergencyServices": true,
    "scrapedAt": "2026-04-09T12:00:00.000Z"
}
```

**Sample 2 - Nursing home:**

```json
{
    "facilityName": "Sunrise Senior Living of Beverly Hills",
    "facilityType": "nursing_home",
    "overallRating": 4,
    "address": "201 N Crescent Dr",
    "city": "Beverly Hills",
    "state": "CA",
    "zip": "90210",
    "telephone": "(310) 271-5580",
    "ownership": "For-profit - Corporation",
    "certifiedBeds": 120,
    "staffingRating": 4,
    "healthInspectionRating": 3,
    "qualityMeasureRating": 5,
    "scrapedAt": "2026-04-09T12:00:00.000Z"
}
```

**Sample 3 - Home health agency:**

```json
{
    "facilityName": "Amedisys Home Health",
    "facilityType": "home_health",
    "overallRating": 4,
    "address": "3854 American Way",
    "city": "Baton Rouge",
    "state": "LA",
    "zip": "70816",
    "telephone": "(225) 292-2031",
    "ownership": "For-profit - Corporation",
    "scrapedAt": "2026-04-09T12:00:00.000Z"
}
```

***

### ✨ Why Choose the Medicare Care Compare Scraper?

| Advantage | Details |
|-----------|---------|
| 🏥 **48,000+ facilities** | The most comprehensive Medicare facility database |
| 🏷️ **7 facility types** | Hospitals, nursing homes, home health, dialysis, hospice, rehab, LTC |
| ⭐ **Star ratings** | CMS 5-star quality ratings across multiple dimensions |
| 🗺️ **State filtering** | Target any US state |
| 👩‍⚕️ **Staffing data** | Staffing levels and ratings for nursing homes |
| 📋 **Inspection scores** | Health inspection ratings and findings |
| ⏰ **Scheduled monitoring** | Track rating changes automatically |

***

### 📈 How Does It Compare?

| Feature | Our Tool | Manual CMS Site |
|---------|----------|-----------------|
| Batch collection | Up to 1M facilities | One at a time |
| 7 facility types | One tool | Navigate separately |
| Structured output | JSON, CSV, Excel | Web pages only |
| State filtering | Built-in | Manual search |
| Automated scheduling | Weekly/monthly | Manual visits |
| Contact information | Structured | Copy-paste |

***

### 🚀 How to Use

1. **Sign Up** - [Create a free account w/ $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes)
2. **Find the Tool** - Search for "Medicare Care Compare Scraper" in the Apify Store
3. **Set Input** - Select facility type, add state filter if needed
4. **Run It** - Click "Start" and get facility data in seconds
5. **Download Data** - Export results as CSV, Excel, or JSON from the Dataset tab

***

### 💼 Business Use Cases

**Healthcare Analysts:**

- Benchmark facility quality across states
- Compare ratings and staffing levels in your market

**Families:**

- Research nursing home quality and staffing before choosing care
- Compare facilities by rating, location, and services

**Insurance Companies:**

- Evaluate facility quality for network decisions
- Monitor rating changes for contracted providers

**Journalists and Researchers:**

- Investigate healthcare quality disparities across regions
- Analyze relationships between staffing, ratings, and outcomes

***

### ✨ Why choose this Actor

| | Capability |
|---|---|
| 🎯 | **Built for the job.** Scoped specifically to this data source so you skip the parser engineering entirely. |
| 🔖 | **Structured output.** Clean, typed fields ready for analysis, dashboards, or downstream pipelines. |
| ⚡ | **Fast.** Optimized request patterns return results in seconds, not minutes. |
| 🔁 | **Always fresh.** Every run pulls live data, so the dataset reflects the source as of run time. |
| 🌐 | **No infra to manage.** Apify handles proxies, retries, scaling, scheduling, and storage. |
| 🛡️ | **Reliable.** Battle-tested across many runs and edge cases, with graceful error handling. |
| 🚫 | **No code required.** Configure in the UI, run from CLI, schedule via cron, or call from any language with the Apify SDK. |

> 📊 Production-grade structured data without the engineering overhead of building and maintaining your own scraper.

***

### 📈 How it compares to alternatives

| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| **⭐ Medicare Care Compare Scraper** *(this Actor)* | $5 free credit, then pay-per-use | Full source coverage | **Live per run** | Source-native filters supported | ⚡ 2 min |
| Build your own scraper | Engineering hours | Full once built | Whenever you maintain it | Custom code | 🐢 Days to weeks |
| Paid managed APIs | $$$ monthly | Vendor-defined | Live | Vendor-defined | ⏳ Hours |
| Third-party data dumps | Varies | Subset, often stale | Periodic | None | 🕒 Variable |

Pick this Actor when you want broad coverage, server-side filtering, and no pipeline maintenance.

***

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the Medicare Care Compare Scraper page on the Apify Store.
3. 🎯 **Set input.** Configure the input fields in the form (or paste a JSON), then set `maxItems`.
4. 🚀 **Run it.** Click **Start** and let the Actor collect your data.
5. 📥 **Download.** Grab your results in the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to downloaded dataset: **3-5 minutes.** No coding required.

***

### 💼 Business use cases

<table>
<tr>
<td width="50%" valign="top">

#### 📊 Data & Analytics

- Build trend reports and dashboards from live source data
- Feed BI tools, warehouses, and ML pipelines with structured records
- Run periodic snapshots to track changes over time
- Compare segments, regions, or categories with consistent fields

</td>
<td width="50%" valign="top">

#### 🏢 Operations & Strategy

- Monitor competitor moves, pricing, and inventory shifts
- Build internal directories and lookup tools backed by current data
- Power workflows that depend on fresh source records
- Cut manual data-gathering time from hours to minutes

</td>
</tr>
<tr>
<td width="50%" valign="top">

#### 🎯 Marketing & Growth

- Identify market opportunities and trending topics
- Research target audiences and customer personas at scale
- Power lead-generation pipelines with verified records
- Track sentiment, reviews, or social signals over time

</td>
<td width="50%" valign="top">

#### 🛠️ Engineering & Product

- Prototype features that need real-world data without owning a crawler
- Replace fragile in-house scrapers with a managed Actor
- Wire datasets into your apps via the Apify API or webhooks
- Skip the proxy, retry, and parsing maintenance entirely

</td>
</tr>
</table>

***

### 🌟 Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

<table>
<tr>
<td width="50%">

#### 🎓 Research and academia

- Empirical datasets for papers, thesis work, and coursework
- Longitudinal studies tracking changes across snapshots
- Reproducible research with cited, versioned data pulls
- Classroom exercises on data analysis and ethical scraping

</td>
<td width="50%">

#### 🎨 Personal and creative

- Side projects, portfolio demos, and indie app launches
- Data visualizations, dashboards, and infographics
- Content research for bloggers, YouTubers, and podcasters
- Hobbyist collections and personal trackers

</td>
</tr>
<tr>
<td width="50%">

#### 🤝 Non-profit and civic

- Transparency reporting and accountability projects
- Advocacy campaigns backed by public-interest data
- Community-run databases for local issues
- Investigative journalism on public records

</td>
<td width="50%">

#### 🧪 Experimentation

- Prototype AI and machine-learning pipelines with real data
- Validate product-market hypotheses before engineering spend
- Train small domain-specific models on niche corpora
- Test dashboard concepts with live input

</td>
</tr>
</table>

### 🔌 Automating Your Healthcare Data Collection

Schedule monthly runs to monitor rating changes and new facility openings. Use the Apify scheduler and push results to your analytics tools, dashboards, or reporting systems.

***

### ❓ FAQ

**⭐ What do the star ratings mean?**
CMS rates facilities on a 1-5 star scale. 5 stars is the highest quality. Ratings are based on health inspections, staffing levels, and quality measures.

**📊 How many facilities are available?**
The database includes 5,400+ hospitals, 14,700+ nursing homes, 12,200+ home health agencies, 7,500+ dialysis facilities, 6,900+ hospice agencies, and more.

**🔄 How often is the data updated?**
CMS updates their data regularly. The scraper always pulls the latest available data.

**⚡ How long does a run take?**
Most state-level queries return results in 10-30 seconds.

**💰 Is there a free trial?**
Yes. Free users can collect up to 10 facilities per run.

**📁 What export formats are available?**
JSON, CSV, and Excel directly from the Apify platform.

**🗺️ Can I search all states at once?**
Yes. Leave the state field empty to collect facilities from all states.

**🏥 What facility types are supported?**
Nursing homes, hospitals, home health agencies, dialysis facilities, hospice agencies, inpatient rehabilitation facilities, and long-term care hospitals.

**👩‍⚕️ Is staffing data included?**
Yes. Nursing homes include staffing ratings, and many facilities include staffing level details.

**📋 Are inspection results included?**
Yes. Health inspection ratings are included for nursing homes.

**📞 Does it include contact information?**
Yes. Phone numbers and addresses are included for every facility.

**📅 Can I schedule monthly runs?**
Yes. Use the Apify scheduler for any frequency from daily to quarterly.

***

### 🤖 Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:

- 💬 [**ChatGPT**](https://chat.openai.com/?q=How%20do%20I%20use%20the%20Medicare%20Care%20Compare%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🧠 [**Claude**](https://claude.ai/new?q=How%20do%20I%20use%20the%20Medicare%20Care%20Compare%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🔍 [**Perplexity**](https://perplexity.ai/search?q=How%20do%20I%20use%20the%20Medicare%20Care%20Compare%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)
- 🅒 [**Copilot**](https://copilot.microsoft.com/?q=How%20do%20I%20use%20the%20Medicare%20Care%20Compare%20Scraper%20by%20ParseForge%20on%20Apify%3F%20Show%20me%20input%20examples%2C%20output%20fields%2C%20common%20use%20cases%2C%20and%20how%20to%20integrate%20it%20into%20a%20workflow.)

***

### 🔌 Integrate Medicare Care Compare Scraper with Any App

Connect your healthcare data to thousands of apps using these integrations:

- [Make](https://docs.apify.com/platform/integrations/make) - Automate healthcare data workflows
- [Zapier](https://docs.apify.com/platform/integrations/zapier) - Connect to 5000+ apps
- [Slack](https://docs.apify.com/platform/integrations/slack) - Get notified about rating changes
- [Google Drive](https://docs.apify.com/platform/integrations/drive) - Export to spreadsheets
- [Airbyte](https://docs.apify.com/platform/integrations/airbyte) - Sync to your data warehouse
- [Webhooks](https://docs.apify.com/platform/integrations/webhooks) - Trigger actions when runs complete

***

### 🔌 Integrate with any app

Medicare Care Compare Scraper connects to any cloud service via [Apify integrations](https://apify.com/integrations):

- [**Make**](https://docs.apify.com/platform/integrations/make) - Automate multi-step workflows
- [**Zapier**](https://docs.apify.com/platform/integrations/zapier) - Connect with 5,000+ apps
- [**Slack**](https://docs.apify.com/platform/integrations/slack) - Get run notifications in your channels
- [**Airbyte**](https://docs.apify.com/platform/integrations/airbyte) - Pipe results into your warehouse
- [**GitHub**](https://docs.apify.com/platform/integrations/github) - Trigger runs from commits and releases
- [**Google Drive**](https://docs.apify.com/platform/integrations/drive) - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh data into your product backend, or alert your team in Slack.

***

### 🔗 Recommended Actors

Looking for more data collection tools? Check out these related actors:

| Actor | Description | Link |
|-------|-------------|------|
| GSA eLibrary Scraper | Government contract data | [Link](https://apify.com/parseforge/gsa-elibrary-scraper) |
| FINRA BrokerCheck Scraper | Broker registration data | [Link](https://apify.com/parseforge/finra-brokercheck-scraper) |
| GreatSchools Scraper | School ratings and data | [Link](https://apify.com/parseforge/greatschools-scraper) |
| PR Newswire Scraper | Press releases and news | [Link](https://apify.com/parseforge/pr-newswire-scraper) |
| FAA Aircraft Registry Scraper | Aircraft registration records | [Link](https://apify.com/parseforge/faa-aircraft-registry-scraper) |

**Pro Tip:** 💡 Browse the full [ParseForge catalog](https://apify.com/parseforge) to find more data tools.

***

### 🆘 Need Help?

- Check the FAQ section above for common questions
- Visit the [Apify documentation](https://docs.apify.com) for platform guides
- Contact us at [Tally contact form](https://tally.so/r/BzdKgA)

***

> **⚠️ Disclaimer:** This Actor is an independent tool and is not affiliated with, endorsed by, or connected to the Centers for Medicare & Medicaid Services (CMS) or the U.S. government. It accesses only publicly available data through the official CMS public data API.

# Actor input Schema

## `dataType` (type: `string`):

Choose what type of healthcare facility to collect data for.

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `state` (type: `string`):

Filter by state abbreviation (e.g., 'CA', 'TX', 'NY'). Leave empty for all states.

## `minRating` (type: `integer`):

Only include facilities with this overall star rating or higher (1-5).

## `hospitalType` (type: `string`):

Filter hospitals by type. Only used for Hospitals data type.

## Actor input object example

```json
{
  "dataType": "hospitals",
  "maxItems": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dataType": "hospitals",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/medicare-care-compare-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "dataType": "hospitals",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/medicare-care-compare-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dataType": "hospitals",
  "maxItems": 10
}' |
apify call parseforge/medicare-care-compare-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/medicare-care-compare-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Medicare Care Scraper",
        "description": "Scrape all 48,000+ Medicare-certified facilities from Care Compare. Get data for nursing homes, hospitals, home health agencies, dialysis centers, hospice, inpatient rehab, and long-term care hospitals. Filter by state. Includes ratings, contact info, and certification data.",
        "version": "1.0",
        "x-build-id": "hpjjcRKvYheCRSZfa"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/parseforge~medicare-care-compare-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-parseforge-medicare-care-compare-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/parseforge~medicare-care-compare-scraper/runs": {
            "post": {
                "operationId": "runs-sync-parseforge-medicare-care-compare-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/parseforge~medicare-care-compare-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-parseforge-medicare-care-compare-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "dataType": {
                        "title": "Data Type",
                        "enum": [
                            "hospitals",
                            "nursingHomes"
                        ],
                        "type": "string",
                        "description": "Choose what type of healthcare facility to collect data for.",
                        "default": "hospitals"
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
                    },
                    "state": {
                        "title": "State",
                        "type": "string",
                        "description": "Filter by state abbreviation (e.g., 'CA', 'TX', 'NY'). Leave empty for all states."
                    },
                    "minRating": {
                        "title": "Minimum Overall Rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Only include facilities with this overall star rating or higher (1-5)."
                    },
                    "hospitalType": {
                        "title": "Hospital Type",
                        "enum": [
                            "",
                            "Acute Care Hospitals",
                            "Critical Access Hospitals",
                            "Childrens",
                            "Psychiatric"
                        ],
                        "type": "string",
                        "description": "Filter hospitals by type. Only used for Hospitals data type."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
