World Ports

Search about 3,800 seaports worldwide by name, country or distance from a point, with harbor size and type, UN/LOCODE, and channel and pier depths.

GET/api/v1/maritime/ports
Also included in Maritime Security 360 , which joins it with 4 other APIs in one call.

Query parameters

ParameterDescriptionTry value
q
string
Port name (or UN/LOCODE)
country
string
2-letter ISO country code
lat
number
Latitude: sort by distance from this point (with lon)
lon
number
Longitude (with lat)
harborSize
string
very small, small, medium or large
minDepthM
number
Minimum channel depth in metres
limit
number
Ports to return, 1–200 (default 25)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504. Add format= for JSON Lines, CSV, TSV, Excel, XML or YAML (how it works).