**注:**例子中的 1F6D701272402D1E7D8D316CCE519123 是船讯网的官方 key,已经绑定域名 api.shipxy.com,用户无权也无法使用该 key 获取数据,使用该 key 会返回 status 14 的状态码,提示来源域错误。用户如需试用服务,请在控制台创建自己的key。
curl --location 'https://api.shipxy.com/apicall/v3/SearchPort?key=1F6D701272402D1E7D8D316CCE519123&keywords=qingdao&max=undefined'
{ "status": 0, "msg": "", "total": 1, "data": [ { "port_code": "CNQDG", "port_name": "Qingdao", "port_cnname": "青岛", "port_time_zone": "+8", "port_country_name": "China", "port_country_cnname": "中国", "port_country_code": "CN" } ] }