Filters (facets)
Everything you need to build filter menus: regions, categories, price and length ranges, with counts.
GEThttps://baydaarexperiences.com/api/v1/facets
Counts are over all published trips and update as the team adds trips, so build your filters from this rather than hard-coding regions. Pass a returned regions[].name to region on List trips.
| Parameter | Type | Description |
|---|---|---|
total_trips / available_trips | integer | Published trips, and how many are not sold out. |
categories, regions, locations, experience_types | array | [{ name, trips }], most trips first. |
price_per_person_pkr | object | { min, max }. |
duration_days | object | { min, max }. |
next_departure | date | null | The soonest departure across all trips. |