/despegar/places/search

POST /api/despegar/places/search

Price: 1 credit

Resolve a city, airport, hotel or point of interest name into Despegar geo identifiers. Returns ranked matches with the geo id (e.g. CIT_982 for a city, AIR_192636 for an airport, HOT_335526 for a hotel, POI_531400 for a point of interest), the plain numeric id, place type, city code, airport IATA code, display name, parent country, city and administrative-division ids and coordinates. Use the returned ids as the destination for hotel and activity search. Pick the product the place is resolved for (hotels or activities) to bias which matches surface; the returned geo ids are usable across products.

How to use it

Autocomplete Despegar places by keyword for a region and product. Returns items with id (geo id like CIT_982/AIR_192636/HOT_335526/POI_531400), geo_id (numeric), place_type (CITY/AIRPORT/HOTEL/POI/ZONE/VACATION_RENTAL), code (city metro code, e.g. BUE), iata (airport code), name, country_id, city_id, administrative_division_id (province/state geo id) and latitude/longitude. Feed the city id to hotels/search (destination).

Parameters

Request body

Response

Errors

Response headers