# MarineTraffic API reference

> MarineTraffic's API (now Kpler) covers vessel positions, port and berth events, voyage forecasts, vessel particulars and search, and fleet tools. Only the vessel search methods are detailed here; the other methods are listed in the service docs and need an API key too. Vessel search is GET…

Source: https://osinttools.io/apis/marinetraffic/ (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/marinetraffic/

- Base URL: https://services.marinetraffic.com/api
- Authentication: No key needed. The API key goes in the path as {api_key}, not in a header or query.
- Rate limits: Depends on the contract (for example 2 calls per minute); each key is also capped at 100 requests per minute.
- Vendor docs: https://servicedocs.marinetraffic.com/

## Overview

MarineTraffic's API (now Kpler) covers vessel positions, port and berth events, voyage forecasts, vessel particulars and search, and fleet tools. Only the vessel search methods are detailed here; the other methods are listed in the [service docs](https://servicedocs.marinetraffic.com/) and need an API key too.

Vessel search is `GET https://services.marinetraffic.com/api/shipsearch/{api_key}`, with the API key in the path. Search by identifier takes shipid, mmsi or imo; search by name takes shipname and returns the first 100 matches, exact matches first, for active vessels only.

Allowed call volume depends on the contract, and each key is capped at 100 requests per minute.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Bad request |
| 429 | Too many requests |

## Vessel search

### Search vessels by name, or by shipid, MMSI or IMO.

`GET /shipsearch/{api_key}`

- Takes: Name
- Footprint: passive (the target is not contacted)

Send shipname to search by name (up to 100 matches, exact first, active vessels only). Or send shipid, mmsi or imo; mmsi and imo may return several records.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `api_key` | path | string | yes | 40-character hexadecimal API key Example: YOUR_API_KEY |
| `shipname` | query | string | no | Vessel name; required for search by name Example: EXAMPLE VESSEL |
| `shipid` | query | integer | no | MarineTraffic vessel id; required unless mmsi or imo is used Example: 123456 |
| `mmsi` | query | integer | no | MMSI; may return multiple records Example: 123456789 |
| `imo` | query | integer | no | IMO number; may return multiple records Example: 1234567 |
| `shiptype` | query | integer | no | 2 fishing, 4 high speed craft, 6 passenger, 7 cargo, 8 tanker Example: 7 One of: 2, 4, 6, 7, 8 |
| `type_name_id` | query | integer | no | AIS ship type filter Example: 70 |
| `protocol` | query | string | no | Response format Example: jsono One of: xml, csv, json, jsono |

Response fields:

- `SHIPNAME` (string): Vessel name
- `MMSI` (string): MMSI
- `IMO` (string): IMO number
- `SHIP_ID` (string): MarineTraffic vessel id
- `CALLSIGN` (string): Call sign
- `TYPE_NAME` (string): Vessel type
- `DWT` (string): Deadweight tonnage
- `FLAG` (string): Flag code
- `COUNTRY` (string): Flag country
- `YEAR_BUILT` (string): Year built
- `MT_URL` (string): MarineTraffic page for the vessel

```bash
curl 'https://services.marinetraffic.com/api/shipsearch/YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "SHIPNAME": "EXAMPLE VESSEL",
    "MMSI": "123456789",
    "IMO": "1234567",
    "SHIP_ID": "123456",
    "CALLSIGN": "ABCD",
    "TYPE_NAME": "Cargo",
    "DWT": "50000",
    "FLAG": "XX",
    "COUNTRY": "Exampleland",
    "YEAR_BUILT": "2010",
    "MT_URL": "https://www.example.com/vessel"
  }
]
```

---

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/
