Skip to main content
POST
/
api
/
hostelworld
/
cities
/
search
/hostelworld/cities/search
curl --request POST \
  --url https://api.anysite.io/api/hostelworld/cities/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@hostelworld_suggestion",
    "type": "<string>",
    "name": "<string>",
    "city": {
      "@type": "@hostelworld_city",
      "id": "<string>",
      "name": "<string>",
      "country": "<string>"
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Keyword to resolve into matching cities and properties

Minimum string length: 2
count
integer
required

Max number of results to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@hostelworld_suggestion
type
string | null
name
string | null
city
HostelworldCity · object