/hostelworld/cities/search

POST /api/hostelworld/cities/search

Price: 1 credit

Resolve a keyword into matching Hostelworld locations and properties (autocomplete). Returns ranked suggestions, each with its id, type (city, region, country, popular place or property), display name and, where the upstream provides it, the city the suggestion belongs to (id, name, country). Use the id of the best city match to drive the city property search.

How to use it

Resolve a free-text keyword (city, region, country or property name) into Hostelworld suggestions. Returns a ranked list mixing several types: type='city'/'region'/'country' items whose id is a Hostelworld location id, and type='property'/'popular places' items. Each item has id, type, name (display name like 'London, England') and city (id, name, country) — present for property and popular-place items (the city they sit in); for a city item the suggestion itself is the city and its id is the Hostelworld city id. Take a 'city' item's id to look up that city's properties.

Parameters

Request body

Response

Errors

Response headers