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

Uses no credits.

get/v1/ports/{port_id}

Request

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

Path parameters

port_idinteger required

Response

A Port with meta

idinteger

Port id: the World Port Index number for WPI ports; ports listed only in UN/LOCODE have ids from 10,000,000

namestring
alternate_namesstring[]
countrystring nullable

ISO 3166-1 alpha-2 country code

locodestring nullable

UN/LOCODE, e.g. NLRTM

latnumber
lonnumber
harbor_size'Large' | 'Medium' | 'Small' | 'Very Small' | 'null' nullable
harbor_typestring nullable
radius_kmnumber

Radius of the port area used for port call detection

Changes

No recorded changes to this operation across all 2 revisions of this API.