# Booking.com Hotel Rates Scraper (`scrapercompany/booking-hotel-rates-scraper`) Actor

Scrape Booking.com hotel prices: a nightly price calendar for up to 365 dates, every room type and rate plan for a stay, or a hotel's Booking.com slug by name. Batch many hotels, export JSON/CSV. No proxies or API key needed.

- **URL**: https://apify.com/scrapercompany/booking-hotel-rates-scraper.md
- **Developed by:** [ScraperCompany](https://apify.com/scrapercompany) (community)
- **Categories:** Travel, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 rates requests

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 Hotel Rates Scraper

Booking.com Hotel Rates Scraper collects hotel prices straight from Booking.com. Give it one or more hotel slugs and get a day-by-day **price calendar** (price, availability and minimum length of stay for up to 365 dates in one request), or the full list of **room types and rate plans** for a specific stay, with meal plans, cancellation terms and prices. Revenue managers use it for rate shopping and parity checks, analysts for pricing research, and travel startups to feed their own apps.

Powered by the [ScraperCompany API](https://scrapercompany.com): requests, proxies, retries and anti-bot handling run on ScraperCompany's servers, so you don't need your own proxies or API key. Start a run, get structured JSON.

### What can this scraper do?

- Price up to **365 consecutive dates** for a hotel in a single request (nightly price, availability, minimum stay).
- List **every room type and rate plan** for one stay: bed types, room size, max occupancy, meal plan, cancellation policy and price.
- Find a hotel's Booking.com **URL slug from its name** and city, with match confidence.
- Choose the **currency** (40+ supported), number of adults and rooms.
- Batch as many hotels as you like; each hotel is one request and one dataset item.
- Relative dates (`7 days`, `1 month`) keep scheduled runs pointing at the future.

#### Modes

| Mode | What it returns | Price per request |
| --- | --- | --- |
| `rates` | Nightly price, availability and minimum stay for up to 365 dates per property | $0.012 |
| `rooms` | Every room type and rate plan (meals, cancellation, price) for one stay | $0.012 |
| `search` | Booking.com URL slug and country for a hotel name | $0.002 |

### What data can you extract?

| Field | Description |
| --- | --- |
| `calendar[].stay_date` | Night being priced (Price calendar mode) |
| `calendar[].price` | Lowest nightly price on Booking.com for that night |
| `calendar[].available` | Whether the night can be booked |
| `calendar[].min_length_of_stay` | Minimum nights required when arriving that day |
| `unavailable_dates` | Dates that are sold out or closed |
| `property.hotel_id` | Booking.com numeric hotel id |
| `rooms[].name / rooms[].room_size / rooms[].beds` | Room type details (Rooms mode) |
| `rooms[].rate_plans` | Each rate plan with price, meal plan and cancellation terms |
| `cheapest_rate / sold_out` | Cheapest rate for the stay and sold-out flag |
| `matches[] / recommended_match` | Hotel candidates with slug, URL and confidence (Find hotel slug mode) |
| `provenance` | Where and when each price was observed, requested vs returned currency |

Every dataset item also carries `input` (the exact request that was sent), `request_id` (quote it to support), `billed` and `scraped_at`.

### How to use Booking.com Hotel Rates Scraper

1. Open Booking.com Hotel Rates Scraper in Apify Console and go to the **Input** tab.
2. Pick a **Mode**, then enter Booking.com hotel slugs (the part of the URL after `/hotel/us/`). Don't know the slug? Run **Find hotel slug** mode with the hotel name first.
3. Adjust the options if needed. Dates accept an exact date (`2026-12-01`) or a relative one (`30 days` from today), so saved tasks and schedules never go stale.
4. Click **Start** and wait for the run to finish.
5. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or fetch them with the Apify API.

### Input example

This is the default input; running the Actor without changes uses it.

```json
{
  "mode": "rates",
  "pagenames": [
    "moxy-boston-downtown"
  ],
  "country": "us",
  "currency": "USD",
  "adults": 2,
  "start": "7 days",
  "days": 30,
  "check_in": "30 days",
  "hotelNames": [
    "Moxy Boston Downtown"
  ],
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

### Output example

One dataset item per request (trimmed here; real items contain every field the API returns):

```json
{
  "mode": "rates",
  "endpoint": "/v1/ota/booking",
  "input": {
    "pagename": "moxy-boston-downtown",
    "country": "us",
    "start": "2026-10-08",
    "days": 30,
    "currency": "USD",
    "adults": 2
  },
  "calendar": [
    {
      "available": true,
      "currency": "USD",
      "min_length_of_stay": 1,
      "price": 453,
      "provenance": {
        "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
        "collector": "scrapingme.ota.booking",
        "derivation": "normalized_upstream",
        "egress_mode": "direct",
        "observation_id": "rateobs_0123456789abcdef0123456789abcdef",
        "observed_at": "2026-08-07T01:23:45.678Z",
        "price_basis": "room_base_before_taxes_and_fees",
        "requested_currency": "USD",
        "requested_market": "US",
        "returned_currency": "USD",
        "schema_version": 1,
        "source": "booking_com",
        "source_kind": "ota_calendar",
        "source_property_id": "ChUIoben2Mv6-CYaCi9tLzA3czVwbjQQAQ",
        "upstream_rate_id": null
      },
      "stay_date": "2026-09-14"
    },
    {
      "available": false,
      "currency": "USD",
      "min_length_of_stay": 1,
      "price": "…",
      "stay_date": "2026-09-15"
    }
  ],
  "meta": {
    "calls": 1,
    "collection_id": "ratecol_0123456789abcdef0123456789abcdef",
    "dates": 3,
    "elapsed_s": 2.147,
    "observed_at": "2026-08-07T01:23:45.678Z",
    "priced": 1,
    "source": "booking",
    "wire_bytes": 454
  },
  "property": {
    "hotel_id": 5375786,
    "pagename": "moxy-boston-downtown"
  },
  "search_parameters": {
    "adults": 2,
    "country": "us",
    "currency": "USD",
    "days": 3,
    "engine": "booking_calendar",
    "pagename": "moxy-boston-downtown",
    "rooms": 1,
    "start_date": "2026-09-14"
  },
  "unavailable_dates": [
    "2026-09-15",
    "2026-09-16"
  ],
  "request_id": "req_3f9c0d6e2b8a4c1f9e7d5b3a1c0e8f6d",
  "billed": true,
  "scraped_at": "2026-10-01T14:03:27.512Z"
}
```

A request that fails is saved with an `error` message instead (turn off **Include failed requests** to skip those). Failed requests are never charged.

### How much does it cost?

This Actor uses **pay-per-event** pricing: you pay for successful API requests, not for compute time.

| Event | Charged when | Price | Per 1,000 |
| --- | --- | --- | --- |
| `rates-request` | One property priced: a price calendar (up to 365 nights) or the room and rate-plan list for one stay. | $0.012 | $12.00 |
| `search-request` | One hotel name looked up on Booking.com (returns its URL slug). | $0.002 | $2.00 |

For example, 1,000 requests in the default mode cost **$12.00**.

- Failed requests (errors, invalid input, blocked upstream after retries) are **free**.
- Requests where the source returns nothing at all (no results, nothing priced) are saved but **not charged**.
- Set **Maximum cost per run** when you start a run and the Actor stops cleanly before going over it.

### FAQ

#### Do I need proxies or a ScraperCompany API key?

No. Proxy rotation, retries and anti-bot handling run on the ScraperCompany side, and the Actor is already connected to the API. You only pay the per-event prices above.

#### What is a Booking.com slug?

It is the hotel's name in the Booking.com URL. For `https://www.booking.com/hotel/us/moxy-boston-downtown.html` the slug is `moxy-boston-downtown` and the country code is `us`.

#### Why are there 365 dates in one request but only one stay in Rooms mode?

The price calendar reads Booking.com's own availability calendar, which covers many dates at once. Rooms mode loads the hotel page for one specific stay to list every room and rate plan.

#### Is it legal to scrape this data?

The Actor collects publicly available information that anyone can see without logging in. You are responsible for how you use the results: respect the source site's terms, copyright and privacy law (such as GDPR) and do not collect personal data without a lawful basis. If in doubt, ask a lawyer.

#### What happens when a request is blocked or rate-limited?

Rate limits (HTTP 429) and temporary errors (5xx) are retried automatically with exponential backoff, respecting `Retry-After`. If a request still fails it is saved with the error message and not charged, and the rest of the batch keeps going. A run only fails when every request failed.

#### Why did a request return an error?

Read the `error` field: validation problems (for example a malformed date or an unknown id) are reported exactly as the API sees them. Fix the input and run again; failed requests cost nothing.

#### How many requests can I run at once?

Any number per run. The Actor sends up to 3 requests in parallel by default (change it under **Run options**); larger batches simply take longer.

### Use it from your code

Call the Actor from any language through the [Apify API](https://docs.apify.com/api/v2). With the JavaScript client (`npm install apify-client`):

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('scrapercompany/booking-hotel-rates-scraper').call({
    "mode": "rates",
    "pagenames": [
        "moxy-boston-downtown"
    ],
    "start": "7 days"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

With Python (`pip install apify-client`):

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("scrapercompany/booking-hotel-rates-scraper").call(run_input={
    "mode": "rates",
    "pagenames": ["moxy-boston-downtown"],
    "start": "7 days",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

You can also schedule runs, chain them with webhooks, or connect them to Make, Zapier, n8n, Google Sheets and other integrations from the **Integrations** tab.

### Related scrapers

- [Hotels.com Rates Scraper](https://apify.com/scrapercompany/hotels-com-rates-scraper)
- [Expedia Hotel Rates Scraper](https://apify.com/scrapercompany/expedia-hotel-rates-scraper)
- [Hotel Price Comparison](https://apify.com/scrapercompany/hotel-price-comparison)

### Support

Questions, a field you need, or a site that stopped working? Open an issue on the **Issues** tab or contact us at [scrapercompany.com](https://scrapercompany.com). Include the `request_id` from the dataset item so we can trace the request.

# Changelog

This Actor's version history is a separate document: https://apify.com/scrapercompany/booking-hotel-rates-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

<b>Price calendar</b>: nightly price and availability for a range of dates. <b>Rooms</b>: every room type and rate plan for one stay. <b>Find hotel slug</b>: look up the Booking.com slug for a hotel name.

## `pagenames` (type: `array`):

The part of the Booking.com URL after the country code, e.g. <code>moxy-boston-downtown</code> for <code>booking.com/hotel/us/moxy-boston-downtown.html</code>. One request per slug. Used by the Price calendar and Rooms modes; use Find hotel slug mode if you only know the name.

## `country` (type: `string`):

The two-letter segment before the slug in the Booking.com URL (<code>us</code> in <code>/hotel/us/...</code>). It is part of the hotel address, not your location.

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

Currency for the returned prices.

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

Adults per room (1-8).

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

Rooms requested (1-8).

## `start` (type: `string`):

First date of the price calendar: an exact date or a relative one such as <code>7 days</code> from today. Leave empty for today.

## `days` (type: `integer`):

How many consecutive dates to price, up to 365. Each request returns the whole range for one property.

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

Check-in for the Rooms mode: an exact date or a relative one such as <code>30 days</code> from today.

## `nights` (type: `integer`):

Length of stay for the Rooms mode (1-30).

## `hotelNames` (type: `array`):

Hotel names to look up, one request each. Used only by the Find hotel slug mode.

## `city` (type: `string`):

City of the hotels you are looking up. Strongly recommended for common names.

## `limit` (type: `integer`):

Maximum candidates returned per hotel name, best match first.

## `customRequests` (type: `array`):

Optional list of JSON objects, one request each, using the API field names shown above. Each object is merged over the options above, so you only need to give what differs. Add <code>"mode": "rooms"</code> or <code>"mode": "search"</code> to an object to use another mode for it. Example: <code>{"pagename":"moxy-boston-downtown","country":"us","start":"2026-12-20","days":14}</code>

## `includeErrors` (type: `boolean`):

When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.

## `maxConcurrency` (type: `integer`):

How many API requests run at the same time.

## `maxRetries` (type: `integer`):

Retries for rate limits (HTTP 429), temporary server errors (5xx) and network errors, with exponential backoff. Validation errors are never retried.

## Actor input object example

```json
{
  "mode": "rates",
  "pagenames": [
    "moxy-boston-downtown"
  ],
  "country": "us",
  "currency": "USD",
  "adults": 2,
  "rooms": 1,
  "start": "7 days",
  "days": 30,
  "check_in": "30 days",
  "nights": 1,
  "hotelNames": [
    "Moxy Boston Downtown"
  ],
  "limit": 5,
  "includeErrors": true,
  "maxConcurrency": 3,
  "maxRetries": 2
}
```

# Actor output Schema

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

One dataset item per request.

## `summary` (type: `string`):

Counts of succeeded, failed, skipped and charged requests.

# 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 = {
    "pagenames": [
        "moxy-boston-downtown"
    ],
    "start": "7 days",
    "check_in": "30 days",
    "hotelNames": [
        "Moxy Boston Downtown"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapercompany/booking-hotel-rates-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 = {
    "pagenames": ["moxy-boston-downtown"],
    "start": "7 days",
    "check_in": "30 days",
    "hotelNames": ["Moxy Boston Downtown"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapercompany/booking-hotel-rates-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 '{
  "pagenames": [
    "moxy-boston-downtown"
  ],
  "start": "7 days",
  "check_in": "30 days",
  "hotelNames": [
    "Moxy Boston Downtown"
  ]
}' |
apify call scrapercompany/booking-hotel-rates-scraper --silent --output-dataset

```

## MCP server setup

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