travel

Search hotels around a coordinate for given dates and guests. Returns a normalized Hotel page.

Hotels available around lat / lon for the check-in / check-out dates, priced for the whole stay in the requested currency. City names and destination ids are not resolved — geocode first; pass radius_km to stay inside a city.

Fixed price: 0.3 credits per successful call, whichever provider serves it.

post/v2/ops/travel.hotel.search

Request

  • Base URL
    https://api.agentkey.app
  • URL
    https://api.agentkey.app/v2/ops/travel.hotel.search
  • Auth
    HTTP bearer

Request body

adultsinteger

Number of adult guests.

checkinstring required

Check-in date, YYYY-MM-DD.

checkoutstring required

Check-out date, YYYY-MM-DD.

currencystring

ISO 4217 currency for prices.

cursorstring

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

fieldsstring[]

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

include_rawboolean

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

langstring

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

latnumber required

Latitude of the search centre, decimal degrees.

limitinteger

Maximum number of hotels to return.

lonnumber required

Longitude of the search centre, decimal degrees.

price_maxnumber

Maximum total price filter, in the requested currency.

price_minnumber

Minimum total price filter, in the requested currency.

providerstring

Shorthand for routing.only = [provider].

radius_kmnumber

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

roomsinteger

Number of rooms.

Response

Success envelope

credits_chargednumber required

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

opstring required

Method name.

op_versioninteger required

Method version that served the call.

providerstring required

Provider that actually served the call.

rawunknown
raw_truncatedboolean
request_idstring required

Correlation id; quote it in support requests.

took_msinteger required
unsupported_fieldsstring[] required

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

Changes

No recorded changes to this operation across all 1 revision of this API.