GET /v1.1/port
Returns a paginated list of all ports.
Request
GET /v1.1/port
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page[number] | integer | 1 | Page number (one-indexed) |
page[size] | integer | 10 | Items per page (max 1000) |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/port?page[number]=1&page[size]=10" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns an array of port resources.
Response body:
{
"data": [
{
"type": "port",
"id": "b73d98bf-8d5e-382f-9d49-b84d8f52f152",
"attributes": {
"code": "AAL",
"title": "Aalborg, Danemarca",
"description": "Al patrulea oras ca marime din Danemarca si cel mai nordic...",
"url": "https://rccl.ro/porturi-croaziera/aalborg-danemarca",
"image_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/croaziera-apus-ocean-thumb-900x900-il-rci-01.jpg",
"latitude": 57.0695,
"longitude": 9.986
},
"links": {
"self": "/v1.1/port/b73d98bf-8d5e-382f-9d49-b84d8f52f152"
}
},
{
"type": "port",
"id": "63bd2143-b807-3e18-b178-f68d63ed58ac",
"attributes": {
"code": "AAR",
"title": "Aarhus, Danemarca",
"description": "Århus, al doilea oras ca marime din Danemarca...",
"url": "https://rccl.ro/porturi-croaziera/aarhus-danemarca",
"image_url": "https://ik.imagekit.io/worldtravel/wp-content/uploads/croaziere-in-mediterana-franta-corsica-apus-thumb-900x900-il-aza-01.jpg",
"latitude": 56.154,
"longitude": 10.2295
},
"links": {
"self": "/v1.1/port/63bd2143-b807-3e18-b178-f68d63ed58ac"
}
}
],
"links": {
"self": "/v1.1/port",
"first": "/v1.1/port?page[number]=1&page[size]=10",
"next": "/v1.1/port?page[number]=2&page[size]=10"
},
"meta": {
"count": 934
},
"jsonapi": {
"version": "1.0"
}
}
Port Attributes
| Field | Type | Description |
|---|---|---|
code | string | Unique port code |
title | string | Port name and country |
description | string | Port description |
url | string | Port page URL |
image_url | string | Port image URL |
latitude | number | Latitude coordinate |
longitude | number | Longitude coordinate |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid API key |
500 | Internal Server Error — upstream query failure |