Hello! I cannot filter data with “price_category”
When I insert “price_category::150” in “categories_filter” then “applied_filters:” is [] 0 items.
If I insert “distance::10000” in “categories_filter” then “applied_filters:” is [] 1 items.
Please check if you can improve that issue?
ディスカッションに参加しましょう-以下にコメントを追加してください:
Aha, now is OK, A lot of thanks!
Hello,
You should check the “base_filters” object returned in …/v2/list endpoint. The id is “price”. The format is as following :
1/ Price range :
…&categories_filter=price::USD-50-150
2/ Set max price only :
…&categories_filter=price::USD-min-150
3/ Set min price only :
…&categories_filter=price::USD-50-max
Regards.
https://rapidapi.com/apidojo/api/booking
url = “https://apidojo-booking-v1.p.rapidapi.com/properties/v2/list”
querystring = {“offset”:“0”,“arrival_date”:“2024-07-01”,“departure_date”:“2024-07-11”,“guest_qty”:“1”,“dest_ids”:"-3712125",“room_qty”:“1”,“search_type”:“city”,“price_filter_currencycode”:“USD”,“languagecode”:“en-us”,“units”:“metric”,“timezone”:“Asia/Bangkok”,“categories_filter”:“price_category::150,distance::1000”}
headers = {
“X-RapidAPI-Key”: “you key”,
“X-RapidAPI-Host”: “apidojo-booking-v1.p.rapidapi.com”
}
response = requests.get(url, headers=headers, params=querystring)
Hello,
Please paste the full URL here to get help.
Regards