World Ports Data API: 3,800 ports, depths and facilities

Check whether a port can take your vessel: channel and cargo pier depths, tidal range, harbor size and type, with coordinates and UN/LOCODE.

Search 3,804 world ports from the NGA World Port Index: coordinates, harbor size and type, channel and cargo depths, tidal range and UN/LOCODE. Embedded data, no scraping, pay per record.

Query the full dataset (API, CSV, JSON) Free sample and schema on GitHub

At a glance

Official source
Source: National Geospatial-Intelligence Agency, World Port Index (public domain).
Licence
Public domain (US Government work, NGA World Port Index)
Snapshot
2026-11
Coverage
National Geospatial-Intelligence Agency World Port Index, a US Government work in the public domain. Null means the source gives no value; it is never 0.

Who uses it

What you can query

Fields

FieldTypeDescription
port_idStable port identifier (wpi-<index number>).
namePort name.
country_nameCountry.
latnumberLatitude, decimal degrees.
lonnumberLongitude, decimal degrees.
harbor_sizeNGA harbor size class.
harbor_typeNGA harbor type.
chan_depth_mnumberChannel depth in metres, null if unknown.
cargo_depth_mnumberCargo pier depth in metres, null if unknown.
tidal_range_mnumberTidal range in metres, null if unknown.
locodeUN/LOCODE when known.

Extract of the data

First 5 records of the free sample, 8 of 11 fields shown.

port_idnamecountry_namelatlonharbor_sizeharbor_typechan_depth_m
wpi-7950MaurerUnited States40.533333-74.25Very SmallRiver (Natural)11.0
wpi-47620IharanaMadagascar-13.3550.0Very SmallCoastal (Natural)14.0
wpi-47020Chake ChakeTanzania-5.2539.766667SmallCoastal (Natural)14.0
wpi-47005Mjimwema TerminalTanzania-6.81666739.366667Very SmallOpen Roadstead23.2
wpi-44804Delta TerminalTurkey36.8536.166667Very SmallOpen Roadstead

Quick start

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/world-ports-data').call(run_input={'harborSizes': ['Very Small'], 'maxResults': 10})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)

HTTP:

curl -X POST 'https://api.apify.com/v2/acts/phonic_lily~world-ports-data/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' -d '{"harborSizes": ["Very Small"], "maxResults": 10}'

FAQ

Where does the World Ports Data: 3,800 ports, depths and facilities data come from?

Source: National Geospatial-Intelligence Agency, World Port Index (public domain). National Geospatial-Intelligence Agency World Port Index, a US Government work in the public domain. Null means the source gives no value; it is never 0.

What can I filter on?

Port name; Country name; Harbor size (Very Small, Small, Medium, Large); Harbor type; Water body; Min channel depth (m) / Max channel depth (m); Min cargo pier depth (m) / Max cargo pier depth (m).

Is there a free sample?

Yes: 100 records in JSONL and CSV, with the schema, free on GitHub at https://github.com/adminglobalcostdata/world-ports-data.

How much does it cost?

The full dataset is an API on Apify, paid per result returned; the current price is on https://apify.com/phonic_lily/world-ports-data.

Can an AI agent query it?

Yes, through the MCP server io.github.adminglobalcostdata/shipwrecks-and-ports on the official MCP registry.

How recent is the data?

Snapshot of 2026-11 from the official source.

Related datasets

Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.