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
- Ship chartering broker: Filter ports on chan_depth_m and cargo_depth_m against a vessel's draught before fixing a voyage.
- Maritime logistics software developer: Map locode to port_id, name, lat and lon in routing tables.
- Marine cargo insurance analyst: Review harbor_size, harbor_type and tidal_range_m of the ports on an insured route.
What you can query
- 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)
Fields
| Field | Type | Description |
|---|---|---|
port_id | Stable port identifier (wpi-<index number>). | |
name | Port name. | |
country_name | Country. | |
lat | number | Latitude, decimal degrees. |
lon | number | Longitude, decimal degrees. |
harbor_size | NGA harbor size class. | |
harbor_type | NGA harbor type. | |
chan_depth_m | number | Channel depth in metres, null if unknown. |
cargo_depth_m | number | Cargo pier depth in metres, null if unknown. |
tidal_range_m | number | Tidal range in metres, null if unknown. |
locode | UN/LOCODE when known. |
Extract of the data
First 5 records of the free sample, 8 of 11 fields shown.
| port_id | name | country_name | lat | lon | harbor_size | harbor_type | chan_depth_m |
|---|---|---|---|---|---|---|---|
| wpi-7950 | Maurer | United States | 40.533333 | -74.25 | Very Small | River (Natural) | 11.0 |
| wpi-47620 | Iharana | Madagascar | -13.35 | 50.0 | Very Small | Coastal (Natural) | 14.0 |
| wpi-47020 | Chake Chake | Tanzania | -5.25 | 39.766667 | Small | Coastal (Natural) | 14.0 |
| wpi-47005 | Mjimwema Terminal | Tanzania | -6.816667 | 39.366667 | Very Small | Open Roadstead | 23.2 |
| wpi-44804 | Delta Terminal | Turkey | 36.85 | 36.166667 | Very Small | Open 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
- Shipwreck Survey Data UKHO - depth, seabed, sonar remarks
- Shipwreck Hazards - munitions zones and offshore infra
- Shipwreck Marine Life - OBIS species near wrecks
- UK Wreck Heritage - Canmore Scotland and MAIB reports
- Shipwreck Wikidata Links - QIDs, operators, builders
Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.