# Booking.com Hotels Scraper (`scrapewonder/booking-hotels-scraper`) Actor

Scrape Booking.com hotel search results for any destination and dates: total stay price as a number + currency, rating, review count, stars, address, GPS, distance, room type, free cancellation and more. Low proxy traffic, no login.

- **URL**: https://apify.com/scrapewonder/booking-hotels-scraper.md
- **Developed by:** [Wonderland Data](https://apify.com/scrapewonder) (community)
- **Categories:** Travel, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 hotel scrapeds

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

## Booking.com Hotels Scraper

Scrape **Booking.com search results** for any destination and dates: hotels, apartments, hostels and B\&Bs with the **total price for your stay as a clean number + currency**, guest rating, review count, stars, address, GPS coordinates, distance from centre, room type and free cancellation. No login, no account, no cookies.

Use it for **hotel price monitoring**, rate shopping and revenue management, travel market research, building travel apps, or comparing destinations and dates.

### Why this scraper

- **Real numbers, not strings**: `price: 93.61` and `currency: "EUR"`, `rating: 8.3`, `reviewCount: 1367`, `distanceFromCenterKm: 0.2`. No parsing of "€ 94" or "1,367 reviews" on your side.
- **Price for the whole stay** plus `pricePerNight`, `priceBeforeDiscount`, `discountPercent` and the deal names ("Black Friday Deal", "Genius discount").
- **Clean canonical URLs** (`/hotel/pl/hotel-name.html`) plus a ready `bookingUrl` with your dates and guests.
- **Free cancellation flag and deadline** as an ISO date, no-prepayment flag, meal plan and breakfast flag.
- **Low proxy traffic**: by default the actor loads only the page HTML and Booking's own JSON API, about **0.5 MB per search plus 0.1-0.15 MB per 100 results** instead of 4 MB+ for a full browser page. Residential proxy is billed per GB, so runs stay cheap.
- **Up to 100 results per request** through Booking's own GraphQL API, which is fast and stable.

### What you get for each property

| Field | Example | Notes |
|---|---|---|
| `position` | `1` | Rank among the returned results for this search (1, 2, 3, ... without gaps, in Booking.com order) |
| `hotelId` | `88438` | Booking.com property ID |
| `name` | `Golden Lion Guest Rooms Szewska 19` | |
| `url` | `https://www.booking.com/hotel/pl/goldenlionapartmentskrakow.html` | Canonical property URL |
| `bookingUrl` | `...html?checkin=2026-12-10&checkout=2026-12-12&group_adults=2...` | Opens the property for your dates and guests |
| `type`, `accommodationTypeId` | `Hotel`, `204` | Hotel, Apartment, Hostel, Aparthotel, B\&B, ... |
| `stars`, `starsType` | `4`, `official` | `booking-estimate` = Booking's own rating for apartments |
| `rating`, `ratingText`, `reviewCount` | `8.3`, `Very good`, `1367` | Guest review score (1-10); `null` for properties without reviews |
| `locationRating` | `9.5` | Location sub-score |
| `price`, `currency` | `93.61`, `EUR` | **Total price for the stay**, as displayed, taxes included |
| `pricePerNight` | `46.81` | `price / nights` |
| `priceBeforeDiscount`, `discountPercent`, `deals` | `104.01`, `10`, `["Genius discount"]` | Strike-through price and deal names |
| `priceInHotelCurrency`, `hotelCurrency` | `417.15`, `PLN` | Price in the property's local currency |
| `taxesIncluded`, `excludedCharges` | `true`, `null` | Extra charges not included in `price`; `taxesIncluded` is `null` when there is no price |
| `checkIn`, `checkOut`, `nights`, `adults`, `children`, `rooms` | `2026-12-10`, `2026-12-12`, `2`, `2`, `0`, `1` | The search the price is for |
| `roomType`, `roomTypes` | `Standard Apartment` | Room(s) matching your search |
| `freeCancellation`, `freeCancellationUntil` | `true`, `2026-12-08T23:00:00.000Z` | ISO date-time |
| `noPrepayment` | `true` | |
| `mealPlan`, `breakfastIncluded` | `Breakfast included`, `true` | As shown by Booking.com on the result card |
| `address`, `city`, `countryCode`, `district` | `Szewska 19`, `Kraków`, `PL`, `Old Town, Kraków` | |
| `distanceFromCenter`, `distanceFromCenterKm` | `200 m from centre`, `0.2` | |
| `nearbyTransit` | `Blanche station is within 150 metres` | When Booking shows it |
| `latitude`, `longitude` | `50.0628`, `19.9344` | |
| `imageUrl` | `https://cf.bstatic.com/xdata/images/hotel/square600/...jpg` | Main photo |
| `isSponsored`, `soldOut` | `false`, `false` | |
| `searchQuery`, `scrapedAt` | `Krakow`, `2026-11-22T18:02:04.769Z` | |

### How to use

1. Enter one or more **destinations** (e.g. `Paris`, `Tenerife`, `Old Town, Krakow`), **check-in / check-out dates** and guests, or
2. Paste any **Booking.com search results URL** (`/searchresults.html`) with your own filters and sorting, and they are all kept. If the URL has no dates, the check-in/check-out from the input are added. Hotel and city pages are skipped with a warning.
3. Optionally filter by **stars, minimum rating, free cancellation, price per night**, and choose the **sort order**.
4. Set **Max results per search** and run. Export to JSON, CSV, Excel, or use the API, Make, Zapier or n8n.

#### Example input

```json
{
  "search": ["Paris", "Lisbon"],
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-12",
  "adults": 2,
  "childrenAges": ["7"],
  "currency": "USD",
  "sortBy": "price",
  "starRatings": ["4", "5"],
  "freeCancellationOnly": true,
  "maxItemsPerSearch": 200
}
```

#### Example output

```json
{
  "position": 1,
  "hotelId": 1170226,
  "name": "Hilton Garden Inn Krakow Airport",
  "url": "https://www.booking.com/hotel/pl/hilton-garden-inn-krakow-airport.html",
  "type": "Hotel",
  "stars": 4,
  "rating": 9.1,
  "ratingText": "Superb",
  "reviewCount": 8061,
  "price": 372.55,
  "currency": "EUR",
  "pricePerNight": 186.27,
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-12",
  "roomType": "King Room",
  "freeCancellation": false,
  "address": "Medweckiego 3",
  "city": "Krakow",
  "distanceFromCenterKm": 9.7,
  "latitude": 50.0716585484676,
  "longitude": 19.8021584004163
}
```

### Tips

- **Price monitoring**: schedule the actor daily with the same dates and compare `price` by `hotelId`.
- **More than ~1,000 results**: Booking.com shows at most about 1,000 properties per search. Split a big city by star rating or price range (`minPrice` / `maxPrice`), or by district.
- **Without dates** Booking.com shows no prices, so the actor uses check-in in 14 days for one night when you leave the dates empty.
- **Cheapest options first**: set `sortBy` to `price`. The order is Booking.com's own; duplicates that Booking.com repeats on later pages are dropped and `position` counts the saved items.
- **Only the searched destination**: after the matching properties Booking.com appends "nearby" properties from other towns. The actor stops at Booking.com's own result count, so you get only properties in the searched area.
- **Dates**: check-in must be today or later and a stay can be at most 30 nights. Invalid dates, child ages or currency codes stop the run with a clear error.
- **Proxy**: keep the default residential proxy. Thanks to low-bandwidth mode a search with 1,000 results needs only about 1.5-2 MB of proxy traffic (about 0.5 MB per search plus 0.1-0.15 MB per 100 results).

### FAQ

**Do I need a Booking.com account?** No. The actor only reads public search results and never logs in.

**Which prices do I get?** The price Booking.com shows to an anonymous visitor for your dates, guests and currency, for the whole stay, including taxes unless `excludedCharges` says otherwise.

**Can I scrape reviews or room availability calendars?** This actor focuses on search results. Each item has `url` and `bookingUrl`, so you can feed them into a detail or reviews scraper.

**Is it legal?** The actor collects publicly available business data (property listings and prices). It does not collect personal data. Make sure your use complies with the laws and terms that apply to you.

**Something broke?** Open an issue on the Issues tab. Fixes ship quickly.

### For developers

- `npm test` runs the offline parser tests on real captured responses in `test/fixtures`.
- `MEASURE_TRANSFER=1 npm run start:dev` logs the transfer per 100 results.
- `tools/probe.mjs` captures fresh fixtures; `tools/bytes.mjs` breaks down full-page traffic by resource type; `node tools/loadmore-check.mjs pl` checks that the language-independent "load more" button detection still finds the button.

# Actor input Schema

## `search` (type: `array`):

Cities, regions, districts, landmarks or hotel names, exactly as you would type them into the Booking.com search box (e.g. "Paris", "Old Town, Krakow", "Tenerife").

## `startUrls` (type: `array`):

Paste Booking.com search results URLs (www.booking.com/searchresults.html?...) with your own dates, guests, filters and sorting. Guests and filters below are ignored for these URLs; the check-in/check-out dates below are used only when a URL has no dates. Hotel pages, city pages and remote URL lists are not supported and are skipped with a warning.

## `checkIn` (type: `string`):

Check-in date (YYYY-MM-DD), today or later. If empty, 14 days from today is used. Booking.com shows prices only for searches with dates.

## `checkOut` (type: `string`):

Check-out date (YYYY-MM-DD), after check-in and at most 30 nights later (Booking.com limit). If empty, one night after check-in.

## `adults` (type: `integer`):

Number of adult guests.

## `childrenAges` (type: `array`):

One entry per child with the child's age (0-17), e.g. \["5", "9"] for two children. Empty rows are ignored; any other invalid age stops the run with an error. Leave empty for no children.

## `rooms` (type: `integer`):

Number of rooms.

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

3-letter ISO currency code for prices (EUR, USD, GBP, PLN, ...). If Booking.com does not support the code, it falls back to a local currency and the log shows a warning.

## `language` (type: `string`):

Booking.com language code (en-gb, en-us, de, fr, es, pl, ...). Affects texts such as rating labels and distance descriptions.

## `sortBy` (type: `string`):

Order of results, same options as on Booking.com.

## `starRatings` (type: `array`):

Only properties with these star ratings. Leave empty for all.

## `minReviewScore` (type: `string`):

Only properties with at least this review score. Leave empty for any rating.

## `freeCancellationOnly` (type: `boolean`):

Only properties that offer free cancellation.

## `minPrice` (type: `integer`):

Minimum price per night in the selected currency (Booking.com price filter).

## `maxPrice` (type: `integer`):

Maximum price per night in the selected currency (Booking.com price filter).

## `maxItemsPerSearch` (type: `integer`):

Stop after this many properties for each destination or URL. Booking.com shows at most about 1,000 results per search; use filters (stars, price) to split bigger searches.

## `lowBandwidthMode` (type: `boolean`):

Load only the HTML and data requests instead of the full page with its JavaScript. About 8x less proxy traffic (cheaper residential proxy). If Booking.com changes its API the actor falls back to the full page automatically.

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

Residential proxy is recommended: Booking.com is protected by AWS WAF and treats datacenter IPs with suspicion. In low-bandwidth mode traffic is about 0.5 MB per search plus about 0.1-0.15 MB per 100 results.

## Actor input object example

```json
{
  "search": [
    "Paris"
  ],
  "adults": 2,
  "rooms": 1,
  "currency": "EUR",
  "language": "en-gb",
  "sortBy": "popularity",
  "freeCancellationOnly": false,
  "maxItemsPerSearch": 20,
  "lowBandwidthMode": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All scraped items in the default dataset.

# 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 = {
    "search": [
        "Paris"
    ],
    "maxItemsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewonder/booking-hotels-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 = {
    "search": ["Paris"],
    "maxItemsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewonder/booking-hotels-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 '{
  "search": [
    "Paris"
  ],
  "maxItemsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call scrapewonder/booking-hotels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewonder/booking-hotels-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/UsKdUAjkZEcQL6qLk/builds/afoyFsYRC43cZrwsC/openapi.json
