# Booking.com Scraper for Hotel Prices & Reviews (`runtime/booking-scraper`) Actor

Extract Booking.com hotel search results with prices, ratings, review counts, addresses, coordinates, direct hotel URLs, filters, and optional room details.

- **URL**: https://apify.com/runtime/booking-scraper.md
- **Developed by:** [scraping automation](https://apify.com/runtime) (community)
- **Categories:** E-commerce, Travel
- **Stats:** 88 total users, 6 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 1.20 out of 5 stars

## Pricing

from $6.50 / 1,000 hotel results

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 Scraper for Hotel Prices & Reviews

Extract hotel search results from Booking.com with prices, ratings, addresses, coordinates, and room signals.

### Who this is for

- Travel data teams
- Revenue managers
- Hotel market analysts
- Competitor monitoring teams

### What it helps you do

- Track hotel prices by destination and date
- Compare ratings, review counts, locations, and amenities
- Collect structured hotel data for travel dashboards

### Inputs you can use

- Destination or Booking.com URL
- Check-in and check-out dates
- Adults, children, and rooms
- Maximum hotels

### Data you get

- hotel name
- hotel URL
- price
- rating
- review count
- address
- coordinates
- room details

### How to get better results

- Start with a narrow, specific query or a small list of source URLs.
- Use realistic limits for the first run, then increase the volume once the output looks right.
- Keep source URLs, dates, and location context when you need repeatable market monitoring.
- Review a few sample records before connecting the dataset to a larger workflow.

### Notes

- Results depend on what the public source exposes at run time.
- Some pages may hide, delay, rename, or remove fields, so individual records can have partial data.
- Use the built-in output table to inspect results before exporting to spreadsheets, dashboards, or automation tools.

### Support

If a run returns unexpected data, open an issue from the Actor page with the input used, the run ID, and the result you expected.

# Actor input Schema

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

URLs to start crawling from. Defaults to Booking.com homepage.

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

The city or destination to search for hotels.

## `getDetails` (type: `boolean`):

When enabled, the actor will visit each individual hotel page to extract complete addresses and coordinates. This provides more accurate data but takes longer to run. For quick tests, keep this disabled.

## `checkin` (type: `string`):

Check-in date in YYYY-MM-DD format.

## `checkout` (type: `string`):

Check-out date in YYYY-MM-DD format.

## `groupAdults` (type: `string`):

Number of adults.

## `groupChildren` (type: `string`):

Number of children.

## `noRooms` (type: `string`):

Number of rooms.

## `priceMin` (type: `integer`):

Minimum price per night in euros.

## `priceMax` (type: `integer`):

Maximum price per night in euros.

## `stars` (type: `array`):

Filter by star rating (1-5). Can specify multiple ratings. Example: \[4, 5]

## `minReviewScore` (type: `number`):

Minimum review score (0-10).

## `freeCancellation` (type: `boolean`):

Filter for properties with free cancellation.

## `petsAllowed` (type: `boolean`):

Filter for properties that allow pets.

## `adultsOnly` (type: `boolean`):

Filter for adults-only properties.

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

Maximum number of hotels to extract from the search results. Set to 0 to extract all available hotels. Recommended: 5 for quick tests, 10-50 for production.

## `failOnNoResults` (type: `boolean`):

When enabled, the Actor fails the run if no hotels are saved. Useful for monitoring, saved tasks, and integrations that must detect blocked or empty runs.

## `timeout` (type: `integer`):

Maximum time in seconds for request handler timeout. Note: The Actor Run Timeout (in Settings → Default Run Options) must be higher than this value. Recommended: 1800-3600 seconds for detailed extractions.

## `batchSize` (type: `integer`):

Number of hotels to extract in each batch. Use 1 for one-by-one extraction, or higher for batch processing.

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

Choose to use no proxy, Apify Proxy, or provide custom proxy URLs.

## `newUrlFunction` (type: `string`):

Custom function to generate proxy URLs. Advanced users only.

## `districts` (type: `array`):

Filter by specific districts or neighborhoods.

## `maxDistanceFromCenter` (type: `number`):

Maximum distance from city center in kilometers.

## `customFilters` (type: `array`):

Custom filters using Booking.com nflt codes. To find these codes, apply filters manually on Booking.com and inspect the URL. Example: \['ht\_id=204', 'ht\_id=207']

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.booking.com/"
    }
  ],
  "destination": "New York, London, Tokyo, Paris, Rome",
  "getDetails": false,
  "checkin": "2026-07-09",
  "checkout": "2026-07-10",
  "groupAdults": "2",
  "groupChildren": "0",
  "noRooms": "1",
  "priceMin": 160,
  "priceMax": 530,
  "stars": [
    "4",
    "5"
  ],
  "minReviewScore": 8,
  "freeCancellation": false,
  "petsAllowed": false,
  "adultsOnly": false,
  "maxHotels": 5,
  "failOnNoResults": false,
  "timeout": 1800,
  "batchSize": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  },
  "districts": [
    "Le Marais",
    "5e arr."
  ],
  "maxDistanceFromCenter": 3,
  "customFilters": [
    "ht_id=204",
    "ht_id=207"
  ]
}
```

# Actor output Schema

## `hotelName` (type: `string`):

Name of the hotel or accommodation

## `price` (type: `string`):

Price per night (formatted string or null if not available)

## `rating` (type: `string`):

Guest rating score (0-10)

## `reviewText` (type: `string`):

Qualitative review label (e.g., 'Wonderful', 'Very Good')

## `reviewCount` (type: `string`):

Total number of reviews

## `locationScore` (type: `string`):

Location rating score

## `description` (type: `string`):

Hotel description and highlights from Booking.com

## `imageUrl` (type: `string`):

URL of the hotel's main image

## `address` (type: `string`):

Hotel address (basic from search results or detailed from hotel page)

## `latitude` (type: `string`):

GPS latitude coordinate

## `longitude` (type: `string`):

GPS longitude coordinate

## `hotelLink` (type: `string`):

Direct link to the hotel page on Booking.com

## `rooms` (type: `string`):

Array of room objects with details (only when getDetails: true)

## `scrapedAt` (type: `string`):

ISO timestamp when the data was scraped

## `pageType` (type: `string`):

Type of page where data was extracted (search\_results, hotel\_details, individual\_hotel)

## `detailRequested` (type: `string`):

Whether detailed information was requested (getDetails: true)

## `detailFetched` (type: `string`):

Whether detailed information was successfully fetched

## `detailPrice` (type: `string`):

Price extracted from detail page

## `detailRating` (type: `string`):

Rating extracted from detail page

## `detailAddress` (type: `string`):

Full address extracted from detail page

## `detailLatitude` (type: `string`):

Latitude extracted from detail page

## `detailLongitude` (type: `string`):

Longitude extracted from detail page

## `detailScrapedAt` (type: `string`):

ISO timestamp when detail page was scraped

## `detailPageUrl` (type: `string`):

URL of the detail page that was scraped

## `detailQualityRating` (type: `string`):

Quality rating from detail page (e.g., '4 out of 5 stars')

## `detailIsPreferredPartner` (type: `string`):

Whether the hotel is a preferred partner

## `detailDescription` (type: `string`):

Full description from detail page

## `detailPopularFacilities` (type: `string`):

List of popular facilities from detail page (array as JSON string)

## `detailPropertyHighlights` (type: `string`):

Property highlights and key features from detail page (array as JSON string)

## `detailSustainability` (type: `string`):

Sustainability information and eco-friendly features (array as JSON string)

## `detailReviewBreakdown` (type: `string`):

Detailed breakdown of review scores by category (array as JSON string)

## `detailFeaturedReviews` (type: `string`):

Featured guest reviews from detail page (array as JSON string)

## `detailNearby` (type: `string`):

Nearby places and attractions (array as JSON string)

## `detailFaq` (type: `string`):

Frequently asked questions and answers (array as JSON string)

## `detailBreadcrumbs` (type: `string`):

Navigation breadcrumbs from detail page (array as JSON string)

# 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/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("runtime/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 = { "startUrls": [{ "url": "https://www.booking.com/" }] }

# Run the Actor and wait for it to finish
run = client.actor("runtime/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 '{
  "startUrls": [
    {
      "url": "https://www.booking.com/"
    }
  ]
}' |
apify call runtime/booking-scraper --silent --output-dataset

```

## MCP server setup

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