# CruiseMapper ship, port and cruise line search API

Search CruiseMapper ships, ports and cruise lines by text via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, q, and retrieve structured data including source ship identifier, source port identifier, source cruise-line identifier, ship-associated cruise-line reference, and selected search-type scope for entity selector, and catalogue navigation.

Documentation: https://openany.si/cruisemapper/cruisemapper-ship-port-and-cruise-line-search-api/c234073a-6817-476c-b03d-1dd8ee58c051/
API ID: c234073a-6817-476c-b03d-1dd8ee58c051
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/cruisemapper/v1/suggest
Page update time: 2026-12-03T02:47:21.601Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:21.068Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## CruiseMapper Search API

Pass q, optionally type=ship, port, line or all. Results are grouped into ships, ports and lines; their numeric IDs belong to separate source entity types.

## What You Can Build

- **Entity selector**: Keep ship, port and line groups separate.
- **Catalogue navigation**: Use each source ID with its matching detail operation.

## Returned Data

| Field | Meaning |
| --- | --- |
| `ships[].id` | Source ship identifier |
| `ports[].id` | Source port identifier |
| `lines[].id` | Source cruise-line identifier |
| `ships[].cruise_line_id` | Ship-associated cruise-line reference |
| `type` | Selected search-type scope |
| `q` | Requested source search text |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CruiseMapper ship, port and cruise line search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "The text typed so far, e.g. `star`."
        },
        "type": {
          "type": "string",
          "description": "What to search: `ship`, `port`, `line` or `all` (default)."
        },
        "limit": {
          "type": "integer",
          "description": "Most results per type (1-200, default 50)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "q"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "ports": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "alternative_name": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          },
          "full_name": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "q": {
      "type": "string"
    },
    "ships": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cruise_line_id": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/cruisemapper/v1/suggest?limit=1&output=json&q=star&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:25:52.478Z",
  "lines": [
    {
      "id": 118,
      "name": "Star Clippers",
      "type": "line",
      "url": "https://www.cruisemapper.com/cruise-lines/Star-Clippers-118"
    }
  ],
  "ports": [
    {
      "alternative_name": "Czechia",
      "country": "Czech Rep",
      "country_code": "CZ",
      "full_name": "Brandys nad Labem-Stara Boleslav, Czechia",
      "id": 13974,
      "name": "Brandys nad Labem-Stara Boleslav",
      "type": "port",
      "url": "https://www.cruisemapper.com/ports/brandys-nad-labem-stara-boleslav-port-13974"
    }
  ],
  "q": "star",
  "ships": [
    {
      "cruise_line_id": 30,
      "id": 532,
      "name": "Star Breeze",
      "type": "ship",
      "url": "https://www.cruisemapper.com/ships/Star-Breeze-532"
    }
  ],
  "type": "all"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which search types are supported?
Use ship, port, line or all; all is the default.

### Does limit apply to the combined total?
It is the most results per type, accepting 1–200 with default 50.

### Can identical numeric IDs be merged across types?
No. Keep each ID with its ship, port or line type and source URL.

### Does Search return cruise IDs?
It resolves ships, ports and lines. Use Cruise Finder or Ship Itineraries for individual sailing IDs.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/cruisemapper/cruisemapper-ship-port-and-cruise-line-search-api/c234073a-6817-476c-b03d-1dd8ee58c051/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
