Ports API
Find port locations and reported harbour and vessel dimensions. 3,805 records across 193 countries and territories, from NGA World Port Index.
GET /v1/portsPublic domain / US government work193 countries28 Nov 2026Request and response
The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.
curl 'https://api.apifor.dev/v1/ports' \
-G -d country=IS -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"wpi_number": 40,
"name": "Thorlakshofn",
"alt_name": null,
"unlocode": "ISTHH",
"country_name": "Iceland",
"country": "IS",
"region_name": "Iceland South Coast",
"water_body": "North Atlantic Ocean",
"lat": 63.85,
"lng": -21.366667,
"harbor_size": null,
"harbor_type": null,
"harbor_use": "Fishing",
"shelter": null,
"tidal_range_m": 2.8,
"entrance_width_m": null,
"channel_depth_m": 6.6,
"anchorage_depth_m": 11,
"cargo_pier_depth_m": null,
"oil_terminal_depth_m": null,
"lng_terminal_depth_m": null,
"max_vessel_length_m": null,
"max_vessel_beam_m": null,
"max_vessel_draft_m": 6.6,
"offshore_max_vessel_length_m": null,
"offshore_max_vessel_beam_m": null,
"offshore_max_vessel_draft_m": null,
"pilotage_compulsory": null,
"pilotage_available": null,
"tugs_assistance": null,
"facilities": "{\"anchorage\":true,\"ro_ro\":true,\"breakbulk\":true,\"potable_water\":true}",
"repairs": "Limited",
"dry_dock": null,
"navarea": "I",
"sailing_direction": "Sailing Directions Pub. 181 (Enroute) - Greenland and Iceland",
"publication_link": "https://msi.geo.nga.mil/api/publications/download?key=16694491/SFH00000/Pub181bk.pdf&type=view",
"chart": "38610"
}
]
}Fields
Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.
| Field | Type | Example |
|---|---|---|
| wpi_number | integer | 40 |
| name | string | "Thorlakshofn" |
| alt_name | nullable | null |
| unlocode | string | "ISTHH" |
| country_name | string | "Iceland" |
| country | string | "IS" |
| region_name | string | "Iceland South Coast" |
| water_body | string | "North Atlantic Ocean" |
| lat | number | 63.85 |
| lng | number | -21.366667 |
| harbor_size | nullable | null |
| harbor_type | nullable | null |
| harbor_use | string | "Fishing" |
| shelter | nullable | null |
| tidal_range_m | number | 2.8 |
| entrance_width_m | nullable | null |
| channel_depth_m | number | 6.6 |
| anchorage_depth_m | integer | 11 |
| cargo_pier_depth_m | nullable | null |
| oil_terminal_depth_m | nullable | null |
| lng_terminal_depth_m | nullable | null |
| max_vessel_length_m | nullable | null |
| max_vessel_beam_m | nullable | null |
| max_vessel_draft_m | number | 6.6 |
| offshore_max_vessel_length_m | nullable | null |
| offshore_max_vessel_beam_m | nullable | null |
| offshore_max_vessel_draft_m | nullable | null |
| pilotage_compulsory | nullable | null |
| pilotage_available | nullable | null |
| tugs_assistance | nullable | null |
| facilities | string | "{\"anchorage\":true,\"ro_ro\":true,\"breakbulk… |
| repairs | string | "Limited" |
| dry_dock | nullable | null |
| navarea | string | "I" |
| sailing_direction | string | "Sailing Directions Pub. 181 (Enroute) - Greenl… |
| publication_link | string (url) | "https://msi.geo.nga.mil/api/publications/downl… |
| chart | string | "38610" |
Filters and paging
Query parameters accepted by GET /v1/ports. Full detail, including the single-record route, is in the endpoint reference.
| Parameter | Type | Rules |
|---|---|---|
| page | integer | min 1 · default 1 |
| limit | integer | 1 to 200 · default 50 |
| country | string | ISO 3166-1 alpha-2 |
| q | string | 2 to 100 chars |
| unlocode | string | None |
Coverage by country
193 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.
- ALAlbania4
- DZAlgeria17
- ASAmerican Samoa1
- AOAngola21
- AQAntarctica8
- AGAntigua & Barbuda1
- ARArgentina37
- AWAruba2
- AUAustralia66
- BSBahamas6
- BHBahrain4
- BDBangladesh2
- BBBarbados1
- BEBelgium7
- BZBelize2
- BJBenin1
- BMBermuda4
- BABosnia & Herzegovina1
- BRBrazil45
- IOBritish Indian Ocean Territory1
- VGBritish Virgin Islands1
- BNBrunei5
- BGBulgaria2
- KHCambodia2
- CMCameroon7
- CACanada285
- CVCape Verde2
- BQCaribbean Netherlands4
- KYCayman Islands2
- CLChile39
- CNChina66
- CXChristmas Island1
- COColombia14
- KMComoros4
- CGCongo - Brazzaville4
- CDCongo - Kinshasa3
- CKCook Islands1
- CRCosta Rica6
- CICôte d’Ivoire5
- HRCroatia16
- CUCuba34
- CWCuraçao4
- CYCyprus6
- DKDenmark69
- DJDjibouti2
- DMDominica2
- DODominican Republic17
- ECEcuador6
- EGEgypt32
- SVEl Salvador3
- GQEquatorial Guinea7
- EREritrea2
- EEEstonia19
- FKFalkland Islands1
- FOFaroe Islands9
- FJFiji5
- FIFinland37
- FRFrance66
- GFFrench Guiana1
- PFFrench Polynesia6
- GAGabon10
- GMGambia1
- GEGeorgia3
- DEGermany36
- GHGhana4
- GIGibraltar1
- GRGreece57
- GLGreenland23
- GDGrenada1
- GPGuadeloupe4
- GUGuam1
- GTGuatemala3
- GGGuernsey3
- GNGuinea4
- GWGuinea-Bissau2
- GYGuyana3
- HTHaiti5
- HNHonduras8
- HKHong Kong SAR China1
- ISIceland42
- INIndia55
- IDIndonesia123
- IRIran18
- IQIraq6
- IEIreland21
- IMIsle of Man2
- ILIsrael5
- ITItaly123
- JMJamaica11
- JPJapan163
- JEJersey1
- JOJordan1
- KEKenya4
- KIKiribati3
- KWKuwait6
- LVLatvia5
- LBLebanon5
- LRLiberia4
- LYLibya14
- LTLithuania2
- MOMacao SAR China1
- MGMadagascar13
- MYMalaysia35
- MVMaldives1
- MTMalta2
- MHMarshall Islands3
- MQMartinique1
- MRMauritania2
- MUMauritius2
- MXMexico35
- FMMicronesia4
- MCMonaco1
- MEMontenegro4
- MAMorocco12
- MZMozambique11
- MMMyanmar (Burma)7
- NANamibia2
- NRNauru1
- NLNetherlands18
- NCNew Caledonia3
- NZNew Zealand22
- NINicaragua5
- NGNigeria27
- NUNiue1
- NFNorfolk Island1
- KPNorth Korea10
- MPNorthern Mariana Islands3
- NONorway141
- OMOman7
- PKPakistan3
- PWPalau1
- PAPanama12
- PGPapua New Guinea22
- PYParaguay1
- PEPeru20
- PHPhilippines71
- PLPoland10
- PTPortugal18
- PRPuerto Rico14
- QAQatar7
- RERéunion4
- RORomania11
- RURussia68
- WSSamoa1
- STSão Tomé & Príncipe2
- SASaudi Arabia16
- SNSenegal6
- SCSeychelles1
- SLSierra Leone3
- SGSingapore5
- SXSint Maarten2
- SISlovenia2
- SBSolomon Islands6
- SOSomalia6
- ZASouth Africa8
- GSSouth Georgia & South Sandwich Islands3
- KRSouth Korea14
- ESSpain52
- LKSri Lanka6
- SHSt. Helena4
- KNSt. Kitts & Nevis2
- LCSt. Lucia3
- PMSt. Pierre & Miquelon2
- VCSt. Vincent & Grenadines1
- SDSudan4
- SRSuriname4
- SJSvalbard & Jan Mayen3
- SESweden92
- SYSyria3
- TWTaiwan8
- TZTanzania8
- THThailand21
- TLTimor-Leste1
- TGTogo2
- TOTonga3
- TTTrinidad & Tobago10
- TNTunisia16
- TRTürkiye54
- TCTurks & Caicos Islands3
- TVTuvalu1
- UMU.S. Outlying Islands3
- VIU.S. Virgin Islands6
- UAUkraine26
- AEUnited Arab Emirates20
- GBUnited Kingdom186
- USUnited States666
- UYUruguay8
- VUVanuatu3
- VEVenezuela31
- VNVietnam16
- WFWallis & Futuna1
- EHWestern Sahara2
- YEYemen10