All vessels currently within an area
Changed onScan a circular area for all vessels currently inside the radius.
The centre can be static (lat + lon, or a port by port_uuid / port_unlocode) or dynamic, following a vessel by uuid, mmsi, or imo. Pass exactly one centre. The full result set is returned in a single response and data.total gives the record count.
Credit cost: 1 per vessel found, capped at 500 credits per request.
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
Centre latitude. Use with lon.
Centre longitude. Use with lat.
Port UUID as the centre (alternative to lat/lon).
Port UN/LOCODE as the centre (alternative to lat/lon).
Vessel UUID as a dynamic centre. The scan follows the vessel's current position.
Vessel MMSI as a dynamic centre.
Vessel IMO as a dynamic centre.
Search radius in nautical miles. Maximum 50.
Filter by vessel type (e.g. Cargo, Tanker).
Filter by vessel subtype (e.g. Container Ship).
Exclude certain vessel types from the result.
Include or exclude vessels with a null type.
Filter by AIS navigational status code.
Response
Vessels found within the area.
Example response
{
"data": [
{
"uuid": "b8625b67-7142-cfd1-7b85-595cebfe4191",
"name": "MAERSK CHENNAI",
"mmsi": "566093000",
"imo": "9525338",
"country_iso": "SG",
"country_name": "Singapore",
"type": "Cargo - Hazard A (Major)",
"type_specific": "Container Ship",
"lat": 6.303473,
"lon": 3.201678,
"speed": 14.2,
"course": 326,
"heading": 226,
"navigational_status": "Under way using engine",
"destination": "ROTTERDAM",
"last_position_epoch": 1624127400,
"last_position_UTC": "2021-06-20T08:30:00Z",
"area": "North Sea"
}
],
"meta": {
"duration": 0.012,
"endpoint": "/api/v0/vessel",
"success": true,
"next": "00e32b7a-4067-d6b2-8d73-2bdda4fe72bb"
}
}Changes
- breaking
the
queryrequest parameterradiusbecame required - warning
for the
queryrequest parameterradius, the max was set to50.00 - warning
deleted the
queryrequest parameterapi-key - info
added the new optional
queryrequest parameter_empty_ - info
added the new optional
queryrequest parameterexclude - info
added the new optional
queryrequest parameterimo - info
added the new optional
queryrequest parametermmsi - info
added the new optional
queryrequest parameternav_status - info
added the new optional
queryrequest parameterport_uuid - info
added the new optional
queryrequest parameteruuid - info
for the
queryrequest parameterradius, the type was generalized fromintegertonumber, and format from no format tofloat - 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 non-success response with the status
- info
added the optional property
/to the response with the status
- breaking