# Hostelworld API Scraper (`rl1987/hostelworld-api-scraper`) Actor

Search Hostelworld hostels & properties by location and extract full listing + property detail (all images, facilities, room/dorm types & prices, ratings breakdown, geo, policies) from the app's private mobile API.

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

## Pricing

from $1.50 / 1,000 property rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Hostelworld Scraper 🛍️ — Scrape Hostelworld.com ID, Name, Type, URL

**Hostelworld Scraper** — Search Hostelworld hostels & properties by location and extract full listing + property detail (all images, facilities, room/dorm types & prices, ratings breakdown, geo, policies) from the app's private mobile API. It reads Hostelworld's own API directly, so it's **fast, reliable and complete** — no flaky HTML parsing, no headless browser. Export to **JSON, CSV, Excel, or an API**.

***

### ✨ Why use this Hostelworld Scraper?

- 🟢 **No code required** — set your input, click **Start**, download your data.
- ⚡ **Fast & accurate** — reads Hostelworld's own private API and returns structured JSON, not scraped HTML.
- 🧾 **Rich, structured data** — every field below, clean and ready to use.
- 🔁 **Full pagination** — collects results to your `maxItems` cap.
- 💸 **Transparent pay-per-result pricing** — pay only for the rows you get.
- 📤 **Export anywhere** — JSON, CSV, Excel, XML, or pull it live via the Apify API.

***

### 🎯 What can you do with Hostelworld data?

- **Market & competitor research** — analyse Hostelworld products at scale.
- **Price & availability monitoring** — track changes over time.
- **Data science & trend analysis** — build clean datasets.
- **Lead generation & enrichment** — feed Hostelworld data into your own tools.

***

### 📥 What data does the Hostelworld Scraper extract?

Each row includes: `id`, `name`, `type`, `url`, `overallRating`, `numberOfRatings`, `pricePerNight`, `averagePricePerNight`, `originalPricePerNight`, `promotions`, `currency`, `city`, `country`, `latitude`, `longitude`, `distanceFromCentreKm`, `images`, `imagesGallery` …and more. See the full **Data table** below.

***

### 🚀 How to scrape Hostelworld.com (3 steps)

1. **Set your input** — provide `q` or `maxItems` (see the table below; defaults work out of the box).
2. **Pick options** — filters, a `proxyConfiguration`, and a `maxItems` cap.
3. **Run & export** — click **Start**, then download the dataset as JSON/CSV/Excel or fetch it via the API.

***

### ⚙️ Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `q` | string | `Lisbon` | A location to search: a city, neighbourhood, or property name (e.g. 'Lisbon'). Resolved via Hostelworld's own mobile autocomplete. |
| `maxItems` | integer | `50` | Maximum number of properties to return (0 = all in the location). |
| `numberOfGuests` | integer | `2` | Guests for pricing/availability. |
| `dateStart` | string | – | Check-in date YYYY-MM-DD (optional; enables live room prices). |
| `numNights` | integer | `2` | Number of nights (1-31) for availability pricing. |
| `currency` | string | `EUR` | ISO currency code for prices (EUR, USD, GBP, ...). |
| `includeDetails` | boolean | `true` | Fetch full detail + room/dorm availability + reviews for each property (slower, more requests). |
| `proxyConfiguration` | object | Apify Proxy | Route requests through a proxy (Apify Proxy by default). |

> ⚠️ **About `q`:** it's resolved through Hostelworld's own autocomplete, which returns one best match — the actor takes the first result, same as picking the top suggestion in the app. A city name (e.g. `"Lisbon"`) returns every property in that city (capped by `maxItems`); a specific property name (e.g. `"Lisbon Calling"`) returns just that one property. If your query is ambiguous (a city name that also matches a property, a common word, a typo), you may get the wrong match — use the full, distinctive property or city name to be safe, and check the returned `name`/`url` match what you expected.

#### Example input

```jsonc
{
  "q": "Lisbon",
  "maxItems": 50,
  "numberOfGuests": 2,
  "numNights": 2,
  "currency": "EUR",
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

***

### 📤 Output

Each result is a JSON object like this:

```jsonc
{
  "id": 98483,
  "name": "Avenue Hostel and Suites",
  "type": "HOSTEL",
  "url": "https://www.hostelworld.com/hostels/p/98483/avenue-hostel-and-suites/",
  "overallRating": 91,
  "numberOfRatings": "2100",
  "pricePerNight": "15.70",
  "averagePricePerNight": null,
  "originalPricePerNight": null,
  "dormPricePerNight": null,
  "averageDormPricePerNight": null,
  "originalDormPricePerNight": null,
  "privatePricePerNight": null,
  "averagePrivatePricePerNight": null,
  "originalPrivatePricePerNight": null,
  "currency": "EUR",
  "city": "Lisbon",
  "country": "Portugal",
  "latitude": 38.7185,
  "longitude": -9.1447,
  "distanceFromCentreKm": 1.36,
  "isFeatured": true,
  "isPromoted": false,
  "isNew": false,
  "hostelworldRecommends": false,
  "freeCancellationAvailable": false,
  "freeCancellationAvailableUntil": "2026-07-10T13:17:28+01:00",
  "promotions": [],
  "images": [
    "https://a.hwstatic.com/propertyimages/9/98483/rp6yw0yummxjw3i3lcys.jpg",
    "https://a.hwstatic.com/propertyimages/9/98483/bhtrqpmiaruuqajinxw8.jpg",
    "…+2 more"
  ],
  "imagesGallery": [
    "https://a.hwstatic.com/propertyimages/9/98483/xcy3ivw4o38qhbyvkyxu.jpg",
    "…+3 more"
  ],
  "ratingBreakdown": {
    "ratingsCount": 122,
    "security": 97,
    "location": 88,
    "staff": 93,
    "fun": 91,
    "clean": 94,
    "facilities": 92,
    "value": 93,
    "average": 93
  },
  "facilities": [
    {
      "name": "General",
      "id": "FACILITYCATEGORYGENERAL",
      "facilities": [
        {
          "…": "2 fields"
        },
        {
          "…": "2 fields"
        }
      ]
    },
    {
      "name": "Services",
      "id": "FACILITYCATEGORYSERVICES",
      "facilities": [
        {
          "…": "2 fields"
        },
        {
          "…": "2 fields"
        },
        "…+2 more"
      ]
    },
    "…+12 more"
  ],
  "rooms": {
    "dorms": [
      {
        "…": "26 fields"
      },
      {
        "…": "26 fields"
      },
      "…+6 more"
    ],
    "privates": [
      {
        "…": "26 fields"
      },
      {
        "…": "26 fields"
      },
      "…+1 more"
    ],
    "cancellationPolicies": [
      {
        "…": "2 fields"
      },
      {
        "…": "2 fields"
      }
    ],
    "depositPercentage": 15,
    "vat": 0,
    "promotions": [
      {
        "…": "5 fields"
      },
      {
        "…": "5 fields"
      }
    ],
    "lowestPricePerNight": {
      "value": "30.01",
      "currency": "EUR"
    },
    "lowestDormPricePerNight": {
      "value": "30.01",
      "currency": "EUR"
    },
    "lowestPrivatePricePerNight": {
      "value": "105.16",
      "currency": "EUR"
    }
  },
  "detail": {
    "…": "22 fields"
  }
}
```

***

### 🧾 Data table

| Field | Type | Description |
| --- | --- | --- |
| `id` | text | ID |
| `name` | text | Name |
| `type` | text | Type |
| `url` | link | URL |
| `overallRating` | number | Overall rating |
| `numberOfRatings` | text | Number of ratings |
| `pricePerNight` | text | Price/night |
| `currency` | text | Currency |
| `city` | text | City |
| `country` | text | Country |
| `latitude` | text | Latitude |
| `longitude` | text | Longitude |
| `distanceFromCentreKm` | number | Distance from centre (km) |
| `dormPricePerNight` / `privatePricePerNight` | text | Lowest dorm / private room price |
| `averagePricePerNight` / `averageDormPricePerNight` / `averagePrivatePricePerNight` | text | Average nightly price over the stay (when Hostelworld exposes it) |
| `originalPricePerNight` / `originalDormPricePerNight` / `originalPrivatePricePerNight` | text | Pre-discount price (when a promotion applies) |
| `promotions` | array | Active promotions/discounts on the property |
| `isNew` | boolean | Recently listed on Hostelworld |
| `hostelworldRecommends` | boolean | Hostelworld editorial pick |
| `freeCancellationAvailable` / `freeCancellationAvailableUntil` | boolean / text | Free-cancellation eligibility and deadline |
| `images` | array | Property images |
| `imagesGallery` | array | Extended photo gallery images |
| `ratingBreakdown` | object | Rating breakdown |
| `facilities` | array | Facilities |
| `rooms` | object | Rooms |
| `detail` | object | Detail |

***

### 💰 Pricing — pay per result

This actor uses **pay-per-event** pricing: you pay only for the rows it delivers.

| You scrape | Price |
| --- | --- |
| **Property row** | **$2.00 per 1,000 rows** |

***

### 🔌 Use the Hostelworld Scraper via API

Run it programmatically with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/hostelworld-api-scraper/runs?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "q": "Lisbon",
  "maxItems": 50,
  "numberOfGuests": 2,
  "numNights": 2,
  "currency": "EUR",
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}'
```

Or with the Apify CLI: `apify call hostelworld-api-scraper -i input.json -o`.

***

### ❓ FAQ

**Do I need an account or API key for Hostelworld?**

No. The actor talks to Hostelworld's public/mobile API for you — you only need an Apify account.

**Do I need a proxy?**

A proxy is recommended for reliable runs; set `proxyConfiguration` (Residential is safest for geo-restricted or bot-protected sites).

**What export formats are supported?**

JSON, CSV, Excel, XML, JSONL, RSS, or live via the Apify API and dataset endpoints.

**Is scraping this legal?**

You are responsible for how you use the data. Scrape only public product data and comply with Hostelworld.com's Terms and applicable law (e.g. GDPR/CCPA for personal data).

***

### 🛠️ How it works

The actor impersonates Hostelworld's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.

***

### 📌 Good to know

- Scrape only public product data and respect Hostelworld.com's Terms of Service and robots policy.
- For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
- Fields can be `null` when Hostelworld doesn't expose them for a given record.

***

### ⭐ Found this useful?

Give the **Hostelworld Scraper** a star on Apify and check out my other `apify-*-api-scraper` actors.

# Actor input Schema

## `q` (type: `string`):

A location to search: a city, neighbourhood, or property name (e.g. 'Lisbon'). Resolved via Hostelworld's own mobile autocomplete.

## `maxItems` (type: `integer`):

Maximum number of properties to return (0 = all in the location).

## `numberOfGuests` (type: `integer`):

Guests for pricing/availability.

## `dateStart` (type: `string`):

Check-in date YYYY-MM-DD (optional; enables live room prices).

## `numNights` (type: `integer`):

Number of nights (1-31) for availability pricing.

## `currency` (type: `string`):

ISO currency code for prices (EUR, USD, GBP, ...).

## `includeDetails` (type: `boolean`):

Fetch full detail + room/dorm availability + reviews for each property (slower, more requests).

## `proxyConfiguration` (type: `object`):

Route requests through a proxy (Apify Proxy by default).

## Actor input object example

```json
{
  "q": "Lisbon",
  "maxItems": 50,
  "numberOfGuests": 2,
  "numNights": 2,
  "currency": "EUR",
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "q": "Lisbon",
    "dateStart": "",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/hostelworld-api-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 = {
    "q": "Lisbon",
    "dateStart": "",
    "proxyConfiguration": { "useApifyProxy": True },
}

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

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

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

```

## CLI example

```bash
echo '{
  "q": "Lisbon",
  "dateStart": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rl1987/hostelworld-api-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=rl1987/hostelworld-api-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/UTde4VZrQatuan7D2/builds/6IV6IzPdQKfnpg8C9/openapi.json
