List Doctolib slots
Input
profile_path requiredRelative path (with ?pid=practice-N) or full profile URL from search_practitioners.profile_path.
days optionalNumber of days to scan from start_date. Default 14.
Default: 14motive optionalVisit-motive name substring (case-insensitive), e.g. 'première consultation', 'vidéo'. If omitted, the first motive by display position is used. Note: a practitioner can expose several motives sharing one name (different practices/agendas) — pass motive_id to disambiguate exactly.
motive_id optionalExact visit-motive id (from search_practitioners.matched_visit_motive.id or this script's visit_motives). Takes precedence over motive; the deterministic way to target one of several same-named motives.
start_date optionalOptional ISO date YYYY-MM-DD lower bound. Defaults to now.
Output
bookable requiredbooking_url requiredEntry point to Doctolib's booking funnel (motive/slot selection happens in-app; no per-slot deep link exists).
profile_path requiredvisit_motives requiredavailabilities requiredDays with at least one slot. Empty if none in window (see next_slot).
name optionaltotal optionalTotal slots in the scanned window.
motive optionalnext_slot optionalNext availability beyond the window when the window is empty; null when slots exist.
