Hotels

भुगतान किया गया
Verified
द्वारा Api Dojo | अपडेट किया गया एक महीने पहले | Travel
लोकप्रियता

9.8 / 10

लेटेंसी

2,287ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

problem with properties/list

Rapid account: Voropaevas 94
voropaevas94
एक वर्ष पहले

when I use properties/list, I constantly get a 204 response. Tell me please, what am I doing wrong? Can someone write me a request with a 200 response?

my request:

import requests

url = “https://hotels4.p.rapidapi.com/properties/list

querystring = {“destinationId”:“1506246”,“pageNumber”:“1”,“pageSize”:“25”,“checkIn”:“2023-03-10”,“checkOut”:“2023-03-15”,“adults1”:“1”,“sortOrder”:“PRICE”,“locale”:“en_US”,“currency”:“USD”}

headers = {
“X-RapidAPI-Key”: “my_key”,
“X-RapidAPI-Host”: “hotels4.p.rapidapi.com
}

response = requests.request(“GET”, url, headers=headers, params=querystring)

print(response.text)

Rapid account: Apidojo
apidojo Commented एक वर्ष पहले

Hello,

Don’t you see “(Deprecated)” noted next to the endpoint? Open you eyes, and read everything with CARE that would definitely help you.
You need to use the …/v2/… instead.

Regards.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें