A filter is associated with a sport place's activity. As opposed to tags which are boolean, their value must be either numerical, or one of the pre-defined string values.
Ex: How long is this kayaking track? becomes What is the value of the distance
filter?
Each filter has to be linked to a sport before being associated with a sport place's activity. Here's the full list of available filters.
cellphone_service
courts
(number of courts)court_size
difficulty
distance
(meters)duration
(meters)elevation_gain
(meters)equipment
field_size
modality
number_holes
pool_size
quality
ring_size
rink_size
track_size
age
: Adults, Kids, Teenagerscamping_accomodation
: RV, Tentsseason
: Fall, Spring, Summer, Wintersurface
: clay, sand, etc.swim_area
: Beach, Lake, Open Water, Pooltype_of_place
: club, hospital, hotel, public residence, school
The full list by sport is also available through this dashboard.
If you want new filters that aren't part of the list, please submit them to [email protected].Ex: depth
curl "https://sportplaces.api.decathlon.com/api/v1/sports/186/filters"
JSON response:
[
"size",
"quality"
]
Retrieves a list of allowed filter names for a particular sport.
GET https://sportplaces.api.decathlon.com/api/v1/sports/SPORT_ID/filters
curl -X POST \
https://sportplaces.api.decathlon.com/api/v1/sports/186/filters \
-H 'Authorization: Bearer XXXXXX' \
-d '{"slug": "difficulty"}'
JSON response:
[
"size",
"quality",
"difficulty"
]
Adds a new filter to the allowed list for a specified sport.
POST https://sportplaces.api.decathlon.com/api/v1/sports/SPORT_ID/filters