APIs / Travel / Hostelworld

1 credit per call5 endpoints21 datapointsChecked working 6 Dec 2026

Hostelworld API

Hostelworld API for hostel search by city, property details, availability, reviews and autocomplete as JSON. Five endpoints, 1 credit per successful call.

Hostelworld
GET/v1/hostelworld/search?city_id=26
{
  "success": true,
  "data": {
    "location": {
      "city_id": 26,
      "city": "Berlin",
      "country": "Germany",
      "region": "Berlin"
    },
    "price_range": {
      "lowest": {
        "amount": 7.2,
        "currency": "EUR"
      },
      "highest": {
        "amount": 999,
        "currency": "EUR"
      }
    },
    "properties": [
      {
        "id": 703,
        "position": 1,
        "name": "Circus Hostel",
        "type": "hostel",
        "url": "https://www.hostelworld.com/pwa/hosteldetails.php/Circus-Hostel/Berlin/703",
        "overall_rating": 92,
        "ratings_count": 8121,
        "rating_breakdown": {
          "security": 97,
          "location": 96,
          "staff": 93,
          "fun": 87,
          "cleanliness": 92,
          "facilities": 89,
          "value": 91,
          "average": 92
        },
        "latitude": 52.530147,
        "longitude": 13.401918,
        "address": "Weinbergsweg 1a, 10119",
        "district": "Mitte",
        "city": "Berlin",
        "country": "Germany",
        "overview": "Welcome to The Circus Hostel your perfect starting point to discover Berlin!\n\nWith the Metro and Tram s",
        "distance_km": 1.01,
        "is_featured": true,
        "lowest_price_per_night": {
          "amount": 14.29,
          "currency": "EUR"
        },
        "lowest_dorm_price_per_night": {
          "amount": 14.29,
          "currency": "EUR"
        },
        "lowest_private_price_per_night": {
          "amount": 26.88,
          "currency": "EUR"
        },
        "image": "https://a.hwstatic.com/image/upload/f_auto,q_auto/v1/propertyimages/7/703/hmncsutasctba9hnlaxx"
      },
      {
        "id": 15426,
        "position": 2,
        "name": "St Christopher's Berlin - Mitte",
        "type": "hostel",
        "url": "https://www.hostelworld.com/pwa/hosteldetails.php/St-Christopher-s-Berlin-Mitte/Berlin/15426",
        "overall_rating": 82,
        "ratings_count": 10454,
        "rating_breakdown": {
          "security": 90,
          "location": 91,
          "staff": 86,
          "fun": 82,
          "cleanliness": 74,
          "facilities": 74,
          "value": 80,
          "average": 82
        },
        "latitude": 52.523588,
        "longitude": 13.39096,
        "address": "Ziegelstr. 28",
        "district": "Mitte",
        "city": "Berlin",
        "country": "Germany",
        "overview": "Please read our Things to Note before making a booking.\n\nSt Christopher's Berlin Mitte is located in the heart of the German capital, just minutes away from some of the best sights and attractions in Berlin. Just a 5 minute walk from Museum…",
        "distance_km": 1.28,
        "lowest_price_per_night": {
          "amount": 14.32,
          "currency": "EUR"
        },
        "lowest_dorm_price_per_night": {
          "amount": 14.32,
          "currency": "EUR"
        },
        "lowest_private_price_per_night": {
          "amount": 16.65,
          "currency": "EUR"
        },
        "image": "https://a.hwstatic.com/image/upload/f_auto,q_auto/v1/propertyimages/1/15426/m0tyooptf31sfivqsgdn"
      },
      {
        "id": 280374,
        "position": 3,
        "name": "MEININGER Berlin East Side Gallery",
        "type": "hostel",
        "url": "https://www.hostelworld.com/pwa/hosteldetails.php/MEININGER-Berlin-East-Side-Gallery/Berlin/280374",
        "overall_rating": 87,
        "ratings_count": 2164,
        "rating_breakdown": {
          "security": 94,
          "location": 92,
          "staff": 88,
          "fun": 80,
          "cleanliness": 85,
          "facilities": 85,
          "value": 89,
          "average": 88
        },
        "latitude": 52.50832,
        "longitude": 13.4359836,
        "address": "Am Postbahnhof 4",
        "district": "Kreuzberg",
        "city": "Berlin",
        "country": "Germany",
        "overview": "Welcome to MEININGER Berlin East Side Gallery\n\nMEININGER Berlin East Side Gallery is located directly o",
        "distance_km": 2.37,
        "lowest_price_per_night": {
          "amount": 13.08,
          "currency": "EUR"
        },
        "lowest_dorm_price_per_night": {
          "amount": 20,
          "currency": "EUR"
        },
        "lowest_private_price_per_night": {
          "amount": 13.08,
          "currency": "EUR"
        },
        "image": "https://a.hwstatic.com/image/upload/f_auto,q_auto/v1/propertyimages/2/280374/bw7imhsrgc5yw2qzjnt0"
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 20,
      "total_pages": 3,
      "total_items": 54,
      "has_more": true
    }
  },
  "meta": {
    "endpoint_family": "search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#idintegerpositionintegernamestringtypestringurlurloverall_ratingintegerratings_countintegerrating_breakdownobjectlatitudenumberlongitudenumberaddressstringdistrictstringcitystringcountrystringoverviewstringdistance_kmnumberis_featuredbooleanlowest_price_per_nightobjectlowest_dorm_price_per_nightobjectlowest_private_price_per_nightobjectimageurl
17031Circus Hostelhostelhttps://www.hostelworld.com/pwa/hosteldetails.php/Circus-Hostel/Berlin/703928121{8 fields}52.53014713.401918Weinbergsweg 1a, 10119MitteBerlinGermanyWelcome to The Circus Hostel your perfect starting point to discover Berlin! With the Metro and Tram s1.01true{2 fields}{2 fields}{2 fields}https://a.hwstatic.com/image/upload/f_auto,q_auto/v1/propertyimages/7/703/hmncsutasctba9hnlaxx
2154262St Christopher's Berlin - Mittehostelhttps://www.hostelworld.com/pwa/hosteldetails.php/St-Christopher-s-Berlin-Mitte/Berlin/154268210454{8 fields}52.52358813.39096Ziegelstr. 28MitteBerlinGermanyPlease read our Things to Note before making a booking. St Christopher's Berlin Mitte is located in the heart of the German capital, just minutes away from some of the best sights and attractions in Berlin. Just a 5 minute walk from Museum…1.28—{2 fields}{2 fields}{2 fields}https://a.hwstatic.com/image/upload/f_auto,q_auto/v1/propertyimages/1/15426/m0tyooptf31sfivqsgdn
32803743MEININGER Berlin East Side Galleryhostelhttps://www.hostelworld.com/pwa/hosteldetails.php/MEININGER-Berlin-East-Side-Gallery/Berlin/280374872164{8 fields}52.5083213.4359836Am Postbahnhof 4KreuzbergBerlinGermanyWelcome to MEININGER Berlin East Side Gallery MEININGER Berlin East Side Gallery is located directly o2.37—{2 fields}{2 fields}{2 fields}https://a.hwstatic.com/image/upload/f_auto,q_auto/v1/propertyimages/2/280374/bw7imhsrgc5yw2qzjnt0

Recorded 12 Nov 2026 · 3 items shown · 21 datapoints per itemGET /v1/hostelworld/search?city_id=26

21 datapoints

Identity

  • idinteger
  • namestring
  • typestring

Contact

  • urlurl

Location

  • latitudenumber
  • longitudenumber
  • addressstring
  • districtstring
  • citystring
  • countrystring

Reputation

  • overall_ratinginteger
  • ratings_countinteger
  • rating_breakdownobject
  • imageurl

Price

  • lowest_price_per_nightobject
  • lowest_dorm_price_per_nightobject
  • lowest_private_price_per_nightobject

Other

  • positioninteger
  • overviewstring
  • distance_kmnumber
  • is_featuredboolean

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/hostelworld/search?city_id=26" \
  -H "X-API-Key: $API_KEY"

Hostelworld · 5 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/hostelworld/autocomplete
query
idnametype
1 credit
GET/v1/hostelworld/availability
property_idcheck_in+3 optional
property_idcheck_innightsguestscurrencydorms+6 more
1 credit
GET/v1/hostelworld/property
property_id+1 optional
property
1 credit
GET/v1/hostelworld/reviews
property_id+3 optional
statisticsreviewspagination
1 credit
GET/v1/hostelworld/search
city_id+7 optional
locationprice_rangepropertiespagination
1 credit

Overview

About the Hostelworld API

What you can get

The Hostelworld API returns Hostelworld hostel data as JSON through 5 endpoints.

  • Places: autocomplete takes a query.
  • Search: search takes a city_id, with check_in, nights, guests, currency, sort and page and per_page. sort takes price, name, rating, distance or rankscore, each also with a leading - (for example -rating).
  • Properties: property takes a property_id, with currency.
  • Availability: availability takes a property_id and check_in, with nights, guests and currency.
  • Reviews: reviews takes a property_id, with page, per_page and sort (date or -date).

How a call works

Search a city: GET /v1/hostelworld/search?city_id=...&check_in=...&nights=...&guests=...&sort=price with your key in the X-API-Key header. search and reviews page with page and per_page. property, availability and reviews all take the same property_id param. Every successful call costs 1 credit; failed calls cost nothing.

TravelJSONRESTMCP

More travel APIs

Use cases

Compare hostel options in a city for a given check-in date and group size

Use the Hostelworld API to compare hostel options in a city for a given check-in date and group size

Check whether a hostel has availability for a number of nights before booking

Use the Hostelworld API to check whether a hostel has availability for a number of nights before booking

Rank the hostels in a city by price, rating or distance

Use the Hostelworld API to rank the hostels in a city by price, rating or distance

Collect review text for a property for sentiment analysis, without reviewer details

Use the Hostelworld API to collect review text for a property for sentiment analysis, without reviewer details

FAQ

Questions

Do I need a Hostelworld API key?

No. You call this Hostelworld API with your Perceptlayer key in the `X-API-Key` header, so there's no Hostelworld partner account to set up.

How much does the Hostelworld API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Can I choose the currency?

Yes. `search`, `property` and `availability` take a `currency` param.

Is this the official Hostelworld API?

No. Perceptlayer is an independent service and is not affiliated with Hostelworld. It returns Hostelworld data as JSON with a Perceptlayer key, so there is no Hostelworld developer account, app review or partner approval to get first. It only reads data: if Hostelworld has an official API and you need to act on your own Hostelworld account, such as posting, managing orders or reading private data, use that one.

Should I build a Hostelworld scraper instead?

You can, but a Hostelworld scraper is code you maintain: page changes break it, requests get blocked, and Hostelworld's terms govern how you collect data. The Hostelworld API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Hostelworld API with 100 free credits

No credit card. Failed calls are never billed.