1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| http://ip-api.com/json/24.48.0.1
响应信息: { "query": "24.48.0.1", // 查询的ip "status": "success", // 查询状态 "country": "Canada", // 所属国家 "countryCode": "CA", // 国家代码 "region": "QC", // 地区代码 "regionName": "Quebec", // 地区 "city": "Montreal", // 城市 "zip": "H1L", // 邮政编码 "lat": 45.6026, // 经度 "lon": -73.5167, // 纬度 "timezone": "America/Toronto", // 时区 "isp": "Le Groupe Videotron Ltee", // 互联网服务提供商(简称) "org": "Videotron Ltee", // 互联网服务提供商(全称) "as": "AS5769 Videotron Ltee" // }
更完整的请求: http://ip-api.com/json/112.8.54.253?fields=66846719&lang=zh-CN 响应: { "status": "success", // 查询状态 "continent": "亚洲", // 所属大陆 "continentCode": "AS", // 大陆代码(双字母) "country": "中国", // 所属国家 "countryCode": "CN", // 国家代码 "region": "SD", // 地区/省份代码 "regionName": "山东", // 地区/省份 "city": "济南市", // 城市 "district": "", // 城市的分区 "zip": "250000", // 邮政编码 "lat": 36.6683, // 经度 "lon": 117.021, // 纬度 "timezone": "Asia/Shanghai", // 时区 "offset": 28800, // 时区 UTC DST 偏移量(秒) "currency": "CNY", // 本国货币 "isp": "China Mobile", // ISP 互联网服务提供商(简称) "org": "China Mobile Communications Corporation", // 互联网服务提供商组织(全称) "as": "AS24444 Shandong Mobile Communication Company Limited", // 互联网服务提供商编号和组织 "asname": "CMNET-V4shandong-AS-AP", // AS 名称 "reverse": "", // IP 的反向 DNS(可以延迟响应) "mobile": true, // 移动(蜂窝)连接 "proxy": false, // 代理、VPN 或 Tor 出口地址 "hosting": false, // 托管、托管或数据中心 "query": "112.8.54.253" // 用于查询的 IP }
|