travel

Find hotel destinations or airports by name. Returns a normalized TravelLocation page.

Resolves a city / region / airport name to the provider id that travel.hotel.search (kind=hotel: destination id) or travel.flight.search (kind=flight: airport or city id such as JFK.AIRPORT) accepts.

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

post/v2/ops/travel.location.search

Request

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

Request body

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).

kind'hotel' | 'flight'

Which search the id is for.

langstring

Language of the returned names (BCP 47), e.g. en-us, zh-cn.

limitinteger

Maximum number of places to return.

providerstring

Shorthand for routing.only = [provider].

querystring required

Place or airport name, e.g. New York, Heathrow, Tokyo.

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.