# Booking.com Hotel Search Scraper (`romy/booking-hotel-search-scraper`) Actor

Search Booking.com hotels by destination, dates, and price/sort filters, returning structured results with names, ratings, prices, and locations — no login or API key needed. Optionally enriches each result with full hotel detail. Derived from romy/booking-all-in-one-api.

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

## Pricing

from $1.60 / 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

### What does Booking.com Hotel Search Scraper do?

**Booking.com Hotel Search Scraper** searches Booking.com hotels by destination — free-text destinations are resolved to a `destId` automatically, then real price/sort filters (confirmed live: a price range genuinely narrows results, sort order genuinely reorders them) are applied. Optionally fetches full hotel detail (rooms, photos, amenities) for every result in one run. Falls back to the app's own Home tab feed when no destination is given.

It talks directly to the same internal API the official [Booking.com](https://www.booking.com/) Android app uses, reverse-engineered by capturing live traffic from a real device. Auth uses a standard, publicly-documented token-exchange mechanism, generated fresh server-side — no Booking.com account, no API key of your own. This is the hotel-search slice of [Booking.com All-in-One API](https://apify.com/romy/booking-all-in-one-api), split out as its own focused Actor.

### Why use Booking.com Hotel Search Scraper?

- **Real filters and sort that genuinely work** — price range and sort order confirmed live by comparing results before/after
- **Real multi-region pricing** — the exact same search with different currency codes returns genuinely different prices for the same rooms, not a symbol swap
- **Automatic destination resolution** — pass a plain city name; this Actor resolves it to Booking's internal `destId` for you
- **Optional full hotel detail in the same run** — no separate Actor call needed for room-level detail
- **No account needed** — every request works fully anonymously
- **Use cases:** travel content aggregation, price monitoring across currencies, destination research bots

### Input

| Field                   | Type          | Description                                                                                              |
| ----------------------- | ------------- | -------------------------------------------------------------------------------------------------------- |
| `query`                 | string        | Free-text destination, e.g. `Bangkok`. Resolved to a `destId` automatically. Ignored if `destId` is set. |
| `destId`                | string        | Exact Booking.com `dest_id`, e.g. `-3414440` for Bangkok. Skips resolution.                              |
| `destName`              | string        | Optional, only used with `destId`.                                                                       |
| `checkin` / `checkout`  | string (date) | `YYYY-MM-DD`, default tomorrow/day-after                                                                 |
| `adults`                | integer       | Default `2`                                                                                              |
| `rooms`                 | integer       | Default `1`                                                                                              |
| `priceMin` / `priceMax` | integer       | Confirmed live to genuinely narrow results                                                               |
| `sort`                  | string        | `popularity` | `best_value` | `price`                                                                  |
| `currency`              | string        | ISO code, default `USD`. Confirmed live to change returned prices for any region.                        |
| `includeHotelDetail`    | boolean       | Fetch full hotel detail (rooms, photos, amenities) per result. Default `false`.                          |
| `maxItems`              | integer       | Stop once this many hotels have been pushed. Default: push every result from the search.                 |

If both `query` and `destId` are empty, this Actor pushes one row with the app's own Home tab feed instead of searching.

Example:

```json
{
    "query": "Bangkok",
    "checkin": "2026-09-08",
    "checkout": "2026-09-10",
    "adults": 2,
    "priceMax": 150,
    "currency": "USD",
    "includeHotelDetail": true,
    "maxItems": 10
}
```

### Output

One dataset row per hotel (trimmed example):

```json
{
    "id": 27229,
    "name": "Ambassador Hotel Bangkok",
    "reviewScore": 7.2,
    "detail": { "...": "full room/amenity/photo data, only present when includeHotelDetail is true" }
}
```

### Known limitations

- **No offset/page parameter on `/hotels`.** The underlying search endpoint returns its full result set in one call (`rows: 'auto'`, confirmed in the parent Actor's proven implementation) rather than paging — this Actor exposes `maxItems` to cap how many results get pushed, not `maxPages`.
- **Destination resolution takes the first autocomplete match.** For an ambiguous free-text `query`, pass the exact `destId` instead (from a manual `/search` lookup on the parent Actor, or a previous run's resolved id).
- This is an unofficial, reverse-engineered integration, not affiliated with or endorsed by Booking.com B.V. Behavior may change if Booking.com changes its API.

### Pricing

Pay-per-event: $0.0020 per `hotel` result (FREE plan; BRONZE/SILVER/GOLD/PLATINUM/DIAMOND get automatic discounts based on your Apify plan). Billed per hotel (or per home-feed row) pushed to the dataset.

# Actor input Schema

## `query` (type: `string`):

Free-text destination, e.g. "Bangkok". Resolved to a destId automatically via destination autocomplete. Ignored if destId is set.

## `destId` (type: `string`):

Exact Booking.com dest\_id, e.g. "-3414440" for Bangkok. Skips the query resolution step.

## `destName` (type: `string`):

Optional, only used with destId (auto-filled when resolving from query).

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

YYYY-MM-DD, defaults to tomorrow

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

YYYY-MM-DD, defaults to the day after

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

Adult guests.

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

Number of rooms to book.

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

Confirmed live to genuinely narrow results.

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

Maximum price to filter results.

## `sort` (type: `string`):

Sort order for results.

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

Confirmed live to change returned prices for any region.

## `includeHotelDetail` (type: `boolean`):

Fetch full /hotels/{id} detail (rooms, photos, amenities) for every result and merge it into that row. Slower, one extra request per hotel.

## `maxItems` (type: `integer`):

Stop once this many hotels have been pushed. Leave empty to push every result from the search.

## Actor input object example

```json
{
  "adults": 2,
  "rooms": 1,
  "sort": "popularity",
  "currency": "USD",
  "includeHotelDetail": false
}
```

# Actor output Schema

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/booking-hotel-search-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("romy/booking-hotel-search-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 '{}' |
apify call romy/booking-hotel-search-scraper --silent --output-dataset

```

## MCP server setup

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