### **请求方法** HTTP/HTTPS GET ### **接口地址** http://api.tianapi.com/txapi/ipquery/ ### **使用帮助** 返回IP归属/州/国家/省市区/经纬度及网络运营商ISP等信息[查看演示](https://user.tianapi.com/ipquery.html) ### **调用参数** | 请求参数 | 类型 | 必填 | 参数位置 | 描述 | 备注说明 | | --- | --- | --- | --- | --- | --- | | key | string | 是 | urlParam | API密钥(请在个人中心获取) | 用户自己的key | | ip | string | 是 | urlParam | 返回IP归属地信息 | 此参数必须 | ### **返回示例** ~~~ { "code": 200, "msg": "success", "newslist": [ { "continent": "亚洲", "country": "中国", "province": "上海", "city": "上海", "district": "", "isp": "移动", "areacode": "310100", "countrycode": "CN", "countryenglish": "China", "longitude": "121.472644", "latitude": "31.231706\r" } ] } ~~~