响应示例中标注「需要定制」的字段需单独定制后才会返回,查看字段说明
https://ipapi.ipip.net/v2/query/118.28.8.8?token=TOKENhttps://ipapi.ipip.net/v2/query/current?token=TOKEN
{
"ret": "ok", // ret 值为 ok 时 返回 data 数据 为err时返回msg数据
"data": {
"ip": "123.121.162.225",
"info": {
"country_name": "中国",
"region_name": "北京",
"city_name": "北京",
"china_admin_code": "110000",
"longitude": 116.397459,
"latitude": 39.938884,
"timezone": "Asia/Shanghai",
"utc_offset": "UTC+8",
"continent_code": "AP",
"european_union": false,
"country_code": "CN",
"country_code3": "CHN",
"idd_code": "86",
"currency_code": "CNY",
"currency_name": "Yuan Renminbi",
"owner_domain": "", //需要定制
"isp_domain": "chinaunicom.com", //需要定制
"line": "联通", //需要定制
"usage_type": "动态IP", //需要定制
"district_info": { //需要定制
"district_name": "朝阳区",
"covering_radius": 15.2,
"china_admin_code": "110105",
"longitude": 116.48548,
"latitude": 39.9484
},
"idc": false, //需要定制
"base_station": false, //需要定制
"anycast": false, //需要定制
"route": "123.121.128.0/18", //需要定制
"asn_info": [{ //需要定制
"asn": 4808,
"registry": "apnic",
"country": "CN",
"net": "CHINA169-BJ",
"org": "China Unicom Beijing Province Network"
}],
"ip_geo": { //需要定制
"longitude": 116.409134,
"latitude": 40.04252,
"radius": 200,
"credibility": 99,
"aoi": {
"country_code": "CN",
"country": "中国",
"province": "北京",
"city": "北京",
"district": "朝阳区",
"china_code": "110105",
"aoi_type": "住宅小区",
"aoi_name": "华发颐园"
}
}
}
}
}
| 字段名 | 字段类型 | 字段定制 | 字段描述 |
|---|---|---|---|
country_name |
string | 必须 | 国家名称 |
region_name |
string | 必须 | 省份/州 名称 |
city_name |
string | 必须 | 城市名称 |
china_admin_code |
string | 必须 | 中国行政区划代码 |
longitude |
float | 必须 | 经度 |
latitude |
float | 必须 | 纬度 |
timezone |
string | 必须 | 时区ID |
utc_offset |
string | 必须 | 时区偏移 |
continent_code |
string | 必须 | 大洲代码 |
european_union |
boolean | 必须 | 是否欧盟成员 |
country_code |
string | 必须 | 国家代码二位 |
country_code3 |
string | 必须 | 国家代码三位 |
idd_code |
string | 必须 | 国际电话代码 |
currency_code |
string | 必须 | 货币代码 |
currency_name |
string | 必须 | 货币名称 |
owner_domain |
string | 定制 | 所有者域名 |
isp_domain |
string | 定制 | 运营商域名;如:chinaunicom.com |
line |
string | 定制 | 线路(仅国内);如:电信/联通/移动 |
route |
string | 定制 | 路由段 |
usage_type |
string | 定制 | 应用场景 |
district_info |
object | 定制 |
"district_name": "朝阳区",
"covering_radius": 15.2,
"china_admin_code": "110105",
"longitude": 116.48548,
"latitude": 39.9484
|
idc |
string | 定制 | 数据中心标记 |
base_station |
string | 定制 | 移动网络标记 |
anycast |
string | 定制 | 任播 |
© 2013 - 2026 北京天特信科技有限公司 所有权利保留
本网站 SSL 证书由 TRUSTASIA 提供 本网站安全防护服务由 上海云盾 提供 京ICP备15064887号-6 京公网安备 11010502045129号