# Doctoralia Scraper: Spain Doctors and Clinics by Specialty (`santamaria-automations/doctoralia-scraper`) Actor

Read the public doctor and clinic lists of Doctoralia Spain by specialty and city: name, specialties, address, coordinates, rating, review count, service prices, online consultation and profile link. No login needed.

- **URL**: https://apify.com/santamaria-automations/doctoralia-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 84.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 profile delivereds

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

Read the public doctor and clinic lists of Doctoralia Spain (doctoralia.es) by specialty and city, and get one record per card: name, specialties, address, coordinates, rating, review count, service prices, online consultation flag and the profile link. No login and no API key are needed.

### What you get

- One record per doctor or clinic on the lists you choose, about 20 per list page.
- Lists by specialty and city, for example `dentista` in `madrid`. Several specialties and cities are combined: every city is read for every specialty.
- Or give list addresses directly, such as `https://www.doctoralia.es/dentista/madrid`.
- Only what the public list card shows. Patient reviews (texts and reviewer names) are not collected, only the star rating and the number of reviews.
- A profile found twice (pages can overlap by a few cards) is returned once.
- A run that is interrupted continues where it stopped. Profiles already delivered are not delivered or charged again.
- You pay only for profiles that were saved to the dataset.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=santamaria-automations/doctoralia-scraper
```

**Example prompt once connected:**

> "Use `doctoralia-scraper` to list 40 dentists in Madrid and show the ones with a rating of 5 and at least 100 reviews."

### Data extracted

| Field | Example |
|-------|---------|
| `profile_id` | `215783` |
| `entity_type` | `"doctor"` or `"clinic"` |
| `name` | `"Dra. Nuria Pey Tena-Dávila"` |
| `url` | `"https://www.doctoralia.es/perfil/nuria-pey-tena-davila-2"` |
| `specialties` | `["Dentista", "Dentista infantil"]` |
| `specialty_details` | Treatments listed on the card, such as `"Ortodoncia, Implantología"` |
| `practice_name` | `"Centro medico janos"` |
| `address`, `city`, `province` | `"Calle Alcalá 78"`, `"Madrid"`, `"Madrid"` |
| `latitude`, `longitude` | `40.4228287`, `-3.6797495` |
| `address_count` | Number of in-person addresses on the card |
| `rating`, `review_count` | `5`, `67` |
| `services` | Service lines with `name`, `price_text`, `price_from`, `currency`, `is_free`, `is_online` |
| `price_from`, `currency` | Lowest numeric price on the card, such as `100`, `"EUR"` |
| `online_consultation` | True when the card shows an online consultation |
| `online_booking` | True when the card offers online booking |
| `profile_confirmed`, `promoted` | Flags the card shows |
| `phone` | Public practice phone, only when the card shows one |
| `photo_url` | Photo address, when the card shows a photo |
| `list_specialty`, `list_city`, `list_url`, `page`, `rank` | Where the card was found |
| `scraped_at` | `"2026-11-07T08:00:00Z"` |

Fields that the card does not show are returned empty (null). Prices are in euros as the site shows them.

### Pricing

Pay-per-event pricing. You pay only for profiles that were saved to the dataset.

| Event | Price |
|-------|-------|
| Actor start (`actor-start`) | $0.001 per run |
| Profile scraped (`profile-result`) | $0.0025 per profile ($2.50 per 1,000) |

The start event is charged once per run, together with the first saved profile. A run that returns nothing is not charged. If you set a maximum cost per run, the actor stops before it goes over that limit.

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `specialties` | string\[] | Specialty as written in the Doctoralia address, for example `dentista`, `ginecologo`, `medico-general`. Accents and spaces are accepted. | `dentista` when everything is empty |
| `cities` | string\[] | City as written in the address, for example `madrid`, `barcelona`. Needs at least one specialty. Without a city the Spain-wide list of the specialty is read. | `madrid` when everything is empty |
| `startUrls` | string\[] | List addresses of the form `https://www.doctoralia.es/<specialty>/<city>`, with an optional `?page=N`. Other addresses are refused. | none |
| `maxItems` | integer | Most profiles to return across all lists. 0 uses 40. | `40` |
| `maxPages` | integer | Most list pages to read for each list. 0 uses 10. | `10` |

### Usage examples

#### Dentists in two cities

```json
{
  "specialties": ["dentista"],
  "cities": ["madrid", "barcelona"],
  "maxItems": 100
}
```

#### Two specialties in one city

```json
{
  "specialties": ["dentista", "ginecologo"],
  "cities": ["valencia"],
  "maxItems": 60,
  "maxPages": 3
}
```

#### A list address

```json
{
  "startUrls": ["https://www.doctoralia.es/dentista/madrid"],
  "maxItems": 20
}
```

### Output

Results are saved to the default dataset. Export them as JSON, CSV or Excel, or read them through the API.

Sample record:

```json
{
  "profile_id": 215783,
  "entity_type": "doctor",
  "name": "Dra. Nuria Pey Tena-Dávila",
  "url": "https://www.doctoralia.es/perfil/nuria-pey-tena-davila-2",
  "specialties": ["Dentista", "Dentista infantil"],
  "specialty_details": "Odontología estética, Atm y oclusión, Implantología, Ortodoncia",
  "practice_name": "Centro medico janos",
  "address": "Calle Alcalá 78",
  "city": "Madrid",
  "province": "Madrid",
  "latitude": 40.4228287,
  "longitude": -3.6797495,
  "address_count": 1,
  "rating": 5,
  "review_count": 67,
  "services": [{"name": "Primera visita Odontología", "price_text": "Servicio gratuito", "price_from": 0, "currency": null, "is_free": true, "is_online": false}],
  "price_from": null,
  "online_consultation": false,
  "online_booking": true,
  "list_specialty": "dentista",
  "list_city": "madrid",
  "page": 1,
  "rank": 1
}
```

### Limitations

- Only the list pages `/<specialty>/<city>` are read. Profile pages, search pages and review pages are not opened, so opening hours, full price lists and review texts are not collected.
- Patient reviews are never collected. You get the star rating and the number of reviews only.
- A card shows what the doctor or clinic published. Prices, coordinates, photos and phone numbers are often missing, and a phone number is only returned when the card shows one.
- When a doctor has several addresses, the address fields hold the first in-person address and `address_count` tells how many there are.
- The specialty and city must match the names in the Doctoralia address. A name that does not exist returns no profiles.
- The lists are in the site's own order, which can put highlighted cards first.
- If the site refuses every request, the run fails and nothing is charged.

### FAQ

**Which pages does it read?**
The list pages of doctoralia.es in the form `/<specialty>/<city>` and their further pages. It does not use the site search.

**How do I find the specialty and city names?**
Open a list on doctoralia.es and copy the two words from the address, for example `dentista` and `madrid`.

**How many profiles do I get per list?**
About 20 per page. Use `maxPages` and `maxItems` to choose how many to read.

**What happens when a profile appears on two pages?**
It is returned once.

**Are patient reviews included?**
No. Only the rating and the review count shown on the card.

**What does a run cost?**
The start price plus the price per profile, see the pricing table.

**What status does a run end with?**
The run status says how many profiles were delivered. If nothing matched, the run ends normally and says so. If the site refuses every request, the run fails and nothing is charged.

# Actor input Schema

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

Medical specialty as it appears in the Doctoralia address, for example dentista, ginecologo or medico-general. Accents and spaces are fine. Leave all lists empty to read dentists in Madrid.

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

City as it appears in the Doctoralia address, for example madrid, barcelona or palma-de-mallorca. Every city is combined with every specialty. Without a city the Spain-wide list of the specialty is read.

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

List pages such as https://www.doctoralia.es/dentista/madrid. Only addresses of the form /specialty/city (with an optional ?page=N) are accepted; search, profile and other pages are refused.

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

Most profiles to return across all lists. 0 or empty uses 40.

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

Most list pages to read for each list (about 20 profiles per page). 0 or empty uses 10.

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

Connection settings. The default works for most runs; the actor chooses the level it needs.

## Actor input object example

```json
{
  "specialties": [
    "dentista"
  ],
  "cities": [
    "madrid"
  ],
  "maxItems": 40,
  "maxPages": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing one record per doctor or clinic

# 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 = {
    "specialties": [
        "dentista"
    ],
    "cities": [
        "madrid"
    ],
    "maxItems": 40,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/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 = {
    "specialties": ["dentista"],
    "cities": ["madrid"],
    "maxItems": 40,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/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 '{
  "specialties": [
    "dentista"
  ],
  "cities": [
    "madrid"
  ],
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call santamaria-automations/doctoralia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,santamaria-automations/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/DVQg73bW5UZhfJ0wG/builds/0Julv7PIRNFAsL7jG/openapi.json
