Booking

FREEMIUM
By apidojo
Updated 2 months ago
Travel
9.7/10
Popularity Score
2030ms
Latency
99%
Success Rate

Booking API Documentation

Booking API helps to query rooms, price, facilities, policities, etc information from many hotels around the world as on official site.

View API Details
GETproperties/get-static-map
GETproperties/get-rooms
GETproperties/list
GETproperties/get-facilities
GETproperties/get-description
GETproperties/get-policies
GETfilters/list
GETcurrency/get-exchange-rates
GETproperties/get-hotel-photos
GETlocations/auto-complete
GETproperties/get-static-map

Get static map at specific GEO location

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
widthNUMBER
REQUIREDThe width of image in pixel
longitudeNUMBER
REQUIREDThe latitude co-ordinate
zoomNUMBER
REQUIREDZoom in/out of map
latitudeNUMBER
REQUIREDThe latitude co-ordinate
heightNUMBER
REQUIREDThe height of image in pixel
Optional Parameters
currency_codeSTRING
OPTIONALThe currency code
languagecodeSTRING
OPTIONALOne of the followings : en|en-us|ar|bg|ca|cs|da|de|el|es|es-ar|et|fi|fr|he|hr|hu|id|is|it|ja\", \"ko|lt|lv|ms|nl|no|pl|pt|pt-br|ro|ru|sk|sl|sr|sv|th|tl|tr|uk|vi|zh|zh-tw
Code Snippet
unirest.get("https://apidojo-booking-v1.p.rapidapi.com/properties/get-static-map?currency_code=USD&languagecode=en-us&width=720&longitude=106.663626&zoom=18&latitude=10.807570&height=280")
.header("X-RapidAPI-Host", "apidojo-booking-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://apidojo-booking-v1.p.rapidapi.com/properties/get-static-map
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://apidojo-booking-v1.p.rapidapi.com/properties/get-static-map?currency_code=USD&languagecode=en-us&width=720&longitude=106.663626&zoom=18&latitude=10.807570&height=280")
.header("X-RapidAPI-Host", "apidojo-booking-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication