IP地址库查询接口,根据IP地址或经纬度查询归属地/州/国家/省市区/经纬度及网络运营商ISP等信息。不传任何参数的情况下,默认为请求来源ip的相关信息。
接口地址: https://whyta.cn/api/tx/ipquery
返回格式: JSON
请求方式: GET
请求示例:https://whyta.cn/api/tx/ipquery?key=你的APIKEY&ip=192.70.2.1
接口备注:4 
| 参数 | 类型 | 必填 | 示例值 | 说明 |
|---|---|---|---|---|
| key | string | 是 | 你的APIKEY | |
| ip | string | 是 | 183.192.70.211 | IP地址 |
| longitude | string | 否 | 121.472644 | 位置经度 |
| latitude | string | 否 | 31.231706 | 位置纬度 |
| 参数 | 类型 | 示例 | 说明 |
|---|---|---|---|
| continent | string | 亚洲 | 大陆州 |
| country | string | 中国 | 国家 |
| province | string | 上海 | 省级行政区 |
| city | string | 上海 | 城市 |
| district | string | 黄埔 | 地区 |
| isp | string | 移动 | 网络运营商 |
| areacode | string | 310100 | 地区编码 |
| countrycode | string | CN | 国家代码 |
| countryenglish | string | China | 国家英文名称 |
| longitude | string | 121.472644 | 经度 |
| latitude | string | 31.231706 | 纬度 |
{
"code": 200,
"msg": "success",
"result": {
"ip": "183.192.70.211",
"continent": "亚洲",
"country": "中国",
"province": "上海",
"city": "上海",
"district": "徐汇区",
"isp": "移动",
"areacode": "310100",
"countrycode": "CN",
"countryenglish": "China",
"longitude": "121.472644",
"latitude": "31.231706"
}
}