# MarineTraffic vessel details, position and voyage API

Get MarineTraffic vessel particulars, latest position and voyage context via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as imo, output, raw, and retrieve structured data including source IMO identifier, source MMSI identifier, source AIS-position timestamp, source speed in knots, and source arrival-event label for vessel directory, and voyage context.

Documentation: https://openany.si/market/apis/marinetraffic/marinetraffic-vessel-details-position-and-voyage-api/?offering=4a185bbc-c097-49d7-b8c6-42968cceaee2
API ID: 4a185bbc-c097-49d7-b8c6-42968cceaee2
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/marinetraffic/v1/vessel
Page update time: 2026-12-03T02:47:21.440Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:47:19.495Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MarineTraffic vessel details, position and voyage API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "imo": {
          "type": "string",
          "description": "IMO number (7 digits)."
        },
        "mmsi": {
          "type": "string",
          "description": "MMSI (9 digits)."
        },
        "ship_id": {
          "type": "string",
          "description": "MarineTraffic ship id (from search)."
        },
        "name": {
          "type": "string",
          "description": "Vessel name (the first match is used)."
        },
        "url": {
          "type": "string",
          "description": "A marinetraffic.com vessel link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "ais_name": {
      "type": "string"
    },
    "ais_ship_type": {
      "type": "string"
    },
    "ais_transponder_class": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "call_sign": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "eni": {
      "type": "null"
    },
    "fetched_at": {
      "type": "string"
    },
    "flag": {
      "type": "string"
    },
    "flag_code": {
      "type": "string"
    },
    "fleet_group": {
      "type": "string"
    },
    "home_port": {
      "type": "null"
    },
    "imo": {
      "type": "integer"
    },
    "length_m": {
      "type": "number"
    },
    "market": {
      "type": "string"
    },
    "mmsi": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "navigational_aid": {
      "type": "boolean"
    },
    "photo_url": {
      "type": "string"
    },
    "position": {
      "type": "object",
      "properties": {
        "area": {
          "type": "string"
        },
        "area_code": {
          "type": "string"
        },
        "course": {
          "type": "integer"
        },
        "draught_m": {
          "type": "number"
        },
        "heading": {
          "type": "integer"
        },
        "in_range": {
          "type": "boolean"
        },
        "latitude": {
          "type": "number"
        },
        "local_utc_offset_hours": {
          "type": "integer"
        },
        "longitude": {
          "type": "number"
        },
        "navigational_status": {
          "type": "string"
        },
        "newer_satellite_position": {
          "type": "boolean"
        },
        "rate_of_turn": {
          "type": "integer"
        },
        "source": {
          "type": "string"
        },
        "speed_kn": {
          "type": "number"
        },
        "time": {
          "type": "string"
        }
      }
    },
    "service_status": {
      "type": "null"
    },
    "ship_id": {
      "type": "integer"
    },
    "size_class": {
      "type": "string"
    },
    "summary": {
      "type": "object",
      "properties": {
        "particulars": {
          "type": "string"
        },
        "position": {
          "type": "string"
        }
      }
    },
    "type_id": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    },
    "vessel_type": {
      "type": "string"
    },
    "voyage": {
      "type": "object",
      "properties": {
        "arrival_label": {
          "type": "string"
        },
        "arrival_port": {
          "type": "object",
          "properties": {
            "country": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            },
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            },
            "name": {
              "type": "string"
            },
            "port_id": {
              "type": "integer"
            },
            "unlocode": {
              "type": "string"
            }
          }
        },
        "arrival_time": {
          "type": "string"
        },
        "departure_label": {
          "type": "string"
        },
        "departure_port": {
          "type": "object",
          "properties": {
            "country": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            },
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            },
            "name": {
              "type": "string"
            },
            "port_id": {
              "type": "integer"
            },
            "unlocode": {
              "type": "string"
            }
          }
        },
        "departure_time": {
          "type": "string"
        },
        "distance_to_go_nm": {
          "type": "null"
        },
        "distance_travelled_nm": {
          "type": "null"
        },
        "estimated_route_found": {
          "type": "boolean"
        },
        "eta": {
          "type": "string"
        },
        "eta_calculated": {
          "type": "null"
        },
        "eta_utc_offset_hours": {
          "type": "integer"
        },
        "last_port_time": {
          "type": "string"
        },
        "load_condition": {
          "type": "null"
        },
        "progress_pct": {
          "type": "integer"
        },
        "reported_destination": {
          "type": "string"
        }
      }
    },
    "width_m": {
      "type": "integer"
    },
    "year_built": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/marinetraffic/v1/vessel?imo=9811000&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "ais_name": "EVER GIVEN",
  "ais_ship_type": "Cargo - Hazard A (Major)",
  "ais_transponder_class": "Class A",
  "cached": false,
  "call_sign": "A8AB9",
  "credits_used": 1,
  "eni": null,
  "fetched_at": "2026-11-19T12:25:57.048Z",
  "flag": "Liberia",
  "flag_code": "LR",
  "fleet_group": "CONTAINER SHIPS",
  "home_port": null,
  "imo": 9811000,
  "length_m": 399.94,
  "market": "CONTAINER SHIPS",
  "mmsi": 636026627,
  "name": "EVER GIVEN",
  "navigational_aid": false,
  "photo_url": "https://photos.marinetraffic.com/ais/showphoto.aspx?shipid=5630138",
  "position": {
    "area": "East China Sea",
    "area_code": "CCHINA",
    "course": 120,
    "draught_m": 12.5,
    "heading": 130,
    "in_range": true,
    "latitude": 30.62961,
    "local_utc_offset_hours": 8,
    "longitude": 122.05054,
    "navigational_status": "Moored",
    "newer_satellite_position": false,
    "rate_of_turn": 0,
    "source": "Roaming",
    "speed_kn": 0.1,
    "time": "2026-11-19T12:19:27Z"
  },
  "service_status": null,
  "ship_id": 5630138,
  "size_class": "ULCV",
  "summary": {
    "particulars": "EVER GIVEN (IMO: 9811000) is a Container Ship and is sailing under the flag of Liberia. Her length overall (LOA) is 399.94 meters and her width is 59 meters.",
    "position": "Container Ship EVER GIVEN is currently located in the East China Sea (reported 6 minutes ago)"
  },
  "type_id": 71,
  "url": "https://www.marinetraffic.com/en/ais/details/ships/shipid:5630138",
  "vessel_type": "Container Ship",
  "voyage": {
    "arrival_label": "ATA",
    "arrival_port": {
      "country": "CHINA",
      "country_code": "CN",
      "latitude": 31.366364,
      "longitude": 121.61475,
      "name": "SHANGHAI",
      "port_id": 1253,
      "unlocode": "CNSHG"
    },
    "arrival_time": "2026-11-19T05:44:00Z",
    "departure_label": "ATD",
    "departure_port": {
      "country": "CHINA",
      "country_code": "CN",
      "latitude": 29.926542,
      "longitude": 121.85251,
      "name": "NINGBO",
      "port_id": 1250,
      "unlocode": "CNNBG"
    },
    "departure_time": "2026-11-16T11:59:00Z",
    "distance_to_go_nm": null,
    "distance_travelled_nm": null,
    "estimated_route_found": false,
    "eta": "2026-11-19T04:30:00Z",
    "eta_calculated": null,
    "eta_utc_offset_hours": 8,
    "last_port_time": "2026-11-16T11:59:00Z",
    "load_condition": null,
    "progress_pct": 100,
    "reported_destination": "CNYSA"
  },
  "width_m": 59,
  "year_built": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/marinetraffic/marinetraffic-vessel-details-position-and-voyage-api/?offering=4a185bbc-c097-49d7-b8c6-42968cceaee2

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
