查IP

在线
查询IP
GET 返回格式 JSON
请求参数
以下是该接口支持的所有请求参数
参数名类型必填说明
ip string 必填 223.96.56.234
响应示例
JSON 成功响应
{ "ret": 200, "data": { "ip": "223.96.56.234", "country": "中国", "country_code": "cn", "prov": "山东", "city": "菏泽", "city_code": "heze", "city_short_code": "hz", "area": "", "post_code": "274300", "area_code": "0530", "isp": "中国移动", "lng": "116.09", "lat": "34.80", "long_ip": 3747625194, "big_area": "华东" }, "qt": 0.001 }
JSON 失败响应
{ "ret": 200, "data": { "ip": "127.0.0.1", "country": "保留", "country_code": "", "prov": "", "city": "", "city_code": "", "city_short_code": "", "area": "", "post_code": "", "area_code": "", "isp": "回环地址", "lng": "", "lat": "", "long_ip": 2130706433, "big_area": "" }, "qt": 0.001 }
错误码说明
常见错误码及处理建议
错误码说明处理建议
200请求成功正常处理返回数据
400参数错误检查必填参数是否完整
401未授权检查API密钥是否正确
404接口不存在检查请求路径是否正确
500服务器错误稍后重试或联系管理员
点击加载