# Hostelworld Hotels Search Scraper (`stealth_mode/hostelworld-hotels-search-scraper`) Actor

Scrape hotel and hostel search results from Hostelworld.com including prices, ratings, facilities, locations, and more. Perfect for travel analysts, price comparison tools, and accommodation researchers needing structured property data.

- **URL**: https://apify.com/stealth\_mode/hostelworld-hotels-search-scraper.md
- **Developed by:** [Stealth mode](https://apify.com/stealth_mode) (community)
- **Categories:** Automation, Developer tools, Travel
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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.com Hotels Search Scraper: Extract Property Listings at Scale

---

### What Is Hostelworld.com?

Hostelworld is one of the world's leading budget accommodation platforms, listing hostels, hotels, guesthouses, and B&Bs across thousands of destinations globally. Its search results contain rich property data — pricing, ratings, facilities, and geolocation — that is valuable for travel market research, competitive analysis, and price monitoring. The **Hostelworld Hotels Search Scraper** automates extraction of this data from search result pages, eliminating manual collection entirely.

---

### Overview

This scraper targets Hostelworld's property search result pages and extracts structured listings for each property returned. It is built for:

- **Travel analysts** tracking accommodation pricing trends by city or date range
- **Price comparison platforms** aggregating budget accommodation data
- **Researchers** studying hostel/hotel supply in specific markets
- **Developers** building travel tools that need live property data

Configurable item limits and resilient URL handling make it suitable for both small spot-checks and large-scale data collection runs.

---

### Input Format

The scraper accepts a simple JSON configuration:

```json
{
  "ignore_url_failures": true,
  "max_items_per_url": 200,
  "urls": [
    "https://www.hostelworld.com/pwa/s?q=Tokyo,%20Japan&country=Japan&city=Tokyo&type=city&id=452&from=2026-05-28&to=2026-05-31&guests=2&page=3"
  ]
}
````

| Field | Type | Description |
|---|---|---|
| `urls` | `array` | One or more Hostelworld search result page URLs to scrape. Add URLs one by one or use bulk edit. |
| `max_items_per_url` | `integer` | Maximum number of property listings to collect per URL. Default: `20`. Set higher (e.g., `200`) for full-page or multi-page coverage. |
| `ignore_url_failures` | `boolean` | If `true`, the scraper continues running when a URL fails instead of stopping the entire run. Recommended for bulk jobs. Default: `true`. |

**How to build a valid URL:**

Navigate to Hostelworld.com, search for a destination, apply your preferred filters (dates, guests, property type), then copy the full URL from your browser. Key query parameters include:

| Parameter | Example | Meaning |
|---|---|---|
| `q` | `Tokyo, Japan` | Search query |
| `from` / `to` | `2026-05-28` / `2026-05-31` | Check-in and check-out dates |
| `guests` | `2` | Number of guests |
| `page` | `3` | Pagination (scrape multiple pages by incrementing) |

> **Tip:** To collect all results across multiple pages, add separate URLs per page (page=1, page=2, etc.) to the `urls` array.

***

### Output Format

**Sample output record:**

```json
{
  "id": "71392471",
  "provider_id": "10038998",
  "name": "Casa Blan",
  "property_type": "APARTMENT",
  "facilities": [
    {
      "numeric_id": 5,
      "name": "Entertainment",
      "id": "FACILITYCATEGORYENTERTAINMENT",
      "facilities": [
        {
          "numeric_id": 4,
          "name": "Internet Access",
          "id": "INTERNETACCESS"
        },
        {
          "numeric_id": 133,
          "name": "Wi-Fi",
          "id": "WIFI"
        }
      ]
    },
    {
      "numeric_id": 7,
      "name": "Accessibility",
      "id": "FACILITYCATEGORYACCESSIBILITY",
      "facilities": [
        {
          "numeric_id": 27,
          "name": "Elevator",
          "id": "ELEVATOR"
        }
      ]
    },
    {
      "numeric_id": 1,
      "name": "Free",
      "id": "FACILITYCATEGORYFREE",
      "facilities": [
        {
          "numeric_id": 90,
          "name": "Free WiFi",
          "id": "FREEWIFI"
        }
      ]
    },
    {
      "numeric_id": 13,
      "name": "Bedroom",
      "id": "FACILITYCATEGORYBEDROOM",
      "facilities": [
        {
          "numeric_id": 50,
          "name": "Air Conditioning",
          "id": "AIRCONDITIONING"
        }
      ]
    },
    {
      "numeric_id": 11,
      "name": "Safety & Security",
      "id": "FACILITYCATEGORYSAFETYANDSECURITY",
      "facilities": [
        {
          "numeric_id": 378,
          "name": "Smoke Alarms",
          "id": "SMOKEALARMS"
        },
        {
          "numeric_id": 375,
          "name": "CCTV in Common Areas",
          "id": "CCTVINCOMMONAREAS"
        },
        {
          "numeric_id": 376,
          "name": "Fire Extinguishers",
          "id": "FIREEXTINGUISHERS"
        }
      ]
    }
  ],
  "is_new": false,
  "star_rating": 3,
  "latitude": "35.72383",
  "longitude": "139.73668",
  "lowest_price": 13820775,
  "per_night_price": 3787338,
  "is_free_cancellation_available": false,
  "displayable_rating": "8.3",
  "has_rating": true,
  "number_of_reviews": 107,
  "property_image": "https://q-xx.bstatic.com/xdata/images/hotel/max500/459497032.jpg?k=74b7005fff8f8f8d61a891a4ebc2f7e67dcf2edd96e590d2af6ef1a72363ea7d&o=&a=2282695",
  "distance_value_and_units": "5.57",
  "whitelabel_url": "https://www.tpi.hostelworld.com/hotels/71392471/Casa-Blan?correlationId=005bf343-4c2c-43ca-a9cf-76e79e955463",
  "from_url": "https://www.hostelworld.com/pwa/s?q=Tokyo,%20Japan&country=Japan&city=Tokyo&type=city&id=452&from=2026-05-28&to=2026-05-31&guests=2&page=3"
}
```

Each property in the search results returns the following fields:

#### Identity & Classification

| Field | Meaning |
|---|---|
| `ID` | Hostelworld's unique internal identifier for the property |
| `Provider ID` | External provider identifier (may differ from internal ID) |
| `Name` | Property display name as shown in search results |
| `Property Type` | Category of accommodation (e.g., Hostel, Hotel, Guesthouse) |
| `Is New` | Boolean flag indicating recently listed properties |

#### Pricing

| Field | Meaning |
|---|---|
| `Lowest Price` | Cheapest available rate for the selected dates |
| `Per Night Price` | Nightly rate derived from the total stay price |
| `Is Free Cancellation Available` | Whether at least one room type offers free cancellation |

#### Ratings & Reviews

| Field | Meaning |
|---|---|
| `Star Rating` | Official star classification (where applicable) |
| `Displayable Rating` | Hostelworld's guest score shown on the listing (e.g., 8.5/10) |
| `Has Rating` | Boolean indicating whether the property has been rated |
| `Number Of Reviews` | Total count of guest reviews submitted |

#### Location

| Field | Meaning |
|---|---|
| `Latitude` | Geographic latitude coordinate of the property |
| `Longitude` | Geographic longitude coordinate of the property |
| `Distance Value And Units` | Distance from the searched city center (e.g., "0.3 km") |

#### Media & Links

| Field | Meaning |
|---|---|
| `Property Image` | URL of the primary listing image |
| `Whitelabel URL` | Deep-link URL to the property's booking page |

#### Amenities

| Field | Meaning |
|---|---|
| `Facilities` | List of available amenities (e.g., Free WiFi, Breakfast, Parking, Lockers) |

***

### How to Use

1. **Build your search URL** — Go to Hostelworld.com, search a destination, set dates and guests, then copy the browser URL.
2. **Paste into `urls`** — Add one or more URLs to the array. For full coverage, include multiple paginated URLs.
3. **Set `max_items_per_url`** — Use `200` to capture full pages; lower values work for quick sampling.
4. **Enable `ignore_url_failures`** — Keep this `true` for multi-URL runs to avoid interruptions from occasional failures.
5. **Export** — Download results as JSON, CSV, or Excel for analysis or integration.

**Common issues:**

- Ensure dates in the URL are in `YYYY-MM-DD` format and are future dates — expired date ranges may return empty results.
- If a page returns fewer items than expected, check that the `page` parameter in the URL is valid (doesn't exceed the total number of search result pages).

***

### Use Cases & Business Value

- **Price monitoring:** Track nightly rate fluctuations for budget accommodation in target cities
- **Market research:** Analyze property supply, types, and ratings across destinations
- **Competitive intelligence:** Benchmark facilities and pricing against competitor listings
- **Travel app development:** Populate custom travel tools with live property data

***

### Conclusion

The **Hostelworld Hotels Search Scraper** turns paginated search results into clean, structured datasets with 18+ fields per property — covering pricing, ratings, location, and amenities. Whether you're building a price tracker or conducting hospitality market research, it delivers reliable data without manual effort. Configure your search URL, set your limits, and run.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the hotels list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to be scraped.

## `max_items_per_url` (type: `integer`):

The maximum number of items to scrape per URL.

## Actor input object example

```json
{
  "urls": [
    "https://www.hostelworld.com/pwa/s?q=Tokyo,%20Japan&country=Japan&city=Tokyo&type=city&id=452&from=2026-05-28&to=2026-05-31&guests=2&page=3"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}
```

# 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 = {
    "urls": [
        "https://www.hostelworld.com/pwa/s?q=Tokyo,%20Japan&country=Japan&city=Tokyo&type=city&id=452&from=2026-05-28&to=2026-05-31&guests=2&page=3"
    ],
    "ignore_url_failures": true,
    "max_items_per_url": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("stealth_mode/hostelworld-hotels-search-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 = {
    "urls": ["https://www.hostelworld.com/pwa/s?q=Tokyo,%20Japan&country=Japan&city=Tokyo&type=city&id=452&from=2026-05-28&to=2026-05-31&guests=2&page=3"],
    "ignore_url_failures": True,
    "max_items_per_url": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("stealth_mode/hostelworld-hotels-search-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 '{
  "urls": [
    "https://www.hostelworld.com/pwa/s?q=Tokyo,%20Japan&country=Japan&city=Tokyo&type=city&id=452&from=2026-05-28&to=2026-05-31&guests=2&page=3"
  ],
  "ignore_url_failures": true,
  "max_items_per_url": 20
}' |
apify call stealth_mode/hostelworld-hotels-search-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Hostelworld Hotels Search Scraper",
        "description": "Scrape hotel and hostel search results from Hostelworld.com including prices, ratings, facilities, locations, and more. Perfect for travel analysts, price comparison tools, and accommodation researchers needing structured property data.",
        "version": "0.0",
        "x-build-id": "ks2vfaDN3PYAi3KzT"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/stealth_mode~hostelworld-hotels-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-stealth_mode-hostelworld-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/stealth_mode~hostelworld-hotels-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-stealth_mode-hostelworld-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/stealth_mode~hostelworld-hotels-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-stealth_mode-hostelworld-hotels-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "urls": {
                        "title": "URLs of the hotels list urls to scrape",
                        "type": "array",
                        "description": "Add the URLs of the hotels list urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "ignore_url_failures": {
                        "title": "Continue running even if some URLs fail to be scraped",
                        "type": "boolean",
                        "description": "If true, the scraper will continue running even if some URLs fail to be scraped."
                    },
                    "max_items_per_url": {
                        "title": "Max items per URL",
                        "type": "integer",
                        "description": "The maximum number of items to scrape per URL."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
