Maritime Ports Finder API

You are here:
< All Topics

Find maritime port by name, type, country, and more.API Parameters:

  • name – port name
  • fuzzy – If fuzzy=1 then API return all ports with a similar name
  • port_type – Port type (‘Port’, ‘Marina’, ‘Anchorage’, …)
  • country_iso – Country two-letter code
  • lat, lon, radius – Find port in a radius of latitude, longitude – under construction.

Examples:

https://api.datalastic.com/api/v0/port_find?api-key={YOUR_API_KEY}&name=malaga
https://api.datalastic.com/api/v0/port_find?api-key={YOUR_API_KEY}&name=malaga&country_iso=ES
https://api.datalastic.com/api/v0/port_find?api-key={YOUR_API_KEY}&name=malaga&country_iso=ES&fuzzy=1
https://api.datalastic.com/api/v0/port_find?api-key={YOUR_API_KEY}&name=malaga&fuzzy=1&port_type=Anchorage
https://api.datalastic.com/api/v0/port_find?api-key={YOUR_API_KEY}&lat=60.815&lon=21.2761&radius=10 - under construction

Response:

{
 {
    "data": [
        {
            "uuid": "303548f5-e0ba-2bbc-528b-56fc44d79a87",
            "port_name": "MALAGA",
            "country_iso": "ES",
            "country_name": "Spain",
            "unlocode": "ESAGP",
            "port_type": "Port",
            "lat": 36.70981,
            "lon": -4.417605,
            "area_lvl1": "West Mediterranean",
            "area_lvl2": "Gibraltar"
        },
        {
            "uuid": "f2068011-72b8-2db8-880e-94c3fa2e2f29",
            "port_name": "MALAGA",
            "country_iso": "US",
            "country_name": "USA",
            "unlocode": "USMGA",
            "port_type": "Marina",
            "lat": 26.56593,
            "lon": -81.9409,
            "area_lvl1": "Gulf of Mexico",
            "area_lvl2": "Gulf of Mexico"
        }
    ],
    "meta": {
        "duration": 0.060431033,
        "endpoint": "/api/v0/port_find",
        "success": true
    }
}
Table of Contents