grandline

List routable ports in a country

Drives the port dropdown. Without from_port_id, lists every port in the country with routable_origin = TRUE. With it, restricts to ports that are cached destinations from the given origin.

get/api/v1/ports/by-country

Request

  • Base URL: https://grandline.luzomi.com
  • URL: https://grandline.luzomi.com/api/v1/ports/by-country
  • Auth: none declared

Query parameters

iso2string required

ISO-3166-1 alpha-2 country code, e.g. 'US'.

from_port_idinteger nullable

Optional — if set, only return ports reachable from this origin.

limitinteger

Response

Successful Response

port_idinteger required
port_namestring required
country_iso2string required

Changes

No recorded changes to this operation across all 1 revision of this API.