Get current user
Automatically get current user on doctolib.fr. Report which Doctolib patient account this browser is signed in as: email and name from the account page. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Doctolib scripts.
Input
None
Output
loggedIn requiredname optionalemail optionalFAQ
Search Doctolib practitioners
Search Doctolib practitioners by specialty and location. Returns total, page, and providers with full_name, specialty, address, sector, payment_means, languages, telehealth, online_booking, matched_visit_motive, and profile_path. There are 20 providers per page and the order is server-ranked; profile_path (including ?pid=practice-N) is the join key for get_practitioner and list_slots.
List Doctolib slots
List a Doctolib practitioner's bookable appointment slots over the next N days for a given visit motive. Returns name, motive, bookable, availabilities (slots by day), total, next_slot, visit_motives, and booking_url. A practitioner can expose several motives sharing one name across practices, so pass motive_id to target one exactly; booking_url only opens the funnel, there is no per-slot deep link.
Doctolib location autocomplete
Resolve free-text location input (city, neighborhood, street) to Doctolib's own place suggestions. Use this before search_practitioners when a plain city name silently resolves to the wrong place (e.g. "Nantes" free text can server-side-match an unrelated city) — pick a suggestion's city/label and pass that into search_practitioners.location instead of raw user input. Does not return the internal URL slug (Doctolib assigns some slugs a disambiguating numeric suffix that isn't derivable from the label alone) — only the city name/label as Doctolib itself would display it.
