# Booking Cruises Scraper (`vulnv/booking-cruises-scraper`) Actor

Efficiently extract cruise deals, prices, itineraries, and availability from Booking.com. Stay updated with the latest cruise offerings, streamline your data collection process, and enhance travel planning with accurate and up-to-date information.

- **URL**: https://apify.com/vulnv/booking-cruises-scraper.md
- **Developed by:** [VulnV](https://apify.com/vulnv) (community)
- **Categories:** Travel, Integrations
- **Stats:** 74 total users, 6 monthly users, 78.4% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.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/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

## Booking.com Cruises Scraper

This Apify actor scrapes cruise details from the [Booking.com Cruises](https://booking.com/cruises) platform based on user-defined parameters, including date range, cruise length, cruise line, departure port, destination, and more. It collects comprehensive cruise information, such as prices, itineraries, cruise line details, and onboard amenities, and outputs the data in a structured format.

### Input Parameters

The actor accepts the following input parameters as a JSON object:

| Parameter                       | Type      | Default    | Description                                                                                             |
|---------------------------------|-----------|------------|---------------------------------------------------------------------------------------------------------|
| `start_date`                    | String    | `""`       | The start date for the cruise search (format: YYYY-MM-DD). (Optional)                                   |
| `end_date`                      | String    | `""`       | The end date for the cruise search (format: YYYY-MM-DD). (Optional)                                     |
| `cruise_length`                 | String    | `"ALL"`    | Filter by cruise length. Options: `Any`, `1-2 days`, `3-5 days`, `6-10 days`, `9-11 days`, `12+ days`.  |
| `cruise_line`                   | String    | `"ALL"`    | Filter by cruise line. Options include major cruise lines like Carnival, Royal Caribbean, and MSC.     |
| `departure_port`                | String    | `"ALL"`    | Filter by departure port. Options include major ports worldwide.                                        |
| `destination`                   | String    | `"ALL"`    | Filter by destination. Options include Alaska, Caribbean, Europe, South Pacific, and more.             |
| `max_number_of_pages`           | Integer   | `-1`       | Maximum number of pages to scrape. Use `-1` to scrape all available pages.                              |
| `max_number_of_parallel_requests` | Integer | `1`        | Maximum number of parallel requests to make.                                                           |

#### Example Input

```json
{
    "start_date": "2024-01-01",
    "end_date": "2024-12-31",
    "cruise_length": "6-10 days",
    "cruise_line": "MSC Cruises",
    "departure_port": "FL - Miami",
    "destination": "Caribbean - Eastern",
    "max_number_of_pages": 5,
    "max_number_of_parallel_requests": 2
}
```

### Output

The actor outputs the scraped cruise data in a structured JSON format. Each entry includes:

| Field                | Description                                          |
|----------------------|------------------------------------------------------|
| `cruiseline_name`    | Name of the cruise line.                             |
| `brochureName`       | Name of the cruise itinerary.                        |
| `itinerary`          | Day-by-day itinerary, including port calls and times.|
| `fromPrice`          | Starting price of the cruise.                        |
| `vessel`             | Name of the ship and additional details.             |
| `customerReviewSummary` | Average customer rating and number of reviews.    |
| `sailings`           | Sailing dates and price breakdowns by cabin type.    |
| `url`                | Direct link to the cruise details on Booking.com.    |

#### Example Output

![Example output](https://i.ibb.co/0pNNKG0/output.png)

### Use Cases

The **Booking.com Cruises Scraper** can be used in various scenarios, including:

- **Travel Agencies**: Aggregate cruise options to offer clients the best deals and itineraries.
- **Market Analysis**: Monitor cruise trends, pricing, and consumer reviews.
- **Competitive Research**: Study competitors' offerings, including pricing and destinations.
- **Personalized Planning**: Create custom cruise itineraries based on user preferences.
- **Content Generation**: Generate cruise-related content for blogs and travel platforms.

### Related Actors

- **[Cruisemapper Cruises Scraper](https://apify.com/vulnv/cruisemapper-cruises-scraper)**
- **[Cruisemapper Ships Scraper](https://apify.com/vulnv/cruisemapper-ships-scraper)**
- **[MyShipTracking Vessel Scraper](https://apify.com/vulnv/myshiptracking-vessel-scraper)**

### Explore More Actors

✨ **Looking for something else?** Check out more actors on Apify that can help with your web automation and data extraction needs. Discover a wide range of tools tailored for different scenarios at 🌐 [Explore Vulnv's Actors on Apify](https://apify.com/vulnv).

📧 For inquiries or support, feel free to reach out to us at apify@vulnv.com.

# Actor input Schema

## `start_date` (type: `string`):

The start date for the cruise search (format: YYYY-MM-DD).

## `end_date` (type: `string`):

The end date for the cruise search (format: YYYY-MM-DD).

## `cruise_length` (type: `string`):

Filter by cruise length.

## `cruise_line` (type: `string`):

Filter by cruise line.

## `departure_port` (type: `string`):

Filter by departure port.

## `destination` (type: `string`):

Filter by destination.

## `max_number_of_pages` (type: `integer`):

Maximum number of pages to scrape. Use -1 to scrape all available pages.

## `max_number_of_parallel_requests` (type: `integer`):

Maximum number of parallel requests to make.

## Actor input object example

```json
{
  "start_date": "",
  "end_date": "",
  "cruise_length": "ALL",
  "cruise_line": "ALL",
  "departure_port": "ALL",
  "destination": "ALL",
  "max_number_of_pages": 1,
  "max_number_of_parallel_requests": 1
}
```

# 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 = {
    "max_number_of_pages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("vulnv/booking-cruises-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 = { "max_number_of_pages": 1 }

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

```

## MCP server setup

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