💻Hotel API - Search by City Name
In a single API request to this API will return all the hotels in a city with top 4 cheapest vendors.
API endpoint for this API is: https://api.makcorps.com/citysearch
Guide
This API does not require a JWT token because you need your own personal API key to access this API. You can contact us if you need API keys to this API.
Here is the list of default parameters you have to use with this API:
cityname required
Name of the city
page required
It is a page number. It starts with 0 and each page will provide you with 30 hotels.
currency required
It could be any currency like USD, INR, EUR, etc.
num_of_rooms required
It is the number of rooms.
num_of_adults required
It is the number of adults.
check_in_date required
It is the check-in date. Format - YYYY-MM-DD
check_out_date required
It is the check-out date. Format - YYYY-MM-DD
Response
The sample response of the API will look somewhat like this.
Understand the Response
price
Price offered by the vendor
vendor
Name of the vendor
tax
Tax you will be charged at the booking
hotelName
Name of the hotel
hotelId
Id of the hotel in our system
Each call in this pattern to our API will be counted as 1 API request. That means for every request to our API you will get 30 hotels in that target city.
Last updated