**注:**例子中的 1F6D701272402D1E7D8D316CCE519123 是船讯网的官方 key,已经绑定域名 api.shipxy.com,用户无权也无法使用该 key 获取数据,使用该 key 会返回 status 14 的状态码,提示来源域错误。用户如需试用服务,请在控制台创建自己的key。
curl --location 'https://api.shipxy.com/apicall/v3/GetBerthShips?key=1F6D701272402D1E7D8D316CCE519123&port_code=CNSHG&ship_type=undefined&search_type=undefined'
{ "status": 0, "msg": "", "total": 713, "data": [ { "mmsi": 100900006, "imo": 0, "call_sign": "YYYY", "ship_name": "AISTESTSHIP", "ship_type": 70, "length": 50, "width": 6, "left": 5, "trail": 10, "draught": 0, "arrival_time": "2025-05-06 06:35:54", "arrival_time_utc": "1746484554", "stay_time": 2166.2 } ] }