---
title: "One port: name, country, UN/LOCODE, position, harbor size and type, port area radius"
method: GET
path: "/v1/ports/{port_id}"
---

# One port: name, country, UN/LOCODE, position, harbor size and type, port area radius

`GET /v1/ports/{port_id}`

## Request

- Base URL: `https://api.aistrail.com`
- URL: `https://api.aistrail.com/v1/ports/{port_id}`
- Auth: HTTP bearer

Uses no credits.

## Path parameters

- `port_id` integer, required

## Response `200`

A Port with meta

- Port
  - `id` integer: Port id: the World Port Index number for WPI ports; ports listed only in UN/LOCODE have ids from 10,000,000
  - `name` string
  - `alternate_names` string[]
  - `country` string, nullable: ISO 3166-1 alpha-2 country code
  - `locode` string, nullable: UN/LOCODE, e.g. NLRTM
  - `lat` number
  - `lon` number
  - `harbor_size` 'Large' | 'Medium' | 'Small' | 'Very Small' | 'null', nullable
  - `harbor_type` string, nullable
  - `radius_km` number: Radius of the port area used for port call detection

## Other responses

- `401`: RFC 9457 problem details
- `402`: RFC 9457 problem details
- `404`: RFC 9457 problem details
- `429`: RFC 9457 problem details

---

[API](https://skmtc.dev/aistrail/apis/ais-trail-api.md) · [All operations](https://skmtc.dev/aistrail/apis/ais-trail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aistrail/apis/ais-trail-api/revisions/e829e4345208?raw)
