CruiseMapper ship, port and cruise line search

GET https://api.api.sh/cruisemapper/v1/suggest
1 credit / call travel & events try it in the playground →

Ship, port and cruise line names matching what was typed, as the site's search boxes suggest them, with their ids and links.

Every response includes credits_used: the credits this call cost.

Part of the CruiseMapper API: 15 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
qrequired string The text typed so far, e.g. star. Example: star
type string What to search: ship, port, line or all (default).
limit integer Most results per type (1-200, default 50).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/cruisemapper/v1/suggest?q=star" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"q": "star","type": "all","ships": [{"type": "ship","id": 532,"name": "Star Breeze","url": "https://www.cruisemapper.com/ships/Star-Breeze-532","cruise_line_id": 30},{"type": "ship","id": 809,"name": "Star Clipper","url": "https://www.cruisemapper.com/ships/Star-Clipper-809","cruise_line_id": 118},"… 34 more"],"ports": [{"type": "port","id": 13974,"name": "Brandys nad Labem-Stara Boleslav","alternative_name": "Czechia","full_name": "Brandys nad Labem-Stara Boleslav, Czechia","url": "https://www.cruisemapper.com/ports/brandys-nad-labem-stara-boleslav-port-13974","country": "Czech Rep","country_code": "CZ"},{"type": "port","id": 726,"name": "Hvar Island Croatia","alternative_name": "Stari Grad-Hvar Town","full_name": "Hvar Island Croatia, Stari Grad-Hvar Town","url": "https://www.cruisemapper.com/ports/hvar-island-croatia-port-726","country": "Croatia","country_code": "HR"}],"lines": [{"type": "line","id": 118,"name": "Star Clippers","url": "https://www.cruisemapper.com/cruise-lines/Star-Clippers-118"},{"type": "line","id": 58,"name": "Star Cruises","url": "https://www.cruisemapper.com/cruise-lines/Star-Cruises-58"},"… 1 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.