# Doctoralia Scraper — Spain Doctor & Clinic Directory Data (`studio-amba/doctoralia-es-scraper`) Actor

Scrape doctor and clinic listings from Doctoralia.es by specialty and city. Get name, specialties, clinic name and address, public phone, rating, review count, published service prices, and online-booking availability. Public directory data only, no login required.

- **URL**: https://apify.com/studio-amba/doctoralia-es-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 result scrapeds

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/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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## Doctoralia Scraper (doctoralia.es)

Scrape public doctor and clinic listings from Doctoralia.es, Spain's largest
medical directory (part of the Docplanner group, the same platform behind
znanylekarz.pl in Poland and miodottore.it in Italy). Search by specialty
and city, or pass direct listing URLs, and get structured doctor profiles:
name, specialties, clinic, address, public phone, rating, review count,
published service prices, and online-booking availability.

### Why use this actor?

Medical marketing agencies, health-tech companies, insurance brokers, and
patient-acquisition tools all need up-to-date lists of practicing doctors
by specialty and city. Doctoralia is the largest such directory in Spain —
this actor turns it into a clean, structured dataset instead of manual
copy-pasting from search results.

**Compliance note:** every field this actor returns is public professional
directory data that the doctor or clinic chose to publish on their
Doctoralia profile — visible to any anonymous visitor and indexed by
Google. This actor does not collect patient data, private messages, or
any information behind a login.

### Input

| Field | Type | Required | Description |
|-------|------|----------|--------------|
| `specialty` | String | No | Medical specialty in Spanish, e.g. `dermatólogo`, `dentista`, `ginecólogo`, `psicólogo`, `pediatra`. Default: `dermatólogo` |
| `city` | String | No | Spanish city name, e.g. `Madrid`, `Barcelona`, `Valencia`. Default: `Madrid` |
| `startUrls` | Array | No | Direct Doctoralia.es listing URLs (e.g. `https://www.doctoralia.es/dermatologo/madrid`). Overrides `specialty` + `city` |
| `maxItems` | Integer | No | Maximum number of doctor profiles to return. Default: `30` |
| `proxyConfiguration` | Object | No | Proxy settings. Residential proxy recommended for reliability at scale |

If you leave the input empty (`{}`), the actor runs with the defaults above
and still returns real data — useful for a quick test run.

### Output

Each result is one doctor profile:

| Field | Type | Example |
|-------|------|---------|
| `name` | String | `"Dra. Virna Judith Rodriguez Soria"` |
| `specialties` | Array | `["Dermatóloga"]` |
| `clinicName` | String | `"Clínica Vandermed"` |
| `address` | String | `"Calle de O'Donnell 18, Planta 1 puerta I"` |
| `postalCode` | String | `"28009"` |
| `city` | String | `"Madrid"` |
| `country` | String | `"ES"` |
| `phone` | String | `"689 51 69 17"` |
| `rating` | Number | `5` |
| `reviewCount` | Number | `97` |
| `services` | Array | `[{"name": "Visita Dermatología", "price": 60}]` |
| `onlineBookingAvailable` | Boolean | `true` |
| `licenseNumber` | String | `"282857096"` (Núm. Colegiado — public medical college registration number) |
| `profileUrl` | String | Full Doctoralia profile URL |
| `scrapedAt` | String | ISO 8601 timestamp |

Not every field is present on every profile — a solo practitioner may not
have a `clinicName`, and not all doctors publish prices for their services.

### Example output

```json
{
    "name": "Dra. Virna Judith Rodriguez Soria",
    "specialties": ["Dermatóloga"],
    "clinicName": "Clínica Vandermed",
    "address": "Calle de O'Donnell 18, Planta 1 puerta I",
    "postalCode": "28009",
    "city": "Madrid",
    "country": "ES",
    "phone": "689 51 69 17",
    "rating": 5,
    "reviewCount": 97,
    "services": [
        { "name": "Visita Dermatología", "price": 60 }
    ],
    "onlineBookingAvailable": true,
    "licenseNumber": "282857096",
    "profileUrl": "https://www.doctoralia.es/virna-judith-rodriguez-soria/dermatologo/madrid",
    "scrapedAt": "2026-07-16T19:20:03.045Z"
}
````

### How to scrape Doctoralia data

1. Open the actor and, under **Input**, set `specialty` (Spanish, e.g.
   `dermatólogo`, `dentista`, `ginecólogo`, `psicólogo`, `pediatra`,
   `cardiólogo`) and `city` (e.g. `Madrid`, `Barcelona`, `Valencia`,
   `Sevilla`). Or paste one or more direct listing URLs into `startUrls`
   (e.g. `https://www.doctoralia.es/dermatologo/madrid`).
2. Set `maxItems` to the number of doctor profiles you want (the actor
   paginates the search results automatically until it reaches that
   number or runs out of results).
3. Click **Start**. The actor first loads the search listing, collects the
   individual doctor profile links (clinic/medical-center cards mixed
   into the same results are skipped — see Limitations), then visits each
   doctor's profile page to extract the full structured record.
4. Download the results as JSON, CSV, or Excel from the **Dataset** tab,
   or pull them via the Apify API into your CRM, spreadsheet, or lead
   pipeline.

For repeat use, schedule the actor to run daily or weekly and diff the
output against your last run to catch new doctors, dropped listings, or
rating changes.

#### Cómo extraer datos de Doctoralia (guía en español)

Doctoralia es el mayor directorio médico de España (grupo Docplanner), con
listados de médicos, dentistas, psicólogos, fisioterapeutas y otros
profesionales sanitarios, cada uno con su ficha pública: especialidad,
centro/clínica, dirección, teléfono, valoración de pacientes, número de
opiniones, precios de servicios cuando el profesional los publica, y si
ofrece cita online.

Para extraer estos datos con este actor:

1. Indica la **especialidad** en español (`dermatólogo`, `dentista`,
   `ginecólogo`, `psicólogo`, `pediatra`, `cardiólogo`, etc.) y la
   **ciudad** (`Madrid`, `Barcelona`, `Valencia`, `Sevilla`, etc.).
2. Ajusta `maxItems` según cuántos médicos necesites.
3. Ejecuta el actor. Recorre los resultados de búsqueda, sigue los
   enlaces a cada ficha de médico y extrae: nombre, especialidades,
   nombre de la clínica, dirección, teléfono público, valoración,
   número de opiniones, servicios y precios, y disponibilidad de cita
   online.
4. Descarga los datos en JSON, CSV o Excel, o consúmelos por API para
   integrarlos en tu CRM o campaña de marketing médico.

Todos los datos extraídos son información profesional pública que el
propio médico o clínica ha publicado en su ficha de Doctoralia — visible
para cualquier visitante anónimo e indexada por Google. Este actor no
recopila datos de pacientes ni ninguna información que requiera inicio de
sesión.

### Cost estimate

This actor makes roughly 1 listing-page request per ~20 doctors plus 1
detail-page request per doctor. At standard Apify Pay-Per-Result pricing,
that's a small, predictable cost per profile — see the actor's **Pricing**
tab on the Apify Store for the current per-result rate.

### Limitations

- Clinic/medical-center cards that Doctoralia mixes into specialty+city
  search results (URLs under `/clinicas/...`) are intentionally skipped —
  they're a different entity type (organization, not an individual
  practitioner) and don't carry the same fields (specialties, license
  number, personal rating).
- Not every doctor publishes a phone number, service prices, or a clinic
  name — those fields will be absent when the profile doesn't show them.
- Specialty and city names must be in Spanish (the site's native
  vocabulary); accented characters are normalized automatically when
  building the search URL.
- Data is scraped from the public website and may change without notice.
- Respect Doctoralia's terms of service and use this data responsibly —
  this actor only reads public directory pages, never registration,
  messaging, or account-management endpoints.

### Need this data on a schedule, or a custom version?

We run this scraper as a managed service for businesses: scheduled runs,
deduplication, delta detection, and delivery to your inbox, Google Sheets,
or API — maintenance included. We can also build a custom version with your
exact fields and filters, or combine multiple sources into one feed.

See [studioamba.dev/services](https://studioamba.dev/services/) or email
<hello@studioamba.dev> for a free data sample.
We maintain 300+ European web scrapers and answer within one business day.

# Actor input Schema

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

Medical specialty in Spanish, e.g. 'dermatólogo', 'dentista', 'ginecólogo', 'psicólogo', 'pediatra'. Ignored if Start URLs are provided.

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

Spanish city name, e.g. 'Madrid', 'Barcelona', 'Valencia'. Ignored if Start URLs are provided.

## `startUrls` (type: `array`):

Direct Doctoralia.es listing URLs to scrape instead of specialty + city, e.g. https://www.doctoralia.es/dermatologo/madrid. Overrides Specialty and City.

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

Maximum number of doctor profiles to return.

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

Proxy settings. Residential proxy recommended for reliability at scale.

## Actor input object example

```json
{
  "specialty": "dermatólogo",
  "city": "Madrid",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}
```

# 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": "dermatólogo",
    "city": "Madrid",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "ES"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/doctoralia-es-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": "dermatólogo",
    "city": "Madrid",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "ES",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/doctoralia-es-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 '{
  "specialty": "dermatólogo",
  "city": "Madrid",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}' |
apify call studio-amba/doctoralia-es-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=studio-amba/doctoralia-es-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Doctoralia Scraper — Spain Doctor & Clinic Directory Data",
        "description": "Scrape doctor and clinic listings from Doctoralia.es by specialty and city. Get name, specialties, clinic name and address, public phone, rating, review count, published service prices, and online-booking availability. Public directory data only, no login required.",
        "version": "0.1",
        "x-build-id": "KC0RMqzTPXxJlOutU"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~doctoralia-es-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-doctoralia-es-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/studio-amba~doctoralia-es-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-doctoralia-es-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/studio-amba~doctoralia-es-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-doctoralia-es-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": {
                    "specialty": {
                        "title": "Specialty",
                        "type": "string",
                        "description": "Medical specialty in Spanish, e.g. 'dermatólogo', 'dentista', 'ginecólogo', 'psicólogo', 'pediatra'. Ignored if Start URLs are provided.",
                        "default": "dermatólogo"
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "Spanish city name, e.g. 'Madrid', 'Barcelona', 'Valencia'. Ignored if Start URLs are provided.",
                        "default": "Madrid"
                    },
                    "startUrls": {
                        "title": "Start URLs (optional)",
                        "type": "array",
                        "description": "Direct Doctoralia.es listing URLs to scrape instead of specialty + city, e.g. https://www.doctoralia.es/dermatologo/madrid. Overrides Specialty and City.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum number of doctor profiles to return.",
                        "default": 30
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxy recommended for reliability at scale.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "ES"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
