根据IP获取信息
请求方式:
get
返回格式:
json
请求地址:
http://api.ittu.cn/ip.php
请求示例:
http://api.ittu.cn/ip.php?ip=220.181.38.149
- 使 用 说 明 -
传入ip返回ip信息
请 求 参 数
参数
类型
请求参数参考值
是否必须
说明
ip
String
220.181.38.149
是
传入要查询的IP地址
返 回 参 数
返回参数
类型
参数说明
扩展说明
continent
String
洲
洲名
country
String
国家
国家名字
timezone
String
时区
时区
prov
String
省份
省份名称
Json 返 回 示 例
{"code":"Success","data":{"continent":"亚洲","country":"中国","zipcode":"100000","timezone":"UTC+8","accuracy":"城市","owner":"中国电信","isp":"中国电信","source":"数据挖掘","areacode":"CN","adcode":"110000","asnumber":"23724","lat":"","lng":"","radius":"105.2321","prov":"北京市","city":"","district":""},"charge":false,"msg":"查询成功","ip":"220.181.38.149","coordsys":"WGS84"}