# Hostelworld Scraper - Hostel Dorm & Room Prices (`scrapercompany/hostelworld-rates-scraper`) Actor

Scrape Hostelworld hostel prices for any stay: every dorm and private room with price, beds available, capacity, ensuite flag and rate plans, plus deposit and free-cancellation terms. Batch many hostels, export JSON or CSV. No proxies needed.

- **URL**: https://apify.com/scrapercompany/hostelworld-rates-scraper.md
- **Developed by:** [ScraperCompany](https://apify.com/scrapercompany) (community)
- **Categories:** Travel
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 rates requests

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Hostelworld Scraper - Hostel Dorm & Room Prices

**Hostelworld Scraper** prices hostels on Hostelworld for your dates. For every **dorm and private room** it returns the **price per night, beds left, capacity, ensuite flag and rate plans**, plus the hostel's deposit percentage and whether free cancellation is available. Use it to benchmark hostel prices in a city, monitor competitors, or power a budget-travel app. Pricing is pay-per-event: **$0.018 per rates request**; failed requests are not charged.

Proxies, retries and anti-bot handling are built in, so you don't need your own proxies or an API key. Start a run, get structured JSON.

### What can this Hostelworld scraper do?

- **Dorms and private rooms** with price, beds available, capacity and ensuite flag.
- Every **rate plan** per room.
- **Deposit percentage** and **free cancellation** availability.
- Any stay of 1-30 nights and 1-8 guests (beds for dorms, occupancy for privates).
- Batch many hostels in one run.

### Use cases for Hostelworld data

- **Hostel operators**: Benchmark dorm and private-room prices against hostels in your city.
- **Budget-travel apps**: Show live hostel prices, beds left and cancellation terms.
- **Travel researchers**: Compare hostel prices across cities and seasons.

### What Hostelworld data can you extract?

| Field | Description |
| --- | --- |
| `property.price_per_night / currency` | Cheapest nightly price and currency |
| `property.rooms[].name / room_type / basic_type` | Room (dorm or private) |
| `property.rooms[].beds_available / capacity / ensuite` | Availability and room details |
| `property.rooms[].rate_plans` | Rate plans with prices |
| `property.deposit_percentage / free_cancellation_available` | Booking terms |
| `meta.dorms_count / privates_count` | Room counts |

Every dataset item also carries `input` (the exact request that was sent), `request_id` (quote it to support), `billed` and `scraped_at`.

### How to scrape Hostelworld prices

1. Open Hostelworld Scraper in Apify Console and go to the **Input** tab.
2. Enter **Hostelworld property ids** (the number in the hostel URL), a check-in date and the number of guests.
3. Adjust the options if needed. Dates accept an exact date (`2026-12-01`) or a relative one (`30 days` from today), so saved tasks and schedules never go stale.
4. Click **Start** and wait for the run to finish.
5. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or fetch them with the Apify API.

### Input example

This is the default input; running the Actor without changes uses it.

```json
{
  "propertyIds": [
    "88047"
  ],
  "check_in": "30 days",
  "nights": 2,
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

### Output example

One dataset item per request (trimmed here; real items contain every field the API returns):

```json
{
  "endpoint": "/v1/ota/hostelworld",
  "input": {
    "property_id": "88047",
    "check_in": "2026-10-31"
  },
  "meta": {
    "comparable_across_markets": false,
    "dorms_count": 8,
    "elapsed_s": 0.284,
    "nights": 1,
    "privates_count": 4,
    "source": "hostelworld"
  },
  "property": {
    "availability": "available",
    "currency": "GBP",
    "deposit_percentage": 15,
    "free_cancellation_available": true,
    "is_soldout": false,
    "price_per_night": 52.9,
    "property_id": "88047",
    "provenance": {
      "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
      "derivation": "normalized_upstream",
      "observation_id": "rateobs_0123456789abcdef0123456789abcdef",
      "observed_at": "2026-08-07T01:23:45.678Z",
      "price_basis": "room_base_before_taxes_and_fees",
      "requested_currency": "USD",
      "requested_market": "US",
      "returned_currency": "USD",
      "schema_version": 1,
      "source": "hostelworld",
      "source_kind": "ota_rate_plan",
      "source_property_id": "ChUIoben2Mv6-CYaCi9tLzA3czVwbjQQAQ",
      "upstream_rate_id": null
    },
    "rooms": [
      {
        "basic_type": "Mixed Dorm",
        "beds_available": 42,
        "capacity": 8,
        "ensuite": true,
        "name": "8 Bed Mixed Dorm Ensuite",
        "rate_plans": [
          {
            "currency": "GBP",
            "is_default": true,
            "meal_plan": null,
            "min_nights": 1,
            "original_price": 66.13,
            "payment_label": "Deposit only",
            "payment_procedure": "depositPayable",
            "price": 52.9,
            "rate_category": "unknown",
            "rate_category_source": null,
            "rate_code": "151291",
            "rate_code_scope": "room",
            "rate_plan_id": 151291,
            "rate_plan_type": "STANDARD",
            "refundable": null
          }
        ],
        "room_id": 383266,
        "room_type": "dorm"
      }
    ],
    "sold_out": false
  },
  "search_parameters": {
    "check_in_date": "2026-10-10",
    "check_out_date": "2026-10-11",
    "engine": "hostelworld_property",
    "guests": 1,
    "property_id": "88047"
  },
  "request_id": "req_3f9c0d6e2b8a4c1f9e7d5b3a1c0e8f6d",
  "billed": true,
  "scraped_at": "2026-10-01T14:03:27.512Z"
}
```

A request that fails is saved with an `error` message instead (turn off **Include failed requests** to skip those). Failed requests are never charged.

### How much does it cost to scrape Hostelworld prices?

This Actor uses **pay-per-event** pricing: you pay for successful API requests, not for compute time.

| Event | Charged when | Price | Per 1,000 |
| --- | --- | --- | --- |
| `rates-request` | One hostel priced for one stay: every dorm and private room with rate plans. | $0.018 | $18.00 |

These prices apply from November 5, 2026, after Apify's 14-day notice of a price change; until then runs are charged the previous prices shown on the Pricing tab.

For example, 1,000 requests in the default mode cost **$18.00**.

- Failed requests (errors, invalid input, blocked upstream after retries) are **free**.
- Requests where the source returns nothing at all (no results, nothing priced) are saved but **not charged**.
- Set **Maximum cost per run** when you start a run and the Actor stops cleanly before going over it.

### FAQ

#### Do I need proxies or an API key?

No. Proxy rotation, retries and anti-bot handling are built in, and the Actor is ready to run as is. You only pay the per-event prices above.

#### What does "guests" mean for dorms?

For dorms it is the number of beds you need; for private rooms it is the room occupancy.

#### Is it legal to scrape Hostelworld prices?

The Actor collects publicly available information that anyone can see without logging in. You are responsible for how you use the results: respect the source site's terms, copyright and privacy law (such as GDPR) and do not collect personal data without a lawful basis. If in doubt, ask a lawyer.

#### What happens when a request is blocked or rate-limited?

Rate limits (HTTP 429) and temporary errors (5xx) are retried automatically with exponential backoff, respecting `Retry-After`. If a request still fails it is saved with the error message and not charged, and the rest of the batch keeps going. A run only fails when every request failed.

#### Why did a request return an error?

Read the `error` field: validation problems (for example a malformed date or an unknown id) are reported exactly as the API sees them. Fix the input and run again; failed requests cost nothing.

#### How many requests can I run at once?

Any number per run. The Actor sends up to 3 requests in parallel by default (change it under **Run options**); larger batches simply take longer.

### Use it from your code

Call the Actor from any language through the [Apify API](https://docs.apify.com/api/v2). With the JavaScript client (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrapercompany/hostelworld-rates-scraper').call({
    "propertyIds": [
        "88047"
    ],
    "check_in": "30 days"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

With Python (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrapercompany/hostelworld-rates-scraper").call(run_input={
    "propertyIds": ["88047"],
    "check_in": "30 days",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

You can also schedule runs, chain them with webhooks, or connect them to Make, Zapier, n8n, Google Sheets and other integrations from the **Integrations** tab.

### Related scrapers

- [Booking.com Price Scraper](https://apify.com/scrapercompany/booking-hotel-rates-scraper): hotel prices on Booking.com
- [Airbnb Scraper](https://apify.com/scrapercompany/airbnb-search-scraper): shared and private rooms on Airbnb

### Support

Questions, a field you need, or a site that stopped working? Open an issue on the **Issues** tab. Include the `request_id` from the dataset item so we can trace the request.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapercompany/hostelworld-rates-scraper/changelog.md

# Actor input Schema

## `propertyIds` (type: `array`):

Numeric Hostelworld property ids, one request each: the number in <code>hostelworld.com/pwa/hosteldetails.php/88047/...</code> or <code>hostelworld.com/hostels/p/88047/...</code>.

## `check_in` (type: `string`):

Exact (<code>2026-12-01</code>) or relative (<code>30 days</code> from today).

## `nights` (type: `integer`):

Length of stay (1-30). Many hostels require at least 2 nights at weekends.

## `guests` (type: `integer`):

Number of guests (1-8). For dorms it is the number of beds needed; for private rooms it is the occupancy.

## `customRequests` (type: `array`):

Optional list of JSON objects, one request each, using the API field names shown above. Each object is merged over the options above, so you only need to give what differs. Example: <code>{"property_id":"88047","check_in":"2026-12-20","nights":3,"guests":2}</code>

## `includeErrors` (type: `boolean`):

When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.

## `maxConcurrency` (type: `integer`):

How many API requests run at the same time (1-8). Parallel runs share one limit, so extra requests wait for a free slot instead of failing.

## `maxRetries` (type: `integer`):

Retries for rate limits (HTTP 429), temporary server errors (5xx) and network errors, with exponential backoff. Validation errors are never retried.

## Actor input object example

```json
{
  "propertyIds": [
    "88047"
  ],
  "check_in": "30 days",
  "nights": 2,
  "guests": 1,
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

# Actor output Schema

## `results` (type: `string`):

One dataset item per request.

## `summary` (type: `string`):

Counts of succeeded, failed, skipped and charged requests.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "propertyIds": [
        "88047"
    ],
    "check_in": "30 days"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapercompany/hostelworld-rates-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "propertyIds": ["88047"],
    "check_in": "30 days",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapercompany/hostelworld-rates-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "propertyIds": [
    "88047"
  ],
  "check_in": "30 days"
}' |
apify call scrapercompany/hostelworld-rates-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapercompany/hostelworld-rates-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/v9NsdPaaIkDzdWq2D/builds/jCj4DqcUULvycFpfq/openapi.json
