# Doctolib Practitioner Profile API Documentation

Open one public practitioner profile by its Doctolib path. Use profile_path from a search hit unchanged. Returns the profile, practice places, opening hours, services, public fees and legals. Pass the three availability_ids from the same search hit to fill next_slot with a real ISO 8601 slot. Without them the availability summary gives a reason. Costs 1 credit.

- **Documentation:** [https://scrappa.co/docs/doctolib-api/doctolib_practitioner](https://scrappa.co/docs/doctolib-api/doctolib_practitioner)
- **API group:** Doctolib API
- **Endpoint:** `GET https://scrappa.co/api/doctolib/practitioner`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `slug` | string | Yes | Public profile path from a search hit profile_path, e.g. hautarzt/berlin/jazmin-serna-berlin. A trailing .json is accepted. |
| `visit_motive_id` | integer | No | From availability_ids of a search hit. Optional. |
| `agenda_ids[]` | array | No | From availability_ids of a search hit. Repeat the parameter. Optional. |
| `practice_id` | integer | No | From availability_ids of a search hit. Optional. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/doctolib/practitioner?slug=praxis%2Fberlin%2Fcuravie-gmbh&visit_motive_id=15262320&agenda_ids%5B0%5D=2334737&agenda_ids%5B1%5D=2478448&practice_id=737565"
```

## Example response

```json
{
    "success": true,
    "data": {
        "profile": {
            "id": 0,
            "name_with_title": ""
        },
        "places": [],
        "services": [],
        "opening_hours": [],
        "availability": {
            "slots": [
                "2026-11-18T08:00:00.000+01:00"
            ],
            "total": 1,
            "next_slot": "2026-11-18T08:00:00.000+01:00",
            "reason": null
        }
    },
    "meta": {
        "billable": true,
        "duration_ms": 123.45
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Invalid Request | Use a public profile path. Not billable. |
| 502 | Upstream Unavailable | The profile could not be read. Not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
