# Healthgrades Scraper — Doctor NPI, Ratings & Contact Data (`jaybird/healthgrades-scraper`) Actor

Scrape doctor profiles from Healthgrades.com: names, NPI numbers, specialties, star ratings, education, board certifications, and office locations with phone, fax & geo-coordinates, plus telehealth and new-patient flags. Ideal for healthcare lead generation and provider data enrichment.

- **URL**: https://apify.com/jaybird/healthgrades-scraper.md
- **Developed by:** [Jaybird Technologies](https://apify.com/jaybird) (community)
- **Categories:** Lead generation, Automation, Other
- **Features:** Limited permissions
- **Stats:** 79 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Healthgrades Scraper — Doctor NPI, Ratings & Contact Data

Extract complete doctor profiles from **[Healthgrades.com](https://www.healthgrades.com)**, one of the largest doctor directories in the United States. Search by **specialty and location** and get structured data for every matching provider: name, **NPI number**, specialty, **star ratings and review counts**, biography, education, board certifications, and every office location with **phone, fax, and GPS coordinates** — exported as JSON, CSV, or Excel.

⚡ Fast HTML parsing (no browser) · 🆔 NPI numbers · ⭐ Ratings & reviews · 📞 Phone & fax · 📍 Geo-coordinates · 🩺 Telehealth & new-patient flags

***

### Why scrape Healthgrades?

- **Healthcare lead generation** — build targeted contact lists of providers by specialty and region, keyed by NPI for easy CRM deduplication.
- **Data enrichment** — the NPI field lets you join results directly against NPPES, CMS, and claims datasets.
- **Market intelligence** — monitor provider density, ratings, telehealth adoption, and new-patient availability by market.
- **Provider directories** — keep physician finders and referral networks up to date, including geo-coordinates for map views.

Running on Apify also gets you scheduling, an API for every run, webhooks, and integrations with Google Sheets, Zapier, and Make.

***

### What data can you extract?

| Field | Description |
|-------|-------------|
| `name`, `npi`, `profileUrl` | Doctor's full name, 10-digit National Provider Identifier, and Healthgrades profile link |
| `doctorSpecialty` | Primary medical specialty |
| `gender`, `age`, `yearsOfExperience` | Demographics and years since medical school graduation |
| `rating`, `reviewCount` | Average patient star rating (1–5) and number of ratings, as numbers |
| `acceptsNewPatients`, `telehealthAvailable` | Availability flags |
| `healthgradesChoice`, `patientFavorite` | Healthgrades quality designations |
| `biography` | Short profile biography |
| `education`, `boardCertifications`, `languages` | Medical school / residency / fellowship history, certifications with accrediting board, languages spoken |
| `locations` | Every office: practice name, street address, city, state, ZIP, **phone, fax, latitude, longitude**, primary-office flag |
| `attributes` | Patient feedback highlights (e.g., "Listened/answered questions") |
| `searchQuery` | The specialty, location, and page that produced each result |

***

### How to scrape Healthgrades

1. Create a free [Apify account](https://console.apify.com).
2. Open the Healthgrades Scraper.
3. Enter a **specialty** (e.g., "Cardiologist", "Dermatologist", "Dentist") and a **location** (city + state, or ZIP).
4. Set **Max Pages** (each search page yields ~20 doctors) and, optionally, **Max doctors**, then click **Start**.
5. Download your results from the **Dataset** tab in JSON, CSV, Excel, or XML.

***

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `specialty` | String | Doctor specialty to search for | `"Cardiologist"` |
| `location` | String | City, state, or ZIP to search | `"Portland, OR"` |
| `maxPages` | Integer | Search pages to scrape, ~20 doctors each (0 = all pages, capped at 100) | `1` |
| `maxItems` | Integer | Maximum doctors to save (empty or 0 = no limit; `maxPages` still applies) | no limit |
| `proxyConfiguration` | Object | Apify Proxy or custom proxy settings. With the default, requests Healthgrades blocks are retried through residential proxies at no extra cost; a custom setting is used exactly as given | Apify Proxy |

***

### Output

One record per doctor. Real example:

```json
{
  "name": "Dr. Juan Cueto, MD",
  "npi": "1588614572",
  "profileUrl": "https://www.healthgrades.com/physician/dr-juan-cueto-x3bjy",
  "doctorSpecialty": "Cardiology",
  "gender": "M",
  "age": 60,
  "yearsOfExperience": null,
  "rating": 4.8,
  "reviewCount": 15,
  "acceptsNewPatients": true,
  "telehealthAvailable": true,
  "healthgradesChoice": true,
  "patientFavorite": false,
  "distanceMiles": 2.2,
  "address": "3663 S Miami Ave, Miami, FL 33133",
  "attributes": [
    "Appt. wasn't rushed",
    "Listened/answered questions"
  ],
  "imageUrl": "https://dims.healthgrades.com/dims3/MMH/format/webp/?url=https:%2F%2Fphotos.healthgrades.com%2Fimg%2Fprov%2Fx%2F3%2Fb%2Fx3bjy_w120h160_va56ebdd2621fcbbea0cba1cd90c1743e9659456f.jpg",
  "searchQuery": {
    "specialty": "Cardiologist",
    "location": "Miami, FL",
    "page": 1
  },
  "biography": "Dr. Juan Cueto, MD is a cardiologist in Miami, FL. Dr. Cueto has extensive experience in Adult Congenital Heart Conditions. He is affiliated with HCA Florida Mercy Hospital. He is accepting new patients and telehealth appointments.",
  "languages": ["Spanish"],
  "boardCertifications": [],
  "education": [
    {
      "type": "Residency Hospital",
      "name": "Jackson Mem Hosp/jackson Health",
      "completionYear": null
    }
  ],
  "locations": [
    {
      "practiceName": "Mercy Hospital Inc",
      "streetAddress": "3663 S Miami Ave",
      "city": "Miami",
      "state": "FL",
      "postalCode": "33133",
      "phone": "(305) 854-4400",
      "fax": "(305) 285-2779",
      "latitude": 25.74616,
      "longitude": -80.21206,
      "isPrimary": true
    }
  ]
}
```

Fields are `null` (or empty arrays) when Healthgrades doesn't publish that information for a doctor.

The dataset includes three ready-made views in Apify Console: **Overview** (ratings and contact at a glance), **Credentials** (education and certifications), and **Locations & Contact** (offices with phone/fax).

***

### How much will it cost?

Pricing is **pay-per-result**: you pay a fraction of a cent per doctor scraped — at most **$6.50 per 1,000 doctors** (less on paid Apify plans; see the Pricing tab for your exact rate) plus a negligible Actor-start fee. Platform compute and proxy costs are already included in the per-result price. For example, scraping 100 cardiologists (5 search pages) costs about **$0.65**. You can cap spending on any run with the "Maximum cost per run" limit.

***

### Tips

- Each search page returns ~20 doctors; set `maxPages` accordingly (e.g., `5` ≈ 100 doctors).
- `maxPages: 0` scrapes every available page, with a built-in safety cap of 100 pages per run.
- Use `maxItems` for an exact count, e.g. `maxItems: 10` for a quick test run.
- Searches accept anything the Healthgrades search box does: specialties ("Cardiologist"), conditions, practice areas, or provider types ("Dentist", "Therapist").
- Use the `npi` field to deduplicate doctors across overlapping searches and to join with NPPES/CMS data.
- Filter exports on `acceptsNewPatients` or `telehealthAvailable` to build actionable outreach lists.

***

### Integrations

Connect the dataset to **Google Sheets, Zapier, Make, Slack, or any HTTP webhook** using Apify integrations, or pull results programmatically via the [Apify API](https://docs.apify.com/api/v2) and SDK clients for JavaScript and Python. Schedule recurring runs to keep your provider data fresh.

***

### FAQ

#### Can I get doctors' NPI numbers from Healthgrades?

Yes — every result includes the doctor's 10-digit `npi` when Healthgrades publishes it (100% coverage in our test runs), so you can join results against NPPES, PECOS, and claims data.

#### Can I filter for doctors who offer telehealth or accept new patients?

Every record carries `telehealthAvailable` and `acceptsNewPatients` booleans — filter the exported dataset on either field.

#### Does it include office phone numbers and fax numbers?

Yes. Each entry in `locations` includes the office phone and, when published, the fax number, along with latitude/longitude for mapping.

#### How do I export results to Excel or CSV?

Open the run's **Dataset** tab and choose Excel, CSV, JSON, or XML — or fetch any format via the API.

#### Is it legal to scrape Healthgrades?

The scraper only collects publicly available professional information about healthcare providers — the same data any visitor sees. It does not collect patient data or anything behind a login. You are responsible for using the data in compliance with applicable laws (including GDPR/CCPA where relevant) and Healthgrades' terms of service. If in doubt, consult a lawyer.

#### What if a doctor's profile page fails to load?

The doctor is still saved with all search-page data (name, NPI, rating, specialty, address) — only the profile-page extras (biography, education, detailed locations) are skipped.

# Actor input Schema

## `specialty` (type: `string`):

Doctor specialty to search for (e.g., Cardiologist)

## `location` (type: `string`):

Location to search in (e.g., Portland, OR)

## `maxPages` (type: `integer`):

Maximum number of pages to scrape. Set to 0 for unlimited.

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

Maximum number of doctors to save. Leave empty or set to 0 for no limit (Max Pages still applies). Each search page lists about 20 doctors.

## `proxyConfiguration` (type: `object`):

Configure proxy for requests. With the default (Apify Proxy, automatic group), requests that Healthgrades blocks are retried through residential proxies at no extra cost to you. If you choose specific proxy groups, a country, or your own proxy URLs, exactly that setting is used.

## Actor input object example

```json
{
  "specialty": "Cardiologist",
  "location": "Portland, OR",
  "maxPages": 1,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped doctor listings

# 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 = {
    "specialty": "Cardiologist",
    "location": "Portland, OR",
    "maxPages": 1,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("jaybird/healthgrades-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 = {
    "specialty": "Cardiologist",
    "location": "Portland, OR",
    "maxPages": 1,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("jaybird/healthgrades-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "specialty": "Cardiologist",
  "location": "Portland, OR",
  "maxPages": 1,
  "maxItems": 10
}' |
apify call jaybird/healthgrades-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jaybird/healthgrades-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/gOK39p0vZYsefYWPJ/builds/OxacE8Ece1eecafRY/openapi.json
