for example:
https://www.airbnb.com/rooms/786955625598555600
returned from:
const axios = require(“axios”);
const options = {
method: ‘GET’,
url: ‘https://airbnb13.p.rapidapi.com/search-location’,
params: {
location: ‘Paris’,
checkin: ‘2023-03-01’,
checkout: ‘2023-03-31’,
adults: ‘1’,
children: ‘0’,
infants: ‘0’,
page: ‘1’
},
headers: {
‘X-RapidAPI-Key’: ‘48574254f1msh4b30d04f1e489edp1cf49ajsn936fc517c19a’,
‘X-RapidAPI-Host’: ‘airbnb13.p.rapidapi.com’
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
Únase a la conversación, añada un comentario a continuación:
Fixed.