We do queries like:
const options = {
method: ‘GET’,
url: ‘https://travel-advisor.p.rapidapi.com/hotels/list-in-boundary’,
params: {
bl_latitude: ‘37.402179’,
bl_longitude: ‘25.29961’,
tr_longitude: ‘25.462086’,
tr_latitude: ‘37.500627’,
offset: ‘30’,
limit: ‘30’,
currency: ‘EUR’
},
headers: {…
We get data but then sometimes we get this:
{
“data”: [],
“status”: {
“unfiltered_total_size”: “0”,
“commerce_country_iso_code”: “US”,
“autobroadened”: false,
“progress”: “0”,
“auction_key”: “504f98b3e0c443a48c4d25564e160c75”,
“pricing”: “base”
},
“paging”: {
“results”: “0”,
“total_results”: “0”
}
}
Join in the discussion - add comment below:
Hello,
You should place the lat,lng on google map to check the location. In addition, the endpoint was deprecated one year ago. There is …/hotels/v2/list endppoint.
Regards.