WB
WB
文章目录
  1. 1. 接口
    1. 1.1. 查询
      1. 1.1.1. 查询ip
        1. 1.1.1.1. 纯真接口
        2. 1.1.1.2. IP2location接口
      2. 1.1.2. GeoIP2接口

(no title)

接口

查询

查询ip

纯真接口

  • 接口地址:https://ip.rss.ink/v1/qqwry
  • 请求方式:GET
  • 请求参数:ip,若不填写此参数,则获取当前客户端IP
  • 举例:https://ip.rss.ink/v1/qqwry?ip=114.114.114.114

请求成功响应内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"code": 200,
"msg": "cache",
"data": {
"ip": "114.114.114.114",
"country": "中国",
"province": "江苏",
"city": "南京市",
"county": "",
"area": "中国江苏南京市 南京信风网络科技有限公司GreatbitDNS服务器",
"isp": ""
}
}

IP2location接口

  • 接口地址:https://ip.rss.ink/v1/ip2location
  • 请求方式:GET
  • 请求参数:ip,若不填写此参数,则获取当前客户端IP
  • 举例:https://ip.rss.ink/v1/ip2location?ip=114.114.114.114

请求成功响应内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"code": 200,
"msg": "cache",
"data": {
"ipAddress": "114.114.114.114",
"latitude": 27.1089,
"longitude": 116.213158,
"countryName": "China",
"timeZone": "+08:00",
"zipCode": "344411",
"cityName": "Xinfeng",
"regionName": "Jiangxi"
}
}

GeoIP2接口

  • 接口地址:https://ip.rss.ink/v1/geoip2
  • 请求方式:GET
  • 请求参数:ip,若不填写此参数,则获取当前客户端IP
  • 举例:https://ip.rss.ink/v1/geoip2?ip=111.8.36.181

请求成功响应内容:

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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"code": 200,
"msg": "cache",
"data": {
"city": {
"geoname_id": 1815577,
"names": {
"de": "Changsha",
"en": "Changsha",
"es": "Changsha",
"fr": "Changsha",
"ja": "長沙市",
"pt-BR": "Changsha",
"ru": "Чанша",
"zh-CN": "长沙"
}
},
"continent": {
"code": "AS",
"geoname_id": 6255147,
"names": {
"de": "Asien",
"en": "Asia",
"es": "Asia",
"fr": "Asie",
"ja": "アジア",
"pt-BR": "Ásia",
"ru": "Азия",
"zh-CN": "亚洲"
}
},
"country": {
"geoname_id": 1814991,
"iso_code": "CN",
"names": {
"de": "China",
"en": "China",
"es": "China",
"fr": "Chine",
"ja": "中国",
"pt-BR": "China",
"ru": "Китай",
"zh-CN": "中国"
}
},
"location": {
"accuracy_radius": 500,
"latitude": 28.2014,
"longitude": 112.9611,
"time_zone": "Asia\/Shanghai"
},
"registered_country": {
"geoname_id": 1814991,
"iso_code": "CN",
"names": {
"de": "China",
"en": "China",
"es": "China",
"fr": "Chine",
"ja": "中国",
"pt-BR": "China",
"ru": "Китай",
"zh-CN": "中国"
}
},
"subdivisions": [
{
"geoname_id": 1806691,
"iso_code": "HN",
"names": {
"en": "Hunan",
"fr": "Province de Hunan",
"zh-CN": "湖南"
}
}
],
"traits": {
"ip_address": "111.8.36.181",
"prefix_len": 17
}
}
}
支持一下
扫一扫,支持一下
  • 微信扫一扫
  • 支付宝扫一扫