GET /v1.1/port/:id
Returns a single port by its ID.
Request
GET /v1.1/port/:id
URL Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The port ID |
Example Request
curl -X GET "https://api.rccl.ro/v1.1/port/b73d98bf-8d5e-382f-9d49-b84d8f52f152" \
-H "X-WorldTravel-ApiKey: YOUR_API_KEY"
Response
200 OK
Returns a single port resource.
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"
}
},
"links": {
"self": "/v1.1/port/b73d98bf-8d5e-382f-9d49-b84d8f52f152"
},
"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 — port not found or upstream query failure |