Uruguay Ports API
8 ports for Uruguay, from NGA World Port Index. Filter the collection with country=UY and you get the same JSON shape as every other country.
Request and response
Add country filtering to the collection endpoint and you get Uruguay records back. 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=UY \
-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 |