latestOpenAPI 3.1.02026-08-21211181.8 KB

e5d7af502419

Places

Resolve travel locations

Resolves a free-text location query to canonical Wego places (cities, airports, states, districts, hotels) with codes and coordinates, for use in later flight and hotel searches. When metadata.hasAmbiguity is true, clarify with the user before proceeding.

get/v1/places

Query parameters

querystring required
Example:dubai

Free text to resolve to typed places with codes. A place-name search (city, airport, district, hotel).

typesstring[]

Place types to resolve; repeat or comma-separate to mix.

localestring

Language tag for localized place names (e.g. en, ar). Omitted, the search is language-neutral: the query matches names in any language (sent upstream as the locale wildcard) and results carry canonical English names. Pass a tag to localize the returned names instead. getNearbyPlaces, by contrast, defaults to en.

pageinteger

Page number, 1-based (max 100). Defaults to 1.

pageSizeinteger

Results per page (1-50). Defaults to 10.

Response

Matching places plus pagination/ambiguity metadata.