# Booking.com Hotel Scraper (`scrapyspider/booking-com-scraper`) Actor

Scrape hotel listings from Booking.com search results. Provide a destination, check-in/check-out dates, number of adults, children (with ages), and rooms — the Actor builds the search URL and crawls every property listing automatically.

- **URL**: https://apify.com/scrapyspider/booking-com-scraper.md
- **Developed by:** [ScrapySpider](https://apify.com/scrapyspider) (community)
- **Categories:** Travel, Real estate
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-usage

## 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

## Booking.com Hotel Scraper

Scrape hotel and property listings from [Booking.com](https://www.booking.com). Provide a destination, dates, and guest counts — the Actor builds the search URL, scrolls through all results, visits every property page, and returns rich structured data.

---

### Features

- **Structured search input** — fill in location, dates, adults, children (with ages), and rooms; the Actor builds the Booking.com search URL automatically
- **Automatic infinite scroll** — loads all listings on the search-results page before following links
- **Popup auto-dismiss** — presses Escape on every page load to handle sign-in and cookie popups
- **Rich detail extraction** — images, features, facilities, description, house rules, important info, GPS coordinates, and Google-reverse-geocoded address
- **Proxy support** — works with Apify Proxy or your own proxies to avoid IP blocking
- **Direct URL mode** — also accepts raw `startUrls` if you prefer to provide a Booking.com search URL directly

---

### Input

The Actor supports two modes:

#### Mode 1 — Structured search *(recommended)*

Fill in the fields and the Actor builds the URL for you.

| Field | Type | Default | Description |
|---|---|---|---|
| `location` | String | `"Ahmedabad, India"` | Destination name, e.g. `"Paris, France"` |
| `checkIn` | String (YYYY-MM-DD) | `"2026-06-01"` | Check-in date |
| `checkOut` | String (YYYY-MM-DD) | `"2026-06-05"` | Check-out date — must be after check-in |
| `adults` | Integer ≥ 1 | `2` | Number of adult guests |
| `children` | Integer ≥ 0 | `0` | Number of child guests |
| `childAges` | Integer[] (0–17) | `[]` | Age of each child — must have one entry per child. Example: 3 children aged 2, 5 and 13 → `[2, 5, 13]` |
| `rooms` | Integer ≥ 1 | `1` | Number of rooms |

**Example `INPUT.json`:**
```json
{
  "location": "Ahmedabad, India",
  "checkIn": "2026-06-01",
  "checkOut": "2026-06-05",
  "adults": 3,
  "children": 5,
  "childAges": [2, 4, 4, 5, 13],
  "rooms": 3
}
````

#### Mode 2 — Direct start URLs *(advanced)*

Provide one or more fully-formed Booking.com search-results URLs. When `startUrls` is set, the location/date/guest fields are ignored.

| Field | Type | Description |
|---|---|---|
| `startUrls` | Array of `{ url }` | One or more Booking.com search-results page URLs |

**Example `INPUT.json`:**

```json
{
  "startUrls": [
    { "url": "https://www.booking.com/searchresults.html?ss=Ahmedabad%2C+India&checkin=2026-06-01&checkout=2026-06-05&group_adults=2&no_rooms=1&group_children=0" }
  ]
}
```

***

### Output

Each property is saved as one item in the Apify Dataset.

| Field | Type | Description |
|---|---|---|
| `url` | String | Full Booking.com property page URL |
| `title` | String | HTML page title (includes location and year) |
| `name` | String | Clean property name |
| `address` | String | Property address |
| `bedrooms` | String | Selected room / bedroom type label |
| `adults` | String | Number of adults from the search |
| `rooms` | String | Number of rooms from the search |
| `price` | String | Displayed total price as a numeric string (e.g. `"4,500"`) |
| `images` | String\[] | Array of full image URLs from the property gallery |
| `featuresList` | String\[] | Highlighted features (e.g. `"Free Wifi"`, `"Outdoor swimming pool"`) |
| `facilities` | String\[] | Popular facilities (e.g. `"Fitness center"`, `"Room service"`) |
| `description` | String | Full property description text |
| `homeRules` | Object | House rules as a flat key/value map — keys include `Check-in`, `Check-out`, `Cancellation and prepayment`, `Child policies`, `Pets`, etc. |
| `importantInfo` | String | Text from the Important Information section |
| `coordinates` | Object | GPS coordinates: `{ latitude, longitude }` |
| `GoogleAddress` | String | Primary address from Google Maps reverse geocoding |
| `GoogleAddress2` | String | Secondary address from Google Maps reverse geocoding |

**Example output item:**

```json
{
  "url": "https://www.booking.com/hotel/in/itc-narmada-a-luxury-collection.html?...",
  "title": "ITC Narmada, a Luxury Collection Hotel, Ahmedabad (updated prices 2026)",
  "name": "ITC Narmada, a Luxury Collection Hotel, Ahmedabad",
  "address": "Survey ## 104 A, Judges Bunglow Road, Vastrapur, 380015 Ahmedabad, India",
  "bedrooms": "King Room with City View - Club Level",
  "adults": "3",
  "rooms": "3",
  "price": "14,671",
  "images": [
    "https://cf.bstatic.com/xdata/images/hotel/max1024x768/590624878.jpg?k=...&o=",
    "https://cf.bstatic.com/xdata/images/hotel/max1024x768/487539087.jpg?k=...&o="
  ],
  "featuresList": [
    "Free Wifi",
    "Outdoor swimming pool",
    "Very Good Breakfast",
    "Free on-site parking",
    "Fitness center"
  ],
  "facilities": [
    "Outdoor swimming pool",
    "Free Wifi",
    "Fitness center",
    "Room service",
    "Free parking",
    "5 restaurants"
  ],
  "description": "Elegant Accommodations: Rooms feature air-conditioning, private bathrooms, city views, and modern amenities...",
  "homeRules": {
    "Check-in": "From 3:00 PM",
    "Check-out": "Until 12:00 PM",
    "Cancellation and prepayment": "policies vary according to accommodation type.",
    "Child policies": "Children of all ages are welcome.",
    "Age restriction": "The minimum age for check-in is 18",
    "Pets": "are not allowed."
  },
  "importantInfo": "Guests are required to show a photo identification and credit card upon check-in...",
  "coordinates": { "latitude": 23.029633, "longitude": 72.529972 },
  "GoogleAddress": "Itc Narmada, Survey ## 104 A, Judges Bunglow Rd, Vastrapur, Ahmedabad, Gujarat 380015, India",
  "GoogleAddress2": "Itc Narmada, Survey ## 104A, Judges Bunglow Rd, Vastrapur, Ahmedabad, Gujarat 380015, India"
}
```

***

### Running locally

1. Install dependencies:
   ```bash
   npm install
   ```
2. Edit `storage/key_value_stores/default/INPUT.json` with your search parameters.
3. Run the Actor:
   ```bash
   apify run
   ```

Results are saved to `storage/datasets/default/`.

***

### Deploy to Apify

#### Option A — Push from local machine

```bash
apify login
apify push
```

#### Option B — Connect a Git repository

1. Go to [Apify Console → New Actor](https://console.apify.com/actors/new)
2. Click **Link Git Repository** and follow the prompts.

***

### Resources

- [Apify SDK for JavaScript](https://docs.apify.com/sdk/js)
- [Crawlee documentation](https://crawlee.dev)
- [Apify Platform documentation](https://docs.apify.com/platform)
- [Join the Apify Discord community](https://discord.com/invite/jyEM2PRvMU)

# Actor input Schema

## `location` (type: `string`):

Destination to search (e.g. 'Le Morne, Mauritius West Coast, Mauritius').

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

Check-in date in YYYY-MM-DD format. Must be today or in the future.

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

Check-out date in YYYY-MM-DD format. Must be after check-in date.

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

Number of adult guests, Maximum Adults will be 30 .

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

Number of child guests, Maximum Childs will be 10.

## `childAges` (type: `array`):

Age of each child in years. Must have one entry per child (0–17). Example: 6 children aged 2, 5, and 13 → \[2, 5, 13, 12, 4, 6].

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

Number of rooms to book, Maximum Rooms will be 30.

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

Optional. Provide one or more fully-formed Booking.com search result page URLs to scrape directly. When set, the location/date/guest fields above are ignored.

## Actor input object example

```json
{
  "location": "Le Morne, Mauritius West Coast, Mauritius",
  "checkIn": "2026-05-31",
  "checkOut": "2026-06-01",
  "adults": 30,
  "children": 9,
  "childAges": [
    2,
    14,
    17,
    15,
    16,
    16,
    14,
    13,
    12
  ],
  "rooms": 30,
  "startUrls": []
}
```

# 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 = {
    "location": "Le Morne, Mauritius West Coast, Mauritius",
    "checkIn": "2026-05-31",
    "checkOut": "2026-06-01",
    "adults": 30,
    "children": 9,
    "childAges": [
        2,
        14,
        17,
        15,
        16,
        16,
        14,
        13,
        12
    ],
    "rooms": 30,
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapyspider/booking-com-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 = {
    "location": "Le Morne, Mauritius West Coast, Mauritius",
    "checkIn": "2026-05-31",
    "checkOut": "2026-06-01",
    "adults": 30,
    "children": 9,
    "childAges": [
        2,
        14,
        17,
        15,
        16,
        16,
        14,
        13,
        12,
    ],
    "rooms": 30,
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapyspider/booking-com-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 '{
  "location": "Le Morne, Mauritius West Coast, Mauritius",
  "checkIn": "2026-05-31",
  "checkOut": "2026-06-01",
  "adults": 30,
  "children": 9,
  "childAges": [
    2,
    14,
    17,
    15,
    16,
    16,
    14,
    13,
    12
  ],
  "rooms": 30,
  "startUrls": []
}' |
apify call scrapyspider/booking-com-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Booking.com Hotel Scraper",
        "description": "Scrape hotel listings from Booking.com search results. Provide a destination, check-in/check-out dates, number of adults, children (with ages), and rooms — the Actor builds the search URL and crawls every property listing automatically.",
        "version": "0.0",
        "x-build-id": "Ww4AhFIwPpi7MA9Wn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapyspider~booking-com-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapyspider-booking-com-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/scrapyspider~booking-com-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapyspider-booking-com-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/scrapyspider~booking-com-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapyspider-booking-com-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": {
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "Destination to search (e.g. 'Le Morne, Mauritius West Coast, Mauritius')."
                    },
                    "checkIn": {
                        "title": "Check-in date",
                        "type": "string",
                        "description": "Check-in date in YYYY-MM-DD format. Must be today or in the future."
                    },
                    "checkOut": {
                        "title": "Check-out date",
                        "type": "string",
                        "description": "Check-out date in YYYY-MM-DD format. Must be after check-in date."
                    },
                    "adults": {
                        "title": "Number of adults",
                        "minimum": 1,
                        "maximum": 30,
                        "type": "integer",
                        "description": "Number of adult guests, Maximum Adults will be 30 .",
                        "default": 2
                    },
                    "children": {
                        "title": "Number of children",
                        "minimum": 0,
                        "maximum": 30,
                        "type": "integer",
                        "description": "Number of child guests, Maximum Childs will be 10.",
                        "default": 0
                    },
                    "childAges": {
                        "title": "Child ages",
                        "type": "array",
                        "description": "Age of each child in years. Must have one entry per child (0–17). Example: 6 children aged 2, 5, and 13 → [2, 5, 13, 12, 4, 6].",
                        "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 17
                        }
                    },
                    "rooms": {
                        "title": "Number of rooms",
                        "minimum": 1,
                        "maximum": 30,
                        "type": "integer",
                        "description": "Number of rooms to book, Maximum Rooms will be 30. ",
                        "default": 1
                    },
                    "startUrls": {
                        "title": "Start URLs (advanced)",
                        "type": "array",
                        "description": "Optional. Provide one or more fully-formed Booking.com search result page URLs to scrape directly. When set, the location/date/guest fields above are ignored.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
