# Booking.com Hotel Prices Scraper: Rates, Availability (`arcadium/booking-prices`) Actor

Booking.com hotel prices, room rates and availability by date for hotels or a city, $2.70 per 1,000 rows. voyager and santamaria-automations Booking.com input works as is. Many dates and stay lengths per run, sold-out rows, taxes, cancellation terms; watch mode bills moved prices. Free error rows.

- **URL**: https://apify.com/arcadium/booking-prices.md
- **Developed by:** [Arcadium Data](https://apify.com/arcadium) (community)
- **Categories:** Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.58 / 1,000 price rows

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 Prices Scraper: Rates, Availability

Give it Booking.com hotel links or IDs, or a city, plus check-in dates and nights, and it returns one JSON row per hotel and stay: the cheapest total price, every room rate (meal plan, cancellation, taxes and fees), a sold-out flag, stars and review score. $2.70 per 1,000 rows on the free plan, less on paid plans; you pay only for rows you get.

**Use case:** watch hotel rates and availability for a list of hotels or a whole city across many dates, for revenue management, rate parity and travel pricing, with no login.

**Why this actor**

- **Drop-in input.** Input written for `voyager/booking-scraper` (`search`, `checkIn`, `checkOut`, `minScore`, `starsCountFilter`, `minMaxPrice`, `sortBy`, search-result `startUrls`), `santamaria-automations/booking-com-scraper` (`destination`, `checkin`, `checkout`) or `rl1987/booking-api-scraper` (`search`, `hotel_ids`, `windowDays`, `stayNights`) works as it is. These `voyager/booking-scraper` `language` codes are not accepted: es-ar, ca, lv, ms, et, hr, lt, sk, sr, sl, tl, is.
- **Many stays in one run.** Explicit date lists, a date range with a step, and several stay lengths at once.
- **Watch mode: pay only for changes.** With `watch` and a `watchKey`, later runs return and bill only the hotel and stay rows whose price, availability or rates moved.
- **Sold-out rows are data.** You see when a hotel has no rate for your dates.
- **Clear errors.** An input or date that cannot be read comes back as a free `error` row with a `code`.

Built by Arcadium Data: public data, dated and agent-ready, never personal data.

### Use with AI agents

The actor takes plain JSON and returns flat rows, so an AI agent or MCP client can call it directly. Input example for "cheapest night in Paris next month":

```json
{
  "destinations": ["Paris, France"],
  "checkInDates": ["+30d"],
  "nights": [1],
  "adults": 2,
  "currency": "EUR",
  "maxHotels": 20
}
```

And for "what does this hotel cost on three dates":

```json
{
  "hotelIds": [55103],
  "checkInDates": ["2026-12-10", "2026-12-17", "2026-12-24"],
  "nights": [2]
}
```

Each dataset row is one hotel and one stay. Read `minPrice` (total) and `currency`, `soldOut`, `freeCancellation` and `hotelUrl`; `roomRates` has the detail. Prices are for the whole stay and all rooms. Every input field has a description in the input schema; errors come back as rows with `rowType: "error"` and a `code`, never as a failed run.

Connect it through the Apify MCP server (https://mcp.apify.com, actor `arcadium/booking-prices`). Cost: $2.70 per 1,000 rows on the free plan (see Pricing); error rows are free.

### What you get

| Field | What it holds |
| --- | --- |
| `hotelId`, `hotelName`, `hotelUrl` | Booking.com id, name and page link. |
| `stars`, `reviewScore`, `reviewCount` | Star rating, guest score on the 0-10 scale, number of reviews. |
| `propertyType`, `city`, `countryCode`, `address` | Where it is and what kind of property it is (hotel lookups give all four; destination rows give city, country and address). |
| `checkIn`, `checkOut`, `nights`, `adults`, `children`, `rooms` | The stay this row is about. |
| `currency` | Currency of every price in the row. |
| `available`, `soldOut` | Whether the hotel can be booked for the stay. A sold-out row has no price. |
| `minPrice`, `minPricePerNight` | Cheapest total for the whole stay (all rooms) and per night. |
| `originalPrice` | The same rate before discounts. |
| `taxesAndFeesExcluded` | Taxes and fees shown as "excluded" on the site (for example VAT and city tax paid on top). |
| `mealPlan`, `freeCancellation`, `cancellationPolicy`, `cheapestRoom` | Meal plan (`ROOM_ONLY`, `BREAKFAST`, `HALF_BOARD`, ...), whether the cheapest rate has free cancellation, `free_cancellation` or `non_refundable`, and the room it is for. |
| `roomRates` | Every rate for the stay: room, meal plan, price, per night, original price, taxes, cancellation (with the site's wording), prepayment. Cheapest first. |
| `rateCount`, `source` | How many rates, and where they come from: `roomTable` (every rate) or `search` (the cheapest rate of each hotel). |
| `searchDestination`, `searchRank` | Destination searches: the text you gave and the hotel's position in the results. |
| `change` | Watch mode: `type` (`new`, `price_drop`, `price_rise`, `availability`, `rates`), `fields` (old -> new), `previousCheckAt`, `previousMinPrice`, `priceChange`. |
| `scrapedAt` | When the row was read. |

Output example:

```json
{
  "rowType": "price",
  "platform": "booking",
  "hotelId": "55103",
  "hotelName": "Hôtel De La Paix",
  "hotelUrl": "https://www.booking.com/hotel/fr/de-la-paix-paris1.html",
  "stars": 3,
  "reviewScore": 8.5,
  "reviewCount": 2112,
  "city": "Paris",
  "countryCode": "fr",
  "checkIn": "2026-12-10",
  "checkOut": "2026-12-12",
  "nights": 2,
  "adults": 2,
  "children": 0,
  "rooms": 1,
  "currency": "EUR",
  "available": true,
  "soldOut": false,
  "minPrice": 236.73,
  "minPricePerNight": 118.37,
  "originalPrice": 338.18,
  "taxesAndFeesExcluded": 45.79,
  "mealPlan": "ROOM_ONLY",
  "freeCancellation": false,
  "cancellationPolicy": "non_refundable",
  "cheapestRoom": "Standard Double Room",
  "roomRates": [
    {
      "roomName": "Standard Double Room",
      "mealPlan": "ROOM_ONLY",
      "price": 236.73,
      "pricePerNight": 118.37,
      "cancellation": "non_refundable",
      "cancellationText": "Non-refundable",
      "payment": "prepayment_required"
    }
  ],
  "rateCount": 12,
  "source": "roomTable",
  "scrapedAt": "2026-10-21T08:00:00.000Z"
}
```

### Input

```json
{
  "startUrls": [{ "url": "https://www.booking.com/hotel/fr/de-la-paix-paris1.html" }],
  "checkInDates": ["+30d", "+37d"],
  "nights": [1, 3],
  "adults": 2,
  "currency": "EUR"
}
```

| Field | What it does |
| --- | --- |
| `startUrls`, `hotelIds` | Specific hotels, by page link or numeric id. Each gives every room rate for every date. |
| `destinations` | Cities, regions, countries, landmarks, airports or hotel names, for example `Paris`, `Lisbon`, `Hotel de la Paix Paris`; or a Booking.com destination id. Each gives up to `maxHotels` hotels per date with the cheapest rate of each. Add the country (`Paris, France`) for names that exist in several places. |
| `maxHotels` | Hotels per destination and date, up to 1,000 (the most the site returns per search). |
| `checkInDates` | Dates as `YYYY-MM-DD` or relative (`+30d`, `tomorrow`). |
| `checkInFrom`, `checkInTo`, `checkInStepDays` | A range of check-in dates, one every N days (up to 400 dates). |
| `nights` | One or more stay lengths, 1 to 30. Every date is combined with every value. |
| `adults`, `childrenAges`, `rooms` | The party. Prices are for all rooms together. |
| `currency`, `language` | Currency code for all prices; language for room names and cancellation texts. |
| `stars`, `minReviewScore`, `freeCancellation`, `mealPlan`, `minPricePerNight`, `maxPricePerNight` | Filters. Booking.com applies them in destination searches; for single hotels a stay that does not match gives no row. |
| `sortBy` | Order of destination results: `price` (default, stable), `popularity`, `price_desc`, `review_score`, `stars_desc`, `stars_asc`, `distance`. |
| `includeSoldOut` | Destination searches skip sold-out hotels unless this is on. Single hotels always give a row. |
| `includeRoomRates` | Read every room rate of each destination hotel too (one extra request per hotel and date, same price). |
| `maxRows` | Stop after this many rows in total. A cost cap. |
| `watch`, `watchKey` | Watch mode (below). The older names `onlyChanges` and `stateKey` still work. |
| `includeErrorRows` | Add a free row for every hotel, destination or date that could not be read. On by default. |

The input field names of `voyager/booking-scraper` and `santamaria-automations/booking-com-scraper` are also accepted as they are (`destination`, `checkin`, `checkout`, `children`, `maxResults`, `search`, `hotel_ids`, `windowDays`, `stayNights`, `maxItems`, `includeRooms`, and their sort values). Their `minPrice` / `maxPrice` are totals for the stay and are not mapped; use `minPricePerNight` / `maxPricePerNight`.

### Watch mode: pay only for changes

Set `"watch": true` and give the run a `watchKey` (for example `"paris-weekends"`). The first run has nothing to compare with: it is a normal run, returns every row and is charged normally, and it saves a snapshot. Every later run with the same key compares each hotel x stay row with that snapshot and returns only new rows and rows whose availability, cheapest price, meal plan, free cancellation, cheapest room or (with `includeRoomRates`) rate list changed, each with a `change` object:

```json
{
  "type": "price_drop",
  "fields": [{ "field": "minPrice", "old": 236.73, "new": 216.73 }],
  "previousCheckAt": "2026-10-31T13:09:21.077Z",
  "previousMinPrice": 236.73,
  "priceChange": -20
}
```

`roomRates` appears in `fields` by name only (the row carries the new rate list). Unchanged rows are not delivered and not charged. Every watch run also adds one free `watch-summary` row: `checked`, `unchanged`, `changed`, `new`, `gone` (in the last snapshot, not found now), `delivered`, `checksCharged`, `firstRun`, `previousCheckAt` and `complete` (false when the run stopped early, e.g. at your cost limit: then nothing counts as gone and changes that were not delivered come again next run).

The run still reads every hotel and stay, so it takes as long as a normal run; you pay for what changed. In our test two runs 30 seconds apart on 15 Sofia hotels x 2 dates gave 2 changed rows of 30. For exact alerts monitor specific hotels (links or ids) or turn on `includeRoomRates` for destinations: the room table is stable between runs (1 of 60 hotels differed across two runs seconds apart in our tests), while the single cheapest price on a destination search card can move a few percent between requests. Put the run on an Apify schedule and connect a webhook or integration to get alerts. Use a different `watchKey` for each list you monitor. The snapshot is kept in a named store (`booking-prices-state`) in your account; stays that have already started are dropped from it.

### Weekly digest

Add `"digest": true` to a watch run to get one more free row, `rowType: "watch-digest"`, that sums up the changes of the last `digestDays` days (default 7, up to 90) for this `watchKey`: `new`, `changed`, `gone`, `byType` (counts per change type), `topMoves` (the 5 biggest moves per metric and direction, largest relative change first, each with `label`, `old`, `new`, `delta`, `pct`), `runs` in the window, `windowStart`, `windowEnd`, `previousDigestAt` and `summary`: one plain-text line an AI agent or a workflow can paste into an email or Slack message as it is. The window is rolling: put the watch on a daily schedule and every run's digest covers the last 7 days, or run weekly and read one digest a week. The first run of a key only saves the baseline and its rows are not counted as changes. The window is kept as a second record in the same key-value store as the snapshot. The digest row is free; there is no extra event.

Change types are the same as in `change.type`: `price_drop`, `price_rise`, `availability`, `rates` and `new`. `topMoves` ranks the cheapest price (`minPrice`) of each hotel x stay; labels are the hotel name, check-in date and currency. Example `summary` (illustrative values):

```text
booking watch "paris-weekends", last 7 days (7 runs): 0 new, 23 changed, 2 gone. price drops 11, price rises 9, availability changes 3. Biggest price drop: Hotel Example 2026-12-10 (EUR) 236.73 -> 196.73, -16.9%. Biggest price rise: Hotel Sample 2026-12-11 (EUR) 180 -> 205, +13.9%.
```

### Use from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("arcadium/booking-prices").call(run_input={
    "destinations": ["Lisbon"],
    "checkInFrom": "+30d",
    "checkInTo": "+60d",
    "checkInStepDays": 7,
    "nights": [2],
    "maxHotels": 30,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("rowType") == "price" and not row["soldOut"]:
        print(row["checkIn"], row["hotelName"], row["minPrice"], row["currency"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('arcadium/booking-prices').call({
  hotelIds: [55103],
  checkInDates: ['+30d', '+31d', '+32d'],
  nights: [2],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.checkIn, r.minPrice, r.currency]));
```

### Pricing

You pay per row delivered, at the price of your Apify plan. One hotel for one stay (check-in date and nights) is one row, sold out or not. Error rows, repeats, unchanged rows in watch mode and the watch summary row are free.

| Apify plan | Per 1,000 rows |
| --- | --- |
| Free | $2.70 |
| Starter (Bronze) | $2.67 |
| Scale (Silver) | $2.64 |
| Business (Gold) | $2.58 |
| Platinum | $2.58 |
| Diamond | $2.58 |

Plus a one-off $0.001 per GB of memory when a run starts.

Set a maximum cost per run in the Apify run options and the actor stops before it goes over.

### Related actors

- [Google Hotels Scraper: Prices, Ratings, Booking Offers](https://apify.com/arcadium/google-hotels)
- [Booking.com Reviews Scraper: Pros, Cons, Reviewer Country](https://apify.com/arcadium/booking-reviews)
- [Hotel Reviews Scraper: Tripadvisor, Booking.com, Google](https://apify.com/arcadium/hotel-reputation)

### Use cases

- Rate shopping: compare your property with the competing set for the next 60 days, every night.
- Price alerts: schedule watch-mode runs on the hotels you track and act on `price_drop` rows.
- Destination research: how expensive is a city on a given weekend, by stars and review score.
- Travel and comparison sites: fill price calendars for many hotels, dates and stay lengths.

### Limitations

- Public prices as an anonymous visitor sees them. No login, no member or Genius prices, no mobile-only rates.
- Prices depend on the currency, the guests and the dates you ask for. Booking.com may show slightly different prices to different countries; the actor reads them from a US connection.
- Destination searches return the cheapest rate of each hotel (set `includeRoomRates` for all rates). Booking.com returns at most about 1,000 hotels per search; split a bigger market with `stars` or the price filters.
- `popularity` order changes from request to request; use `price` (default) when you need stable ranks.
- Dates up to about 16 months ahead; later dates come back sold out. A past date gives a free error row; stays above 30 nights are rejected when the input is checked.
- `taxesAndFeesExcluded` is what the site lists as taxes and fees on top of the price (for example VAT and city tax); some rates include them already.
- Names that exist in several places use the site's best match. Add the country or give the destination id.

### Privacy

Only hotel and price data is collected. No guest accounts, reviews, names or contact details.

### FAQ

**Why is a date missing for a hotel?**
Either it did not match your filters (no error row is added) or the date was rejected (past, too far ahead); rejected dates get a free error row.

**How do I find a hotel id?**
It is the number in the `hotelId` field of any row, and the actor accepts the hotel page link instead.

**What does a sold-out row mean?**
Booking.com had no rate for the dates and guests you asked for. The row is delivered (and charged) because the availability is the information; turn on `watch` to get it only when it changes.

**Something looks wrong in the output. Who do I tell?**
Open an issue on the actor page with the run link. We read them all.

# Actor input Schema

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

Booking.com hotel page links, for example https://www.booking.com/hotel/fr/de-la-paix-paris1.html. Each hotel gets one row per check-in date and nights value, with every room rate for the date. Optional when you use hotel ids or destinations. Booking.com search-result links (searchresults.html?ss=...) are read as a destination.

## `hotelIds` (type: `array`):

Numeric Booking.com hotel ids, for example \[55103]. Same output as hotel links. Use this when you already have ids from a search or an earlier run.

## `destinations` (type: `array`):

Places to search for hotels, one per line, for example "Paris", "Lisbon" or "Hotel de la Paix Paris" (a hotel name is priced as that hotel). A Booking.com destination id such as -1456928 (Paris) also works. Each destination returns up to 'Max hotels' hotels per date, with the cheapest rate of each hotel. Also accepted as `search` (voyager/booking-scraper, rl1987) or `destination` (santamaria-automations).

## `destinationType` (type: `string`):

Only used when a destination is a numeric Booking.com id: whether the id is a city, region, country, district, landmark or airport. Names are resolved automatically.

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

How many hotels to return for each destination and check-in date (1 to 1,000, the most the site returns per search; default 20 when omitted). Sold-out hotels are skipped unless 'Include sold-out hotels' is on. Example: 50. Also accepted as `maxItems` or `maxResults` (0 = 1,000).

## `checkInDates` (type: `array`):

Check-in dates as YYYY-MM-DD, or relative to today such as "+30d" (30 days from now) or "tomorrow". Example: \["2026-12-10", "+45d"]. Dates up to about 16 months ahead. If this and the range below are empty, one stay 30 days from now is used. Also accepted as `checkIn` + `checkOut` (voyager, '2 weeks' style dates work) or `checkin` + `checkout`.

## `checkInFrom` (type: `string`):

Start of a range of check-in dates (YYYY-MM-DD or +Nd). With 'to' and 'step' it adds one check-in date every N days, on top of the dates above. Example: "2026-12-01".

## `checkInTo` (type: `string`):

Last check-in date of the range (YYYY-MM-DD or +Nd). Example: "2026-12-31". Up to 400 dates in total.

## `checkInStepDays` (type: `integer`):

Days between check-in dates inside the range. 1 = every day, 7 = weekly.

## `nights` (type: `array`):

Lengths of stay in nights, for example \[1, 3, 7]. Each value gives its own row per hotel and check-in date. Up to 30 nights.

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

Adult guests (1-30).

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

Age (0-17) of each child, for example \[5, 9]. Prices depend on the number and ages of children. Leave empty for none.

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

Rooms to book (1-10). Prices are for all rooms together.

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

Three-letter currency code for all prices, for example EUR, USD or GBP. Booking.com converts the prices.

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

Language of room names and cancellation texts.

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

Only hotels with these star ratings, for example \["4", "5"] (strings in API input). Leave empty for all (the default). voyager's `starsCountFilter` ("4") is accepted too.

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

Only hotels with a guest review score of at least this value (1-10), for example 8. voyager's `minScore` ("8.4") is accepted too.

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

Only hotels with at least one free-cancellation rate. For single hotels only free-cancellation rates are kept.

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

any = no filter; breakfast = breakfast included; half_board = breakfast and dinner included.

## `minPricePerNight` (type: `number`):

Only rates at or above this price per night, in the chosen currency. Example: 80. voyager's `minMaxPrice` ("100-150" or "100+") sets both limits.

## `maxPricePerNight` (type: `number`):

Only rates at or below this price per night, in the chosen currency. Example: 250.

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

Order of hotels in destination searches. 'price' is stable between runs; 'popularity' is Booking.com's own ranking and changes from request to request. voyager's values (distance_from_search, bayesian_review_score, class_asc...) are mapped to the nearest one.

## `includeSoldOut` (type: `boolean`):

Destination searches normally skip hotels with no availability. Turn on to get a row with soldOut = true for them. Single hotels always give a row, sold out or not.

## `includeRoomRates` (type: `boolean`):

Destination searches return the cheapest rate of each hotel. Turn on to also read every room rate of each hotel (one extra request per hotel and date, same price per row).

## `maxRows` (type: `integer`):

Stop after this many rows (hotel x date x nights) in total. Leave empty for no limit. Useful as a cost cap.

## `watch` (type: `boolean`):

Compare every hotel x stay row with the last run that used the same watch key and output only new rows and rows whose availability, price, meal plan, cancellation or room rates changed, each with a change object (type, fields old -> new, priceChange). Unchanged rows are not output and not charged; one free watch-summary row counts unchanged, changed, new and gone. The first run is a normal run, charged normally.

## `watchKey` (type: `string`):

Name of the saved snapshot for watch mode (letters, digits, - and \_, up to 60). Use one key per monitored hotel and date list, for example "weekly-check". A new key starts a new baseline. The snapshot is kept in a key-value store in your account.

## `digest` (type: `boolean`):

Watch mode only. Adds one free watch-digest row per run that sums up the changes of the last digest days for this watch key: counts by change type, price drops and rises, availability changes, the biggest price moves, and a one-line plain-text summary you can paste into an email or Slack. No extra charge.

## `digestDays` (type: `integer`):

How many days the digest row covers (rolling window, 1-90). Runs older than this drop out of the digest.

## `includeErrorRows` (type: `boolean`):

Adds a free row for every hotel, destination or date that could not be read (unknown hotel, date in the past, destination not found), so a failure is never silent.

## `maxRetries` (type: `integer`):

How often a request is retried after a temporary error.

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

Optional override. By default the actor picks a suitable proxy automatically.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.booking.com/hotel/fr/de-la-paix-paris1.html"
    }
  ],
  "destinationType": "CITY",
  "maxHotels": 20,
  "checkInDates": [
    "+30d"
  ],
  "checkInStepDays": 1,
  "nights": [
    1
  ],
  "adults": 2,
  "childrenAges": [],
  "rooms": 1,
  "currency": "EUR",
  "language": "en-gb",
  "freeCancellation": false,
  "mealPlan": "any",
  "sortBy": "price",
  "includeSoldOut": false,
  "includeRoomRates": false,
  "maxRows": 50,
  "watch": false,
  "watchKey": "default",
  "digest": false,
  "digestDays": 7,
  "includeErrorRows": true,
  "maxRetries": 3
}
```

# Actor output Schema

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

All rows of this run in the default dataset.

## `view_overview` (type: `string`):

No description

## `view_changes` (type: `string`):

No description

## `view_rates` (type: `string`):

No description

## `view_errors` (type: `string`):

No description

## `record_stats` (type: `string`):

Requests, data volume, retries, coverage and cost per result for this run.

# 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/hotel/fr/de-la-paix-paris1.html"
        }
    ],
    "destinationType": "CITY",
    "maxHotels": 20,
    "checkInDates": [
        "+30d"
    ],
    "nights": [
        1
    ],
    "childrenAges": [],
    "currency": "EUR",
    "includeRoomRates": false,
    "maxRows": 50,
    "watch": false,
    "watchKey": "default",
    "digest": false,
    "digestDays": 7
};

// Run the Actor and wait for it to finish
const run = await client.actor("arcadium/booking-prices").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/hotel/fr/de-la-paix-paris1.html" }],
    "destinationType": "CITY",
    "maxHotels": 20,
    "checkInDates": ["+30d"],
    "nights": [1],
    "childrenAges": [],
    "currency": "EUR",
    "includeRoomRates": False,
    "maxRows": 50,
    "watch": False,
    "watchKey": "default",
    "digest": False,
    "digestDays": 7,
}

# Run the Actor and wait for it to finish
run = client.actor("arcadium/booking-prices").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/hotel/fr/de-la-paix-paris1.html"
    }
  ],
  "destinationType": "CITY",
  "maxHotels": 20,
  "checkInDates": [
    "+30d"
  ],
  "nights": [
    1
  ],
  "childrenAges": [],
  "currency": "EUR",
  "includeRoomRates": false,
  "maxRows": 50,
  "watch": false,
  "watchKey": "default",
  "digest": false,
  "digestDays": 7
}' |
apify call arcadium/booking-prices --silent --output-dataset

```

## MCP server setup

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

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/vwFNBJ6wZR0PfFvuQ/builds/NyuMTSD2Ni432vHPn/openapi.json
