# Booking.com Hotels & Accommodations Scraper (`ulitron34/booking-scraper`) Actor

Fast and stealth Booking.com scraper. Extract hotel listings, nightly prices, original discounts, star ratings, review scores, room types, locations, distances, and photos without getting blocked.

- **URL**: https://apify.com/ulitron34/booking-scraper.md
- **Developed by:** [ulises salgado diaz](https://apify.com/ulitron34) (community)
- **Categories:** Travel
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 & Accommodations Scraper

**Fast, reliable, and stealth Booking.com scraper.** Extract hotel listings, nightly prices, original discounts, star ratings, review scores, room types, locations, distances, and high-resolution photos without getting blocked.

*Scraper rápido, confiable y sigiloso para Booking.com. Extrae hoteles, precios por noche, descuentos, calificaciones de estrellas, puntuaciones de reseñas, tipos de habitación, ubicaciones y fotos sin bloqueos.*

***

### ✨ Key Features / Características Principales

| Feature / Característica | Description / Descripción |
| :--- | :--- |
| 🛡️ **Anti-Bot Evasion (Camoufox)** | Powered by Camoufox C++ browser fingerprint spoofing to bypass Kasada and PerimeterX defenses seamlessly. |
| 💰 **Pricing & Discount Extraction** | Extracts current price, original strikethrough price, and detects currencies (USD, EUR, GBP, MXN, CAD, etc.). |
| ⭐ **Ratings & Detailed Reviews** | Captures rating scores (e.g. 9.2/10), rating categories ("Superb", "Fabulous"), and total verified review counts. |
| 🌟 **Star & Quality Ratings** | Extracts 1 to 5 star hotel classifications and vacation home quality tiers. |
| 📍 **Geo & Location Metrics** | Extracts physical addresses and precise distance from city center or landmark. |
| 🎁 **Perk & Policy Badges** | Detects Free Cancellation, Breakfast Included, and special reservation badges. |
| 📑 **Offset Pagination** | Handles deep pagination across hundreds of hotel listings seamlessly. |
| 🔍 **Custom Filtering & Sorting** | Filter by min/max price, minimum score, minimum stars, and custom sorting (price, popularity, reviews). |

***

### 📥 Input Configuration / Configuración de Entrada

#### Example 1: Search by Destination & Flexible Dates

```json
{
  "destination": "Paris, France",
  "max_items": 50,
  "adults": 2,
  "rooms": 1,
  "currency": "EUR",
  "sort_by": "popularity"
}
```

#### Example 2: Specific Dates with Price & Rating Filters

```json
{
  "destination": "Cancun, Mexico",
  "check_in": "2026-11-10",
  "check_out": "2026-11-15",
  "adults": 2,
  "rooms": 1,
  "currency": "USD",
  "min_score": 8.5,
  "min_stars": 4,
  "sort_by": "price",
  "max_items": 100
}
```

#### Example 3: Direct Booking.com Search URLs

```json
{
  "start_urls": [
    { "url": "https://www.booking.com/searchresults.html?ss=Rome%2C+Italy&checkin=2026-10-01&checkout=2026-10-05" }
  ],
  "max_items": 40
}
```

***

### 📤 Output Dataset Format / Formato del Dataset de Salida

Each listing extracted from Booking.com is formatted into clean, structured JSON ready for analysis:

```json
{
  "id": "123456",
  "title": "Grand Hotel de Paris",
  "price": 285.0,
  "original_price": 350.0,
  "currency": "EUR",
  "price_display": "€ 285",
  "rating_score": 9.2,
  "rating_category": "Superb",
  "review_count": 1450,
  "star_rating": 4.0,
  "address": "10 Rue de la Paix, 2nd arr., 75002 Paris, France",
  "distance": "0.4 km from center",
  "room_type": "Deluxe Double Room",
  "free_cancellation": true,
  "breakfast_included": true,
  "url": "https://www.booking.com/hotel/fr/grand-hotel-paris.html",
  "image_url": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/123456.jpg",
  "scraped_at": "2026-09-24T18:00:00.000Z"
}
```

***

### 💼 Commercial Use Cases / Casos de Uso Comerciales

1. **Hospitality Price Intelligence**: Track competitor room rates across peak travel seasons, holidays, and major events.
2. **Travel & OTA Arbitrage**: Compare prices between Booking.com, Airbnb, and Vrbo to identify underpriced inventory.
3. **Reputation & Review Analytics**: Aggregate guest satisfaction metrics and feedback to identify top-performing properties.
4. **Real Estate & Investment Due Diligence**: Gauge revenue potential and demand density before purchasing tourist accommodations.

***

### 🛡️ Anti-Bot Protection & Proxy Settings

Booking.com enforces strict browser verification (PerimeterX / Kasada challenges). This actor runs with **Camoufox** (an anti-detect browser engine) and **Apify Proxy** (`RESIDENTIAL` or standard `datacenter`) to ensure stable, non-blocked scraping runs at high scale.

# Actor input Schema

## `destination` (type: `string`):

City, region, landmark, or hotel name to search on Booking.com (e.g. 'Paris, France', 'Cancun', 'Tokyo', 'Rome').

## `start_urls` (type: `array`):

Direct search result URLs or property links from Booking.com. If provided, overrides destination.

## `max_items` (type: `integer`):

Maximum number of hotel listings to scrape and save to the dataset.

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

Check-in date in YYYY-MM-DD format (e.g., '2026-10-15'). If empty, a 2-night stay starting 14 days from today is used, because Booking.com only shows prices when dates are set.

## `check_out` (type: `string`):

Check-out date in YYYY-MM-DD format. If empty, check-in + 2 nights.

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

Number of adult guests.

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

Number of rooms required.

## `children` (type: `integer`):

Number of children traveling.

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

Currency code to display prices in (e.g., USD, EUR, GBP, MXN, CAD, AUD, JPY).

## `min_price` (type: `integer`):

Filter results with price >= this value.

## `max_price` (type: `integer`):

Filter results with price <= this value.

## `min_score` (type: `number`):

Minimum guest review score (e.g., 8.0 for 'Very Good', 9.0 for 'Wonderful').

## `min_stars` (type: `integer`):

Filter properties with star rating >= this value (1-5).

## `sort_by` (type: `string`):

Sort order for search results.

## `proxy_configuration` (type: `object`):

Apify Proxy configuration to prevent rate limiting or geo-blocking. Residential proxies are the default because this site blocks datacenter IPs.

## Actor input object example

```json
{
  "destination": "Paris, France",
  "max_items": 10,
  "adults": 2,
  "rooms": 1,
  "children": 0,
  "currency": "USD",
  "sort_by": "popularity",
  "proxy_configuration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Scraped Booking.com hotel listings with prices, discounts, ratings, reviews, room types, and distances.

# 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 = {
    "max_items": 10,
    "proxy_configuration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ulitron34/booking-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 = {
    "max_items": 10,
    "proxy_configuration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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