APIs / Hostelworld / Autocomplete
Hostelworld: Autocomplete
Autocomplete from Hostelworld as JSON. 1 credit per successful call.
GET /v1/hostelworld/autocomplete
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 100 characters |
Example request
Hostelworld
GET/v1/hostelworld/autocomplete?query=berlin
{
"success": true,
"data": {
"results": [
{
"id": 26,
"name": "Berlin, Germany",
"type": "city"
},
{
"id": 11283,
"name": "Berlin, New Hampshire, USA",
"type": "city"
},
{
"id": 27354,
"name": "West Berlin, Canada",
"type": "city"
}
]
},
"meta": {
"endpoint_family": "autocomplete"
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.results has these 3 fields, read from a recorded call that returned 19 items. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | integer |
name | string |
type | string |