# Booking.com Stays Scraper (`agenscrape/booking-com-stays-scraper`) Actor

Scrape Booking.com hotels, apartments & accommodations. Extract prices, reviews, ratings, photos, location data, room details, cancellation policies & discounts. Search by location with custom dates, guests & currency. Fast API-based scraping with automatic retries.

- **URL**: https://apify.com/agenscrape/booking-com-stays-scraper.md
- **Developed by:** [Agenscrape](https://apify.com/agenscrape) (community)
- **Categories:** Travel
- **Stats:** 93 total users, 9 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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/platform/actors/running/actors-in-store#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 Stays Scraper

Scrape hotels, apartments, hostels, and all types of accommodations from Booking.com. Extract comprehensive property data including prices, reviews, ratings, locations, photos, and property details.

If you face any issues or have suggestions, please report them here: https://console.apify.com/actors/ZOoOLz3bSUgTz475I/issues

### Features

- **Location-based search** - Search any city, region, or country
- **Real-time pricing** - Get accurate prices for your dates
- **Reviews & ratings** - Extract review scores, review counts, and rating text
- **Property details** - Name, address, star rating, coordinates, photos
- **Room configuration** - Bedrooms, bathrooms, bed types, room size
- **Policies** - Free cancellation dates and no prepayment indicators
- **Discounts** - Limited-time deals and discount information
- **Sustainability** - Eco-friendly property certifications
- **Fast & reliable** - Optimized for speed with automatic retries

### Important: Default Dates for Pricing

Booking.com requires check-in and check-out dates to return pricing information. If you don't provide dates, the actor will automatically use default dates (check-in 7 days from now, 2-night stay) to ensure you always get pricing data. You can override these by providing your own `checkinDate` and `checkoutDate` parameters.

### Input Parameters

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `location` | string | Search location (city, region, country) | Required |
| `maxResults` | integer | Maximum number of results to scrape | 25 |
| `checkinDate` | string | Check-in date (YYYY-MM-DD format) | 7 days from now |
| `checkoutDate` | string | Check-out date (YYYY-MM-DD format) | 2 nights after check-in |
| `adults` | integer | Number of adult guests | 2 |
| `rooms` | integer | Number of rooms needed | 1 |
| `currency` | string | Currency for prices (USD, EUR, GBP, etc.) | USD |
| `language` | string | Language code (en-us, de, fr, es, etc.) | en-us |

### Example Input

```json
{
    "location": "Paris",
    "maxResults": 50,
    "checkinDate": "2025-02-15",
    "checkoutDate": "2025-02-17",
    "adults": 2,
    "rooms": 1,
    "currency": "EUR",
    "language": "en-us"
}
```

### Output Data

Each property includes:

| Field | Description |
|-------|-------------|
| `id` | Unique property identifier |
| `name` | Property name |
| `url` | Direct link to property page |
| `description` | Property description |
| `location` | Display location text |
| `address` | Street address |
| `city` | City name |
| `countryCode` | Country code (US, GB, FR, etc.) |
| `latitude` | Geographic latitude |
| `longitude` | Geographic longitude |
| `distanceFromCenter` | Distance from city center |
| `publicTransportDistance` | Nearest public transport |
| `price` | Total price for stay |
| `priceFormatted` | Formatted price string |
| `currency` | Price currency |
| `originalPrice` | Original price before discounts |
| `pricePerNight` | Price per night |
| `discountAmount` | Discount value |
| `discountName` | Name of discount (e.g., "Limited-time Deal") |
| `reviewScore` | Review score (0-10) |
| `reviewCount` | Number of reviews |
| `reviewText` | Review rating text (Excellent, Very Good, etc.) |
| `starRating` | Hotel star rating |
| `photoUrl` | Main property photo URL |
| `photos` | Array of all property photos |
| `photoCount` | Number of photos |
| `roomName` | Room type name |
| `nbBedrooms` | Number of bedrooms |
| `nbBathrooms` | Number of bathrooms |
| `nbBeds` | Number of beds |
| `bedTypes` | Array of bed types and counts |
| `roomArea` | Room size |
| `freeCancellation` | Free cancellation available |
| `freeCancellationUntil` | Free cancellation deadline |
| `noPrepayment` | No prepayment required |
| `mealPlanType` | Meal plan included |
| `isSustainable` | Eco-friendly property |
| `sustainabilityCertifications` | Environmental certifications |
| `badges` | Property badges |
| `isPreferred` | Booking.com preferred property |
| `hasGeniusRate` | Genius discount available |
| `scrapedAt` | Timestamp of when data was scraped |

### Example Output

```json
{
    "id": 34636,
    "name": "Grand Hotel Paris",
    "url": "https://www.booking.com/hotel/fr/grand-hotel-paris.html",
    "description": "",
    "location": "8th arr., Paris",
    "address": "123 Champs-Elysees",
    "city": "Paris",
    "countryCode": "fr",
    "latitude": 48.8566,
    "longitude": 2.3522,
    "distanceFromCenter": "0.5 miles from downtown",
    "publicTransportDistance": "Champs-Elysees station is within 200 yards",
    "price": 718.50,
    "priceFormatted": "$718.50",
    "currency": "USD",
    "originalPrice": 1026.43,
    "pricePerNight": 359,
    "discountAmount": 307.93,
    "discountName": "Limited-time Deal",
    "reviewScore": 8.7,
    "reviewCount": 1542,
    "reviewText": "Excellent",
    "starRating": 4,
    "photoUrl": "https://cf.bstatic.com/xdata/images/hotel/square600/...",
    "photos": ["https://cf.bstatic.com/xdata/images/hotel/square600/..."],
    "photoCount": 1,
    "roomName": "Deluxe Double Room",
    "nbBedrooms": 1,
    "nbBathrooms": 1,
    "nbBeds": 1,
    "bedTypes": [{"type": 6, "count": 1}],
    "roomArea": "25",
    "freeCancellation": true,
    "freeCancellationUntil": "2025-02-14T00:00:00Z",
    "noPrepayment": true,
    "mealPlanType": "breakfast",
    "isSustainable": true,
    "sustainabilityCertifications": ["Green Key"],
    "badges": [],
    "isPreferred": true,
    "hasGeniusRate": false,
    "scrapedAt": "2025-01-10T12:00:00.000Z"
}
```

### Usage Tips

1. **Pricing** - Provide check-in and check-out dates to get accurate pricing for your specific dates
2. **Default dates** - If no dates provided, the actor uses dates 7 days from now (2-night stay) to ensure pricing is returned
3. **Large searches** - For cities with many properties, increase `maxResults` to get more data
4. **Different currencies** - Use the `currency` parameter to get prices in your preferred currency
5. **Localization** - Change `language` to get property descriptions in different languages
6. **Guest count** - Set `adults` and `rooms` to match your actual search criteria

### Rate Limits

Free users are limited to 100 results per run. Upgrade to a paid Apify plan for unlimited results.

# Actor input Schema

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

Search location (city, region, country). Example: London, Paris, New York

## `maxResults` (type: `integer`):

Maximum number of results to scrape. Free users are limited to 100 results.

## `checkinDate` (type: `string`):

Check-in date in YYYY-MM-DD format. Leave empty to use a date 7 days from now.

## `checkoutDate` (type: `string`):

Check-out date in YYYY-MM-DD format. Leave empty to use 2 nights from check-in.

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

Number of adult guests

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

Number of rooms needed

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

Currency for prices (USD, EUR, GBP, etc.)

## `language` (type: `string`):

Language code for results (en-us, de, fr, es, etc.)

## Actor input object example

```json
{
  "location": "London",
  "maxResults": 25,
  "adults": 2,
  "rooms": 1,
  "currency": "USD",
  "language": "en-us"
}
```

# 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 = {
    "location": "London",
    "maxResults": 25,
    "checkinDate": "",
    "checkoutDate": "",
    "adults": 2,
    "rooms": 1,
    "currency": "USD",
    "language": "en-us"
};

// Run the Actor and wait for it to finish
const run = await client.actor("agenscrape/booking-com-stays-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 = {
    "location": "London",
    "maxResults": 25,
    "checkinDate": "",
    "checkoutDate": "",
    "adults": 2,
    "rooms": 1,
    "currency": "USD",
    "language": "en-us",
}

# Run the Actor and wait for it to finish
run = client.actor("agenscrape/booking-com-stays-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "London",
  "maxResults": 25,
  "checkinDate": "",
  "checkoutDate": "",
  "adults": 2,
  "rooms": 1,
  "currency": "USD",
  "language": "en-us"
}' |
apify call agenscrape/booking-com-stays-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=agenscrape/booking-com-stays-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ZOoOLz3bSUgTz475I/builds/IhpborgZkEb37Z38c/openapi.json
