---
title: "Hostelworld API: Search | Perceptlayer"
description: "Search from Hostelworld as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/hostelworld/search
---

[APIs](https://perceptlayer.com/apis) / [Hostelworld](https://perceptlayer.com/apis/hostelworld) / Search

# Hostelworld: Search

Search from Hostelworld as JSON. 1 credit per successful call.

GET `/v1/hostelworld/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `city_id` | integer | Required | Any |
| `check_in` | string | Optional | Any |
| `nights` | integer | Optional | Any |
| `guests` | integer | Optional | Any |
| `currency` | string | Optional | Any |
| `sort` | string | Optional | price, -price, name, -name, rating, -rating, distance, -distance, rankscore, -rankscore |
| `page` | integer | Optional | Any |
| `per_page` | integer | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/hostelworld/search" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/hostelworld?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.
