π»Free Hotel API
This is the free hotel API that anyone can access. Using this Hotel API you will get JSON data with hotel pricing from multiple vendors for any random future date.
Guide
Parameters
Description
Usage
curl -X GET \
-H "Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1MTc2NzczNjAsImlkZW50aXR5IjozLCJuYmYiOjE1MTc2NzczNjAsImV4cCI6MTUxNzY3OTE2MH0.ytSqQj3VDymEaJz9EIdskWELwDQZRD1Dbo6TuHaPz9U" \
https://api.makcorps.com/free/london
import requests
url = 'https://api.makcorps.com/free/london'
headers = {
'Authorization': 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1MTc2NzczNjAsImlkZW50aXR5IjozLCJuYmYiOjE1MTc2NzczNjAsImV4cCI6MTUxNzY3OTE2MH0.ytSqQj3VDymEaJz9EIdskWELwDQZRD1Dbo6TuHaPz9U'
}
response = requests.get(url, headers=headers)
# Print the response
print(response.json())
const axios = require('axios');
const url = 'https://api.makcorps.com/free/london';
const headers = {
'Authorization': 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1MTc2NzczNjAsImlkZW50aXR5IjozLCJuYmYiOjE1MTc2NzczNjAsImV4cCI6MTUxNzY3OTE2MH0.ytSqQj3VDymEaJz9EIdskWELwDQZRD1Dbo6TuHaPz9U'
};
axios.get(url, { headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
Response
[
{
"hotelName": "ITC Grand Central, Mumbai - a Luxury Collection Hotel",
"hotelId": "503409"
},
[
{
"price1": "180",
"tax1": "27",
"vendor1": "Booking.com"
},
{
"price2": "180",
"tax2": "27",
"vendor2": "Hotels.com"
},
{
"price3": "182",
"tax3": "29",
"vendor3": "StayForLong"
},
{
"price4": "153",
"tax4": "0",
"vendor4": "Priceline"
}
]
],
[
{
"hotelName": "Bloom Hotel - Worli",
"hotelId": "23526565"
},
[
{
"price1": "78",
"tax1": "8",
"vendor1": "Booking.com"
},
{
"price2": "77",
"tax2": "0",
"vendor2": "Priceline"
},
{
"price3": "86",
"tax3": "9",
"vendor3": "Trip.com"
},
{
"price4": null,
"tax4": null,
"vendor4": "Vio.com"
}
]
],
[
{
"hotelName": "Bloom Hotel - Juhu",
"hotelId": "23337279"
},
[
{
"price1": "72",
"tax1": "8",
"vendor1": "Booking.com"
},
{
"price2": "90",
"tax2": "10",
"vendor2": "Hotels.com"
},
{
"price3": "94",
"tax3": "13",
"vendor3": "StayForLong"
},
{
"price4": "79",
"tax4": "8",
"vendor4": "Trip.com"
}
]
],
[
{
"hotelName": "The Oberoi Mumbai",
"hotelId": "304225"
},
[
{
"price1": "204",
"tax1": "31",
"vendor1": "Booking.com"
},
{
"price2": "204",
"tax2": "31",
"vendor2": "Hotels.com"
},
{
"price3": "209",
"tax3": "35",
"vendor3": "StayForLong"
},
{
"price4": "173",
"tax4": "0",
"vendor4": "Priceline"
}
]
],
[
{
"hotelName": "Radisson Blu Mumbai International Airport",
"hotelId": "21362523"
},
[
{
"price1": "202",
"tax1": "31",
"vendor1": "Booking.com"
},
{
"price2": "202",
"tax2": "31",
"vendor2": "Hotels.com"
},
{
"price3": "202",
"tax3": "31",
"vendor3": "Expedia.com"
},
{
"price4": "171",
"tax4": "0",
"vendor4": "Priceline"
}
]
],
[
{
"hotelName": "The Fern - Goregaon",
"hotelId": "11774410"
},
[
{
"price1": "223",
"tax1": "34",
"vendor1": "Hotels.com"
},
{
"price2": "220",
"tax2": "20",
"vendor2": "StayForLong"
},
{
"price3": "180",
"tax3": "28",
"vendor3": "Trip.com"
},
{
"price4": "165",
"tax4": "25",
"vendor4": "Agoda.com"
}
]
],Understand the Response
Properties
Description