Hotel API Specification June 2012 > Hotel Search Example XML
Hotel Availability Search Example XML
The following example will search for any location selected from a Location Resolution Response. There are other ways to specify locations (e.g. using IATA codes) and also a radius can be supplied to limit the distance of the hotels form the location searched. Please see the specification for more details.
Note, the token attribute must be set to a valid token.
<GetHotelsRequest token="******" xmlns="http://www.travelfusion.com/xml/api/simple">
<location>
<locationResolutionResultItem id="43"/>
</location>
<date>2013-01-11</date>
<duration>7</duration>
<rooms>
<room>
<ages>
<age>30</age>
<age>30</age>
<age>5</age>
</ages>
</room>
</rooms>
<currency>EUR</currency>
</GetHotelsRequest>