{"source":"ais","operation":"get_vessel_track","description":"Fetch the vessel's AIS track for the past 24 hours, newest point first. Signature: get_vessel_track(vessel_id: integer, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_vessel_track(vessel_id: integer, required; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"vessel_id","type":"integer","schema":{"type":"integer"},"required":true,"default":null,"description":"The vessel's 9-digit MMSI, e.g. 257347700 (from search_vessels).","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"default":25,"description":"Track points to return. Unit: items. Through this API: default 25, maximum 100.","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer"},"required":false,"default":0,"description":"Points to skip before the first one returned (default 0); with limit, pages through the whole track. Unit: items.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_track?vessel_id={vessel_id}&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_track?vessel_id=259040000","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"total":{"type":"integer"},"points":{"type":"array","items":{"type":"object","properties":{"vessel_id":{"type":["integer","null"]},"name":{"type":["string","null"]},"msgtime":{"type":["string","null"],"format":"date-time"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"courseOverGround":{"type":["number","null"]},"speedOverGround":{"type":["number","null"]},"trueHeading":{"type":["number","null"]},"rateOfTurn":{"type":["number","null"]},"navigationalStatus":{"type":["integer","null"]},"shipType":{"type":["integer","null"]},"stream":{"type":["string","null"]}}}}},"additionalProperties":false,"required":["total","points"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["vessel"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND","ENDPOINT_NOT_FOUND"],"retryable":false},"405":{"codes":["METHOD_NOT_ALLOWED"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"503":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":false}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_track/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_track","source":"https://allemannsdata.com/wiki/api/v1/kilder/ais","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["total","points","points[].vessel_id","points[].name","points[].msgtime","points[].latitude","points[].longitude","points[].courseOverGround","points[].speedOverGround","points[].trueHeading","points[].rateOfTurn","points[].navigationalStatus","points[].shipType","points[].stream"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["points[].name"],"latitude":["points[].latitude"],"longitude":["points[].longitude"]},"temporal_conventions":{"timezone":"explicit_offset","join_guidance":"date-time fields are RFC 3339 with an explicit offset (Z, +00:00 or the Europe/Oslo offset); compare absolute instants, not clock text. date fields are calendar dates without a time zone.","datetime_fields":["points[].msgtime"]},"response_example":{"source":"ais","operation":"get_vessel_track","parameters":{"vessel_id":259040000,"limit":25,"offset":0},"data":{"total":1,"points":[{"vessel_id":1,"name":"Example","msgtime":"2026-01-15T12:00:00Z","latitude":59.91,"longitude":10.75,"courseOverGround":1.0,"speedOverGround":1.0,"trueHeading":1.0,"rateOfTurn":1.0,"navigationalStatus":1,"shipType":1,"stream":"example value"}]},"entities":[{"type":"vessel","id":"259040000","source":"ais","description":"Vessel used as the operation input."}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"ais","name":"AIS and vessels","description":"Latest known vessel positions, vessel search and historical AIS tracks from BarentsWatch.","publisher":"Kystverket (BarentsWatch)","license":"https://data.norge.no/nlod/en/2.0/","cache_ttl_seconds":300,"documentation":"https://developer.barentswatch.no/docs/AIS/"}]},"_provenance":{"data":{"source":"ais","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/ais"},"entities":{"source":"ais","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/ais","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_track","source":"https://allemannsdata.com/wiki/api/v1/kilder/ais","wiki":"https://allemannsdata.com/wiki/kilder/ais/get_vessel_track/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
