Escolar Documentos
Profissional Documentos
Cultura Documentos
Table of Contents
Revision History ............................................................................................................................................ 1
Introduction .................................................................................................................................................. 2
Affiliate Long Tail Availability Work Flow.................................................................................................. 2
HTTPS ........................................................................................................................................................ 2
URL ............................................................................................................................................................ 2
Request header ......................................................................................................................................... 2
Long Tail Search Request .............................................................................................................................. 3
City search example request ..................................................................................................................... 3
Hotel List Search example request ........................................................................................................... 3
Request Parameter Schema.......................................................................................................................... 4
Long Tail Search Response ............................................................................................................................ 5
Response example (Correct case) ............................................................................................................. 5
Response example (error case)................................................................................................................. 6
Response Schema ......................................................................................................................................... 7
Appendix ....................................................................................................................................................... 8
Response Codes ........................................................................................................................................ 8
Success Status ........................................................................................................................................... 8
Error Status ............................................................................................................................................... 8
Languages ................................................................................................................................................. 9
Currencies ............................................................................................................................................... 10
1|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Introduction
Our Long Tail Search API makes search functionality available to our Long Tail Search Partners, via
synchronous request-response RESTful web services.
HTTPS
To utilize https, please contact your account manager for more information.
URL
Our main end point for the Affiliate Lite Search request is as follows:
http://affiliateapi7643.agoda.com/affiliateservice/lt_v1
Request header
All requests must include a compression header to ensure fastest response times.
Accept-Encoding gzip,deflate
All requests must include an Authorization header with siteid and apikey (with a colon inbetween) and it
must match with the siteid and apikey in the request body.
Authorization 123456:00000000-0000-0000-0000-000000000000
2|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Long Tail Search Request
There are 2 types of search: City Search and Hotel List Search
3|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Request Parameter Schema
4|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Long Tail Search Response
5|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Response example (error case)
{
"error": {
"id": 911,
"message": "No search result"
}
}
6|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Response Schema
Element Requir Data Type Example Description
ed
hotelId Y Integer 123456 Hotel ID
hotelName Y String Hotel name in required language code. If
local language is unavailable, then returns
name in English.
roomtypeName O String Deluxe Hot Deal This field is only available for hotel list
search
starRating Y Double (0-5) 5 Star Rating
reviewScore Y Double (0-10) 8.0 Review Score
reviewCount Y Integer 123 Number of reviews
currency Y String USD Currency code
7|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Appendix
Response Codes
For response XML root element or response object that have a ‘status’ field as an attribute will be
identified the general response type from Agoda’s API servers.
Success Status
Error Status
8|Page
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
Languages
The list of valid languages Agoda supports which use to communicate with us are:
Currencies
The list of valid currencies Agoda supports which you use to communicate with us are:
10 | P a g e
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)
ARS Argentine Peso
XPF CFP Franc
VND Vietnamese Dong
HUF Hungarian Forint
UAH Ukrainian Grivna
JOD Jordanian Dinar
KWD Kuwaiti Dinar
MXN Mexican Peso
NGN Nigerian Naira
ILS New Israeli Sheqel
PKR Pakistan Rupee
QAR Qatari Rial
RUB Russian Ruble
SAR Saudi Riyal
KZT Kazakh Tenge
TRY Turkish Lira
BGN Bulgarian Lev
RON Romanian Leu
KHR Cambodian Riel
LAK Laotian Kip
LKR Sri Lankan Rupee
MVR Maldivian Rufiyaa
EGP Egyptian Pounds
11 | P a g e
All material herein © 2005 – 2018 Agoda Company Pte. Ltd., All Rights Reserved.
AGODA ® is a registered trademark of AGIP LLC, used under license by Agoda Company Pte. Ltd.
Agoda is part of Booking Holdings Inc. (NASDAQ:BKNG)