---
title: "Get a port using the locode or the id"
method: GET
path: "/ports/{id}"
tags: ["Ports"]
---

# Get a port using the locode or the id

`GET /ports/{id}`

Return the details of a single port.

## Response `200`

OK

- object
  - `data` Port
    - `id` string, uuid, required
    - `attributes` object
      - `name` string
      - `code` string — UN/LOCODE
      - `state_abbr` string, nullable
      - `city` string, nullable
      - `country_code` string — 2 digit country code
      - `time_zone` string — IANA tz
      - `latitude` number, nullable
      - `longitude` number, nullable
    - `type` 'port', required

---

[API](https://skmtc.dev/terminal49/apis/terminal49-api-reference.md) · [All operations](https://skmtc.dev/terminal49/apis/terminal49-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/terminal49/terminal49-api-reference/revisions/998a27e39c03/schema)
