# US Doctors Api (`apiguruu/doctor-com-scraper`) Actor

The Doctors.com and healthgrades API lets you search and connect with doctors across the United States. Get access to a complete doctor directory with specialties, locations, insurance, and avail ability. Each doctor profile includes detailed information plus patient reviews and ratings.

- **URL**: https://apify.com/apiguruu/doctor-com-scraper.md
- **Developed by:** [apiguru](https://apify.com/apiguruu) (community)
- **Categories:** SEO tools, News, Other
- **Stats:** 6 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Doctor.com Scraper

An Apify Actor that scrapes doctor information from Doctor.com, including specialities, locations, insurances, doctor profiles, and reviews.

### Features

- Search and filter medical specialities
- Search locations via autocomplete
- Search and filter insurance providers
- Get all supported languages
- Search doctors with multiple filters (location, speciality, rating, etc.)
- Get detailed doctor profiles
- Get doctor reviews with pagination

### Actions

#### 1. `search_specialities`

Search or filter medical specialities from the database.

**Parameters:**

- `query` (optional): Search query to filter specialities

**Example Input:**

```json
{
    "action": "search_specialities",
    "query": "cardio"
}
```

#### 2. `search_locations`

Search locations via Doctor.com's autocomplete API.

**Parameters:**

- `query` (required): Location search query (e.g., "New York", "Los Angeles")

**Example Input:**

```json
{
    "action": "search_locations",
    "query": "New York"
}
```

#### 3. `search_insurances`

Search or filter insurance providers from the database.

**Parameters:**

- `query` (optional): Search query to filter insurances

**Example Input:**

```json
{
    "action": "search_insurances",
    "query": "Blue Cross"
}
```

#### 4. `get_all_languages`

Get all supported languages for filtering doctors.

**Parameters:** None

**Example Input:**

```json
{
    "action": "get_all_languages"
}
```

#### 5. `search_doctors`

Search doctors with multiple filters.

**Parameters:**

- `location_id` (required): Location ID from search\_locations results
- `location_name` (required): Location name (e.g., "New York, NY")
- `speciality` (optional): Medical speciality to filter by
- `language_spoken` (optional): Filter by language spoken
- `rating` (optional): Minimum rating filter (0-5)
- `board_certified` (optional): Filter by board certification (0 or 1)
- `online_scheduling` (optional): Filter by online scheduling availability (0 or 1)
- `verified` (optional): Filter by verified profiles (0 or 1)
- `distance` (optional): Search radius in miles (5, 10, 25, 50, 100)
- `proof_points` (optional): Minimum profile proof points (0-100)
- `page` (optional): Page number for pagination (default: 1)

**Example Input:**

```json
{
    "action": "search_doctors",
    "location_id": "12345",
    "location_name": "New York, NY",
    "speciality": "Cardiologist",
    "rating": "4",
    "page": 1
}
```

#### 6. `get_doctor_details`

Get detailed information about a specific doctor.

**Parameters:**

- `profile_id` (required): Doctor profile URL path (e.g., "/Dr-John-Smith-MD")

**Example Input:**

```json
{
    "action": "get_doctor_details",
    "profile_id": "/Dr-John-Smith-MD"
}
```

#### 7. `get_doctor_reviews`

Get reviews for a specific doctor with pagination.

**Parameters:**

- `friendly_url` (required): Doctor's friendly URL slug (e.g., "Dr-John-Smith")
- `provider_id` (required): Doctor's provider ID (from get\_doctor\_details)
- `page` (optional): Page number for pagination (default: 1)

**Example Input:**

```json
{
    "action": "get_doctor_reviews",
    "friendly_url": "Dr-John-Smith",
    "provider_id": "123456",
    "page": 1
}
```

### Output Format

All actions return data in a consistent format:

```json
{
    "action": "action_name",
    "success": true,
    "data": { ... },
    "error": null,
    "timestamp": "2024-01-01T00:00:00.000Z"
}
```

On error:

```json
{
    "action": "action_name",
    "success": false,
    "data": null,
    "error": "Error message",
    "timestamp": "2024-01-01T00:00:00.000Z"
}
```

### Typical Workflow

1. **Search for a location** using `search_locations` to get the `location_id`
2. **Search for doctors** using `search_doctors` with the location and optional filters
3. **Get doctor details** using `get_doctor_details` with the `profile_id` from search results
4. **Get doctor reviews** using `get_doctor_reviews` with `friendly_url` and `provider_id` from doctor details

### Data Sources

- **Specialities**: Local database of 120+ medical specialities
- **Insurances**: Local database of 1,100+ insurance providers
- **Languages**: Local database of 110+ supported languages
- **Doctors, Profiles, Reviews**: Live data from Doctor.com

### Notes

- The Actor uses standard HTTP requests (no anti-bot bypass needed)
- Rate limiting may apply for high-volume requests
- Some doctor profiles may have limited information based on their verification status

# Actor input Schema

## `action` (type: `string`):

Select the scraping action to perform

## `query` (type: `string`):

Search query string. REQUIRED for search\_locations. OPTIONAL for search\_specialities and search\_insurances (returns all if empty).

## `location_id` (type: `string`):

REQUIRED for search\_doctors. Location ID from search\_locations results.

## `location_name` (type: `string`):

REQUIRED for search\_doctors. Location name (e.g., 'New York, NY').

## `speciality` (type: `string`):

OPTIONAL for search\_doctors. Medical speciality to filter by.

## `language_spoken` (type: `string`):

OPTIONAL for search\_doctors. Filter by language spoken.

## `rating` (type: `string`):

OPTIONAL for search\_doctors. Minimum rating filter.

## `board_certified` (type: `string`):

OPTIONAL for search\_doctors. Filter by board certification.

## `online_scheduling` (type: `string`):

OPTIONAL for search\_doctors. Filter by online scheduling availability.

## `verified` (type: `string`):

OPTIONAL for search\_doctors. Filter by verified profiles.

## `distance` (type: `string`):

OPTIONAL for search\_doctors. Search radius in miles.

## `proof_points` (type: `string`):

OPTIONAL for search\_doctors. Minimum profile proof points (0-100).

## `profile_id` (type: `string`):

REQUIRED for get\_doctor\_details. Doctor profile URL path (e.g., '/Dr-John-Smith-MD').

## `friendly_url` (type: `string`):

REQUIRED for get\_doctor\_reviews. Doctor's friendly URL slug (e.g., 'Dr-John-Smith').

## `provider_id` (type: `string`):

REQUIRED for get\_doctor\_reviews. Doctor's provider ID (from get\_doctor\_details).

## `page` (type: `integer`):

OPTIONAL. Page number for paginated results (default: 1).

## Actor input object example

```json
{
  "action": "search_doctors",
  "page": 1
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped doctor data from Doctor.com stored in the default dataset

# 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 = {
    "action": "search_doctors"
};

// Run the Actor and wait for it to finish
const run = await client.actor("apiguruu/doctor-com-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 = { "action": "search_doctors" }

# Run the Actor and wait for it to finish
run = client.actor("apiguruu/doctor-com-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 '{
  "action": "search_doctors"
}' |
apify call apiguruu/doctor-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apiguruu/doctor-com-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/lebXUiXIBXTnbYYhB/builds/cVqzzcBc4yhQ8I49d/openapi.json
