# Doctoralia Scraper: LatAm & Spain Doctor Data (`kareninatech/doctoralia-scraper`) Actor

Scrape Doctoralia doctor profiles in Mexico, Brazil, Colombia, Chile, Peru and Spain without a browser. Type a city and specialty. Get consultation prices vs the same city, cheap/fair/expensive labels, rating percentile, insurance report, MARKET_REPORT, and monitor mode.

- **URL**: https://apify.com/kareninatech/doctoralia-scraper.md
- **Developed by:** [Karen Gisela Gallegos Aguilar](https://apify.com/kareninatech) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.

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

## Doctoralia Scraper: doctors in Mexico, Brazil, Colombia, Chile, Peru and Spain

Use this Doctoralia API alternative to scrape doctor profiles, consultation prices and ratings across Doctoralia sites in Latin America and Spain.

Scrape doctor and clinic profiles from [Doctoralia](https://www.doctoralia.com.mx) in **Mexico, Brazil, Colombia, Chile, Peru and Spain**, and get **market analytics in every row**: the consultation price compared with the **same specialty and city**, a **cheap / fair / expensive** label, a **rating percentile**, an **insurance coverage report**, and a **MARKET_REPORT** with medians per specialty and city. Prices are saved in the **local currency and in USD**. **Monitor mode** tells you about new doctors, price or rating changes, new reviews and removed profiles.

Just type a city such as **Ciudad de México**, **São Paulo**, **Bogotá**, **Santiago**, **Lima** or **Madrid**, and a specialty such as **dermatólogo** or **dermatologista**. Type the **country name** (Mexico, Brazil, Colombia, Chile, Peru or Spain) for a whole-country search. No URL building needed (but you can paste Doctoralia search URLs too).

### Fast and cheap: no browser

This Actor downloads the public search page and reads the doctor cards already in the HTML. There is **no browser** and, today, **no proxy**. Each page has about 20–24 doctors, and a typical run finishes in seconds. The default memory is **1024 MB**, which is enough for a 1,000-profile run; a small default run also works at 512 MB.

Opening every profile is optional and off by default. Turn it on only when you need the full price list, insurers, languages, license numbers or the latest reviews.

### What can this Doctoralia scraper do?

- 🌍 **Six countries in one Actor**: doctoralia.com.mx, .com.br, .co, .cl, .pe and .es.
- ⌨️ **Simple input**: type a country, a city and a specialty. You can add more cities or specialties in the same run, or paste search URLs.
- 💵 **Consultation prices** in MXN, BRL, COP, CLP, PEN or EUR, plus **USD** using a documented daily rate from [open.er-api.com](https://open.er-api.com) (ExchangeRate-API), with frankfurter.app as a fallback.
- 📊 **Price vs the same specialty and city**: each consultation price is compared with the median of similar doctors in this run. Procedure-only prices (for example fillers) are saved but left out of the median, so they do not skew the market figure.
- 🏷️ **Deal label**: `cheap` (10%+ below the median), `fair`, or `expensive` (10%+ above).
- ⭐ **Rating percentile** among doctors in the same specialty and city in this run.
- 🛡️ **Insurance report**: the search already lists how many doctors accept each insurer or previsión fund (for example GNP, Fonasa, Colsanitas, Sanitas). That summary is saved in `MARKET_REPORT`. The insurers accepted by a single doctor are filled when you fetch profile pages.
- 🔔 **Monitor mode**: schedule the Actor and get only **new** doctors and those whose **price, rating or review count** changed, plus **removed** profiles when the run covers the whole search.
- 📍 Clinic addresses and coordinates, online consultation, booking availability, photo and a verified flag, straight from the search results.

### What data can you get from Doctoralia?

| Field | Example |
|---|---|
| name, specialty, url | Example Doctor · Dermatólogo · https://www.doctoralia.com.mx/perfil/… |
| city, clinic_addresses | Ciudad de México · street, coordinates |
| consultation_price, currency, price_usd | 1,400 MXN · 75.50 USD |
| market_median_price, price_vs_market_pct, deal_label | 1,500 · -6.7% · fair |
| rating, review_count, rating_percentile | 5 · 120 · 82.5 |
| online_consultation, booking_available, verified | true · true · true |
| insurance_accepted, languages, license_numbers | (when profile pages are fetched) |
| latest_reviews | (optional, from the profile page) |
| monitor_status | new / changed / removed |

### How to scrape Doctoralia

1. Choose a **Country**.
2. Type a **City**: `Ciudad de México`, `São Paulo`, `Bogotá`, `Santiago`, `Lima` or `Madrid`. Type **`Mexico`**, **`Brazil`**, **`Colombia`**, **`Chile`**, **`Peru`** or **`Spain`** for the whole country. Do not leave the field empty — an omitted value becomes **Ciudad de México**.
3. Type a **Specialty**: `dermatólogo`, `dermatologista`, `ginecólogo`, `psicólogo`, `pediatra` or `médico general`.
4. Set **Max profiles** and click **Start**.
5. Open the **Analytics** view in the output, and the **MARKET_REPORT** in the key-value store.

Or paste a Doctoralia search URL in **Doctoralia search URL**. When you use URLs, the country / city / specialty fields in the form are not applied.

#### Input example

```json
{
    "country": "mexico",
    "city": "Ciudad de México",
    "specialty": "dermatólogo",
    "max_items": 200
}
```

#### Whole-country search

Type the country name in **City**. Example: `"city": "Mexico"` searches dermatologists across Mexico. An empty city is not treated as the whole country, because the form fills the default **Ciudad de México**.

#### Profile pages and reviews

Turn on **Fetch profile pages** to add the full service price list, insurers accepted, languages and license numbers. This opens one extra page per doctor, so it is slower.

Turn on **Include latest reviews** to save the most recent patient reviews. They come from the same profile page, with no extra requests beyond that page.

#### Monitor mode (alerts)

Turn on **Monitor mode**, give the search a **Monitor name**, and schedule the Actor (for example daily). The first run saves everything. Next runs save only:

- `new`: doctors not seen before
- `changed`: the consultation price, rating or review count changed (`monitor_new_reviews` is how many reviews were added)
- `removed`: profiles that disappeared. Turn on **Report removed profiles**. This only works when the run covers the whole search, so set **Max profiles** higher than the search total.

### Market report

Every run saves `MARKET_REPORT` in the key-value store with, **by specialty and city**: the number of doctors, median consultation price (local currency and USD), median rating and review count, the share that offer online consultation or booking, and how many were labelled cheap, fair or expensive. It also includes the **insurance coverage** and **languages** counts taken from the search filters, plus the FX source used for USD.

### How much does it cost to scrape Doctoralia?

This Actor uses pay per event: you pay per profile saved, plus a tiny fee per run. Platform compute is included. A run of 1,000 listing-only profiles usually finishes in about a minute. Fetching every profile page takes longer, because each doctor is an extra request.

### Tips and limits

- **Consultation prices** are not always on the card (this is more common in some countries than others). The Actor never guesses a missing price. When only a procedure price is shown, it is saved but not used for the city median.
- **Insurance and languages for a single doctor** need a profile page. The MARKET_REPORT still includes market-level insurance and language counts from the search filters, even when profile pages are off.
- **Featured doctors** can repeat on later pages. The Actor deduplicates by profile id.
- Search pages sometimes include a few **clinic** cards. The default is to save doctors only; you can include clinics if you want.
- USD conversion uses [open.er-api.com](https://open.er-api.com) (ExchangeRate-API). If that source is unavailable, the Actor falls back to [frankfurter.app](https://frankfurter.app) (ECB), which may not list every Latin American currency.
- No proxy is needed today. If Doctoralia starts blocking, turn on Apify Proxy (RESIDENTIAL, and the country you are scraping).

This Actor is not affiliated with Docplanner or Doctoralia. Use it in line with the site's terms and applicable law.

### Input and output details

**Output Example:**

```json
{
  "name": "Example Doctor",
  "specialty": "Dermatólogo",
  "city": "Ciudad de México",
  "country": "Mexico",
  "consultation_price": 1400,
  "currency": "MXN",
  "price_usd": 75.5,
  "rating": 5,
  "review_count": 120,
  "url": "https://www.doctoralia.com.mx/perfil/example-doctor",
  "verified": true,
  "booking_available": true,
  "id": "311148",
  "scraped_at": "2026-01-15T12:00:00.000Z"
}
```

### Input reference

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `country` | string | No | `mexico` | Doctoralia site to scrape, for example Mexico, Brazil or Spain. Use the dropdown values. |
| `city` | string | No | `Ciudad de México` | A city name as you would type it: Ciudad de México, São Paulo, Bogotá, Santiago, Lima, Madrid… For the whole country type the country name (Mexico, Brazil, Colombia, Chile, Peru or Spain). Do not leave this field empt... |
| `cities` | array | No | — | Extra cities to search in the same run. max_items is split between all city and specialty combinations. |
| `specialty` | string | No | `dermatólogo` | A specialty as you would type it: dermatólogo, dermatologista, ginecólogo, psicólogo, pediatra, médico general… |
| `specialties` | array | No | — | Optional extra specialties to search in the same run, for example dermatología. Leave empty to use the default list. |
| `search_url` | string | No | — | Paste a search page from a Doctoralia site with your filters already set. When you use URLs, the country / city / specialty fields above are ignored. |
| `start_urls` | array | No | — | Extra Doctoralia search pages (Mexico, Brazil, Colombia, Chile, Peru or Spain). |
| `max_items` | integer | No | `40` | Maximum doctor or clinic profiles to save (split between searches). Each results page has about 20–24 doctors. |
| `max_pages` | integer | No | — | Maximum results pages to fetch per search. Leave empty to decide automatically from max_items. |
| `profile_type` | string | No | `doctors` | Doctors only, clinics only, or both. Search pages sometimes include a few clinic ads. |
| `min_rating` | number | No | — | Only keep profiles with at least this star rating (1–5). |
| `min_reviews` | integer | No | — | Only keep profiles with at least this many patient reviews. |
| `online_only` | boolean | No | `False` | Only keep profiles that offer an online consultation. |
| `fetch_details` | boolean | No | `False` | Visit each profile for the full service price list, insurance accepted, languages and license numbers. Off by default because it is slower (one extra page per doctor). |
| `include_reviews` | boolean | No | `False` | Save the latest patient reviews from the profile page (usually a handful, already in the page). This also opens the profile, even if Fetch profile pages is off. |
| `max_reviews_per_doctor` | integer | No | `5` | Maximum reviews to save per profile when reviews are enabled. |
| `compare_with_market` | boolean | No | `True` | Add the city median consultation price, a cheap/fair/expensive label, and a rating percentile, using the other doctors in this run. |
| `min_peers` | integer | No | `5` | A specialty and city needs at least this many comparable doctors before a median or percentile is used. |
| `monitor_mode` | boolean | No | `False` | Only save new profiles and those whose price, rating or review count changed (and removed ones if you turn that on). Schedule the Actor to run regularly. |
| `monitor_key` | string | No | — | Name for this watch list (so different searches do not share history). Letters, numbers and hyphens. |
| `emit_removed` | boolean | No | `False` | In monitor mode, also save profiles that disappeared. Only works when the run covers the whole search. |
| `proxyConfiguration` | object | No | — | Optional. Not needed today. If Doctoralia starts blocking, use Apify Proxy (RESIDENTIAL, and the country you are scraping). |

### Output fields

| Field | Description |
|-------|-------------|
| `name` | Display name of the doctor or clinic. |
| `specialty` | Primary specialty shown on the card. |
| `city` | City of the primary practice. |
| `country` | Country name. |
| `consultation_price` | Listed consultation price in the local currency. Prefers a first-visit or consultation service when several prices are shown. |
| `currency` | ISO currency code of the listed price (MXN, BRL, COP, CLP, PEN or EUR). |
| `price_usd` | Consultation price converted to US dollars. |
| `rating` | Average star rating (1–5). |
| `review_count` | Number of patient reviews. |
| `url` | Public profile URL. |
| `verified` | True when the profile shows a verification check (the doctor confirmed their information). |
| `booking_available` | True when the card offers an online booking calendar. |
| `id` | Doctoralia profile id. |
| `monitor_status` | In monitor mode: new, changed, unchanged or removed. |
| `scraped_at` | ISO timestamp when the row was built. |

The dataset also includes 39 further fields. Open the Output tab in the Actor for the full list.

### FAQ

**Which Doctoralia sites are supported?** Mexico, Brazil, Colombia, Chile, Peru and Spain.

**Do I need to code?** No. Type a city and specialty and run. Export JSON, CSV or Excel, or call the Actor via the Apify API.

**What extra analytics do I get?** Consultation prices compared with the same city, cheap/fair/expensive labels, rating percentile, an insurance report, and a MARKET_REPORT for the run.

**Is this an official Doctoralia API?** No. This is an unofficial scraper for public doctor profile pages. Follow Doctoralia terms and privacy rules (including GDPR where they apply).

### Related Actors

More data extractors by [kareninatech](https://apify.com/kareninatech):

- [COMPRASAL Scraper — El Salvador public tenders](https://apify.com/kareninatech/central-america-tenders-scraper)
- [OCC Mundial Jobs Scraper — Mexico jobs and salaries](https://apify.com/kareninatech/occ-mundial-jobs-scraper)
- [elempleo Scraper — Colombia jobs and salaries](https://apify.com/kareninatech/elempleo-scraper)
- [Falabella Chile Scraper — prices and CMR deals](https://apify.com/kareninatech/falabella-scraper)

# Actor input Schema

## `country` (type: `string`):

Doctoralia site to scrape, for example Mexico, Brazil or Spain. Use the dropdown values.

## `city` (type: `string`):

A city name as you would type it: Ciudad de México, São Paulo, Bogotá, Santiago, Lima, Madrid… For the whole country type the country name (Mexico, Brazil, Colombia, Chile, Peru or Spain). Do not leave this field empty — an omitted value is filled with the default, Ciudad de México.

## `cities` (type: `array`):

Extra cities to search in the same run. max_items is split between all city and specialty combinations.

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

A specialty as you would type it: dermatólogo, dermatologista, ginecólogo, psicólogo, pediatra, médico general…

## `specialties` (type: `array`):

Optional extra specialties to search in the same run, for example dermatología. Leave empty to use the default list.

## `search_url` (type: `string`):

Paste a search page from a Doctoralia site with your filters already set. When you use URLs, the country / city / specialty fields above are ignored.

## `start_urls` (type: `array`):

Extra Doctoralia search pages (Mexico, Brazil, Colombia, Chile, Peru or Spain).

## `max_items` (type: `integer`):

Maximum doctor or clinic profiles to save (split between searches). Each results page has about 20–24 doctors.

## `max_pages` (type: `integer`):

Maximum results pages to fetch per search. Leave empty to decide automatically from max_items.

## `profile_type` (type: `string`):

Doctors only, clinics only, or both. Search pages sometimes include a few clinic ads.

## `min_rating` (type: `number`):

Only keep profiles with at least this star rating (1–5).

## `min_reviews` (type: `integer`):

Only keep profiles with at least this many patient reviews.

## `online_only` (type: `boolean`):

Only keep profiles that offer an online consultation.

## `fetch_details` (type: `boolean`):

Visit each profile for the full service price list, insurance accepted, languages and license numbers. Off by default because it is slower (one extra page per doctor).

## `include_reviews` (type: `boolean`):

Save the latest patient reviews from the profile page (usually a handful, already in the page). This also opens the profile, even if Fetch profile pages is off.

## `max_reviews_per_doctor` (type: `integer`):

Maximum reviews to save per profile when reviews are enabled.

## `compare_with_market` (type: `boolean`):

Add the city median consultation price, a cheap/fair/expensive label, and a rating percentile, using the other doctors in this run.

## `min_peers` (type: `integer`):

A specialty and city needs at least this many comparable doctors before a median or percentile is used.

## `monitor_mode` (type: `boolean`):

Only save new profiles and those whose price, rating or review count changed (and removed ones if you turn that on). Schedule the Actor to run regularly.

## `monitor_key` (type: `string`):

Name for this watch list (so different searches do not share history). Letters, numbers and hyphens.

## `emit_removed` (type: `boolean`):

In monitor mode, also save profiles that disappeared. Only works when the run covers the whole search.

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

Optional. Not needed today. If Doctoralia starts blocking, use Apify Proxy (RESIDENTIAL, and the country you are scraping).

## Actor input object example

```json
{
  "country": "mexico",
  "city": "Ciudad de México",
  "specialty": "dermatólogo",
  "max_items": 40,
  "profile_type": "doctors",
  "online_only": false,
  "fetch_details": false,
  "include_reviews": false,
  "max_reviews_per_doctor": 5,
  "compare_with_market": true,
  "min_peers": 5,
  "monitor_mode": false,
  "emit_removed": false
}
```

# Actor output Schema

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

Table view of scraped results using the dataset 'overview' view.

## `analytics` (type: `string`):

No description

## `monitor` (type: `string`):

No description

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

All scraped results from the default dataset without view transformation.

## `marketReport` (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 = {
    "country": "mexico",
    "city": "Ciudad de México",
    "specialty": "dermatólogo",
    "max_items": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("kareninatech/doctoralia-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 = {
    "country": "mexico",
    "city": "Ciudad de México",
    "specialty": "dermatólogo",
    "max_items": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("kareninatech/doctoralia-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 '{
  "country": "mexico",
  "city": "Ciudad de México",
  "specialty": "dermatólogo",
  "max_items": 40
}' |
apify call kareninatech/doctoralia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kareninatech/doctoralia-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/1ex5y44R9u2MN5eHr/builds/kicLFlnbT0nYJKOvx/openapi.json
