**注:**例子中的 1F6D701272402D1E7D8D316CCE519123 是船讯网的官方 key,已经绑定域名 api.shipxy.com,用户无权也无法使用该 key 获取数据,使用该 key 会返回 status 14 的状态码,提示来源域错误。用户如需试用服务,请在控制台创建自己的key。
curl --location 'https://api.shipxy.com/apicall/v3/GetAnchorShips?key=1F6D701272402D1E7D8D316CCE519123&port_code=CNSHG&ship_type=undefined&search_type=undefined'
{ "status": 0, "msg": "", "total": 241, "data": [ { "mmsi": 413611860, "imo": 1400704, "call_sign": "", "ship_name": "QIANKUN02", "ship_type": 79, "length": 102, "width": 18, "left": 9, "trail": 90, "draught": 4.1, "arrival_time": "2025-07-23 10:20:38", "arrival_time_utc": "1753237238", "stay_time": 34.6 } ] }