# Booking.com Occupancy Scraper — Room Rates & Calendar (`crawloop/booking-com-occupancy-scraper`) Actor

Booking.com occupancy scraper for public room rates and availability calendars. Paste hotel URLs or a city search and export occupancy % (30/90 days), sold-out nights, nightly rates, and lead room inventory as JSON — a Booking.com calendar API alternative for revenue teams.

- **URL**: https://apify.com/crawloop/booking-com-occupancy-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** Travel, Real estate, Automation
- **Stats:** 2 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.49 / 1,000 hotel calendars

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Occupancy Scraper — Room Rates & Calendar

> **Disclaimer:** Unofficial tool for publicly accessible Booking.com hotel calendars and lead room rates. **Booking.com** is a trademark of Booking Holdings Inc. Not affiliated with, sponsored by, or endorsed by Booking.com. For informational, research, revenue-management, and market-analysis use only. Respect applicable terms of use and law.

**Booking.com scraper** for the public **availability calendar** and **lead room rates** — a practical **Booking.com occupancy scraper**, **Booking.com calendar scraper**, and **Booking.com API alternative**. Paste **hotel URLs or IDs**, a **search URL**, or a **city**. Export **occupancy %** (30 / 60 / 90 / 365 days), **sold-out nights**, **cheapest nightly rates**, **min-stay**, optional **lead room inventory**, and **booking-pace** deltas as a JSON dataset. Call from **Python**, **Node.js**, **cURL**, or **Apify MCP** / AI assistants.

Built for **hotel revenue managers**, **comp-set tracking**, **OTA rate shopping**, and **demand research**. No Booking.com account required. This is not a dump of search cards for a single stay.

| Booking.com occupancy (hotel calendars) | Airbnb occupancy (STR calendars) | Idealista (long-term ES/IT/PT) |
| :--- | :--- | :--- |
| **Booking.com Occupancy Scraper** ◄── you are here | [Airbnb Occupancy Scraper](https://apify.com/crawloop/airbnb-occupancy-monitor) | [Idealista Scraper](https://apify.com/crawloop/idealista-scraper) |

### When to use this Actor

- You need a **Booking.com occupancy monitor** / **Booking.com room rates scraper** that returns structured JSON
- You already know hotel URLs (portfolio / comp set) or have a city / search URL
- You want **sold-out nights, occupancy 30/90, and a forward rate calendar** — not a generic hotel-card dump
- You want to scrape Booking.com calendars with **Python**, **Node.js**, or **MCP** and export a dataset

### When not to use this Actor

- **Historical occupancy** — Booking.com only exposes a **forward** calendar (chunked; this Actor reads up to 366 days)
- **Every room type × every date** — the public calendar is the **cheapest available rate** and **property sold-out** flag. Lead room names come from a reference stay, not a 90-day room-type matrix
- **Guest PII, reservations, or extranet** — public calendar and search fields only
- **Short-term rental occupancy on Airbnb** — use [Airbnb Occupancy Scraper](https://apify.com/crawloop/airbnb-occupancy-monitor)
- **Whole-market 10k-hotel crawls in one run** — cap with `maxHotels` and schedule by neighborhood

### Key Features

- **Hotel URLs, slugs, or IDs** — `/hotel/fr/royal-saint-michel.html`, `gb/gardencourthotel`, or numeric IDs
- **Search / location discovery** — paste a Booking.com search URL or type `Paris, France` to take search pages, then pull calendars
- **Forward calendar** — 1–366 days of available / sold-out, min stay, cheapest nightly rate
- **Occupancy windows** — 30 / 60 / 90 / 365-day sold-out rates plus horizon totals
- **Lead rooms** — room name, occupancy, meal plan, stay price, and sold-out for a reference check-in
- **Booking pace** — schedule the Actor with `monitor: true` and a stable `monitorStoreName` (named Key-Value store). First run is the baseline; later runs emit newly sold-out / newly opened nights
- **Honest metrics** — `unavailableRate` and `occupancyEstimate` are the same calendar signal (property sold-out, not remaining rooms of each type)
- **HTTP JSON path** — Chrome TLS impersonation + public GraphQL; no Playwright
- **Apify Proxy ready** — datacenter is usually enough; residential if challenged
- **MCP / AI ready** — call from assistants via Apify MCP

### Use Cases

| Use case | What you get |
| :--- | :--- |
| **Comp-set occupancy** | Forward sold-out % for rival hotels in your market |
| **Booking pace** | Nights that flipped sold-out (or opened) since the last scheduled run |
| **Rate calendar** | Cheapest public nightly rate per date, plus ADR / min / max |
| **Lead room snapshot** | Named room type and stay price for a reference occupancy |
| **Demand screening** | 30/90-day occupancy windows + stars / review score |
| **Market snapshot** | First pages of a city search, then calendars for each hotel |

### Quick Start

**Known hotels:**

```json
{
  "hotels": ["https://www.booking.com/hotel/fr/royal-saint-michel.html"],
  "lookAheadDays": 90,
  "includeCalendar": true,
  "includeRooms": true,
  "currency": "USD"
}
```

**City search (hotels, then calendars):**

```json
{
  "location": "Paris, France",
  "lookAheadDays": 90,
  "maxHotels": 20,
  "includeHotelDetails": true
}
```

**Scheduled booking-pace monitor:**

```json
{
  "hotels": ["gb/gardencourthotel"],
  "lookAheadDays": 90,
  "monitor": true,
  "monitorStoreName": "booking-occupancy-monitor",
  "includeCalendar": false
}
```

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `hotels` | Array | — | Hotel URLs, `cc/pagename` slugs, or numeric IDs |
| `startUrls` | Array | — | Hotel URLs and/or Booking.com search URLs |
| `location` | String | — | City / area used to resolve a destination |
| `lookAheadDays` | Integer | `90` | Forward nights (1–366) |
| `maxHotels` | Integer | `25` | Cap (`0` = unlimited) |
| `checkInDate` / `checkOutDate` | String | ~+14d / +1 night | Reference stay for lead rooms |
| `adults` / `children` / `rooms` | Integer | `2` / `0` / `1` | Occupancy sent to Booking.com |
| `includeHotelDetails` | Boolean | `true` | Name, city, stars, reviews |
| `includeRooms` | Boolean | `true` | Lead room for the reference stay |
| `includeCalendar` | Boolean | `true` | Per-day `calendar[]` array |
| `monitor` | Boolean | `false` | Booking-pace vs previous run (needs named store) |
| `monitorStoreName` | String | `booking-occupancy-monitor` | Named KV store for pace snapshots |
| `currency` | String | `USD` | ISO code |
| `proxyConfiguration` | Object | Apify datacenter | Residential if challenged |

### Output Format

Each dataset item is one hotel (or an `error` row if that hotel failed).

| Field | Type | Description |
| :--- | :--- | :--- |
| `hotelId` | Integer | Booking.com hotel id |
| `hotelUrl` | String | Canonical hotel URL |
| `name` / `city` / `countryCode` | String | Public listing fields |
| `starRating` / `reviewScore` / `reviewsCount` | Number | Stars and guest reviews |
| `unavailableRate` | Number | Sold-out ÷ counted nights in the 365-day window (same as occupancy365d) |
| `occupancyEstimate` | Number | Same value; labeled as an estimate |
| `occupancy30d` / `occupancy90d` / `occupancy365d` | Number | Windowed sold-out rates |
| `soldOutDays` / `availableDays` | Integer | Horizon counts |
| `firstAvailableDate` | String | Next open night |
| `adr` / `minPrice` / `maxPrice` | Number | From priced available nights |
| `leadRoomName` / `leadPrice` | String / Number | Reference-stay lead unit |
| `rooms` | Array | Lead blocks (id, name, occupancy, meal plan, price) |
| `calendar` | Array | Per-day available / soldOut / minNights / price |
| `bookingPace` | Object | When `monitor` is on |
| `scrapedAt` | String | UTC timestamp |

Example (truncated):

```json
{
  "type": "hotel",
  "source": "booking.com",
  "hotelId": 58439,
  "name": "Hôtel Royal Saint Michel",
  "city": "Paris",
  "countryCode": "fr",
  "unavailableRate": 0.1475,
  "occupancy30d": 0.2,
  "occupancy90d": 0.1475,
  "soldOutDays": 9,
  "firstAvailableDate": "2026-08-25",
  "adr": 612.4,
  "leadRoomName": "Double Room",
  "currency": "USD",
  "hotelUrl": "https://www.booking.com/hotel/fr/royal-saint-michel.html"
}
```

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/booking-com-occupancy-scraper').call({
  hotels: ['https://www.booking.com/hotel/fr/royal-saint-michel.html'],
  lookAheadDays: 90,
  currency: 'USD',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]?.unavailableRate, items[0]?.occupancy90d);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token)
run = client.actor("crawloop/booking-com-occupancy-scraper").call(
    run_input={
        "hotels": ["https://www.booking.com/hotel/fr/royal-saint-michel.html"],
        "lookAheadDays": 90,
        "currency": "USD",
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("hotelId"), item.get("unavailableRate"), item.get("hotelUrl"))
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~booking-com-occupancy-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hotels":["https://www.booking.com/hotel/fr/royal-saint-michel.html"],"lookAheadDays":90}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Connect your Apify account, then call `crawloop/booking-com-occupancy-scraper`.

Example prompts:

- "Run Booking.com Occupancy Scraper for https://www.booking.com/hotel/fr/royal-saint-michel.html with 90 look-ahead days and return unavailableRate, occupancy30d, occupancy90d, soldOutDays"
- "Scrape Booking.com occupancy for hotels in Paris, France, max 15, and summarize 90-day sold-out rates as JSON"
- "Monitor these Booking.com hotel URLs weekly for booking pace, then run Airbnb Occupancy Scraper for STR comps in the same city"

### FAQ

**Is this an official Booking.com API?**\
No. It reads the same public GraphQL calendar and search the website uses and returns structured dataset rows — a practical **Booking.com API alternative** for pipelines.

**Booking.com occupancy scraper vs a hotel listings scraper?**\
This Actor is calendar-first: occupancy %, sold-out nights, nightly rates, and booking pace. It is not a dump of search cards for one check-in.

**Do I need a Booking.com login?**\
No — public calendars and search fields only.

**Can I scrape Booking.com occupancy with Python or Node.js?**\
Yes — use the Apify client examples above, or call the Actor from cURL / Apify MCP.

**Is occupancy the same as occupied rooms?**\
No. Treat `occupancyEstimate` as **property sold-out share** for the requested occupancy. Remaining rooms of a specific type are not on the public calendar. When the calendar is longer than 365 days, `unavailableRate` matches `occupancy365d`.

**Can I get every room type for 90 days?**\
Not from this public calendar. Use `includeRooms` for the lead unit on a reference stay, and `calendar` for property-level sold-out / cheapest rate.

**Can I get historical occupancy?**\
No. The calendar is forward-only. Schedule the Actor to build your own history.

**How many hotels per search?**\
A location search pages in steps of 25. Cap with `maxHotels`. Pass explicit `hotels` for a known portfolio.

### Related Actors

| Actor | Focus |
| :--- | :--- |
| **Booking.com Occupancy Scraper** ◄── you are here | Hotel calendars, room rates, occupancy %, booking pace |
| [Airbnb Occupancy Scraper](https://apify.com/crawloop/airbnb-occupancy-monitor) | STR calendars, occupancy %, booking pace |
| [Idealista Scraper](https://apify.com/crawloop/idealista-scraper) | Long-term rental / sale listings (ES/IT/PT) |

**Suite next step:** after hotel occupancy snapshots, run [Airbnb Occupancy Scraper](https://apify.com/crawloop/airbnb-occupancy-monitor) for short-term rental calendars in the same destination.

# Actor input Schema

## `hotels` (type: `array`):

Booking.com hotel URLs, slugs (gb/gardencourthotel), or numeric hotel IDs. One per line.

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

Hotel pages and/or Booking.com search URLs (searchresults.html with dest\_id). Search pages yield hotels, then calendars are fetched for each.

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

City or area name used to discover hotels when you do not have URLs yet. Example: Paris, France or Marbella, Spain.

## `lookAheadDays` (type: `integer`):

Forward nights of availability to read (1–366). Booking returns the calendar in 61-day chunks. Use 30 or 90 for occupancy windows.

## `maxHotels` (type: `integer`):

Hard cap on hotels processed in one run. 0 = unlimited.

## `checkInDate` (type: `string`):

Stay start (YYYY-MM-DD) for the lead room snapshot (includeRooms). Defaults to about 14 days from today. Occupancy windows always start from today.

## `checkOutDate` (type: `string`):

Stay end (YYYY-MM-DD) for the lead room snapshot. Defaults to one night after check-in.

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

Adults used for calendar availability and the lead room rate.

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

Child guests for the lead room snapshot.

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

Rooms requested on the public calendar.

## `includeHotelDetails` (type: `boolean`):

Add name, city, stars, review score, and address from the public search card.

## `includeRooms` (type: `boolean`):

Attach the lead bookable unit for the reference stay (room name, rate, occupancy, meal plan, sold-out for those dates).

## `includeCalendar` (type: `boolean`):

Attach the per-day array (date, available/soldOut, min nights, cheapest rate when published).

## `monitor` (type: `boolean`):

Compare this run to the previous run in a named Key-Value store and emit newly sold-out / newly opened night counts. First run is the baseline (bookingPace.firstRun). Pair with a schedule and a stable monitorStoreName.

## `monitorStoreName` (type: `string`):

Named Key-Value store for booking-pace snapshots across scheduled runs. Default run storage is discarded after each run — a named store is required for deltas.

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

ISO currency requested from Booking.com (USD, EUR, GBP, …).

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

Datacenter proxy is usually enough for the public GraphQL calendar. Switch to residential if Booking.com challenges the run.

## Actor input object example

```json
{
  "hotels": [
    "https://www.booking.com/hotel/fr/royal-saint-michel.html"
  ],
  "lookAheadDays": 90,
  "maxHotels": 25,
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "includeHotelDetails": true,
  "includeRooms": true,
  "includeCalendar": true,
  "monitor": false,
  "monitorStoreName": "booking-occupancy-monitor",
  "currency": "USD",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Default dataset items.

# 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 = {
    "hotels": [
        "https://www.booking.com/hotel/fr/royal-saint-michel.html"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/booking-com-occupancy-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 = { "hotels": ["https://www.booking.com/hotel/fr/royal-saint-michel.html"] }

# Run the Actor and wait for it to finish
run = client.actor("crawloop/booking-com-occupancy-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 '{
  "hotels": [
    "https://www.booking.com/hotel/fr/royal-saint-michel.html"
  ]
}' |
apify call crawloop/booking-com-occupancy-scraper --silent --output-dataset

```

## MCP server setup

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