# 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:** 62 total users, 3 monthly users, 100.0% 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 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 '{
  "max_number_of_pages": 1
}' |
apify call vulnv/booking-cruises-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Booking Cruises Scraper",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "kT2LM0HIZoH84aeCm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vulnv~booking-cruises-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vulnv-booking-cruises-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/vulnv~booking-cruises-scraper/runs": {
            "post": {
                "operationId": "runs-sync-vulnv-booking-cruises-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/vulnv~booking-cruises-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-vulnv-booking-cruises-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "start_date",
                    "end_date"
                ],
                "properties": {
                    "start_date": {
                        "title": "Start Date",
                        "type": "string",
                        "description": "The start date for the cruise search (format: YYYY-MM-DD).",
                        "default": ""
                    },
                    "end_date": {
                        "title": "End Date",
                        "type": "string",
                        "description": "The end date for the cruise search (format: YYYY-MM-DD).",
                        "default": ""
                    },
                    "cruise_length": {
                        "title": "Cruise Length",
                        "enum": [
                            "ALL",
                            "1",
                            "2",
                            "3",
                            "4",
                            "5"
                        ],
                        "type": "string",
                        "description": "Filter by cruise length.",
                        "default": "ALL"
                    },
                    "cruise_line": {
                        "title": "Cruise Line",
                        "enum": [
                            "ALL",
                            "92",
                            "323",
                            "329",
                            "325",
                            "1",
                            "11",
                            "14",
                            "369",
                            "18",
                            "20",
                            "368",
                            "24",
                            "377",
                            "71",
                            "34",
                            "67",
                            "333",
                            "344",
                            "40",
                            "41",
                            "363",
                            "44",
                            "48",
                            "324",
                            "50",
                            "66",
                            "354",
                            "78",
                            "364",
                            "64"
                        ],
                        "type": "string",
                        "description": "Filter by cruise line.",
                        "default": "ALL"
                    },
                    "departure_port": {
                        "title": "Departure Port",
                        "enum": [
                            "ALL",
                            "SWD",
                            "WHIAK",
                            "MOB",
                            "LNBUS",
                            "SPDUS",
                            "SAN",
                            "SFO",
                            "FLL",
                            "JAX",
                            "MIA",
                            "PCV",
                            "TPA",
                            "HNL",
                            "MSY",
                            "BOS",
                            "BWI",
                            "BNJUS",
                            "BLNUS",
                            "NYC",
                            "PHL",
                            "CHS",
                            "GAL",
                            "ORF",
                            "SEA",
                            "BUE",
                            "BGI",
                            "YUL",
                            "YQB",
                            "YVR",
                            "VAP",
                            "LARDO",
                            "CPH",
                            "QQD",
                            "LHR",
                            "STN",
                            "PARFR",
                            "ZWD",
                            "MCHDE",
                            "NURDE",
                            "PIR",
                            "HKG",
                            "BUDHU",
                            "KEF",
                            "CIVIT",
                            "VCE",
                            "VLT",
                            "MCM",
                            "AMS",
                            "BGO",
                            "LIS",
                            "SJU",
                            "BCN",
                            "SXM",
                            "SKM",
                            "BASCH",
                            "PPT",
                            "IST",
                            "DXB"
                        ],
                        "type": "string",
                        "description": "Filter by departure port.",
                        "default": "ALL"
                    },
                    "destination": {
                        "title": "Destination",
                        "enum": [
                            "ALL",
                            "A",
                            "AG",
                            "AR",
                            "AB",
                            "UN",
                            "BH",
                            "BM",
                            "NN",
                            "C",
                            "CE",
                            "CS",
                            "CW",
                            "E",
                            "EE",
                            "R",
                            "N",
                            "EW",
                            "W",
                            "O",
                            "GPS",
                            "H",
                            "M",
                            "L",
                            "T",
                            "RA",
                            "RC",
                            "RO",
                            "RE",
                            "RS",
                            "RU",
                            "S",
                            "I",
                            "TH",
                            "ET",
                            "TP",
                            "NA",
                            "WW"
                        ],
                        "type": "string",
                        "description": "Filter by destination.",
                        "default": "ALL"
                    },
                    "max_number_of_pages": {
                        "title": "Maximum Number of Pages",
                        "type": "integer",
                        "description": "Maximum number of pages to scrape. Use -1 to scrape all available pages.",
                        "default": -1
                    },
                    "max_number_of_parallel_requests": {
                        "title": "Maximum Number of Parallel Requests",
                        "type": "integer",
                        "description": "Maximum number of parallel requests to make.",
                        "default": 1
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
