Booking

フリーミアム
よって Api Dojo | 更新済み 21日前 | Travel
人気

9.9 / 10

レイテンシー

2,554ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

filtration for price

Rapid account: Chelgora 2
chelgora2
22日前

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?

Rapid account: Chelgora 2
chelgora2 Commented 20日前

Aha, now is OK, A lot of thanks!

Rapid account: Apidojo
apidojo Commented 21日前

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.

Rapid account: Chelgora 2
chelgora2 Commented 21日前

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)

Rapid account: Apidojo
apidojo Commented 22日前

Hello,

Please paste the full URL here to get help.

Regards

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿