**注:**例子中的 1F6D701272402D1E7D8D316CCE519123 是船讯网的官方 key,已经绑定域名 api.shipxy.com,用户无权也无法使用该 key 获取数据,使用该 key 会返回 status 14 的状态码,提示来源域错误。用户如需试用服务,请在控制台创建自己的key。
curl --location 'https://api.shipxy.com/apicall/v3/SearchshipApproach?key=1F6D701272402D1E7D8D316CCE519123&mmsi=477172700&start_time=1749956794&end_time=1751446602&approach_zone='
{ "status": 0, "msg": "", "data": { "ship_data": { "mmsi": 477172700, "imo": 9783538, "call_sign": "VRRV4", "ship_name": "COSCO SHIPPING LIBRA", "ship_type": 70 }, "approach_data": [ { "approach_ship": { "mmsi": 477947300, "imo": 9493107, "call_sign": "VRKQ6", "ship_name": "CSB HERALD", "ship_type": 70 }, "approach_event": { "approach_time": "2025-06-30 13:07:46", "approach_time_utc": 1751260066, "separation_time": "2025-06-30 13:13:49", "separation_time_utc": 1751260429, "duration": 6.05, "approach_zone": 3, "lat": 31.372347, "lng": 121.689075, "port_code": "", "position": "上海市-上海市-崇明区", "sog": 1.75 } } ] } }