# Booking.com Price Scanner (`moving_beacon-owner1/booking-com-price-scanner`) Actor

Scans one or more Booking.com hotel pages across multiple dates and extracts every available room and rate, including room names, prices, occupancy, cancellation and deal details. Export clean results to CSV, JSON, or Excel.

- **URL**: https://apify.com/moving\_beacon-owner1/booking-com-price-scanner.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Developer tools, Other
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

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

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

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

# README

## Booking.com Price Scanner

Scans one or many Booking.com hotel pages across a range of dates and
extracts **every room and every rate — each with its name** — into a clean
dataset you can export as CSV, JSON or Excel.

### Input

| Field | Meaning |
| --- | --- |
| `startUrls` | Booking.com hotel page links. Stale search params (`all_sr_blocks`, `sid`, ...) are stripped automatically. |
| `checkIn`, `checkOut` | First stay; their difference = stay length for every scanned day. |
| `daysToScan` | Number of consecutive stays to fetch (dates shift daily). |
| `adults`, `childrenAges`, `rooms` | Occupancy. `req_*`, `room1` and `&age=` params are derived automatically. |
| `currency` | Optional ISO code; adds `selected_currency` so all prices share one currency. |
| `proxyConfiguration` | Apify Proxy (RESIDENTIAL recommended). One sticky session shared by browser + fetches. |
| `useBrowserCookies` | Playwright warm-up on/off. |
| `impersonate` | curl\_cffi TLS fingerprint target. |
| `maxBlockedRetries`, `minDelaySecs`, `maxDelaySecs` | Anti-blocking behaviour. |
| `saveHtml` | Store each raw page in the key-value store for debugging. |

### Output (one dataset item per room rate)

`hotel`, `hotel_name`, `checkin`, `checkout`, `nights`, `room_title`,
`sleeps`, `beds`, `room_size`, `room_id`, `roomtype_id`, `block_id`,
`max_persons`, `fits_all_group`, `displayed_price`, `price_per_night`,
`price_per_night_raw`, `rounded_price`, `original_price`, `deal`,
`deal_value`, `free_cancellation`, `no_prepayment`, `no_credit_card`,
`scarcity`, `http_status`, `url`.

Blocked or empty pages produce one row with `http_status` filled and room
fields empty, so gaps are visible in the export.

### Notes

- Use the data responsibly and in line with Booking.com's terms of
  service and applicable laws; keep delays polite and volumes reasonable.
- A date that genuinely has one room left will correctly yield one row —
  the `[diagnose]` log line tells you whether that's the page's reality or
  a new layout worth reporting.

# Actor input Schema

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

Booking.com property page links. Any query params are fine — stale search params (all\_sr\_blocks, sid, ...) are stripped automatically and your dates/guests are injected.

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

First check-in date to scan, format YYYY-MM-DD.

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

Check-out for the FIRST stay. The difference to check-in defines the stay length used for every scanned day.

## `daysToScan` (type: `integer`):

Fetches this many consecutive stays, shifting check-in AND check-out forward one day at a time while keeping the same stay length (e.g. 18→19, 19→20, 20→21 ...).

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

Number of adults. group\_adults and req\_adults are set from this, and room1 gets one 'A' per adult.

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

One age per child, e.g. \[5, 9]. Leave empty for no children. group\_children, req\_children, room1 and \&age= params are derived from this automatically.

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

Number of rooms requested (the no\_rooms parameter).

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

Choose the currency for displaying hotel prices — sent as selected\_currency on every request so all prices come back in one currency.

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

Apify Proxy is strongly recommended; RESIDENTIAL group works best with Booking. One sticky session is shared by the cookie browser and all page fetches so the IP never changes mid-session.

## `useBrowserCookies` (type: `boolean`):

Launch Playwright Chromium once to earn Booking's session cookies (incl. the AWS WAF token) before fetching with curl\_cffi. Disable only if you want pure curl\_cffi requests.

## `impersonate` (type: `string`):

curl\_cffi impersonation target used for every page fetch.

## `maxBlockedRetries` (type: `integer`):

How many times the run may rotate to a new proxy session + fresh cookies after being blocked, retrying the failed page once each time.

## `minDelaySecs` (type: `integer`):

Lower bound of the random polite pause between page fetches, in seconds.

## `maxDelaySecs` (type: `integer`):

Upper bound of the random polite pause between page fetches, in seconds.

## `saveHtml` (type: `boolean`):

Store every fetched page in the run's key-value store (page-<hotel>-<date>.html) for debugging new layouts.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.booking.com/hotel/pk/the-aristocrat-residency.html"
    }
  ],
  "checkIn": "2026-09-18",
  "checkOut": "2026-09-19",
  "daysToScan": 7,
  "adults": 2,
  "childrenAges": [],
  "rooms": 1,
  "currency": "USD",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "useBrowserCookies": true,
  "impersonate": "chrome",
  "maxBlockedRetries": 1,
  "minDelaySecs": 2,
  "maxDelaySecs": 4,
  "saveHtml": false
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.booking.com/hotel/pk/the-aristocrat-residency.html"
        }
    ],
    "checkIn": "2026-09-18",
    "checkOut": "2026-09-19",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/booking-com-price-scanner").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 = {
    "startUrls": [{ "url": "https://www.booking.com/hotel/pk/the-aristocrat-residency.html" }],
    "checkIn": "2026-09-18",
    "checkOut": "2026-09-19",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/booking-com-price-scanner").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 '{
  "startUrls": [
    {
      "url": "https://www.booking.com/hotel/pk/the-aristocrat-residency.html"
    }
  ],
  "checkIn": "2026-09-18",
  "checkOut": "2026-09-19",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call moving_beacon-owner1/booking-com-price-scanner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/booking-com-price-scanner"
        }
    }
}
```

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/S7GOfTEKlbkTMMoDm/builds/hZnqrUxFRyBrJIyTR/openapi.json
