Get vessel history
get_vessel_historyReturn the historical track (ordered position records) for a single vessel, identified by exactly one of: MMSI (9 digits), IMO (7 digits), or Datalastic UUID. Specify the time range with either 'days' (last N days) or 'from'/'to' dates (YYYY-MM-DD, 'to' at most 30 days after 'from'). Data is available since 2021-08-10; only position changes are stored, so stationary periods may have gaps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (at most 30 days after 'from'). Requires 'from'. Defaults to now if omitted. | |
| imo | No | Vessel IMO number, exactly 7 digits. Provide exactly one of mmsi, imo, or uuid. | |
| days | No | Number of past days from today to include (e.g. 3). Use either days OR from/to, not both. | |
| from | No | Start date YYYY-MM-DD. Data is available since 2021-08-10. Use either from/to OR days, not both. | |
| mmsi | No | Vessel MMSI identifier, exactly 9 digits. Provide exactly one of mmsi, imo, or uuid. | |
| uuid | No | Datalastic internal vessel UUID. Provide exactly one of mmsi, imo, or uuid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eni | Yes | ||
| imo | Yes | ||
| mmsi | Yes | ||
| name | Yes | ||
| type | Yes | ||
| uuid | Yes | ||
| positions | Yes | ||
| country_iso | Yes | ||
| type_specific | Yes |