Historical AIS positions for a vessel
Changed onReturns a time-series of past AIS positions for one vessel. Use days for a relative window, or from/to for an absolute range. Data is available from 10 August 2021 onward. Only position changes are stored, so a stationary vessel may have gaps.
Credit cost: 2 credits per calendar date returned. Billing is per date returned, not per day requested. A window of N days usually spans N+1 UTC dates, so days=1 typically costs 4 credits. Dates with no position data are not charged.
Request
- Base URLhttps://api.datalastic.com
- Auth
- API key in header x-api-key
- or API key in query parameter api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Number of days back from today.
Start of date range (yyyy-mm-dd).
End of date range (yyyy-mm-dd).
Response
Ordered list of historical position records.
Example response
{
"data": [
{
"timestamp_UTC": "2021-09-15T12:34:00Z",
"timestamp_epoch": 1631709240
}
],
"meta": {
"duration": 0.012,
"endpoint": "/api/v0/vessel",
"success": true,
"next": "00e32b7a-4067-d6b2-8d73-2bdda4fe72bb"
}
}Changes
- warning
deleted the
queryrequest parameterapi-key - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status
- warning