---
title: "Get Port Details by unlocode"
method: GET
path: "/ports/{unlocode}"
tags: ["Ports"]
---

# Get Port Details by unlocode

`GET /ports/{unlocode}`

Retrieve detailed informations about a specific port by its UNLOCODE. It include the berth occupation rate and the difference with the average one.

## Path parameters

- `unlocode` string, required

## Response `200`

Successful response

- PortDetails
  - `portDetails` Port
    - `name` string — Name of the port
    - `longitude` number, float — Longitude coordinate
    - `latitude` number, float — Latitude coordinate
    - `unlocode` string — UN/LOCODE of the port
    - `countryName` string — Country name
    - `countryCode` string — ISO country code
  - `portOccupationData` object, nullable
    - `portOccupationLevel` number, float — Current port occupation percentage
    - `portOccupationDifferenceFromAverage` number, float — Difference with average occupation

## Other responses

- `401` — Authentication information is missing or invalid
- `404` — The requested resource was not found
- `500` — Internal server error

---

[API](https://skmtc.net/safecube/apis/api-container-tracking.md) · [All operations](https://skmtc.net/safecube/apis/api-container-tracking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/safecube/api-container-tracking/revisions/e74a670ab7a5/schema)
