# Doctolib scraper (`giovannibiancia/doctolib-scraper`) Actor

Extract medical professionals data from Doctolib.fr, Doctolib.it, and Doctolib.de. Scrapes doctor profiles, contact information, specializations, and clinic details across France, Italy, and Germany. Supports multiple cities, professions, and automated pagination with structured JSON output.

- **URL**: https://apify.com/giovannibiancia/doctolib-scraper.md
- **Developed by:** [Giovanni Bianciardi](https://apify.com/giovannibiancia) (community)
- **Categories:** Automation, Lead generation
- **Stats:** 77 total users, 4 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

from $30.00 / 1,000 doctor scrapeds

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

## Apify Actor for Doctolib Data Scraping

Optimize your data extraction from Doctolib with our advanced Apify actor, designed for scraping comprehensive information about healthcare professionals and medical facilities.

### 💡 Before you run this scraper

<p align="center">
  <a href="https://bananalitycs.com/datasets?utm_actor=doctolib" target="_blank">
    <img src="https://bananalitycs.com/banana_thinking.png" width="180"/>
  </a>
</p>

<p align="center">
  Some datasets like this one are already available <strong>ready-to-use</strong> on
  <a href="https://bananalitycs.com/datasets?utm_actor=doctolib"><strong>bananalitycs.com</strong></a> — download instantly or request custom delivery.
</p>

<p align="center">
  <a href="https://bananalitycs.com/datasets?utm_actor=doctolib" target="_blank">
    <img src="https://img.shields.io/badge/🗂️%20Browse%20Datasets-bananalitycs.com-4CAF50?style=for-the-badge"/>
  </a>
  &nbsp;
  <a href="https://bananalitycs.com/done-for-you?utm_actor=doctolib" target="_blank">
    <img src="https://img.shields.io/badge/🤝%20Done%20For%20You-Custom%20Delivery-6C63FF?style=for-the-badge"/>
  </a>
</p>

<p align="center">
  <strong>🔔 Coming soon:</strong> an automatically refreshed, always up-to-date version of this dataset via
  <a href="https://bananalitycs.com/datasets?utm_actor=doctolib"><strong>bananalitycs.com</strong></a>. Not live yet — enter your email in the actor input above and we'll notify you when it ships.
</p>

### Usage Instructions

#### Input Parameters

- **City**: Specify the list of cities to scrape.
- **Professions**: Specify the list of medical professions/specialties to scrape.

#### Output Data

The Apify actor for Doctolib produces JSON files containing detailed healthcare professional information, including:

##### Basic Information

- **nome**: Doctor/facility name
- **profile_url**: Direct link to the professional's Doctolib profile
- **id**: Unique practice/establishment identifier
- **immagine**: Profile image URL
- **tipo**: Type of provider (medico, ospedale, etc.)
- **city**: Location city
- **doctor_name**: Full name of the healthcare professional
- **doctor_subtitle**: Professional title/specialty

##### Location Details

- **places**: Array of practice locations with:
  - **address**: Full street address
  - **city**: City name
  - **zipcode**: Postal code
  - **latitude**: Geographic latitude coordinate
  - **longitude**: Geographic longitude coordinate
  - **phone**: Contact phone number
- **main_address**: Primary practice address
- **main_phone**: Primary contact number

##### Professional Information

- **practitioner_id**: Unique practitioner identifier
- **practitioner_name**: Doctor's full name
- **practitioner_speciality**: Medical specialty
- **specialities**: Array of all specialties offered, including:
  - **id**: Specialty identifier
  - **name**: Specialty name (e.g., "Médecin généraliste", "Psychologue")
  - **slug**: URL-friendly specialty identifier
  - **kind**: Category type (medical, paramedical, official)

##### Booking & Services

- **has_online_booking**: Online appointment availability
- **telehealth_available**: Video consultation availability
- **agendas**: Array of available booking schedules with:
  - **agenda_id**: Schedule identifier
  - **speciality_id**: Associated specialty
  - **practitioner_id**: Associated practitioner
  - **booking_disabled**: Booking availability status
  - **visit_motive_count**: Number of available appointment types
- **visit_motives**: Array of appointment types available (e.g., "Consultation de suivi", "Dépistage VIH/IST")
- **visit_categories**: Categorized appointment types
- **vaccination_motives**: Available vaccination services

#### Example Output

```json
[
  {
    "nome": "Centre de santé sexuelle - Le 190",
    "profile_url": "https://www.doctolib.fr/centre-de-sante/paris/cds-190?pid=practice-58081",
    "id": "practice-58081",
    "immagine": "https://media.doctolib.com/image/upload/q_auto:eco,f_auto,dpr_2/w_62,h_62,c_fill,g_face/uhf09k73j9ndwe2irtbp",
    "tipo": "ospedale",
    "city": "paris",
    "doctor_name": "Centre de santé sexuelle - Le 190",
    "doctor_subtitle": "Centre de santé",
    "practitioner_name": "Dr Thibault Orriere",
    "practitioner_speciality": "Médecin généraliste",
    "places": [
      {
        "practice_name": "Centre de santé sexuelle - Le 190",
        "city": "Paris",
        "zipcode": "75011",
        "address": "2 Impasse de la Baleine",
        "latitude": 48.86752509999999,
        "longitude": 2.377154700000006,
        "phone": "01 55 25 32 72"
      }
    ],
    "main_address": "2 Impasse de la Baleine, 75011 Paris",
    "main_phone": "01 55 25 32 72",
    "has_online_booking": true,
    "telehealth_available": true,
    "visit_motives": [
      "Suivi VIH",
      "Suivi PrEP",
      "Dépistage VIH/IST et/ou commencer la PrEP",
      "Remise des résultats",
      "Urgence IST : symptômes, résultat positif, cas contact"
    ],
    "specialities": [
      {
        "id": 2,
        "name": "Médecin généraliste",
        "slug": "medecin-generaliste",
        "kind": "medical"
      },
      {
        "id": 14,
        "name": "Psychologue",
        "slug": "psychologue",
        "kind": "official"
      }
    ],
    "agendas": [
      {
        "agenda_id": 149704,
        "practice_id": 58081,
        "speciality_id": 2,
        "practitioner_id": 11184257,
        "booking_disabled": false,
        "phone": "01 55 25 32 72",
        "visit_motive_count": 4
      }
    ]
  }
]
```

By using this optimized Apify actor, you can efficiently gather and utilize extensive data on healthcare professionals from Doctolib, enhancing your healthcare data projects and analysis capabilities.

# Actor input Schema

## `email` (type: `string`):

Enter your email if you'd like to be notified when the data you extracted changes or gets updated. This automatic update service (via bananalitycs.com) isn't live yet — we're just gauging interest.

## `nation` (type: `string`):

Choose the nation for scraping.

## `profession` (type: `string`):

Choose the profession for scraping.

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

Enter the cities for scraping, separated by commas.

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

pages to which to scrape to

## `start_page` (type: `integer`):

Page number to start scraping from (optional, defaults to 1).

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

Configure Apify proxy (recommended for Doctolib)

## Actor input object example

```json
{
  "nation": "fr",
  "profession": "infectivelogue",
  "cities": [
    "paris"
  ],
  "max_pages": 1
}
```

# 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 = {
    "nation": "fr",
    "profession": "infectivelogue",
    "cities": [
        "paris"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("giovannibiancia/doctolib-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 = {
    "nation": "fr",
    "profession": "infectivelogue",
    "cities": ["paris"],
}

# Run the Actor and wait for it to finish
run = client.actor("giovannibiancia/doctolib-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 '{
  "nation": "fr",
  "profession": "infectivelogue",
  "cities": [
    "paris"
  ]
}' |
apify call giovannibiancia/doctolib-scraper --silent --output-dataset

```

## MCP server setup

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