Countries

 

URL: /countries.[json|xml]

Parameters:

NameDescriptionDefaultExample
limit1-100100 
from_idget records with id grater than from_id0from_id=123&limit=10
country_idsComma-separated list of countries-country_ids=1,2,3

 

 

Cities

URL: /cities.[json|xml]

Parameters:

NameDescriptionDefaultExample
limit1-100100 
from_idget records with id grater than from_id0from_id=123&limit=10
country_idsComma-separated list of countries-country_ids=1,2,3
city_idsComma-separated list of cities- 
stateState code-state=NY

Hotels

URL: /hotels.[json|xml]

Parameters:

NameDescriptionDefaultExample
limit1-100100 
from_idget records with id grater than from_id0from_id=123&limit=10
hotel_idsComma-separated list of hotels-hotel_ids=1,2,3
city_idsComma-separated list of cities- 
last_updatehotels updated later than last_update (%Y-%m-%d)-last_update=2014-01-01

City availability

Request

URL: /city_avail.[json|xml]

Parameters:

NameDescriptionDefaultExample
avail_idavailability request id  
OR
city_idCity ID-city_id=12345
hotel_idHotel list ID hotel_id=46&hotel_id=47&hotel_id=48
check_inCheck-in date (%Y-%m-%d)-check_in=2014-05-01
check_outCheck-out date (%Y-%m-%d)-check_out=2014-05-03
adultsNumber of adults2adults=2
childrenNumber of children0children=2
currencyISO-4217 currency codeUSDcurrency=EUR
child_age_*Child age-child_age_1=3&child_age_2=3
ipuser's ip (optional)-ip=192.168.11.6
ipcountryuser's ip country code-ipcountry=gb
lang_codeUse either lang_code or lang_idenlang_code=de
lang_idSee Appendix 1 for list of supported languages1lang_id=2
fullShow avail hotels with rooms0full=1

Response

/city_avail.json?check_in=2014-05-01&check_out=2014-05-03&city_id=18881

{
	"avail": {
		"id": "407728895",
		"finished": "no"
	}
}

/city_avail.json?avail_id=407728895&currency=USD

{
	"avail": {
		"id": "407728895",
		"finished": "yes"
	},
	"data": [
		{
			"hotel_id": "42563",
			"price_from": 49
		}
	]
}

Hotel availability

Request

URL: /hotel_avail.[json|xml]

Parameters:

NameDescriptionDefaultExample
avail_idavailability request id  
OR
hotel_idHotel ID-hotel_id=12345
check_inCheck-in date (%Y-%m-%d)-check_in=2014-05-01
check_outCheck-out date (%Y-%m-%d)-check_out=2014-05-03
adultsNumber of adults2adults=2
childrenNumber of children0children=2
currencyISO-4217 currency codeUSDcurrency=EUR
child_age_*Child age-child_age_1=3&child_age_2=3
lang_codeUse either lang_code or lang_idenlang_code=de
lang_idSee Appendix 1 for list of supported languages1lang_id=1
ipuser's ip (optional)-ip=192.168.11.6
ipcountryuser's ip country code-ipcountry=gb

Response

/hotel_avail.json?check_in=2014-05-01&check_out=2014-05-03&hotel_id=42563

{
	"avail": {
		"id": "407728724",
		"finished": "no"
	}
}

 

/hotel_avail.json?avail_id=407728724&lang_code=en&currency=EUR

 

{
	"avail": {
		"finished": "yes",
		"id": "407728724"
	},
	"data": {
		"attr": {
			"meals_info": {
				"price": "UAH 300 ",
				"type": "3"
			}
		},
		"rooms": [{
			"amenities": ["TV", "Balcony"],
			"bed_config": "Double Bed",
			"description": "",
			"name": "Double Room - Room Only",
			"photos": [
				{
					"large": {
						"h": "252",
						"src": "http://i0.bookcdn.com/data/Photos/LargePhoto/77/7761/7761834.JPEG",
						"w": "336"
					},
					"medium": {
						"h": "125",
						"src": "http://i0.bookcdn.com/data/Photos/SmallPhoto2/77/7761/7761834.JPEG",
						"w": "141"
					},
					"name": "Standard Double or Twin Room",
					"small": {
						"h": "51",
						"src": "http://i0.bookcdn.com/data/Photos/SmallPhoto3/77/7761/7761834.JPEG",
						"w": "51"
					}
				}
				...
			],
			"rate": [
				{
					"id": "3567940362",
					"meal_plan": "Breakfast not included",
					"meal_plan_id": "1",
					"price": "237",
					"ptaxes": [
						{
							"included": "1",
							"name": "Value Added Tax (VAT)",
							"val": "20%"
						}
					]
				},
				...
			]
		}
	}
}

 

Errors

CodeDescription
1Wrong login/password
2You have no access to API
3Error check-in/check-out params
4Wrong availability ID
5Empty hotel_id parameter
6Hotel not exists
7Empty city_id parameter
8City not exists
9Check-in date in past
10Check-out date less check-in
11Number of nights greater 30
12Hotel is temporary unavailable
13Wrong currency
14Wrong adults number
15Wrong children number
16Specify all children ages

 

 

Example:

<error code="2">
You have no access to API. Please, contact office at hotelholder.ae
</error>
{
	"error": {
		"code": 2,
		"text": "You have no access to API. Please, contact office at hotelholder.at"
	}
}

 

Appendix 1. Languages



IDCodeName
1enEnglish
2deDeutch
3frFrench
4esSpanish
5itItaliano
6nlDutch
8ptPortuguese
11svSwedish
12daDanish
13csCzech
14huHungarian
16jaJapanese
17 zhChinese
18plPolish
19elGreek
20ruRussian
21trTurkish
22arArabic
24koKorean
25heHebrew