Skip to main content
POST
Search hotels around a coordinate for given dates and guests. Returns a normalized Hotel page.

Authorizations

Authorization
string
header
required

AgentKey API key (ak_…).

Body

application/json
checkin
string
required

Check-in date, YYYY-MM-DD.

checkout
string
required

Check-out date, YYYY-MM-DD.

lat
number
required

Latitude of the search centre, decimal degrees.

Required range: -90 <= x <= 90
lon
number
required

Longitude of the search centre, decimal degrees.

Required range: -180 <= x <= 180
adults
integer
default:2

Number of adult guests.

Required range: 1 <= x <= 30
currency
string
default:USD

ISO 4217 currency for prices.

cursor
string

Opaque pagination cursor from the previous response's next_cursor. Send the same query parameters with it.

fields
string[]

Projection: keep only these dotted paths of data, e.g. ["items.id", "items.text"].

include_raw
boolean
default:false

Attach the raw upstream payload as raw (not a stable contract; truncated above 256 KB).

lang
string

Booking language code for names, e.g. en-us, zh-cn.

limit
integer
default:10

Maximum number of hotels to return.

Required range: 1 <= x <= 20
price_max
number

Maximum total price filter, in the requested currency.

price_min
number

Minimum total price filter, in the requested currency.

provider
string

Shorthand for routing.only = [provider].

radius_km
number

Search radius around the point, km (the provider default is very wide).

rooms
integer
default:1

Number of rooms.

Required range: 1 <= x <= 30
routing
object

Provider routing override. order: try these providers first; only: restrict to these (equivalent to pinning); allow_fallbacks: false tries only the first eligible provider.

Response

Success envelope

Success envelope whose data is a HotelPage.

attempts
object[]
required
credits_charged
number
required

Credits charged for this call (the method's fixed price).

data
object
required

One page of hotel offers.

op
string
required

Method name.

op_version
integer
required

Method version that served the call.

provider
string
required

Provider that actually served the call.

request_id
string
required

Correlation id; quote it in support requests.

took_ms
integer
required
unsupported_fields
string[]
required

Output paths this provider structurally does not supply; such fields are null for a different reason than 'missing on this record'.

raw
any

Upstream payload, only with include_raw=true. Not a stable contract.

raw_truncated
boolean