{"source":"ais","operation":"get_vessel_track","description":"Fetch the vessel's AIS track for the past 24 hours. Signature: get_vessel_track(vessel_id: integer, required; limit: integer, items, optional, default 500; offset: integer, items, optional, default 0).","signature":"get_vessel_track(vessel_id: integer, required; limit: integer, items, optional, default 500; offset: integer, items, optional, default 0)","parameters":[{"name":"vessel_id","type":"integer","schema":{"type":"integer"},"required":true,"default":null,"description":"","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer"},"required":false,"default":500,"description":"Unit: items.","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_track?vessel_id={vessel_id}&limit=500&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"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"]}}}},"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"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_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":["[].vessel_id","[].name","[].msgtime","[].latitude","[].longitude","[].courseOverGround","[].speedOverGround","[].trueHeading","[].rateOfTurn","[].navigationalStatus","[].shipType","[].stream"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["[].name"],"latitude":["[].latitude"],"longitude":["[].longitude"]},"response_example":{"source":"ais","operation":"get_vessel_track","parameters":{"vessel_id":1,"limit":500},"data":[{"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":"1","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.","cache_ttl_seconds":300}]},"_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"}}}
