# RateMDs Doctor Review Scraper (`bovi/ratemds-scraper`) Actor

Collect public RateMDs doctor records from search or profile URLs. Get profiles, ratings, reviews, and clinic details. Run with a public URL; no buyer API key or login. Pricing: $0.00225 per dataset item plus $0.00005 per Actor Start event.

- **URL**: https://apify.com/bovi/ratemds-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.25 / 1,000 ratemds doctor review scrapers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## RateMDs Doctor Review Scraper

Extract public doctor listing and profile data from RateMDs into one dataset item per doctor. No buyer API key, cookie, or login is required; live Free-plan pricing is detailed below.

- Extract doctor IDs, names, specialties, profile URLs, images, addresses, and ratings for provider research.
- Build B2B lead data with clinic names, phone numbers, locations, affiliations, accepted insurance plans, and public profile details.
- Analyze public ratings, category scores, review counts, and review text across RateMDs listings.
- Map clinic locations and facility affiliations for healthcare market and location research.
- Start from a public search page or collect one public doctor profile directly, with optional Apify proxy configuration.

### What you get

The Actor follows search-page pagination, enriches listing records from public doctor profiles, and writes one dataset item per doctor. Fields are included only when RateMDs provides them on the source page.

| Field family | Fields | Content |
| --- | --- | --- |
| Identity and profile | `id`, `name`, `specialty`, `url`, `imageUrl`, `address` | Doctor identity, specialty, profile link, image, and address |
| Ratings and status | `rating`, `reviewCount`, `staffRating`, `punctualityRating`, `helpfulnessRating`, `knowledgeRating`, `isVerified`, `acceptsNewPatients`, `acceptsVirtualVisits` | Overall and category ratings, review count, verification, and appointment flags |
| Clinic contact | `clinicName`, `clinicUrl`, `phone` | Primary clinic and contact details |
| Profile details | `otherSpecialties`, `areasOfExpertise`, `biography`, `recentReviewComment`, `publicationsAndResearch`, `acceptedInsurances`, `languages` | Additional specialties, expertise, biography, public review summary, research, insurance, and languages |
| Education and recognition | `education` (`school`, `graduationYear`), `awardsAndRecognitions` | Education records and awards |
| Clinic locations | `clinicLocations` (`name`, `address`, `city`, `postalCode`, `phone`, `website`, `url`, `latitude`, `longitude`, `isPrimary`) | Structured clinic locations and coordinates |
| Facility affiliations | `facilityAffiliations` (`name`, `category`, `address`, `city`, `postalCode`, `phone`, `website`, `url`) | Hospitals and urgent-care affiliations |
| Reviews | `reviews` (`datePublished`, `reviewBody`, `rating`, `staffRating`, `punctualityRating`, `helpfulnessRating`, `knowledgeRating`) | Only reviews embedded in the profile page, not all `reviewCount` reviews |
| Run metadata | `scrapedTimestamp` | Timestamp written for the dataset item |

### Sample output

The sample below is shortened to the main profile and rating fields from one real dataset record; additional fields appear when the source page provides them.

```json
{
  "id": "1820087",
  "name": "Dr. Milroy J. Samuel",
  "specialty": "Addiction Medicine Specialist",
  "url": "https://www.ratemds.com/doctor-ratings/541322/Dr-Milroy+J.-Samuel-COLUMBUS-OH.html/",
  "rating": 4.95,
  "reviewCount": 105,
  "isVerified": true
}
```

### Pricing

The live billing model is **pay per event**. The **Free-plan prices** are:

| Charge event | When it applies | Free-plan price |
| --- | --- | ---: |
| `apify-actor-start` | Charged when the Actor starts running | $0.00005 per event |
| `apify-default-dataset-item` | One scraped result with all fields | $0.00225 per event |

The number of Actor Start events depends on Actor memory, with one event per GB and a minimum of one event. Each dataset item event represents one scraped result with all fields.

With one Actor Start event, **100 results = $0.22505 on Free**: `100 × $0.00225 + $0.00005 = $0.22505`

Larger runs on Free, with one Actor Start event:

```text
1,000 results = 1,000 × $0.00225 + $0.00005 = $2.25005 on Free
10,000 results = 10,000 × $0.00225 + $0.00005 = $22.50005 on Free
```

Apify Free plan includes **$5 of monthly platform usage credit**, which covers about **2,222 dataset items** on Free.

The Actor’s event charges are separate from platform usage. Under the pay-per-event model, compute, Apify Proxy traffic including residential traffic, and storage are included in the event prices and paid by the Actor developer. The buyer does not separately pay those platform-usage charges for this Actor.

### How to use

1. **Enter** a public RateMDs search or listing URL, or one public RateMDs doctor profile URL.
2. **Choose** `maxResults` to set the maximum number of doctor records to write.
3. **Configure** `proxyConfiguration` only when needed; setting `useApifyProxy` to `true` enables the optional Apify proxy configuration.
4. **Start** the Actor. Search runs follow the listing’s next-page indicator and preserve the original query filters while moving through pages.
5. **Review** the dataset. Listing records are enriched from their public profile pages when available; if a profile fetch fails, the listing fields can still be written.
6. **Repeat** the run through Apify Schedules, using daily as a starting point for recurring listing collection.

Example input:

```json
{
  "startUrl": "https://www.ratemds.com/best-doctors/?specialty=addiction-medicine",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

Export the resulting dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

| Parameter | What it does | Default |
| --- | --- | --- |
| `startUrl` | Required; prefilled in the Console with the Addiction Medicine search URL. Public RateMDs search/listing page or doctor profile URL, using HTTP or HTTPS on `ratemds.com` or one of its subdomains. | — |
| `maxResults` | Maximum number of doctor records to collect. The input schema accepts integers from 1 to 1000000. | `50` |
| `proxyConfiguration` | Optional Apify proxy configuration. The Actor creates an Apify proxy configuration when `useApifyProxy` is `true`; it is otherwise not enabled. | Proxy disabled |

### Limits and edge cases

| Condition | What you see | What to do |
| --- | --- | --- |
| The `startUrl` is not an HTTP or HTTPS RateMDs URL, or contains a username or password | Input validation fails before collection | Use a public URL on `ratemds.com` or a RateMDs subdomain without embedded credentials |
| `maxResults` is omitted | The Actor uses `50` | Set an explicit integer when you need a different result limit |
| `maxResults` is below 1 | Values below 1 are rejected by the input schema | Use a value from `1` through `1000000` |
| A source page does not provide a field | That field is omitted from the dataset item | Check the original RateMDs page if the field is important to your workflow |
| A search page contains no parsed doctor cards | The Actor tries to parse the page as a direct profile; it writes one record only if a doctor name is found | Use a RateMDs search URL with visible doctor cards or provide the profile URL directly |
| A public profile fetch fails while enriching a search result | The listing fields can still be written, while unavailable profile fields are absent; the Actor logs a warning | Review the run log and retry the run |
| A doctor has more reviews than the profile page embeds | `reviews` holds only the embedded ones (10 in the sample record with `reviewCount` 105) | Treat `reviewCount` as the total and `reviews` as a partial sample |
| A RateMDs request fails | Each request is attempted up to three times. If the fetch still fails, the error propagates and later pages are not processed; records already pushed before the failure remain in the dataset | Check the URL, review the run log, and retry the run |
| A search listing has no next-page indicator, or the result limit is reached | Pagination stops | Use a different listing URL or increase `maxResults` when more records are needed |

### FAQ

#### How much does it cost to scrape RateMDs doctors?

Each dataset item costs $0.00225 per event on the Free plan; see Pricing.

#### What happens if a RateMDs search returns no doctors?

The dataset stays empty unless the page parses as a doctor profile.

#### Why are some doctor fields missing?

RateMDs did not provide them on the source page, or profile enrichment failed.

#### What should I do if a run is not working?

Check that `startUrl` points to `ratemds.com` or a RateMDs subdomain and review the run log. Requests are retried up to three times; after that, retry the run.

#### Is it legal to collect public RateMDs data?

This Actor collects public data from RateMDs pages. Whether a particular use is legal or allowed depends on your use case, applicable law, and the source’s terms, so review those requirements before using the data.

### Related actors

- [Das Örtliche Scraper](https://apify.com/bovi/dasoertliche-scraper) — another bovi scraper.

# Actor input Schema

## `startUrl` (type: `string`):

A public RateMDs search/listing page or one doctor profile page.

## `maxResults` (type: `integer`):

Maximum number of doctor records to collect.

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

Optional Apify proxy settings. Disabled by default.

## Actor input object example

```json
{
  "startUrl": "https://www.ratemds.com/best-doctors/?specialty=addiction-medicine",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset with the scraped RateMDs doctor records.

# 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 = {
    "startUrl": "https://www.ratemds.com/best-doctors/?specialty=addiction-medicine"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/ratemds-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 = { "startUrl": "https://www.ratemds.com/best-doctors/?specialty=addiction-medicine" }

# Run the Actor and wait for it to finish
run = client.actor("bovi/ratemds-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 '{
  "startUrl": "https://www.ratemds.com/best-doctors/?specialty=addiction-medicine"
}' |
apify call bovi/ratemds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/ratemds-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/4cCJX8arDnuzVhwOh/builds/2gO4uSF8Li9XtaWEN/openapi.json
