/hopper/locations/search

POST /api/hopper/locations/search

Price: 5 credits

Search Hopper locations by keyword. Set kind to flight to resolve cities and airports (with their IATA / city codes) for the flight endpoints, or stay to resolve places and hotels (with their Google place ids) for the hotel endpoints. Returns each match with its label, sub-label, code or place id, and type.

How to use it

Autocomplete Hopper locations. kind=flight returns airports/cities with code (IATA or city code) and location_type (airport/city) — use code for hopper/flights/search. kind=stay returns places/hotels with place_id (Google place id) and place_type — use place_id for hopper/hotels/search.

Parameters

Request body

Response

Errors

Response headers