# Booking.com Hotel Search Scraper | Prices by Dates (`genial_candlestand/booking-com-hotel-search-scraper`) Actor

Get booking.com hotels and other properties for any destination and dates: total stay price, price per night, taxes and fees, rating, stars, address, coordinates, room, free cancellation and meal plan. Many destinations or search URLs per run, filters, currency of your choice, no login.

- **URL**: https://apify.com/genial_candlestand/booking-com-hotel-search-scraper.md
- **Developed by:** [Flowo](https://apify.com/genial_candlestand) (community)
- **Categories:** Travel, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.91 / 1,000 properties

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 Search Scraper | Prices by Dates

![Booking.com Hotel Search Scraper | Prices by Dates](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/booking-com-places-local-business-search-banner-5e2d416f.png)

Search booking.com by destination, dates and guests and get one row per hotel, apartment or other property. Each row has the live total price for the stay and the price per night in the currency you choose, plus taxes and fees, guest rating, star class, address and coordinates. It also returns the cheapest matching room, free cancellation, meal plan and deal badge.

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

You give it destinations: a city, region, district, landmark, country or hotel name, a numeric booking.com city id, or a booking.com search URL. You also set check-in and check-out dates, adults, rooms and children ages. It runs the same search booking.com runs for a traveller and returns the properties in booking.com's order. You can use booking.com's filters: stars, minimum rating, property type, free cancellation, meal plan and price per night.

Revenue managers use it to track competitor rates. Travel and price-comparison sites use it to collect offers, and analysts use it to map supply and price levels of a market. Without dates (`mode: "all"`) it returns the full list of a destination's properties, with ratings and locations but no prices.

### How to scrape Booking.com hotel prices

![How Booking.com Hotel Search Scraper works: Sends booking.com's own search request for each destination and stay; Pages through results 25 at a time, up to 1000 per destination; Retries a blocked requ](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/booking-com-places-local-business-search-how-d99a55be.png)

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Property | $2.25 per 1,000 | $2.137 per 1,000 | $2.025 per 1,000 | $1.912 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 46 rows in 6 s.

1. Open the actor in Apify Console and click **Try for free**.
2. Under **Destinations**, add one or more places, e.g. `Lisbon`, `Algarve` or `Eiffel Tower`, one per line. Or paste booking.com search URLs under **Booking.com search URLs**.
3. Set **Check-in date** and **Check-out date**, **Adults**, **Rooms** and, if needed, **Children ages**. If you leave the dates empty, the stay is 1 night starting 30 days from today.
4. Choose a **Currency** (e.g. `EUR`) and, optionally, filters and **Sort by**.
5. Set **Max results per destination** (default 100, up to 1000) and click **Start**.
6. When the run finishes, download the results from the **Output** tab as JSON, CSV or Excel, or read them through the API.

### How much does it cost to scrape Booking.com?

You pay for each **property** row in the dataset. One property event is one booking.com property from one destination's search. Each run also has an **Actor start** event, charged once per GB of memory. The actor runs on 256 MB, so that is one start event per run.

You pay nothing for unknown destinations or searches that find no properties. No other events or add-ons are charged.

Example costs on the Free plan, start fee included:

| Scenario | Events | Cost |
|---|---|---|
| One page of Lisbon hotels for your dates | 25 properties + 1 start | $0.05630 |
| One destination, default limit | 100 properties + 1 start | $0.22505 |
| One big city, maximum limit | 1,000 properties + 1 start | $2.25005 |
| Five destinations × 1,000 properties | 5,000 properties + 1 start | $11.25005 |

### Input

![Booking.com Hotel Search Scraper input example: Destinations, Mode, Adults, Rooms, Children ages, Currency, Language](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/booking-com-places-local-business-search-input-85d363af.png)

Nothing is required by the form, but a run needs at least one destination in `queries` or one URL in `startUrls`.

- **`queries`**: destinations, one per line. Use free text as you would type it on booking.com, or a numeric booking.com city id such as `-2167973` (Lisbon). Each destination is a separate search.
- **`startUrls`**: booking.com search result URLs (`www.booking.com/searchresults*.html`). The destination, dates, guests, children ages, filters (`nflt`) and sort order in the URL override the form for that URL. Currency, language, mode and limits still come from the form. Hotel page URLs are skipped with a warning.
- **`checkIn`**, **`checkOut`**: `YYYY-MM-DD`. Check-in must be today or later and at most 500 days ahead. The stay can be at most 90 nights. Empty check-in = 30 days from today. Empty check-out = check-in + 1 night. A check-out without a check-in is an error.
- **`mode`**: `available` (default; bookable for your dates, with prices) or `all` (every listed property, no dates and no prices).
- **`adults`** (1–30, default 2), **`rooms`** (1–30, default 1, not more than adults), **`childrenAges`** (one age 0–17 per child, e.g. `[4, 9]`).
- **`currency`**: ISO 4217 code, default `USD`. It is always sent to booking.com and is also the currency of the price filters.
- **`language`**: one of 20 booking.com languages (default `en-us`) for names, rating words and distances.
- **`sortBy`**: `popularity` (booking.com default), `price`, `price_from_high_to_low`, `review_score_and_price`, `bayesian_review_score`, `class`, `class_asc`, `distance_from_search` or `upsort_bh` (homes and apartments first).
- **`stars`** (any of `1`–`5`) and **`propertyTypes`** (`hotels`, `apartments`, `vacationHomes`, `villas`, `guesthouses`, `bedAndBreakfasts`, `hostels`, `homestays`, `chalets`, `campgrounds`, `boats`, `capsuleHotels`) work in both modes. Property types follow booking.com's own grouping, so apartments also include aparthotels.
- **`minRating`** (`6`, `7`, `8`, `9`), **`freeCancellation`**, **`mealPlan`** (`breakfast`, `breakfastAndDinner`, `allInclusive`), **`minPrice`** and **`maxPrice`** (per night, whole units of the currency) work only in `available` mode.
- **`filters`**: an advanced raw booking.com filter string (the `nflt` parameter), `key=value` pairs joined by `;`. It is added to the filters above.
- **`maxResultsPerDestination`** (1–1000, default 100) and **`maxItems`** (optional cap for the whole run).
- **`proxyConfiguration`**: the default Apify datacenter proxy works.

Example input:

```json
{
  "queries": ["Paris"],
  "checkIn": "2027-01-15",
  "checkOut": "2027-01-17",
  "adults": 2,
  "currency": "EUR",
  "stars": ["4"],
  "minRating": "8",
  "freeCancellation": true,
  "maxPrice": 200,
  "sortBy": "price",
  "maxResultsPerDestination": 100
}
```

### What data can you extract from Booking.com?

![Booking.com Hotel Search Scraper output example: Photo, Name, Type, Stars, Rating, Reviews](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/booking-com-places-local-business-search-output-9239afc6.png)

| Field | What it is |
|---|---|
| `id`, `title`, `url` | booking.com property id, name and property page link with your dates, guests and currency |
| `query`, `position` | the destination or URL from your input and the 1-based rank in the results |
| `destination`, `destinationType`, `destinationId` | the destination as booking.com resolved it (CITY, REGION, DISTRICT, LANDMARK, COUNTRY or HOTEL) |
| `propertyType`, `accommodationTypeId` | type name (e.g. Hotels, Apartments) and booking.com type id |
| `stars`, `starsType` | star class 1–5 and whether it is official stars or a booking.com quality rating |
| `rating`, `ratingText`, `reviewsCount` | guest score 0–10, its word (e.g. Wonderful) and the number of reviews |
| `address`, `city`, `country`, `latitude`, `longitude`, `location` | street address, city, ISO country code, coordinates and district |
| `distanceFromCenter`, `publicTransportDistance`, `beachDistance` | distance texts as booking.com shows them |
| `checkIn`, `checkOut`, `nights`, `adults`, `rooms`, `childrenAges` | the stay that was searched |
| `price`, `pricePerNight`, `priceBeforeDiscount`, `taxesAndFees`, `currency` | total for the stay (before taxes and fees not included), per night, crossed-out price, extra taxes and charges, currency code |
| `dealBadge`, `roomsLeftMessage` | deal name and scarcity text, e.g. "We have 7 left at this price" |
| `roomName`, `bedrooms`, `bathrooms`, `unitArea` | the cheapest matching room or unit |
| `freeCancellation`, `freeCancellationUntil`, `noPrepayment`, `mealPlan` | offer conditions |
| `isSoldOut`, `preferred`, `hostType` | sold out flag, booking.com Preferred Partner, PROFESSIONAL or PRIVATE host |
| `imageUrl`, `scrapedAt` | main photo (600×600 JPG) and extraction time |

A real row from a Lisbon search (1 night, 2 adults, EUR):

```json
{
  "id": "9098389",
  "title": "Eurostars Lisboa Baixa",
  "url": "https://www.booking.com/hotel/pt/eurostas-lisboa-baixa.html?checkin=2026-12-08&checkout=2026-12-09&group_adults=2&group_children=0&no_rooms=1&selected_currency=EUR",
  "query": "Lisbon",
  "position": 1,
  "destination": "Lisbon",
  "destinationType": "CITY",
  "destinationId": "-2167973",
  "propertyType": "Hotels",
  "accommodationTypeId": 204,
  "stars": 4,
  "starsType": "NONE",
  "rating": 9.2,
  "ratingText": "Wonderful",
  "reviewsCount": 1824,
  "address": "Rua de Prata, 88-114",
  "city": "Lisboa",
  "country": "PT",
  "latitude": 38.710131,
  "longitude": -9.136478,
  "location": "Santa Maria Maior, Lisbon",
  "distanceFromCenter": "0.3 miles from downtown",
  "publicTransportDistance": "Baixa-Chiado station is within 400 yards",
  "beachDistance": null,
  "checkIn": "2026-12-08",
  "checkOut": "2026-12-09",
  "nights": 1,
  "adults": 2,
  "rooms": 1,
  "childrenAges": [],
  "price": 96.7,
  "pricePerNight": 96.7,
  "priceBeforeDiscount": 161.17,
  "taxesAndFees": 13.8,
  "currency": "EUR",
  "dealBadge": null,
  "roomName": "Deluxe Double Room",
  "bedrooms": 0,
  "bathrooms": 0,
  "unitArea": null,
  "freeCancellation": false,
  "freeCancellationUntil": null,
  "noPrepayment": false,
  "mealPlan": null,
  "roomsLeftMessage": null,
  "isSoldOut": false,
  "preferred": true,
  "hostType": "PROFESSIONAL",
  "imageUrl": "https://cf.bstatic.com/xdata/images/hotel/square600/425895275.jpg?k=eb4c9000683d7cdc25d9ecd4d321a30c9560b3a6183dde24632d8126b1f19113&o=",
  "scrapedAt": "2026-11-08T18:50:23.226Z"
}
```

### Use cases

- **Competitor rate tracking**: hoteliers and revenue managers check the prices of nearby hotels for given dates, e.g. Lisbon, January 15–17, 2 adults, in EUR.
- **Filtered shortlists**: 4-star hotels in Paris rated 8+ with free cancellation under 200 per night, cheapest first.
- **Family trips**: prices and availability for 2 adults and children aged 4 and 9 in Ubud, with breakfast included.
- **Market catalogues**: every listed apartment and vacation home in the Algarve or the Alfama district, with ratings and coordinates (`mode: "all"`).
- **Replaying a browser search**: paste a booking.com search URL to get the same search as on the site, as data.

### Limitations

- booking.com shows at most **1,000 properties per search**. To get more from a big destination, split it into districts, star classes or property types.
- The data comes from the search results only. Facilities, descriptions, per-room rate tables and review texts are not included.
- Prices are the public rates booking.com shows to a visitor who is not logged in (no Genius discounts).
- In `mode: "all"`, the price and offer fields (`price` … `roomsLeftMessage`) and `checkIn`, `checkOut`, `nights` are null. Only the stars and property type filters work there.
- Many fields can be empty when booking.com does not show them. Examples: `stars` for unrated properties, `rating` with no reviews, `priceBeforeDiscount` without a deal, `mealPlan` and `freeCancellationUntil` for offers without them, `beachDistance` away from beaches, `unitArea` outside apartment-type units.
- booking.com sometimes reshuffles results between pages, so a destination can return a few rows fewer than the limit. Duplicates are dropped.
- If booking.com does not offer the currency you asked for, the rows keep the currency it actually returned and the log shows a warning.

### Tips and troubleshooting

- **0 rows for a destination?** Check the log. It says whether booking.com did not recognise the destination or found no properties for these dates and filters. Try a more specific name (e.g. `Alfama, Lisbon`) or relax the filters.
- **Input errors** stop the run before any request: dates in the past or more than 500 days ahead, a stay over 90 nights, more rooms than adults, a child age outside 0–17, an invalid currency code, a minimum price above the maximum, or available-only filters used in `mode: "all"`.
- Filters of different kinds combine with AND. Several values of one filter (e.g. stars `4` and `5`) combine with OR.
- A filter string in a start URL (`nflt`) replaces all form filters for that URL.
- Unknown keys in the raw `filters` string are ignored by booking.com without an error, so check the result count after adding one.
- The default datacenter proxy and 256 MB memory are enough. Prices do not depend on the proxy country, because the currency is always sent.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/booking-com-hotel-search-scraper").call(run_input={
    "queries": ["Lisbon"],
    "adults": 2,
    "currency": "EUR",
    "maxResultsPerDestination": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/booking-com-hotel-search-scraper').call({
    "queries": ["Lisbon"],
    "adults": 2,
    "currency": "EUR",
    "maxResultsPerDestination": 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~booking-com-hotel-search-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["Lisbon"],"adults":2,"currency":"EUR","maxResultsPerDestination":50}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/booking-com-hotel-search-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/booking-com-hotel-search-scraper"}}}`. Then ask, for example:

- "Find 4-star hotels in Lisbon under 150 EUR per night with free cancellation for Jan 15-17, 2027"
- "List hotel prices in Paris for 2 adults, Jan 15-17 2027, rated 8 or higher, cheapest first"
- "Get all apartments and vacation homes listed in the Algarve with ratings and coordinates"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Can I search by booking.com URL instead of a destination name?**<br>
Yes. Paste booking.com search result URLs into `startUrls`. The destination, dates, guests, children ages, filters and sort order from the URL are used. Hotel page URLs are not supported.

**Are the prices per night or for the whole stay?**<br>
Both. `price` is the total for the stay for your guests and rooms, before the taxes and charges in `taxesAndFees`. `pricePerNight` is `price` divided by `nights`.

**Can I get properties without choosing dates?**<br>
Yes, with `mode: "all"`. You get every listed property of the destination with ratings and locations, but no prices.

**How is it different from other Booking.com actors?**<br>
It always sends your currency, so prices do not depend on the proxy's country. Prices come as plain numbers: total, per night, before discount, plus taxes and fees. It has filters for stars, rating, 12 property types, free cancellation, meal plan and price per night, and it takes children ages. Every row also shows the destination booking.com resolved, with its type and id. The price is $2.25 per 1,000 properties; the most used Booking.com actor in the Store charges $5.

**Is it legal to scrape Booking.com?**<br>
The actor reads public search results that booking.com shows to any visitor without a login. It does not collect guests' personal data. You are responsible for how you use the data and for following booking.com's terms and the laws that apply to you.

### Also useful

- [Google Hotels Scraper](https://apify.com/genial_candlestand/google-hotels-scraper) — compare the same hotels on Google Hotels: nightly price, total with taxes, rating and amenities
- [Airbnb Scraper](https://apify.com/genial_candlestand/airbnb-listings-prices-scraper) — add Airbnb listings for the same destination and dates: stay price, per night and rating
- [Google Flights Scraper](https://apify.com/genial_candlestand/google-flights-scraper-api) — price the flights for the same trip: fares, airlines, times and stops by route and dates
- [Yelp Business Scraper](https://apify.com/genial_candlestand/yelp-business-scraper) — list restaurants and businesses of the same destination: rating, phone, website and hours

# Actor input Schema

## `queries` (type: `array`):

Where to search, one per line: a city, region, district, landmark, country or hotel name as you would type it on booking.com (e.g. Lisbon, Algarve, Eiffel Tower), or a numeric booking.com city id (e.g. -2167973). Each destination is a separate search of up to 1000 properties. Give Destinations or Booking.com search URLs (or both).

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

Optional booking.com search result URLs (www.booking.com/searchresults.html?...). The destination, dates, guests, children ages, filters (nflt) and sort order in the URL are used for that search and override the fields below; currency, language, mode and limits still come from this form. Hotel page URLs are skipped with a warning.

## `checkIn` (type: `string`):

Arrival date, YYYY-MM-DD. Empty = 30 days from today. Must be today or later and at most 500 days ahead (booking.com's calendar). Ignored when Mode is "All properties".

## `checkOut` (type: `string`):

Departure date, YYYY-MM-DD, after the check-in date; a stay is at most 90 nights. Empty = check-in + 1 night. Needs a check-in date.

## `mode` (type: `string`):

Available: properties bookable for your dates and guests, with live prices. All properties: every listed property of the destination without dates, with ratings and locations but no prices; only the Stars and Property types filters apply there.

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

Number of adult guests (1–30). Prices are for this group.

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

Number of rooms (1–30); cannot be more than the number of adults.

## `childrenAges` (type: `array`):

Age of each child at check-in, one number per child, 0–17, e.g. \[4, 9]. Empty = no children. Family prices and availability depend on the ages.

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

ISO 4217 code of the prices, e.g. USD, EUR, GBP, JPY. Always sent to booking.com, so prices do not depend on the proxy country. Min/Max price per night use this currency too.

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

Language of property names, rating words, distances and other texts.

## `sortBy` (type: `string`):

Order of the results, as on booking.com. The 1000-results cap applies to every order.

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

Only properties with any of these star classes, e.g. \["4", "5"]. Empty = any (also unrated properties). Works in both modes.

## `minRating` (type: `string`):

Only properties with at least this review score (0–10 scale). Empty = any. Only in "available" mode.

## `propertyTypes` (type: `array`):

Only these property types (any of them), as booking.com groups them (e.g. apartments also include aparthotels), e.g. \["hotels"]. Empty = all types. Works in both modes.

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

Only offers with free cancellation. Only in "available" mode.

## `mealPlan` (type: `string`):

Only offers with this meal plan. Empty = any. Only in "available" mode.

## `minPrice` (type: `integer`):

Lowest price per night, in the Currency above (whole units). Only in "available" mode.

## `maxPrice` (type: `integer`):

Highest price per night, in the Currency above (whole units); at least Min price. Only in "available" mode.

## `filters` (type: `string`):

Advanced: a raw booking.com filter string (the nflt URL parameter), key=value pairs joined by ';', e.g. hotelfacility=433;di=1947 (pool; Alfama district). Added to the filters above. booking.com ignores unknown keys without an error.

## `maxResultsPerDestination` (type: `integer`):

Stop each destination after this many properties (1–1000; booking.com shows at most 1000 per search). A few rows can be missing when booking.com reshuffles results between pages; duplicates are dropped.

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

Optional cap on all results of the run across destinations. Empty = no cap besides Max results per destination.

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

Proxy settings. The default Apify datacenter proxy works; prices do not depend on the proxy country.

## Actor input object example

```json
{
  "queries": [
    "Lisbon"
  ],
  "mode": "available",
  "adults": 2,
  "rooms": 1,
  "childrenAges": [],
  "currency": "USD",
  "language": "en-us",
  "sortBy": "popularity",
  "freeCancellation": false,
  "maxResultsPerDestination": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset with all properties

## `overview` (type: `string`):

Properties in the overview table view

# 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 = {
    "queries": [
        "Lisbon"
    ]
};

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

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

```

## MCP server setup

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