VesselFinder AIS API Documentation

PortCalls

Description

The PortCalls method returns arrival and departure events for a port, a vessel or a fleet of vessels. The AIS dataset is available for all events and the Voyage dataset only for arrivals at a selected port.

DatasetContentCredits
PortCallPort, country, date/time and type of the event (arrival/departure)2
AISCoordinates, course, speed, heading, current draught, destination, ETA and static vessel data1
VoyageLast port/country and time of departure1

URL format

https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&param=value&…

Parameters

ParameterRequiredTypeDefaultDescription
userkeyyestext-Your personal API key
formatnotextjsonResponse format json or xml
extradatanotext-Additional datasets: ais, voyage or both: ais,voyage
limitnointeger-Maximum number of returned records
intervalyes***integer-The maximum age of the returned events (in minutes)
eventnotext-Filter data by event type. Possible values are arrival or departure
fromdatenodatetime-Start of the period, UTC (YYYY-MM-DD HH:MM:SS)
todatenodatetime-End of the period, UTC (YYYY-MM-DD HH:MM:SS)
imoyes*list of integers-List of IMO numbers (comma separated)
mmsiyes*list of integers-List of MMSI numbers (comma separated)
locodeyes*text-UN/LOCODE of the port
anchoragenointeger10 = exclude anchorages; 1 = include anchorages; 2 = anchorages only
imo_onlynointeger0Specifies whether to include port call events only for vessels that have an IMO number: 0 = all vessels; 1 = only vessels with an IMO number
last_idno**integer-Returns only port call events with an ID greater than the specified value
  • (*) You must provide at least one IMO number, MMSI number, or port UN/LOCODE. You may use multiple IMO and MMSI numbers together. If locode is given, imo and mmsi are ignored and all events at the port are returned (and charged).
  • (**) When used, this parameter overrides the fromdate and todate filters.
  • (***) Not required when fromdate / todate or last_id is used.

Code examples

curl "https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&interval=1440&locode=BGVAR"

Examples

Port calls for a vessel

GET https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&interval=14400&imo=9175717
[
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "TRYPO",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-06 15:37:22 UTC",
            "PORT": "Yilport",
            "COUNTRY": "Turkey"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "TRAMB",
            "EVENT": "ARRIVAL",
            "TIMESTAMP": "2017-08-06 20:57:34 UTC",
            "PORT": "Ambarli",
            "COUNTRY": "Turkey"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "TRAMB",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-07 00:05:59 UTC",
            "PORT": "Ambarli",
            "COUNTRY": "Turkey"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "ITGIT",
            "EVENT": "ARRIVAL",
            "TIMESTAMP": "2017-08-12 02:57:05 UTC",
            "PORT": "Gioia Tauro",
            "COUNTRY": "Italy"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "ITGIT",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-12 14:06:31 UTC",
            "PORT": "Gioia Tauro",
            "COUNTRY": "Italy"
        }
    }
]

Port calls for a vessel with AIS dataset

GET https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&interval=7200&extradata=ais&imo=9175717
[
    {
        "AIS": {
            "MMSI": 304491000,
            "TIMESTAMP": "2017-08-12 02:57:05 UTC",
            "LATITUDE": 38.44518,
            "LONGITUDE": 15.88136,
            "COURSE": 96.7,
            "SPEED": 7.4,
            "HEADING": 91,
            "NAVSTAT": 0,
            "IMO": 9175717,
            "NAME": "MARENO",
            "CALLSIGN": "V2BC5",
            "TYPE": 70,
            "A": 133,
            "B": 20,
            "C": 14,
            "D": 11,
            "DRAUGHT": 8.8,
            "DESTINATION": "GIOIA TAURO",
            "LOCODE": "ITGIT",
            "ETA_AIS": "08-12 03:00",
            "ETA": "2017-08-12 03:00:00",
            "SRC": "TER",
            "ZONE": "Adriatic Sea",
            "ECA": false
        },
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "ITGIT",
            "EVENT": "ARRIVAL",
            "TIMESTAMP": "2017-08-12 02:57:05 UTC",
            "PORT": "Gioia Tauro",
            "COUNTRY": "Italy"
        }
    },
    {
        "AIS": {
            "MMSI": 304491000,
            "TIMESTAMP": "2017-08-12 14:06:31 UTC",
            "LATITUDE": 38.44421,
            "LONGITUDE": 15.88018,
            "COURSE": 239.6,
            "SPEED": 6.7,
            "HEADING": 240,
            "NAVSTAT": 0,
            "IMO": 9175717,
            "NAME": "MARENO",
            "CALLSIGN": "V2BC5",
            "TYPE": 70,
            "A": 133,
            "B": 20,
            "C": 14,
            "D": 11,
            "DRAUGHT": 9.9,
            "DESTINATION": "TRIESTE",
            "LOCODE": "ITGIT",
            "ETA_AIS": "08-14 15:00",
            "ETA": "2017-08-14 15:00:00",
            "SRC": "TER",
            "ZONE": "Mediterranean Sea",
            "ECA": false
        },
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "ITGIT",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-12 14:06:31 UTC",
            "PORT": "Gioia Tauro",
            "COUNTRY": "Italy"
        }
    }
]

Port calls for a vessel in a date range

GET https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&fromdate=2017-08-06%2000:00:00&todate=2017-08-07%2023:59:59&limit=2&imo=9175717
[
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "TRAMB",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-07 00:05:59 UTC",
            "PORT": "Ambarli",
            "COUNTRY": "Turkey"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 304491000,
            "IMO": 9175717,
            "LOCODE": "TRAMB",
            "EVENT": "ARRIVAL",
            "TIMESTAMP": "2017-08-06 20:57:34 UTC",
            "PORT": "Ambarli",
            "COUNTRY": "Turkey"
        }
    }
]

Port calls for a port

GET https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&interval=1440&locode=BGVAR
[
    {
        "PORTCALL": {
            "MMSI": 636013076,
            "IMO": 9419084,
            "LOCODE": "BGVAR",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-17 12:09:44 UTC",
            "PORT": "Varna",
            "COUNTRY": "Bulgaria"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 271000086,
            "IMO": 7726213,
            "LOCODE": "BGVAR",
            "EVENT": "DEPARTURE",
            "TIMESTAMP": "2017-08-17 12:41:52 UTC",
            "PORT": "Varna",
            "COUNTRY": "Bulgaria"
        }
    },
    {
        "PORTCALL": {
            "MMSI": 457303000,
            "IMO": 8107000,
            "LOCODE": "BGVAR",
            "EVENT": "ARRIVAL",
            "TIMESTAMP": "2017-08-17 12:51:16 UTC",
            "PORT": "Varna",
            "COUNTRY": "Bulgaria"
        }
    }
]

Arrivals at a port with Voyage dataset

GET https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY&interval=720&extradata=voyage&locode=BGVAR
[
    {
        "PORTCALL": {
            "MMSI": 207401000,
            "IMO": 0,
            "LOCODE": "BGVAR",
            "EVENT": "ARRIVAL",
            "TIMESTAMP": "2017-08-18 02:40:32 UTC",
            "PORT": "Varna",
            "COUNTRY": "Bulgaria"
        },
        "VOYAGE": {
            "LOCODE": "BGBAL",
            "DEPARTURE": "2017-08-18 00:24:40 UTC",
            "LASTPORT": "Balchik",
            "LASTCOUNTRY": "Bulgaria"
        }
    }
]