# VesselFinder API reference

> The VesselFinder API returns ship data from VesselFinder's AIS network: live position, course, speed, destination and ETA, the last port of call, vessel master data (IMO, flag, owner, manager, class, dimensions, tonnage) and port arrival and departure events. Calls are GET requests to…

Source: https://osinttools.io/apis/vesselfinder/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/vesselfinder/

- Base URL: https://api.vesselfinder.com
- Authentication: API key in the `userkey` query parameter.
- Rate limits: Not stated in the docs
- Vendor docs: https://api.vesselfinder.com/docs/
- OpenAPI spec: https://api.vesselfinder.com/docs/openapi.yaml

## Overview

The VesselFinder API returns ship data from VesselFinder's AIS network: live position, course, speed, destination and ETA, the last port of call, vessel master data (IMO, flag, owner, manager, class, dimensions, tonnage) and port arrival and departure events.

Calls are GET requests to `https://api.vesselfinder.com/<method>` with the key in the `userkey` query parameter. Responses are JSON by default; add `format=xml` for XML (not supported by `distance`). By default an error comes back as HTTP 200 with an `error` object; add `errormode=409` to get HTTP 409 with a plain-text body.

Credit-based methods charge per returned record, and empty responses cost nothing. The `LiveData` and `VesselsList` methods are subscription-based and are not described here.

## Errors

| Status | Meaning |
| --- | --- |
| 409 | Returned instead of HTTP 200 with an error object when errormode=409 is set; the body is plain text |

## Vessels

### Latest AIS position of vessels by IMO or MMSI, with optional voyage and master data.

`GET /vessels`

- Footprint: passive (the target is not contacted)
- Cost: AIS 1 credit, voyage 1 credit, master 2 credits per record

Returns one record per vessel. Each has an AIS block; add extradata for the last port call (voyage) and vessel specifications (master). Give imo or mmsi.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `imo` | query | string | no | Comma-separated 7-digit IMO numbers. Give imo or mmsi. Example: 9000001 |
| `mmsi` | query | string | no | Comma-separated 9-digit MMSI numbers. Give imo or mmsi. Example: 200000001 |
| `extradata` | query | string | no | Extra datasets to return Example: voyage,master One of: voyage, master, voyage,master |
| `interval` | query | integer | no | Maximum age of positions, in minutes Example: 60 |
| `format` | query | string | no | Response format One of: json, xml |

Response fields:

- `[].AIS.MMSI` (integer): MMSI number
- `[].AIS.IMO` (integer): IMO number, 0 if not broadcast
- `[].AIS.NAME` (string): Vessel name
- `[].AIS.TIMESTAMP` (string): UTC time of the position
- `[].AIS.LATITUDE` (number): WGS84 decimal degrees
- `[].AIS.LONGITUDE` (number): WGS84 decimal degrees
- `[].AIS.COURSE` (number): Course over ground, degrees
- `[].AIS.SPEED` (number): Speed over ground, knots
- `[].AIS.DESTINATION` (string): Destination as typed by the crew
- `[].AIS.ETA` (string): Estimated arrival, empty if unknown
- `[].VOYAGE.LASTPORT` (string): Last port of call (with extradata=voyage)
- `[].MASTERDATA.FLAG` (string): Flag state (with extradata=master)
- `[].MASTERDATA.OWNER` (string): Owner (with extradata=master)

```bash
curl 'https://api.vesselfinder.com/vessels?userkey=YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "AIS": {
      "MMSI": 200000001,
      "TIMESTAMP": "2026-01-01 12:00:00 UTC",
      "LATITUDE": 43.25,
      "LONGITUDE": 27.37,
      "COURSE": 90,
      "SPEED": 11.2,
      "IMO": 9000001,
      "NAME": "EXAMPLE VESSEL",
      "DESTINATION": "EXAMPLE PORT",
      "ETA": "2026-01-02 06:00:00"
    },
    "VOYAGE": {
      "LASTPORT": "Example Port",
      "LASTCOUNTRY": "Exampleland"
    },
    "MASTERDATA": {
      "IMO": 9000001,
      "NAME": "EXAMPLE VESSEL",
      "FLAG": "Exampleland",
      "OWNER": "Example Shipping Ltd"
    }
  }
]
```

### Vessel specifications by IMO number: flag, owner, manager, class, dimensions and tonnage.

`GET /masterdata`

- Footprint: passive (the target is not contacted)
- Cost: 3 credits per record

Returns a MASTERDATA object per IMO number: name, flag, type, build year and yard, owner, manager, classification society, length, beam, draught, GT, NT, DWT, TEU, crude and gas capacity.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `imo` | query | string | yes | Comma-separated 7-digit IMO numbers Example: 9000001 |
| `format` | query | string | no | Response format One of: json, xml |

Response fields:

- `[].MASTERDATA.IMO` (integer): IMO number
- `[].MASTERDATA.NAME` (string): Vessel name
- `[].MASTERDATA.FLAG` (string): Flag state
- `[].MASTERDATA.TYPE` (string): Ship type as text
- `[].MASTERDATA.BUILT` (string): Year built
- `[].MASTERDATA.OWNER` (string): Owner
- `[].MASTERDATA.MANAGER` (string): Manager
- `[].MASTERDATA.CLASS` (string): Classification society
- `[].MASTERDATA.GT` (integer): Gross tonnage
- `[].MASTERDATA.DWT` (integer): Deadweight, tonnes

```bash
curl 'https://api.vesselfinder.com/masterdata?imo=9000001&userkey=YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "MASTERDATA": {
      "IMO": 9000001,
      "NAME": "EXAMPLE VESSEL",
      "FLAG": "Exampleland",
      "TYPE": "Bulk Carrier",
      "BUILT": "2010",
      "OWNER": "Example Shipping Ltd",
      "MANAGER": "Example Ship Management",
      "CLASS": "Example Register",
      "GT": 30000,
      "DWT": 50000
    }
  }
]
```

## Ports

### Port arrival and departure events for a port (UN/LOCODE) or for given vessels.

`GET /portcalls`

- Footprint: passive (the target is not contacted)
- Cost: PortCall 2 credits, AIS 1 credit, voyage 1 credit per record

Returns PORTCALL records. If locode is given, imo and mmsi are ignored; if last_id is given, fromdate and todate are ignored. One of interval, fromdate/todate or last_id is needed. Use last_id to poll for new events.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `locode` | query | string | no | Port UN/LOCODE. Required unless imo or mmsi is given. Example: XXEXA |
| `imo` | query | string | no | Comma-separated IMO numbers Example: 9000001 |
| `mmsi` | query | string | no | Comma-separated MMSI numbers Example: 200000001 |
| `interval` | query | integer | no | Maximum event age in minutes Example: 1440 |
| `fromdate` | query | string | no | Start of window, UTC, YYYY-MM-DD HH:MM:SS Example: 2026-01-01 00:00:00 |
| `todate` | query | string | no | End of window, UTC, YYYY-MM-DD HH:MM:SS Example: 2026-01-02 00:00:00 |
| `last_id` | query | integer | no | Only events with an ID greater than this Example: 1000 |
| `event` | query | string | no | Event type filter One of: arrival, departure |
| `extradata` | query | string | no | Extra datasets; voyage applies only to arrivals at a selected port One of: ais, voyage, ais,voyage |
| `anchorage` | query | string | no | 0 excludes anchorages, 1 includes them, 2 returns only anchorages One of: 0, 1, 2 |
| `imo_only` | query | string | no | 1 returns only vessels with an IMO number One of: 0, 1 |
| `limit` | query | integer | no | Maximum records returned Example: 100 |

Response fields:

- `[].PORTCALL.ID` (integer): Event ID, usable as last_id
- `[].PORTCALL.MMSI` (integer): MMSI
- `[].PORTCALL.IMO` (integer): IMO
- `[].PORTCALL.LOCODE` (string): Port UN/LOCODE
- `[].PORTCALL.EVENT` (string): ARRIVAL or DEPARTURE
- `[].PORTCALL.TIMESTAMP` (string): UTC time of the event
- `[].PORTCALL.PORT` (string): Port name
- `[].PORTCALL.COUNTRY` (string): Port country

```bash
curl 'https://api.vesselfinder.com/portcalls?userkey=YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "PORTCALL": {
      "ID": 1001,
      "MMSI": 200000001,
      "IMO": 9000001,
      "LOCODE": "XXEXA",
      "EVENT": "ARRIVAL",
      "TIMESTAMP": "2026-01-01 08:00:00 UTC",
      "PORT": "Example Port",
      "COUNTRY": "Exampleland"
    }
  }
]
```

### Vessels that have entered a port as their AIS destination.

`GET /expectedarrivals`

- Footprint: passive (the target is not contacted)
- Cost: AIS 5 credits, voyage 1 credit, master 2 credits per record

Returns vessel records (AIS, plus voyage and master data on request) for vessels whose AIS destination is the given port, within an interval or a date window.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `locode` | query | string | yes | Port UN/LOCODE Example: XXEXA |
| `interval` | query | integer | no | Minutes into the future. Required unless fromdate and todate are given. Example: 1440 |
| `fromdate` | query | string | no | Start of window, UTC Example: 2026-01-01 00:00:00 |
| `todate` | query | string | no | End of window, UTC Example: 2026-01-02 00:00:00 |
| `aistype` | query | string | no | Comma-separated AIS ship type codes Example: 70,80 |
| `extradata` | query | string | no | Extra datasets One of: voyage, master, voyage,master |
| `limit` | query | integer | no | Maximum records returned Example: 100 |

Response fields:

- `[].AIS.MMSI` (integer): MMSI
- `[].AIS.NAME` (string): Vessel name
- `[].AIS.DESTINATION` (string): Destination as typed by the crew
- `[].AIS.ETA` (string): Estimated arrival

```bash
curl 'https://api.vesselfinder.com/expectedarrivals?locode=XXEXA&userkey=YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "AIS": {
      "MMSI": 200000001,
      "NAME": "EXAMPLE VESSEL",
      "DESTINATION": "EXAMPLE PORT",
      "ETA": "2026-01-02 06:00:00"
    }
  }
]
```

## Routing

### Sea route and distance between two points, as a GeoJSON LineString.

`GET /distance`

- Footprint: passive (the target is not contacted)
- Cost: 1 credit per successful response

Gateways such as canals and straits are closed by default; open them with gateways. XML is not supported.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | string | yes | Start point as lon,lat (WGS84) Example: 27.3711,43.256 |
| `to` | query | string | yes | End point as lon,lat (WGS84) Example: 128.345,-34.223 |
| `gateways` | query | string | no | Comma-separated gateways to open Example: suez,panama |
| `ECA` | query | string | no | Emission control area handling One of: allow, deny, minimize |
| `EPSG3857` | query | string | no | 1 returns Web Mercator coordinates One of: 0, 1 |

Response fields:

- `geometry.coordinates[]` (array): Route points as [lon, lat]
- `properties.Crossing[]` (string): Straits, canals and passages on the route
- `properties.Distance` (integer): Route length in metres
- `properties.DistanceECA` (integer): Length inside ECA zones in metres

```bash
curl 'https://api.vesselfinder.com/distance?from=27.3711%2C43.256&to=128.345%2C-34.223&userkey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "type": "Feature",
  "geometry": {
    "type": "LineString",
    "coordinates": [
      [
        27.37,
        43.25
      ],
      [
        28,
        42.5
      ]
    ]
  },
  "properties": {
    "Crossing": [
      "Example Strait"
    ],
    "Distance": 120000,
    "DistanceECA": 0
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
