t Hotel API Documentation| Using City Name NAV Navbar
Logo
shell
t

This API will generate all the rooms with prices

Introduction

Welcome to Hotel price Comparison API Documentation. Our API is organized around GET Requests. You can use our API to get information for International Hotel Prices in dollars

Authentication

curl --request POST \
  --url 'https://api.makcorps.com/auth' \
  --header 'Content-Type: application/json' \
  --data '{
	"username":"franklin",
	"password":"franklin@123"
}'

JSON Response:

{
"access_token": 

{"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzJ9.eyJpYXQiOjE1MTc2NzczNjAsImlkZW50aXR5IjozLCJuYmYiOjE1MTc2NzczNjAsImV4cCI6MTUxNzY3OTE2MH0.ytSqQj3VDymEaJz9EIdskWELwDQZRD1Dbo6TuHaPz9U"}

You must have an JWT Token to use the API functions. Complete the registration to get your JWT token.

Your JWT token will expire after every 30 min.So, you have to request for new JWT token after every 30 min.Your JWT token must be included in the every request.

API Functions

Price Status

Purpose

Get Live Prices of hotels in different cities.

Request URL

curl --request GET \ --url https://api.makcorps.com/rooms/v2/checkin/checkout/hotel/location \ --header 'Authorization: JWT jwt_token'

URL Parameters

Parameter Description
hotel Name of the hotel
location Locality of hotel
jwt_token The access token
check_in and check_out ex. check_in = 2018-05-10 and check_out = 2018-05-11.
curl --request GET \
  --url https://custom.makcorps.com/rooms/v2/2020-02-15/2020-02-16/Nasa_Vegas_Hotel/vegas \
  --header 'Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1MTc2NzczNjAsImlkZW50aXR5IjozLCJuYmYiOjE1MTc2NzczNjAsImV4cCI6MTUxNzY3OTE2MH0.ytSqQj3VDymEaJz9EIdskWELwDQZRD1Dbo6TuHaPz9U'

JSON Response:

{
    "comparison": [
       
        {
            "vendor": "Agoda.com",
            "room-type": "Executive Deluxe",
            "room-price": "$42"
        },
        {
            "vendor": "Booking.com",
            "room-type":"Executive Super Deluxe Double Or Twin Room - Non-Refundable - Free Wifi",
            "room-price": "$73"
        },
        {
            "vendor": "ZenHotels.com",
            "room-type": "Executive Double Room (Double Bed) (Bed Type Is Subject To Availability) ",
            "room-price": "$42"
        },
        {
            "vendor": "ZenHotels.com",
            "room-type": "Deluxe Double Room (Double Bed)",
            "room-price": "$42"
        },
        {
            "vendor": "getaroom.com",
            "room-type": "Executive Deluxe",
            "room-price": "$44"
        },
        {
            "vendor": "Agoda.com",
            "room-type": "Deluxe Double",
            "room-price": "$47"
        },
        {
            "vendor": "Agoda.com",
            "room-type": "Executive Super Deluxe",
            "room-price": "$55"
        },
        {
            "vendor": "Agoda.com",
            "room-type": "Room Assigned On Arrival ",
            "room-price": "$56"
        },
        {
            "vendor": "getaroom.com",
            "room-type": "Executive",
            "room-price": "$56"
        },
        {
            "vendor": "Agoda.com",
            "room-type": "Deluxe Double",
            "room-price": "$59"
        },
        {
            "vendor": "getaroom.com",
            "room-type": "Double Or Twin Executive Super Deluxe Double/ Twin",
            "room-price": "$58"
        },
        {
            "vendor": "getaroom.com",
            "room-type": "Deluxe Double",
            "room-price": "$60"
        },
        {
            "vendor": "ZenHotels.com",
            "room-type": "Deluxe Double Room (Double Bed) (Bed Type Is Subject To Availability)",
            "room-price": "$70"
        },
        {
            "vendor": "Expedia.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$81"
        },
        {
            "vendor": "ZenHotels.com",
            "room-type": "Deluxe Double Room (Double Bed)",
            "room-price": "$81"
        },
        {
            "vendor": "Hotels.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$81"
        },
        {
            "vendor": "Orbitz.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$81"
        },
        {
            "vendor": "Travelocity.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$81"
        },
        {
            "vendor": "Expedia.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$131"
        },
        {
            "vendor": "Hotels.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$131"
        },
        {
            "vendor": "getaroom.com",
            "room-type": "Double Or Twin Deluxe Executive",
            "room-price": "$136"
        },
        {
            "vendor": "Orbitz.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$131"
        },
        {
            "vendor": "Travelocity.com",
            "room-type": "Executive Super Deluxe Double Or Twin",
            "room-price": "$131"
        }
    ]
}

Response Codes

The response_code key included in each response contains the status of the result returned.

Codes and their meanings:

Code Description
200 Success.
400 Bad request.A user with that email or username already exists
401 Unauthorized or invalid token.
404 Data couldn’t be loaded on our servers. No data available.
405 Data couldn’t be loaded on our servers. Request couldn’t go through.
500 Unauthorized API Token.
501 Account Expired.
502 Invalid arguments passed.