# Booking.com Hotel, Riad & Apartment Search Scraper (`apt_marble/booking-property-search`) Actor

Search hotels, riads, apartments and more by destination, property name, Booking.com link or property ID. Export property information, ratings, photos and stay prices when available. Public data only.

- **URL**: https://apify.com/apt_marble/booking-property-search.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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.
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?

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, Riad & Apartment Search Scraper

Find hotels, riads, apartments, villas, guesthouses and other stays on Booking.com. Search by destination or property, collect property ratings and photos, and export the listing information in JSON, CSV or Excel. Add stay dates to collect the prices and booking conditions available for that search.

### What you can collect

- Destination and property search with automatic pagination
- Hotels, riads and apartments as optional property-type selections
- Property names, IDs, links, locations, photos, ratings and review counts
- Stay prices, currencies, charges and booking flags when provided
- Duplicate removal within each search and results saved while the run is working

### Quick start

1. Add your destination or property entries to the main input field.
2. Choose the number of results and optional settings.
3. Start the run and open the Output tab.
4. Download the dataset as JSON, CSV, Excel or another supported format.

### Input guide

| Input | Description |
| --- | --- |
| `searches` | Add one destination/property per line. You can mix names, full Booking.com links and numeric property IDs. |
| `maxResults` | Maximum number to save for each entry. |
| `propertyType` | Choose all accommodation types, hotels, riads or apartments. |
| `checkin` | Optional. Enter DD-MM-YYYY. Provide both dates or leave both blank. Dates in a link are used if these fields are blank. |
| `checkout` | Optional. Must be after check-in, using DD-MM-YYYY. |
| `adults` | Optional. Uses the link value or 2 when omitted. |
| `rooms` | Optional. Uses the link value or 1 when omitted. |
| `childrenAges` | Optional. Comma-separated ages from 0 to 17, for example 2,8. Child count is calculated from these ages. |
| `concurrency` | How many input entries to process at once. Large searches also process up to 3 sections at once, bounded by this setting. Start with 5. |

#### Example input

```json
{
  "searches": [
    "Marrakech"
  ],
  "propertyType": "riad",
  "maxResults": 100,
  "concurrency": 5
}
```

#### Names, links and IDs

Use one entry per line. Property names are submitted as search terms and may return nearby or similarly named properties, as on Booking.com. For one specific property, use its full property link or numeric property ID. You can mix accepted formats in one run.

Destination names such as `Marrakech` work directly. You can also paste a full Booking.com search-results link to carry its destination and supported property filters. Optional stay fields override the stay settings in a link. Numeric IDs refer to properties, not destinations.

Stay dates use `DD-MM-YYYY`, for example `12-08-2027`. Supply both dates or leave both blank. Child count comes from the comma-separated child ages. Adult and room counts use the link settings or default to 2 adults and 1 room when omitted.

### Output

One dataset row represents one property in a search. Fields that are not supplied for a property or review can be null or absent.

| Field | Meaning |
| --- | --- |
| `image` | Main property photo URL. |
| `propertyId` | Numeric property ID. |
| `name` | Property display name. |
| `url` | Booking.com property link. |
| `propertyTypeId` | Property category ID. |
| `country` | Country code. |
| `city` | City name. |
| `address` | Property address. |
| `latitude` | Latitude. |
| `longitude` | Longitude. |
| `reviewScore` | Guest review score, on the original 10-point scale. |
| `reviewCount` | Number of guest reviews. |
| `reviewLabel` | Review score label. |
| `starRating` | Star/quality rating and symbol. |
| `price` | Available display amounts, currencies, charges and discounts for the requested stay. |
| `location` | Location labels and distances. |
| `cancellationAndPayment` | Cancellation, prepayment and other booking flags from the listing. |
| `matchingUnits` | Matching accommodation configurations. |
| `blocks` | Available listing block information. |
| `description` | Listing description when provided. |
| `search` | Search name and stay settings. |
| `propertyData` | Additional property-listing information. |
| `scrapedAt` | Extraction time in ISO 8601 format. |

#### Example output

Illustrative excerpt. Values vary by property, search dates and extraction time.

```json
{
  "propertyId": 2973456,
  "name": "Agafay Luxury camp",
  "url": "https://www.booking.com/hotel/ma/agafay-luxury-camp.html",
  "reviewScore": 8.3,
  "reviewCount": 3580,
  "country": "ma",
  "latitude": 31.431573815877,
  "longitude": -8.19094902181677
}
```

The run summary is available in the `OUTPUT` record. It includes saved counts, input issues and any partial-result warnings.

### Use cases

- Compare accommodation listings across destinations.
- Build a shortlist of hotels, riads or apartments.
- Monitor the listing data returned for selected stay dates.

### FAQ

#### Can I use a property name instead of a link?

Yes. Search with a property or destination name. Search terms may return multiple matching properties; use a full property link or numeric property ID for a specific property.

#### Are missing fields filled in?

No. The dataset preserves the information supplied for the property or review. It does not invent missing descriptions, scores, prices or guest details.

#### Are the prices the same for every search?

No. Prices and availability depend on dates, occupancy and the information returned at extraction time. Keep the currency and charge details with each amount. Searches without dates may not contain prices.

#### Can I collect every property in a destination?

Reported totals can change between pages. Large searches use property-type, property-rating and district sections to reach more matching properties. The run summary reports saved versus reported counts, the requested limit, and any sections that could not be covered. A destination total is not a guarantee that every matching property can be collected.

The summary separates `saved`, `reportedTotal` (first count) and `reportedTotalLatest`. `requested_limit_reached` means the input limit was met, not that the destination was exhausted. `partial_coverage` means pages or sections remain unresolved. `reachable_pages_exhausted` means the returned pages ended without a known unresolved section; it is not a complete-inventory guarantee. Sorting uses distance from the destination center for stable pagination, not the website's recommended ranking.

#### What happens if an entry cannot be completed?

Saved results remain available. Input issues and partial-result warnings appear in the run summary. A service interruption before any results can be collected is reported clearly.

### Legal notice

Public data only. You are responsible for following Booking.com terms and applicable laws, including GDPR and CCPA. Do not collect or use data you are not permitted to access. This actor is not affiliated with or endorsed by Booking.com.

### Migration and restart recovery

Within the same run and storage, the actor checkpoints section cursors and buffers fetched pages before writing rows. After a restart, it reads the existing dataset to restore counts and deduplication, then continues unfinished sections. A completed or buffered page is not fetched again. An interrupted request whose response was not saved may need to be fetched again. This is recovery, not a retry policy for pages that returned an error. Failed sections remain listed without automatic retry.

Page logs separate returned rows, new rows and already-saved IDs. A page with zero new rows can still contain properties already collected through another section. The actor keeps checking later pages because they can contain new IDs.

Recovery does not delete duplicates already created by an older version. If existing duplicates are detected, the summary reports them; deduplicate an export by property ID within each search. Starting a separate new run normally uses new storage and does not resume an earlier run.

# Actor input Schema

## `searches` (type: `array`):

Add one destination/property per line. You can mix names, full Booking.com links and numeric property IDs.

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

Maximum number to save for each entry.

## `propertyType` (type: `string`):

Choose all accommodation types, hotels, riads or apartments.

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

Optional. Enter DD-MM-YYYY. Provide both dates or leave both blank. Dates in a link are used if these fields are blank.

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

Optional. Must be after check-in, using DD-MM-YYYY.

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

Optional. Uses the link value or 2 when omitted.

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

Optional. Uses the link value or 1 when omitted.

## `childrenAges` (type: `string`):

Optional. Comma-separated ages from 0 to 17, for example 2,8. Child count is calculated from these ages.

## `concurrency` (type: `integer`):

How many input entries to process at once. Start with 5.

## Actor input object example

```json
{
  "searches": [
    "Paris"
  ],
  "maxResults": 100,
  "propertyType": "all",
  "concurrency": 5
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (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 = {
    "searches": [
        "Paris"
    ],
    "maxResults": 100,
    "propertyType": "all",
    "concurrency": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/booking-property-search").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 = {
    "searches": ["Paris"],
    "maxResults": 100,
    "propertyType": "all",
    "concurrency": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/booking-property-search").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 '{
  "searches": [
    "Paris"
  ],
  "maxResults": 100,
  "propertyType": "all",
  "concurrency": 5
}' |
apify call apt_marble/booking-property-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/booking-property-search"
        }
    }
}
```

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/7iHBPf6J6RNo1gChH/builds/82OKLayHAY0JJq3kR/openapi.json
