{"source":"ais","operation":"get_vessel_position","description":"Get one vessel's latest position with a human-readable location\n(\"3.2 km NW of Kristiansund\"), speed, course and navigational status. Signature: get_vessel_position(vessel: string, required).","signature":"get_vessel_position(vessel: string, required)","parameters":[{"name":"vessel","type":"string","schema":{"description":"Vessel name, call sign, IMO number or MMSI.","type":"string"},"required":true,"default":null,"description":"Vessel name (e.g. \"KV Svalbard\"), 9-digit MMSI, or 7-digit IMO number.","unit":null}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_position?vessel={vessel}","not_paged":"Returns a single record.","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_position?vessel=KV+Svalbard","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"name":{"type":["string","null"]},"vessel_id":{"type":"integer"},"type":{"type":["string","null"]},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"location":{"type":["string","null"]},"speed_kn":{"type":["number","null"]},"course":{"type":["number","null"]},"heading":{"type":["number","null"]},"nav_status":{"type":["string","null"]},"destination":{"type":["string","null"]},"eta":{"type":["string","null"]},"draught_m":{"type":["number","null"]},"position_time":{"type":["string","null"],"format":"date-time"},"position_age_min":{"type":["number","null"]}},"additionalProperties":false,"required":["vessel_id","lat","lon"]},"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_position/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/ais/get_vessel_position","source":"https://allemannsdata.com/wiki/api/v1/kilder/ais","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["name","vessel_id","type","lat","lon","location","speed_kn","course","heading","nav_status","destination","eta","draught_m","position_time","position_age_min"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["name","heading"],"latitude":["lat"],"longitude":["lon"]},"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":["position_time"]},"response_example":{"source":"ais","operation":"get_vessel_position","parameters":{"vessel":"KV Svalbard"},"data":{"name":"Example","vessel_id":1,"type":"example value","lat":59.91,"lon":10.75,"location":"example value","speed_kn":1.0,"course":1.0,"heading":1.0,"nav_status":"example value","destination":"example value","eta":"example value","draught_m":1.0,"position_time":"2026-01-15T12:00:00Z","position_age_min":1.0},"entities":[],"_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_position","source":"https://allemannsdata.com/wiki/api/v1/kilder/ais","wiki":"https://allemannsdata.com/wiki/kilder/ais/get_vessel_position/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
