Skip to content
GETNo key

Resolve a port

GETapi.schedulesmcp.com/public/ports/search

Turn a port name into a UN/LOCODE. No key required.

Query parameters

namestringrequired

Port name, partial name, or UN/LOCODE. Minimum 2 characters. Also accepted as q, which is the older spelling and still supported.

limitinteger

Max results. Default 8, maximum 20.

Response fields

Derived from the example response.

okboolean

Whether the request succeeded.

dataobject

The payload. Everything an endpoint returns sits under this key.

data.portsobject[]

Matching ports.

data.ports[].unlocodestring

UN/LOCODE port code. On a tracking event it is canonicalised, and null when the carrier named no port.

data.ports[].namestring

Human-readable name.

data.ports[].country_codestring

ISO country code.

data.ports[].latnumber

Latitude.

data.ports[].lngnumber

Longitude.

Try it No key
curl 'https://api.schedulesmcp.com/public/ports/search?name=rotterdam'

This preview uses documented example data and makes no live request. Get a key to run live.