# Cruisemapper Cruise Scraper (`codingfrontend/cruisemapper-cruise-scraper`) Actor

Unlock the world of cruise data with our CruiseMapper Scraper! Perfect for travel agencies, researchers, and cruise enthusiasts, it gathers detailed itineraries, ship specifications, and public pricing.

- **URL**: https://apify.com/codingfrontend/cruisemapper-cruise-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What this Actor does

This Actor reads public ship detail and listing pages on [CruiseMapper](https://www.cruisemapper.com/) and saves the ship information those pages publish. It collects ship specifications, maritime identifiers, homeports, ratings, current-position reports, detailed sailing stops, full review and wiki sections, photos, cabin categories, deck layouts, incident history, complete associated news articles, and cruise-line details when the site publishes them.

Use the results to compare ships, review published sailing details, or build a research dataset for cruise planning. The examples below are illustrative; they are not verified live results. This Actor only reads public CruiseMapper pages and does not make bookings.

You can start runs in the Console, schedule them on Apify, or use the Actor API to connect the results to your workflow.

### How to start a run

1. Open the Actor's **Input** tab.
2. Enter one or more public CruiseMapper ship or listing URLs, or keep the prefilled MSC Opera page. Choose the ship and itinerary limits that fit your task.
3. Click **Start**.
4. When the run finishes, open **Results** to view the dataset. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.
5. Open **Output summary** to see the run status, saved-record count, and whether the run returned limited results.

No input field is required. If every URL field is empty or omitted, the Actor uses the CruiseMapper MSC Opera page shown in the examples.

### Input

Enter URLs as HTTPS links on `cruisemapper.com` or one of its subdomains. URL arrays use objects with a `url` property, as in the examples. Each URL can be up to 1,000 characters. The Actor accepts at most 100 URL entries across all URL fields and removes duplicate URLs before collecting records.

#### Main URL fields

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `startUrls` | Array of `{ "url": "..." }` objects | Optional | Prefilled in the Input form with the MSC Opera page; if no URL is supplied, the runtime uses that page | Main list of ship detail pages or public listing pages. Maximum 100 entries in this field. |
| `urls` | Array of `{ "url": "..." }` objects | Optional | `[]` | Adds URLs to `startUrls`. Maximum 100 entries in this field. |
| `url` | Text | Optional | None | Single-URL alias for a ship or listing page. Maximum 1,000 characters. |

#### Result limits and included information

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `maxShips` | Integer | Optional | `20` | Maximum distinct ship records saved across all supplied pages. Range: 1–100. Reaching this limit is normal completion. |
| `maxItineraries` | Integer | Optional | `100` | Maximum upcoming itinerary rows kept for each ship. Range: 1–500. |
| `includeItineraries` | Boolean | Optional | `true` | Includes sailing rows and their detailed port stops. Set to `false` to omit both rows and sailing-detail requests. |

#### Advanced settings (Developer Options)

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `timeoutMs` | Integer | Optional | `30000` | Maximum wait for each robots.txt or page request, in milliseconds. Range: 5,000–120,000. |
| `userAgent` | Text | Optional | `Mozilla/5.0 (compatible; CruiseMapperPublicActor/1.0; +https://apify.com/)` | Optional transparent HTTP user-agent string, up to 300 characters. A blank value uses the default. |

#### Compatibility aliases

New inputs should use `startUrls`. The Actor also accepts `start_urls` and `shipUrls` as aliases for that field. `urls` and `url` are also combined with the main URL list. These fields have no precedence over one another: the Actor reads all supplied URLs in order, removes duplicates, and uses the MSC Opera default only when no URL is supplied. A listing page can lead to additional ship pages; `maxShips` is one limit shared by all supplied pages.

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `start_urls` | Array of `{ "url": "..." }` objects | Optional | `[]` | Compatibility alias for `startUrls`; maximum 100 entries in this field. |
| `shipUrls` | Array of `{ "url": "..." }` objects | Optional | `[]` | Compatibility alias for `startUrls`; maximum 100 entries in this field. |

#### Example: one ship with a small result limit

```json
{
  "startUrls": [
    { "url": "https://www.cruisemapper.com/ships/MSC-Opera-627" }
  ],
  "maxShips": 1,
  "maxItineraries": 5
}
```

#### Example: combine pages, deduplicate, and omit upcoming itineraries

```json
{
  "startUrls": [
    { "url": "https://www.cruisemapper.com/ships/MSC-Opera-627" },
    { "url": "https://www.cruisemapper.com/cruise-lines/MSC-Cruises-13" }
  ],
  "urls": [
    { "url": "https://www.cruisemapper.com/ships/MSC-Opera-627" }
  ],
  "maxShips": 5,
  "includeItineraries": false
}
```

#### Example: use a single URL and adjust the request timeout

```json
{
  "url": "https://www.cruisemapper.com/ships/MSC-Opera-627",
  "timeoutMs": 60000,
  "userAgent": "CruiseMapper research tool/1.0"
}
```

### Output

The dataset contains one record for each distinct ship page that produced a valid ship name and CruiseMapper ship URL. Optional fields appear only when the page exposes supported information. Nested objects contain public cruise and ship details from that page.

**The following full example is illustrative and is not a verified live result.** It shows all supported top-level fields and the nested structures the Actor can return.

```json
{
  "shipName": "Example Explorer",
  "shipUrl": "https://www.cruisemapper.com/ships/Example-Explorer-99999",
  "cruiseLine": "Example Cruise Line",
  "rating": 4.2,
  "ratingCount": 120,
  "homeports": [
    {
      "name": "Genoa",
      "url": "https://www.cruisemapper.com/ports/genoa-port-61"
    }
  ],
  "specifications": {
    "yearBuilt": 2004,
    "speedKnots": 22,
    "lengthMeters": 274.9,
    "beamMeters": 32,
    "grossTonnage": 65591,
    "crew": 742,
    "decks": 13,
    "cabins": 1075,
    "lastRefurbishment": 2015,
    "owner": "Example Cruise Line",
    "operator": "Example Cruise Line",
    "passengerCapacityMin": 1984,
    "passengerCapacityMax": 2055,
    "sisterShips": [
      "Example Explorer II",
      "Example Explorer III"
    ],
    "sourceValues": {
      "Year built": "2004",
      "Speed": "22 kn",
      "Length (LOA)": "274.9 meters",
      "Beam (width)": "32 meters",
      "Gross tonnage": "65,591 GT",
      "Crew": "742",
      "Decks": "13",
      "Cabins": "1,075",
      "Last refurbishment": "2015",
      "Owner": "Example Cruise Line",
      "Operator": "Example Cruise Line",
      "Passengers": "1,984 to 2,055",
      "Sister-ships": "Example Explorer II, Example Explorer III"
    },
    "other": {
      "Flag": "Panama"
    }
  },
  "currentCruise": {
    "summary": "The itinerary begins on August 31, 2026 and ends on September 10, 2026. Prices start from USD $1,653.",
    "startDate": "2026-08-31",
    "endDate": "2026-09-10",
    "startingPrice": 1653,
    "startingPriceCurrency": "USD",
    "startingPriceCurrencySymbol": "$",
    "stops": [
      {
        "date": "2026-09-01",
        "dateText": "Sep 1, 2026",
        "port": "Naples",
        "portUrl": "https://www.cruisemapper.com/ports/naples-123",
        "country": "Italy",
        "event": "Arriving"
      }
    ]
  },
  "itineraries": [
    {
      "date": "2026-10-15",
      "dateText": "2026 Oct 15",
      "title": "Genoa Round Trip",
      "departurePort": "Genoa",
      "price": 1299,
      "priceText": "$1,299 USD",
      "priceCurrency": "USD",
      "priceCurrencySymbol": "$",
      "bookingUrl": "https://www.cruisemapper.com/cruise/Example-Trip-99999",
      "id": "9999999",
      "stops": [
        {
          "date": "2026-10-15",
          "dateText": "2026 Oct 15 18:00",
          "port": "Genoa",
          "portUrl": "https://www.cruisemapper.com/ports/genoa-port-61",
          "country": "Italy",
          "event": "Departing"
        }
      ]
    }
  ],
  "pageTitle": "Example Explorer Itineraries and Review",
  "cruiseLineUrl": "https://www.cruisemapper.com/cruise-lines/Example-Line-99999",
  "description": "Example Explorer is a cruise ship operated by Example Cruise Line. This complete introductory text describes its construction and registration.",
  "imageUrls": [
    "https://www.cruisemapper.com/images/ships/example.jpg"
  ],
  "shipId": "99999",
  "identifiers": {
    "imo": "1234567",
    "mmsi": "123456789",
    "hullNumber": "L32",
    "registrationPort": {
      "name": "Example port",
      "url": "https://www.cruisemapper.com/ports/example-port-99999"
    }
  },
  "formerNames": [
    "Example Voyager"
  ],
  "currentPosition": {
    "summary": "The current location of Example Explorer is in Mediterranean cruising at speed of 13 kn en route to Example port. The AIS position was last reported 3 minutes ago.",
    "area": "Mediterranean",
    "destination": "Example port",
    "reportedAtText": "3 minutes ago",
    "speedKnots": 13,
    "latitude": 40.4,
    "longitude": 3.6
  },
  "reviewSections": [
    {
      "title": "Review of Example Explorer",
      "text": "Example Explorer is a cruise ship operated by Example Cruise Line. This complete introductory text describes its construction and registration.",
      "links": [
        {
          "text": "Example port",
          "url": "https://www.cruisemapper.com/ports/example-port-99999"
        }
      ],
      "tables": [
        {
          "headers": [
            "Year",
            "Event"
          ],
          "rows": [
            [
              "2020",
              "Example event"
            ]
          ]
        }
      ],
      "images": [
        {
          "url": "https://www.cruisemapper.com/images/ships/example.jpg",
          "caption": "Example ship",
          "width": 800,
          "height": 600
        }
      ]
    }
  ],
  "wikiSections": [
    {
      "title": "Example Explorer Wiki",
      "text": "Complete published section text.",
      "links": [
        {
          "text": "Example port",
          "url": "https://www.cruisemapper.com/ports/example-port-99999"
        }
      ],
      "tables": [
        {
          "headers": [
            "Year",
            "Event"
          ],
          "rows": [
            [
              "2020",
              "Example event"
            ]
          ]
        }
      ],
      "images": [
        {
          "url": "https://www.cruisemapper.com/images/ships/example.jpg",
          "caption": "Example ship",
          "width": 800,
          "height": 600
        }
      ]
    }
  ],
  "photos": [
    {
      "url": "https://www.cruisemapper.com/images/ships/example.jpg",
      "caption": "Example ship",
      "width": 800,
      "height": 600
    }
  ],
  "relatedNews": [
    {
      "id": "99999",
      "title": "Example ship news",
      "url": "https://www.cruisemapper.com/news/99999-example-news",
      "summary": "Published news teaser.",
      "dateText": "October 9, 2026",
      "date": "2026-10-09",
      "category": "Cruise Industry",
      "imageUrl": "https://www.cruisemapper.com/images/ships/thumb/example.jpg",
      "sections": [
        {
          "title": "Example section",
          "text": "Complete published section text.",
          "links": [
            {
              "text": "Example port",
              "url": "https://www.cruisemapper.com/ports/example-port-99999"
            }
          ],
          "tables": [
            {
              "headers": [
                "Year",
                "Event"
              ],
              "rows": [
                [
                  "2020",
                  "Example event"
                ]
              ]
            }
          ],
          "images": [
            {
              "url": "https://www.cruisemapper.com/images/ships/example.jpg",
              "caption": "Example ship",
              "width": 800,
              "height": 600
            }
          ]
        }
      ],
      "publishedAt": "2026-10-09T07:42:00+0300",
      "modifiedAt": "2026-10-09T18:32:43+0300",
      "author": "Example author",
      "tags": [
        {
          "text": "Example port",
          "url": "https://www.cruisemapper.com/ports/example-port-99999"
        }
      ],
      "images": [
        {
          "url": "https://www.cruisemapper.com/images/ships/example.jpg",
          "caption": "Example ship",
          "width": 800,
          "height": 600
        }
      ]
    }
  ],
  "deckPlans": {
    "url": "https://www.cruisemapper.com/deckplans/Example-Explorer-99999",
    "sections": [
      {
        "title": "Example section",
        "text": "Complete published section text.",
        "links": [
          {
            "text": "Example port",
            "url": "https://www.cruisemapper.com/ports/example-port-99999"
          }
        ],
        "tables": [
          {
            "headers": [
              "Year",
              "Event"
            ],
            "rows": [
              [
                "2020",
                "Example event"
              ]
            ]
          }
        ],
        "images": [
          {
            "url": "https://www.cruisemapper.com/images/ships/example.jpg",
            "caption": "Example ship",
            "width": 800,
            "height": 600
          }
        ]
      }
    ],
    "decks": [
      {
        "id": "99999",
        "title": "Deck 05 - Lobby",
        "deckNumber": 5,
        "url": "https://www.cruisemapper.com/deckplans/Example-Explorer-99999/deck05-99999",
        "imageUrl": "https://www.cruisemapper.com/images/deckplans/thumbs/example.gif",
        "reviewSections": [
          {
            "title": "Review of Example Explorer deck 5 (Lobby)",
            "text": "Complete published section text.",
            "links": [
              {
                "text": "Example port",
                "url": "https://www.cruisemapper.com/ports/example-port-99999"
              }
            ],
            "tables": [
              {
                "headers": [
                  "Year",
                  "Event"
                ],
                "rows": [
                  [
                    "2020",
                    "Example event"
                  ]
                ]
              }
            ],
            "images": [
              {
                "url": "https://www.cruisemapper.com/images/ships/example.jpg",
                "caption": "Example ship",
                "width": 800,
                "height": 600
              }
            ]
          }
        ],
        "images": [
          {
            "url": "https://www.cruisemapper.com/images/deckplans/example.gif",
            "caption": "Example Explorer Deck 05 - Lobby",
            "width": 800,
            "height": 600
          }
        ]
      }
    ]
  },
  "cabinDetails": {
    "url": "https://www.cruisemapper.com/cabins/Example-Explorer-99999",
    "categories": [
      {
        "name": "Example Suite",
        "attributes": {
          "Max passengers": "4",
          "Cabin size": "260 ft2 / 24 m2",
          "Balcony size": "none"
        },
        "description": "Complete source category description.",
        "images": [
          {
            "url": "https://www.cruisemapper.com/images/cabins/example.gif",
            "caption": "Example Suite floor plan",
            "width": 800,
            "height": 600
          }
        ]
      }
    ],
    "reviewSections": [
      {
        "title": "Example section",
        "text": "Complete published section text.",
        "links": [
          {
            "text": "Example port",
            "url": "https://www.cruisemapper.com/ports/example-port-99999"
          }
        ],
        "tables": [
          {
            "headers": [
              "Year",
              "Event"
            ],
            "rows": [
              [
                "2020",
                "Example event"
              ]
            ]
          }
        ],
        "images": [
          {
            "url": "https://www.cruisemapper.com/images/ships/example.jpg",
            "caption": "Example ship",
            "width": 800,
            "height": 600
          }
        ]
      }
    ]
  },
  "incidentHistory": {
    "url": "https://www.cruisemapper.com/accidents/Example-Explorer-99999",
    "summary": "Published ship incident overview.",
    "events": [
      {
        "id": "99999",
        "dateText": "10 October 2022",
        "date": "2022-10-10",
        "type": "Other Incidents",
        "description": "Complete published ship incident report.",
        "links": [
          {
            "text": "Example port",
            "url": "https://www.cruisemapper.com/ports/example-port-99999"
          }
        ]
      }
    ]
  },
  "cruiseLineDetails": {
    "id": "99999",
    "name": "Example Cruise Line",
    "url": "https://www.cruisemapper.com/cruise-lines/Example-Line-99999",
    "rating": 4,
    "ratingCount": 120,
    "reviewSections": [
      {
        "title": "Example section",
        "text": "Complete published section text.",
        "links": [
          {
            "text": "Example port",
            "url": "https://www.cruisemapper.com/ports/example-port-99999"
          }
        ],
        "tables": [
          {
            "headers": [
              "Year",
              "Event"
            ],
            "rows": [
              [
                "2020",
                "Example event"
              ]
            ]
          }
        ],
        "images": [
          {
            "url": "https://www.cruisemapper.com/images/ships/example.jpg",
            "caption": "Example ship",
            "width": 800,
            "height": 600
          }
        ]
      }
    ],
    "itinerarySections": [
      {
        "title": "Example section",
        "text": "Complete published section text.",
        "links": [
          {
            "text": "Example port",
            "url": "https://www.cruisemapper.com/ports/example-port-99999"
          }
        ],
        "tables": [
          {
            "headers": [
              "Year",
              "Event"
            ],
            "rows": [
              [
                "2020",
                "Example event"
              ]
            ]
          }
        ],
        "images": [
          {
            "url": "https://www.cruisemapper.com/images/ships/example.jpg",
            "caption": "Example ship",
            "width": 800,
            "height": 600
          }
        ]
      }
    ]
  }
}
```

````

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `shipName` | String | Required | Published ship name. |
| `shipUrl` | URL string | Required | CruiseMapper ship page used as the record identity. |
| `cruiseLine` | String | Optional | Cruise line named on the ship page. |
| `rating` | Number | Optional | Published ship rating. |
| `ratingCount` | Integer | Optional | Number of published ratings. |
| `homeports` | Array of objects | Optional | Each object has `name` and `url` for a published homeport. |
| `specifications` | Object | Optional | Named numeric fields include `yearBuilt`, `speedKnots`, `lengthMeters`, `beamMeters`, `grossTonnage`, `crew`, `decks`, `cabins`, `lastRefurbishment`, and passenger-capacity bounds. It may also contain `owner`, `operator`, `sisterShips`, original label/value pairs in `sourceValues`, and unnormalized source labels in `other`. |
| `currentCruise` | Object | Optional | May contain `summary`, `startDate`, `endDate`, `startingPrice`, `startingPriceCurrency`, `startingPriceCurrencySymbol`, and `stops`. Each stop may contain `date`, `dateText`, `port`, `portUrl`, `country`, and `event` (such as Departing or Arriving). Countries come from published flag tooltips. |
| `itineraries` | Array of objects | Optional | Each sailing may contain `id`, `date`, `dateText`, `title`, `departurePort`, `price`, `priceText`, `priceCurrency`, `priceCurrencySymbol`, `bookingUrl`, and `stops`. Port stops use the same structure as `currentCruise.stops` and come from the public sailing-detail response for that exact sailing ID. |
| `pageTitle` | String | Optional | Published HTML page title. |
| `cruiseLineUrl` | URL string | Optional | Cruise-line page URL when linked from the ship page. |
| `description` | String | Optional | Complete introductory ship review text when available; otherwise matching structured-data text. Further history and facilities text is preserved in `reviewSections` and `wikiSections`. |
| `imageUrls` | Array of URL strings | Optional | Distinct ship cover and gallery image URLs. Relative image links are resolved against the ship page. News thumbnails stay with their news items. |
| `shipId` | String | Optional | Native CruiseMapper ship ID. |
| `identifiers` | Object | Optional | Published `imo` (seven digits), `mmsi` (nine digits), `hullNumber`, and `registrationPort` with `name` and `url`. Unannounced identifiers are omitted. |
| `formerNames` | Array of strings | Optional | Former names or construction designations published for this ship. |
| `currentPosition` | Object | Optional | Published AIS `summary`, `area`, `destination`, `reportedAtText`, `speedKnots`, `latitude`, and `longitude`. The observation age is kept as source text; it is not a scrape timestamp. A source map placeholder at (0, 0) is omitted. |
| `reviewSections` | Array of objects | Optional | Complete ship review sections, including history, cabins, dining, entertainment and deployment information. |
| `wikiSections` | Array of objects | Optional | Complete ship wiki sections, including construction, refurbishments and deployment history. |
| `photos` | Array of objects | Optional | Ship cover and gallery photos with `url`, and available `caption`, `width`, and `height`. Thumbnail dimensions are not assigned to a full-resolution image. |
| `relatedNews` | Array of objects | Optional | All associated news items on the ship page: `id`, `title`, `url`, `summary`, `dateText`, valid `date`, `category`, and `imageUrl`. Teasers may be shortened by the source. Matching article pages add complete `sections`, original `publishedAt` and `modifiedAt` text, published `author`, `tags`, and lead `images` when available. |
| `deckPlans` | Object | Optional | Ship-specific `url`, full overview `sections`, and all `decks` with native `id`, `title`, explicit `deckNumber`, layout `url`, and published thumbnail `imageUrl`. Each layout is enriched with complete `reviewSections` and full plan/legend `images`. Sister-ship layouts are excluded. |
| `cabinDetails` | Object | Optional | Ship-specific `url`, all cabin `categories`, and complete general `reviewSections`. Categories contain `name`, original label/value `attributes`, complete category-specific `description`, and floor-plan/photo `images`. |
| `incidentHistory` | Object | Optional | Ship-specific `url`, complete overview `summary`, and all published `events` on that page. Each event has its native `id`, `dateText`, valid full `date` when available, business incident `type`, complete `description`, and associated `links`. |
| `cruiseLineDetails` | Object | Optional | Ship-associated cruise-line `id`, `name`, `url`, published `rating` and `ratingCount`, complete company `reviewSections`, and deployment `itinerarySections`. Shared cruise-line requests are reused within the run. |

#### Nested content sections

Ship reviews, wiki content, deck-plan overviews, individual deck reviews, cabin reviews, news articles, and cruise-line details use the same section structure: `title`, complete `text`, and available `links`, `tables`, and `images`. A link contains `text` and `url`; business section anchors are retained. A table contains its published `headers` (when present) and all `rows`, with each row an array of cells in source order. Images contain `url` and available `caption`, `width`, and `height`. Paragraph and list breaks are preserved in section text. There is no description or history length cap.

Amounts and currencies follow the page text. A currency code is included only when the source states one; a dollar sign by itself does not establish USD. Dates are normalized only when the page provides a valid calendar date with a year. Optional values may be absent from a real record.

Sailing rows retain the source table's order, up to `maxItineraries` per ship. The table may include past or current sailings; the Actor does not filter by today's date. Booking links are omitted when the source row has no link. Ship descriptions, wiki content, photos, and associated news come from the ship page. The Actor follows ship-associated deck-plan, cabin and incident overview links, individual layouts listed on that ship’s overview, associated news articles, and the named cruise-line page. Each linked page is checked against its requested entity before its content is attached. It requests detailed stops for each retained sailing ID when `includeItineraries` is `true`; switching this option off omits both sailing rows and their detail requests. The existing `maxItineraries` limit bounds these requests per ship. All entries and sections on the fetched overview pages are retained. Each listed deck and news item receives one additional detail request; news and deck counts depend on the source overview rather than a separate input limit. Requests run sequentially, with a short delay between additional detail requests, and shared pages are reused.

Missing optional information does not discard a valid ship record. A failed detail request or mismatched detail identity preserves the base record and reports a partial run. No access challenge is bypassed. Source text such as a cabin balcony value of `none` is preserved as an actual published value; missing values are omitted. Port dates without a year remain `dateText`, and names are not used to guess countries or geographic subdivisions.

### Run status

- **SUCCEEDED** means at least one valid ship record was saved and collection completed normally.
- **SUCCEEDED with limited results** means at least one valid record was saved before a later page, source, or storage failure stopped some work. The summary reports `isPartial: true`.
- **FAILED** means no real ship records were saved. Empty pages, blocked access, invalid inputs, and diagnostic-only results do not create dataset rows.

Reaching the requested `maxShips` limit is normal completion. The run status counts only valid business records whose dataset writes completed; a claimed count from collection code does not override the saved count.

### Output summary

The **Output summary** link opens the `OUTPUT_SUMMARY` record in the run's default **Key-value store**. This record is separate from the ship dataset and contains exactly three fields:

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `status` | String | Required | `SUCCEEDED` when at least one real record was saved; otherwise `FAILED`. |
| `itemsStored` | Nonnegative integer | Required | Number of validated ship records whose dataset writes completed during this run. |
| `isPartial` | Boolean | Required | Whether a failure stopped part of the run after real records had been saved. |

Illustrative completed-run summary:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 2,
  "isPartial": false
}
````

### Tips, access, and cost

- Start with one ship page and a small `maxShips` value. Add listing pages or more ship URLs after you confirm the input shape.
- Listing pages can lead to discovered ship links and the next visible page on the same listing path. `maxShips` remains the shared result limit. This is bounded listing discovery, not exhaustive site-wide coverage.
- The Actor checks CruiseMapper's robots policy and stops when the policy cannot be verified, disallows a page, or the site denies access or presents a challenge. Access restrictions can result in a failed or partial run.
- If a run returns limited results or fails, check its log for the source or storage failure details.
- Port/hotel pages, historical news pagination, and a cruise line’s individual fleet ships are not followed as enrichment links. Ship-associated decks and news articles are followed; availability varies by ship. Published news dates are business dates and remain in their original source representation, including the stated UTC offset.
- Rich records can include lengthy histories and many media or table entries. Detail requests and larger records may increase runtime and storage use.
- The Actor uses Apify compute and storage under your account. Cost depends on your plan and how long the run takes; check your Apify plan for current rates.
- For support, use the Actor's **Issues** tab and include the run ID and sanitized input. Compare an unexpected field with the public source page; do not share credentials.

Use CruiseMapper data in line with the source site's terms, applicable law, and privacy requirements.

# Actor input Schema

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

Ship detail pages or public listing pages to read. All supplied URL fields are combined and duplicate URLs are removed.

## `urls` (type: `array`):

Additional ship or listing URLs. This field is also accepted by the runtime for API compatibility.

## `url` (type: `string`):

Optional single ship or listing URL. Use startUrls for the main form field.

## `maxShips` (type: `integer`):

Maximum number of distinct ship records to save.

## `maxItineraries` (type: `integer`):

Maximum upcoming sailing rows to keep for each ship.

## `includeItineraries` (type: `boolean`):

Whether to include the published upcoming sailing table for each ship.

## `timeoutMs` (type: `integer`):

Maximum wait for each robots.txt or page request.

## `userAgent` (type: `string`):

Optional transparent HTTP user-agent string sent with public requests.

## `start_urls` (type: `array`):

Compatibility alias for startUrls. Prefer startUrls in new inputs.

## `shipUrls` (type: `array`):

Compatibility alias for startUrls. Prefer startUrls in new inputs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.cruisemapper.com/ships/MSC-Opera-627"
    }
  ],
  "urls": [],
  "maxShips": 20,
  "maxItineraries": 100,
  "includeItineraries": true,
  "timeoutMs": 30000,
  "userAgent": "Mozilla/5.0 (compatible; CruiseMapperPublicActor/1.0; +https://apify.com/)",
  "start_urls": [],
  "shipUrls": []
}
```

# Actor output Schema

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

Dataset containing saved ship records.

## `runSummary` (type: `string`):

The three-field OUTPUT_SUMMARY record in the run's default key-value store.

# 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.cruisemapper.com/ships/MSC-Opera-627"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/cruisemapper-cruise-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 = { "startUrls": [{ "url": "https://www.cruisemapper.com/ships/MSC-Opera-627" }] }

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/cruisemapper-cruise-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 '{
  "startUrls": [
    {
      "url": "https://www.cruisemapper.com/ships/MSC-Opera-627"
    }
  ]
}' |
apify call codingfrontend/cruisemapper-cruise-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/cruisemapper-cruise-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/oyoRQAgA4sUbZONtm/builds/yM6fHmhtU6JYQFEXZ/openapi.json
