# Doctolib Doctor Scraper (`datascrapers/doctolib-scraper`) Actor

Scrape doctor profiles, availability, and practice details from Doctolib.de — Germany's largest medical appointment platform. Search by specialty, location, insurance type, and languages spoken.

- **URL**: https://apify.com/datascrapers/doctolib-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 profiles

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

**Doctolib Doctor Scraper** creates a structured dataset of practices and practitioners collected from Doctolib in Germany. Each dataset item is one profile and can include the profile id, practice id, practice or practitioner name, speciality, address, city, coordinates, insurance sector, languages, and whether online booking is offered. Profile details are added only when that input is turned on. Query the source with a speciality and a city, or with a Doctolib search URL. Limit results with `maxItems`. Retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, or XML.

[![Doctolib Doctor Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/doctolib-scraper/doctolib-scraper-value-demo.gif)](https://apify.com/datascrapers/doctolib-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | Doctolib.de |
| Record unit | One practice or practitioner profile |
| Input methods | Speciality search plus location, or a search URL |
| Main identifiers | `profileId`, `practiceId`, `url` |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML, RSS |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 profiles |

### Coverage and available records

The search prefill is `augenheilkunde`, `orthopadie`, and `hautarzt`, with location `Berlin`. `insuranceSector` accepts `all`, `public`, and `private`. `getDetailedInfo` defaults to false. `maxItems` at `0` means no cap. The prefill is 20.

A stored sample is an organization profile for an orthopaedic practice, speciality Orthopäde und Unfallchirurg, in Stuttgart, private insurance, German and English, accepting new patients, with online booking. Individual profiles can also include a personal name and title. The Actor collects public Doctolib profiles. It does not create a booking.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| profileId | string | no | Doctolib profile id. Use this with `practiceId` to deduplicate | 220370 |
| practiceId | string | yes | Practice id | 642348 |
| name | string | yes | Practice or practitioner name shown on the profile | Sport+ Orthopädie+ Waiblingen |
| type | string | yes | ORGANIZATION or INDIVIDUAL_PRACTITIONER | ORGANIZATION |
| speciality | string | yes | Speciality label | Orthopäde und Unfallchirurg |
| specialitySlug | string | yes | Speciality key | orthopadie |
| address | string | yes | Street | Fritz-Walter-Weg 19 |
| zipcode | string | yes | Postal code | 70372 |
| city | string | yes | City | Stuttgart |
| fullAddress | string | yes | Street, postal code, and city | Fritz-Walter-Weg 19, 70372 Stuttgart |
| latitude | number | yes | Latitude | 48.7928372 |
| longitude | number | yes | Longitude | 9.2358564 |
| url | string | yes | Public profile URL | https://www.doctolib.de/gemeinschaftspraxis/waiblingen/sport-orthopaedie-waiblingen?pid=practice-642348 |
| insuranceSector | string | yes | Private, public, or both as labeled | Private |
| languages | array | yes | Languages on the profile | \["German", "English"] |
| acceptsNewPatients | boolean | yes | New-patient flag | true |
| hasOnlineBooking | boolean | yes | Online booking flag | true |
| visitMotiveName | string | yes | A bookable visit reason | Neupatient:in Erstuntersuchung |
| minimumFee | number | yes | Minimum fee when the source sends one | null |

Deduplicate on `profileId` and `practiceId`. A personal name, title, and gender are present only on individual profiles.

### Example dataset record

```json
{
  "profileId": "220370",
  "practiceId": "642348",
  "name": "Sport+ Orthopädie+ Waiblingen",
  "type": "ORGANIZATION",
  "speciality": "Orthopäde und Unfallchirurg",
  "specialitySlug": "orthopadie",
  "address": "Fritz-Walter-Weg 19",
  "zipcode": "70372",
  "city": "Stuttgart",
  "fullAddress": "Fritz-Walter-Weg 19, 70372 Stuttgart",
  "latitude": 48.7928372,
  "longitude": 9.2358564,
  "url": "https://www.doctolib.de/gemeinschaftspraxis/waiblingen/sport-orthopaedie-waiblingen?pid=practice-642348",
  "insuranceSector": "Private",
  "languages": ["German", "English"],
  "acceptsNewPatients": true,
  "hasOnlineBooking": true,
  "visitMotiveName": "Neupatient:in Erstuntersuchung",
  "minimumFee": null
}
```

This record came from an orthopaedics search. The stored city is Stuttgart even when the console location prefill is Berlin, because the result set can extend past the typed city.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | \[] | speciality text | Prefill is three specialities |
| searchUrls | array | no | \[] | Doctolib search URLs | Direct search pages |
| location | string | no | Berlin | city | Prefill is `Berlin` |
| insuranceSector | string | no | all | all, public, private | Insurance filter |
| languages | array | no | \[] | language labels | Spoken languages |
| availabilitiesBefore | integer | no | 0 | days | Availability window |
| getDetailedInfo | boolean | no | false | true, false | Fetch the full profile |
| maxItems | integer | no | 0 | 0 or a positive integer | Cap. Prefill is 20 |
| proxyConfiguration | object | no | Apify residential | Apify proxy object | Proxy used for the request |

Minimal request:

```json
{ "searchQueries": ["orthopadie"], "location": "Berlin", "maxItems": 5 }
```

### Retrieve the data through the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/doctolib-scraper").call(
    run_input={"searchQueries": ["orthopadie"], "location": "Berlin", "maxItems": 5}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["profileId"], item["city"], item["speciality"])
```

### Data quality and record handling

The folder price is $1.50 per 1,000 profiles. The current code saves each profile with `push_data` and does not call a charge event, so a run can finish with records and no `dataset-item` charges until the code charges that event. `type` separates organizations from individual practitioners. `minimumFee` is null when the source omits it. Deduplicate on `profileId` and `practiceId`.

### Pricing and cost examples

The folder file sets $1.50 per 1,000 profiles on every plan. The console event name is `dataset-item`. Apify platform usage is billed separately. These estimates apply when the Actor charges that event.

| Records | Estimated event cost |
|---:|---:|
| 1,000 profiles | $1.50 |
| 10,000 profiles | $15.00 |

### Limitations and responsible data use

Profiles, languages, and booking flags change on Doctolib. A row is the public profile at run time. Individual profiles include a person's professional name. Use those fields in line with Doctolib's terms and applicable health-privacy rules. This is not a historical archive unless you store the dataset yourself. The Actor does not book care and is not a medical directory of record.

### Dataset questions

#### What does one dataset item represent?

One Doctolib practice or practitioner profile.

#### Which field should I use as a unique identifier?

Use `profileId` with `practiceId`.

#### Are fields nullable or conditional?

`minimumFee` is often null. Personal name and title appear on individual profiles and stay empty on organization profiles.

#### Can I retrieve the records as CSV or JSON?

Yes. Export the dataset as JSON, CSV, Excel, XML, or RSS, or read it from the Dataset API.

#### What counts as a billable result?

The folder price is one result per saved profile. The code does not currently emit the `dataset-item` charge, so check the run's charge count before you rely on it.

### Related datasets from Data Scrapers

- [Yelp Scraper](https://apify.com/datascrapers/yelp-scraper) for public business profiles and ratings.
- [hipages Australia Scraper](https://apify.com/datascrapers/hipages-au-scraper) for trade-business profiles.
- [Company Service Finder](https://apify.com/datascrapers/company-service-finder) for company and service records.

### Data Scrapers support

Need an additional field, record type, or export workflow? Contact Data Scrapers at stardustspotlight@gmail.com. Include a sample source URL, required fields, expected record volume, and preferred delivery format.

# Actor input Schema

## `searchQueries` (type: `array`):

Medical speciality keywords to search for (e.g. augenheilkunde, orthopadie, hautarzt, allgemeinmedizin). Use the slug format from Doctolib.

## `searchUrls` (type: `array`):

Full Doctolib search URLs (e.g. https://www.doctolib.de/search?insuranceSector=public\&keyword=orthopadie\&location=berlin). Overrides searchQueries and location when provided.

## `location` (type: `string`):

City or region to search in (e.g. Berlin, München, Hamburg). Used with searchQueries — ignored when searchUrls is provided.

## `insuranceSector` (type: `string`):

Filter by insurance sector

## `languages` (type: `array`):

Filter doctors by languages they speak. Leave empty for no language filter. Available options: de, gb, ar, cn, es, fr, it, jp, pl, ro, ru, tr, ua.

## `availabilitiesBefore` (type: `integer`):

Show only doctors with appointments available within this many days (0 = any time)

## `getDetailedInfo` (type: `boolean`):

When enabled, fetches full profile details for each doctor including bio, skills, website, phone number, addresses, opening hours, and availability calendar. This requires additional API calls per doctor and is slower.

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

Maximum number of doctor records to scrape (0 = unlimited)

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

Proxy settings for anti-bot protection

## Actor input object example

```json
{
  "searchQueries": [
    "augenheilkunde",
    "orthopadie",
    "hautarzt"
  ],
  "searchUrls": [],
  "location": "Berlin",
  "insuranceSector": "all",
  "languages": [],
  "availabilitiesBefore": 0,
  "getDetailedInfo": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset containing scraped doctor profiles

## `kvsRecords` (type: `string`):

Key-value store records produced by the Actor

# 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 = {
    "searchQueries": [
        "augenheilkunde",
        "orthopadie",
        "hautarzt"
    ],
    "searchUrls": [],
    "location": "Berlin",
    "languages": [],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/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 = {
    "searchQueries": [
        "augenheilkunde",
        "orthopadie",
        "hautarzt",
    ],
    "searchUrls": [],
    "location": "Berlin",
    "languages": [],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/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 '{
  "searchQueries": [
    "augenheilkunde",
    "orthopadie",
    "hautarzt"
  ],
  "searchUrls": [],
  "location": "Berlin",
  "languages": [],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/doctolib-scraper --silent --output-dataset

```

## MCP server setup

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