├── LICENSE
└── README.md
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 说明
2 |
3 | 该存储库收集了各种免费的IP查询API,无需配置任何key直接可访问,使大家能够快速访问IP信息,如地理位置、ISP详细信息和网络类型。请根据自己的需求选择合适的API,持续更新中,欢迎star和pr
4 |
5 |
6 |
7 | ### API列表
8 |
9 | 1.可查询本机IP和通过IP查询信息
10 |
11 | [https://webapi-pc.meitu.com/common/ip_location](#address-1.1) **(已失效)**
12 |
13 | [https://www.ip.cn/api/index?ip=&type=0](#address-1.2) **(已失效)**
14 |
15 | [https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true](#address-1.3)
16 |
17 | [https://api.vore.top/api/IPdata?ip=](#address-1.4)
18 |
19 | [https://api.ip.sb/geoip/](#address-1.5)
20 |
21 | [https://api.ip2location.io/](#address-1.6)
22 |
23 | [https://realip.cc/](#address-1.7)
24 |
25 | [http://demo.ip-api.com/json/?lang=zh-CN](#address-1.8)
26 |
27 | [https://ip-api.io/json](#address-1.9)
28 |
29 | [https://ipapi.co/json/](#address-1.10)
30 |
31 | [https://api.ipapi.is](#address-1.11)
32 |
33 | [https://api.ip.sb/geoip](#address-1.12)
34 |
35 | [https://api.qjqq.cn/api/Local](#address-1.13) **(已失效)**
36 |
37 | [http://ip-api.com/json/?lang=zh-CN](#address-1.14)
38 |
39 | [https://searchplugin.csdn.net/api/v1/ip/get](#address-1.15) **(已失效)**
40 |
41 | [https://api.db-ip.com/v2/free/self](#address-1.16)
42 |
43 | [https://freeipapi.com/api/json](#address-1.17)
44 |
45 | [https://ipwhois.app/json/?format=json](#address-1.18)
46 |
47 | 2.只可查询本机(访客)IP信息
48 |
49 | [https://ip.useragentinfo.com/json](#address-2.1) **(已失效)**
50 |
51 | [http://httpbin.org/ip](#address-2.2)
52 |
53 | [https://cdid.c-ctrip.com/model-poc2/h](#address-2.3)
54 |
55 | [https://vv.video.qq.com/checktime?otype=ojson](#address-2.4)
56 |
57 | [https://api.uomg.com/api/visitor.info?skey=1](#address-2.5)
58 |
59 | [https://test.ipw.cn/api/ip/myip?json](#address-2.6)
60 |
61 | [https://api.ipify.org](#address-2.7)
62 |
63 | [https://ipv4.my.ipinfo.app/api/ipDetails.php](#address-2.8)
64 |
65 | [https://g3.letv.com/r?format=1](#address-2.9)
66 |
67 | [https://iplark.com/ipstack](#address-2.10)
68 |
69 | [https://qifu-api.baidubce.com/ip/local/geo/v1/district](#address-2.11)
70 |
71 | [https://r.inews.qq.com/api/ip2city](#address-2.12)
72 |
73 | [https://myip.ipip.net/json](#address-2.13)
74 |
75 | [https://ifconfig.me/all.json](#address-2.14)
76 |
77 | [https://geolocation-db.com/json](#address-2.15)
78 |
79 | [https://api.myip.com](#address-2.16)
80 |
81 | [https://ipapi.co/json](#address-2.17)
82 |
83 | [https://wtfismyip.com/json](#address-2.18)
84 |
85 | [https://api.ipbase.com/v1/json](#address-2.19)
86 |
87 | [https://api.ipquery.io/?format=json](#address-2.20)
88 |
89 | [https://1.1.1.1/cdn-cgi/trace](#address-2.21)
90 |
91 | [https://check.torproject.org/api/ip](#address-2.22)
92 |
93 | [https://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo](#address-2.23)
94 |
95 | [https://i.news.qq.com/api/ip2city](#address-2.24)
96 |
97 | [https://ipv4.gdt.qq.com/get_client_ip](#address-2.25)
98 |
99 | 3.只可通过IP查询信息
100 |
101 | [http://opendata.baidu.com/api.php?co=&resource_id=6006&oe=utf8&query=](#address-3.1)
102 |
103 | [https://get.geojs.io/v1/ip/geo/121.8.215.106.json](#address-3.2)
104 |
105 | [https://ipinfo.io/widget/demo/121.8.215.106](#address-3.3)
106 |
107 | [https://ipapi.com/ip_api.php?ip=121.8.215.106](#address-3.4) **(已失效)**
108 |
109 | [https://db-ip.com/demo/home.php?s=121.8.215.106](#address-3.5)
110 |
111 | [https://mesh.if.iqiyi.com/aid/ip/info?version=1.1.1&ip=121.8.215.106](#address-3.6) **(已失效)**
112 |
113 | 4.[根据地区反查IP信息](#address-4.1)
114 |
115 | 5.[只需要获取IP](#address-5.1)
116 |
117 |
118 |
119 |
120 | ### 1.查询本机IP或通过IP反查
121 |
122 | **地址①**:https://webapi-pc.meitu.com/common/ip_location?ip= **(已失效)**
123 |
124 | 请求类型:GET
125 |
126 | 请求参数:ip(可选)
127 |
128 | CORS跨域支持:否
129 |
130 | 请求示例:
131 |
132 | ```
133 | # 查询本机ip
134 | https://webapi-pc.meitu.com/common/ip_location
135 |
136 | # 通过ip查询信息
137 | https://webapi-pc.meitu.com/common/ip_location?ip=121.8.215.106
138 | ```
139 |
140 | 示例结果:
141 |
142 | ```
143 | {
144 | "reqid": "40b7cf49-ad3f-4184-acd3-9f5a574dc7c4",
145 | "code": 0,
146 | "data": {
147 | "121.8.215.106": {
148 | "area_code": "86",
149 | "city": "广州市",
150 | "city_id": 160063402,
151 | "continent": "亚洲",
152 | "continent_code": "AP",
153 | "country_id": 100000,
154 | "isp": "电信",
155 | "latitude": 23.3283,
156 | "longitude": 113.75837,
157 | "nation": "中国",
158 | "nation_code": "CN",
159 | "province": "广东",
160 | "province_id": 440000,
161 | "subdivision_1_iso_code": "*",
162 | "subdivision_1_name": "广东",
163 | "subdivision_2_iso_code": "*",
164 | "subdivision_2_name": "广州市",
165 | "time_zone": "UTC+8"
166 | }
167 | }
168 | }
169 | ```
170 |
171 |
172 |
173 | **地址②**:https://www.ip.cn/api/index?ip=&type=0 **(已失效)**
174 |
175 | 请求类型:GET
176 |
177 | 请求参数:ip(可选)、type
178 |
179 | CORS跨域支持:否
180 |
181 | 请求示例:
182 |
183 | ```
184 | # 查询本机ip(type=0)
185 | https://www.ip.cn/api/index?ip=&type=0
186 |
187 | # 通过ip查询信息(type=1)
188 | https://www.ip.cn/api/index?ip=121.8.215.106&type=1
189 | ```
190 |
191 | > 对于国外ip的位置信息不太准确
192 |
193 | 示例结果:
194 |
195 | ```
196 | {
197 | "rs": 1,
198 | "code": 0,
199 | "address": "中国 广东省 广州市 电信",
200 | "ip": "121.8.215.106",
201 | "isDomain": 0
202 | }
203 | ```
204 |
205 |
206 |
207 | **地址③**:https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true
208 |
209 | 请求类型:GET
210 |
211 | 请求参数(可选):ip、json
212 |
213 | CORS跨域支持:否
214 |
215 | 请求示例:
216 |
217 | ```
218 | # 查询本机ip
219 | https://whois.pconline.com.cn/ipJson.jsp?ip=&json=true
220 |
221 | # 通过ip查询信息
222 | https://whois.pconline.com.cn/ipJson.jsp?ip=121.8.215.106&json=true
223 | ```
224 |
225 | > 对于国外ip的位置信息不太准确
226 |
227 | 示例结果:
228 |
229 | ```
230 | {
231 | "ip": "121.8.215.106",
232 | "pro": "广东省",
233 | "proCode": "440000",
234 | "city": "广州市",
235 | "cityCode": "440100",
236 | "region": "",
237 | "regionCode": "0",
238 | "addr": "广东省广州市 电信",
239 | "regionNames": "",
240 | "err": ""
241 | }
242 | ```
243 |
244 |
245 |
246 | **地址④**:https://api.vore.top/api/IPdata?ip=
247 |
248 | 请求类型:GET
249 |
250 | 请求参数(可选):ip
251 |
252 | CORS跨域支持:是
253 |
254 | 请求示例:
255 |
256 | ```
257 | # 查询本机ip
258 | https://api.vore.top/api/IPdata?ip=
259 |
260 | # 通过ip查询信息
261 | https://api.vore.top/api/IPdata?ip=121.8.215.106
262 | ```
263 |
264 | 示例结果:
265 |
266 | ```
267 | {
268 | "code": 200,
269 | "msg": "SUCCESS",
270 | "ipinfo": {
271 | "type": "ipv4",
272 | "text": "121.8.215.106",
273 | "cnip": true
274 | },
275 | "ipdata": {
276 | "info1": "广东省",
277 | "info2": "广州市",
278 | "info3": "增城",
279 | "isp": "电信"
280 | },
281 | "adcode": {
282 | "o": "广东省广州市增城 - 电信",
283 | "p": "广东",
284 | "c": "广州",
285 | "n": "广东-广州",
286 | "r": "广东-广州",
287 | "a": "440100",
288 | "i": true
289 | },
290 | "tips": "接口由VORE-API(https:\/\/api.vore.top\/)免费提供",
291 | "time": 1708576755
292 | }
293 | ```
294 |
295 |
296 |
297 | **地址⑤**:https://api.ip.sb/geoip/
298 |
299 | 请求类型:GET
300 |
301 | 请求参数(可选):路径参数(ip)
302 |
303 | CORS跨域支持:是
304 |
305 | 请求示例:
306 |
307 | ```
308 | # 查询本机ip
309 | https://api.ip.sb/geoip/
310 |
311 | # 通过ip查询信息
312 | https://api.ip.sb/geoip/121.8.215.106
313 | ```
314 |
315 | 示例结果:
316 |
317 | ```
318 | {
319 | "organization": "China Telecom",
320 | "longitude": 113.2539,
321 | "city": "Guangzhou",
322 | "timezone": "Asia/Shanghai",
323 | "isp": "China Telecom",
324 | "offset": 28800,
325 | "region": "Guangdong",
326 | "asn": 4134,
327 | "asn_organization": "Chinanet",
328 | "country": "China",
329 | "ip": "121.8.215.106",
330 | "latitude": 23.1181,
331 | "continent_code": "AS",
332 | "country_code": "CN",
333 | "region_code": "GD"
334 | }
335 | ```
336 |
337 |
338 |
339 | **地址⑥**:https://api.ip2location.io/
340 |
341 | 请求类型:GET
342 |
343 | 请求参数(可选):路径参数(ip)
344 |
345 | CORS跨域支持:否
346 |
347 | 请求示例:
348 |
349 | ```
350 | # 查询本机ip
351 | https://api.ip2location.io/
352 |
353 | # 通过ip查询信息
354 | https://api.ip2location.io/?ip=121.8.215.106
355 | ```
356 |
357 | 示例结果:
358 |
359 | ```
360 | {
361 | "ip": "121.8.215.106",
362 | "country_code": "CN",
363 | "country_name": "China",
364 | "region_name": "Guangdong",
365 | "city_name": "Guangzhou",
366 | "latitude": 23.127361,
367 | "longitude": 113.26457,
368 | "zip_code": "510140",
369 | "time_zone": "+08:00",
370 | "asn": "4134",
371 | "as": "Asia Pacific Network Information Centre",
372 | "is_proxy": true,
373 | "message": "Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month."
374 | }
375 | ```
376 |
377 |
378 |
379 | **地址⑦**:https://realip.cc/
380 |
381 | 请求类型:GET
382 |
383 | 请求参数(可选):ip
384 |
385 | CORS跨域支持:否
386 |
387 | 请求示例:
388 |
389 | ```
390 | # 查询本机ip
391 |
392 | curl realip.cc
393 |
394 | https://realip.cc/
395 |
396 | https://realip.cc/simple # 只返回ip
397 |
398 | # 通过ip查询信息
399 | https://realip.cc/?ip=121.8.215.106
400 |
401 | ```
402 |
403 | 示例结果:
404 |
405 | ```
406 | {
407 | "ip": "103.143.161.60",
408 | "city": "Hong Kong",
409 | "province": null,
410 | "country": "Hong Kong",
411 | "continent": "Asia",
412 | "isp": "TWOWIN CO., LIMITED",
413 | "time_zone": "Asia/Hong_Kong",
414 | "latitude": 22.2842,
415 | "longitude": 114.1759,
416 | "postal_code": null,
417 | "iso_code": "HK",
418 | "network": "103.143.160.0/23",
419 | "notice": "api文档在/docs路径下,调用并发数是有限制的 ©2021-09-27->now",
420 | "provider": "Powered by Bboysoul",
421 | "blog": "https://www.bboy.app",
422 | "tg_group": "https://t.me/bboyapp",
423 | "data_updatetime": 202403010,
424 | "count": 10345364
425 | }
426 | ```
427 |
428 |
429 |
430 | **地址⑧**:http://demo.ip-api.com/json/?fields=66842623&lang=zh-CN
431 |
432 | 请求类型:GET
433 |
434 | 请求参数(可选):路径参数(ip)、lang ...
435 |
436 | CORS跨域支持:否
437 |
438 | 请求示例:
439 |
440 | ```
441 | # lang optional value
442 | en:English (default) 英语(默认)
443 | zh-CN:中国 (Chinese)
444 | de:Deutsch (German) Deutsch (德语)
445 | es:Español (Spanish) Español (西班牙语)
446 | fr:Français (French) Français (法语)
447 | ja:日本語 (Japanese) 日本语( Japanese)
448 | ru:Русский (Russian) Русский (俄语)
449 |
450 | # 注意是http !!!
451 |
452 | # 查询本机ip
453 | http://demo.ip-api.com/json/?fields=66842623&lang=zh-CN
454 |
455 | # 通过ip查询信息
456 | http://demo.ip-api.com/json/121.8.215.106?fields=66842623&lang=zh-CN
457 |
458 | API docs:
459 | https://ip-api.com/docs/api:json
460 | ```
461 |
462 | 示例结果:
463 |
464 | ```
465 | {
466 | "status": "success",
467 | "continent": "亚洲",
468 | "continentCode": "AS",
469 | "country": "中国",
470 | "countryCode": "CN",
471 | "region": "GD",
472 | "regionName": "广东",
473 | "city": "广州市",
474 | "district": "",
475 | "zip": "",
476 | "lat": 23.1181,
477 | "lon": 113.2539,
478 | "timezone": "Asia/Shanghai",
479 | "offset": 28800,
480 | "currency": "CNY",
481 | "isp": "Chinanet",
482 | "org": "Chinanet GD",
483 | "as": "AS4134 CHINANET-BACKBONE",
484 | "asname": "CHINANET-BACKBONE",
485 | "mobile": false,
486 | "proxy": true,
487 | "hosting": false,
488 | "query": "121.8.215.106"
489 | }
490 | ```
491 |
492 |
493 |
494 | **地址⑨**:https://ip-api.io/json
495 |
496 | 请求类型:GET
497 |
498 | 请求参数(可选):ip
499 |
500 | CORS跨域支持:是
501 |
502 | 请求示例:
503 |
504 | ```
505 | # 查询本机ip
506 | https://ip-api.io/json
507 |
508 | # 通过ip查询信息
509 | https://ip-api.io/json?ip=121.8.215.106
510 | ```
511 |
512 | 示例结果:
513 |
514 | ```
515 | {
516 | "callingCode": "86",
517 | "city": "Guangzhou",
518 | "countryCapital": "Beijing",
519 | "country_code": "CN",
520 | "country_name": "China",
521 | "currency": "CNY",
522 | "currencySymbol": "¥",
523 | "emojiFlag": "🇨🇳",
524 | "flagUrl": "https://ip-api.io/images/flags/cn.svg",
525 | "ip": "121.8.215.106",
526 | "is_in_european_union": false,
527 | "latitude": 23.1181,
528 | "longitude": 113.2539,
529 | "metro_code": 0,
530 | "organisation": "Chinanet",
531 | "region_code": "GD",
532 | "region_name": "Guangdong",
533 | "suspiciousFactors": {
534 | "isProxy": false,
535 | "isSpam": false,
536 | "isSuspicious": false,
537 | "isTorNode": false
538 | },
539 | "time_zone": "Asia/Shanghai",
540 | "zip_code": ""
541 | }
542 | ```
543 |
544 |
545 |
546 | **地址⑩**:https://ipapi.co/json
547 |
548 | 请求类型:GET
549 |
550 | 请求参数(可选):路径参数(ip)
551 |
552 | CORS跨域支持:是
553 |
554 | 请求示例:
555 |
556 | ```
557 | # 查询本机ip
558 | https://ipapi.co/json/
559 |
560 | # 通过ip查询信息
561 | https://ipapi.co/121.8.215.106/json/
562 | ```
563 |
564 | 示例结果:
565 |
566 | ```
567 | {
568 | "ip": "121.8.215.106",
569 | "network": "121.8.128.0/17",
570 | "version": "IPv4",
571 | "city": "Guangzhou",
572 | "region": "Guangdong",
573 | "region_code": "GD",
574 | "country": "CN",
575 | "country_name": "China",
576 | "country_code": "CN",
577 | "country_code_iso3": "CHN",
578 | "country_capital": "Beijing",
579 | "country_tld": ".cn",
580 | "continent_code": "AS",
581 | "in_eu": false,
582 | "postal": null,
583 | "latitude": 23.1181,
584 | "longitude": 113.2539,
585 | "timezone": "Asia/Shanghai",
586 | "utc_offset": "+0800",
587 | "country_calling_code": "+86",
588 | "currency": "CNY",
589 | "currency_name": "Yuan Renminbi",
590 | "languages": "zh-CN,yue,wuu,dta,ug,za",
591 | "country_area": 9596960,
592 | "country_population": 1411778724,
593 | "asn": "AS4134",
594 | "org": "Chinanet"
595 | }
596 | ```
597 |
598 |
599 |
600 | **地址11**:https://ipapi.co/json
601 |
602 | 请求类型:GET
603 |
604 | 请求参数(可选):ip
605 |
606 | CORS跨域支持:是
607 |
608 | 请求示例:
609 |
610 | ```
611 | # 查询本机ip
612 | https://api.ipapi.is
613 |
614 | # 通过ip查询信息
615 | https://api.ipapi.is/?ip=121.8.215.106
616 | ```
617 |
618 | 示例结果:
619 |
620 | ```
621 | {
622 | "ip": "121.8.215.106",
623 | "rir": "APNIC",
624 | "is_bogon": false,
625 | "is_mobile": false,
626 | "is_crawler": false,
627 | "is_datacenter": false,
628 | "is_tor": false,
629 | "is_proxy": true,
630 | "is_vpn": false,
631 | "is_abuser": true,
632 | "company": {
633 | "name": "CHINANET Guangdong province network",
634 | "abuser_score": "0.0003 (Very Low)",
635 | "domain": "chinatelecom.cn",
636 | "type": "isp",
637 | "network": "121.8.0.0 - 121.15.255.255",
638 | "whois": "https://api.ipapi.is/?whois=121.8.0.0"
639 | },
640 | "asn": {
641 | "asn": 4134,
642 | "abuser_score": "0.0013 (Low)",
643 | "route": "121.8.0.0/13",
644 | "descr": "CHINANET-BACKBONE No.31,Jin-rong Street, CN",
645 | "country": "cn",
646 | "active": true,
647 | "org": "No.31,Jin-rong Street",
648 | "domain": "chinatelecom.cn",
649 | "abuse": "anti-spam@chinatelecom.cn",
650 | "type": "business",
651 | "updated": "2021-06-15",
652 | "rir": "APNIC",
653 | "whois": "https://api.ipapi.is/?whois=AS4134"
654 | },
655 | "location": {
656 | "continent": "AS",
657 | "country": "China",
658 | "country_code": "CN",
659 | "state": "Guangdong",
660 | "city": "Guangzhou",
661 | "latitude": 23.117,
662 | "longitude": 113.25,
663 | "zip": "510800",
664 | "timezone": "Asia/Shanghai",
665 | "local_time": "2024-03-16T13:50:41+08:00",
666 | "local_time_unix": 1710568241,
667 | "is_dst": false
668 | },
669 | "elapsed_ms": 0.81
670 | }
671 | ```
672 |
673 |
674 |
675 | **地址12**:https://api.ip.sb/geoip
676 |
677 | 请求类型:GET
678 |
679 | 请求参数(可选):路径参数(ip)
680 |
681 | CORS跨域支持:是
682 |
683 | 请求示例:
684 |
685 | ```
686 | # 查询本机ip
687 | https://api.ip.sb/geoip
688 |
689 | # 通过ip查询信息
690 | https://api.ip.sb/geoip/121.8.215.106
691 | ```
692 |
693 | 示例结果:
694 |
695 | ```
696 | {
697 | "organization": "China Telecom",
698 | "longitude": 113.2539,
699 | "city": "Guangzhou",
700 | "timezone": "Asia/Shanghai",
701 | "isp": "China Telecom",
702 | "offset": 28800,
703 | "region": "Guangdong",
704 | "asn": 4134,
705 | "asn_organization": "Chinanet",
706 | "country": "China",
707 | "ip": "121.8.215.106",
708 | "latitude": 23.1181,
709 | "continent_code": "AS",
710 | "country_code": "CN",
711 | "region_code": "GD"
712 | }
713 | ```
714 |
715 |
716 |
717 | **地址13**:https://api.qjqq.cn/api/Local **(已失效)**
718 |
719 | 请求类型:GET
720 |
721 | 请求参数(可选):ip
722 |
723 | CORS跨域支持:是
724 |
725 | 请求示例:
726 |
727 | ```
728 | # 查询本机ip
729 | https://api.qjqq.cn/api/Local
730 |
731 | # 通过ip查询信息
732 | https://api.qjqq.cn/api/district?ip=121.8.215.106
733 | ```
734 |
735 | 示例结果:
736 |
737 | ```
738 | {
739 | "code": 200,
740 | "data": {
741 | "ip": "222.79.44.74",
742 | "continent": "亚洲",
743 | "country_english": "",
744 | "country": "中国",
745 | "prov": "福建",
746 | "city": "福州",
747 | "district": "",
748 | "isp": "电信",
749 | "lat": "26.075302",
750 | "lng": "119.306239",
751 | "area_code": "350100",
752 | "city_code": "0591",
753 | "elevation": "29",
754 | "time_zone": "Asia/Shanghai",
755 | "weather_station": "CHXX0031",
756 | "zip_code": "350000"
757 | },
758 | "msg": "success",
759 | "ip": "222.79.44.74",
760 | "time": "2024-04-07 18:38:08",
761 | "source": "青桔API:api.qjqq.cn"
762 | }
763 | ```
764 |
765 |
766 |
767 | **地址14**:http://ip-api.com/json/?lang=zh-CN
768 |
769 | 请求类型:GET
770 |
771 | 请求参数(可选):路径参数(ip)
772 |
773 | CORS跨域支持:否
774 |
775 | 请求示例:
776 |
777 | ```
778 | # 查询本机ip
779 | http://ip-api.com/json/?lang=zh-CN
780 |
781 | # 通过ip查询信息
782 | http://ip-api.com/json/121.8.215.106?lang=zh-CN
783 | ```
784 |
785 | 示例结果:
786 |
787 | ```
788 | {
789 | "status": "success",
790 | "country": "中国",
791 | "countryCode": "CN",
792 | "region": "GD",
793 | "regionName": "广东",
794 | "city": "广州市",
795 | "zip": "",
796 | "lat": 23.1181,
797 | "lon": 113.2539,
798 | "timezone": "Asia/Shanghai",
799 | "isp": "Chinanet",
800 | "org": "Chinanet GD",
801 | "as": "AS4134 CHINANET-BACKBONE",
802 | "query": "121.8.215.106"
803 | }
804 | ```
805 |
806 |
807 |
808 | **地址15**:https://searchplugin.csdn.net/api/v1/ip/get **(已失效)**
809 |
810 | 请求类型:GET
811 |
812 | 请求参数(可选):ip
813 |
814 | CORS跨域支持:否
815 |
816 | 请求示例:
817 |
818 | ```
819 | # 查询本机ip
820 | https://searchplugin.csdn.net/api/v1/ip/get?ip=
821 |
822 | # 通过ip查询信息
823 | https://searchplugin.csdn.net/api/v1/ip/get?ip=121.8.215.106
824 | ```
825 |
826 | 示例结果:
827 |
828 | ```
829 | {
830 | "code": 200,
831 | "msg": "success",
832 | "data": {
833 | "address": "中国 福建 福州 电信",
834 | "ip": "222.79.44.201"
835 | }
836 | }
837 | ```
838 |
839 |
840 |
841 | **地址16**:https://api.db-ip.com/v2/free/self
842 |
843 | 请求类型:GET
844 |
845 | 请求参数(可选):ip
846 |
847 | CORS跨域支持:否
848 |
849 | 请求示例:
850 |
851 | ```
852 | # 查询本机ip
853 | https://api.db-ip.com/v2/free/self
854 |
855 | # 通过ip查询信息
856 | https://api.db-ip.com/v2/free/121.8.215.106
857 | ```
858 |
859 | 示例结果:
860 |
861 | ```
862 | {
863 | "ipAddress": "121.8.215.106",
864 | "continentCode": "AS",
865 | "continentName": "Asia",
866 | "countryCode": "CN",
867 | "countryName": "China",
868 | "stateProv": "Guangdong",
869 | "city": "Guangzhou"
870 | }
871 | ```
872 |
873 |
874 |
875 | **地址17**:https://freeipapi.com/api/json
876 |
877 | 请求类型:GET
878 |
879 | 请求参数(可选):ip
880 |
881 | CORS跨域支持:是
882 |
883 | 请求示例:
884 |
885 | ```
886 | # 查询本机ip
887 | https://freeipapi.com/api/json
888 |
889 | # 通过ip查询信息
890 | https://freeipapi.com/api/json/121.8.215.106
891 | ```
892 |
893 | 示例结果:
894 |
895 | ```
896 | {
897 | "ipVersion": 4,
898 | "ipAddress": "121.8.215.106",
899 | "latitude": 23.127361,
900 | "longitude": 113.264572,
901 | "countryName": "China",
902 | "countryCode": "CN",
903 | "timeZone": "+08:00",
904 | "zipCode": "510140",
905 | "cityName": "Guangzhou",
906 | "regionName": "Guangdong",
907 | "isProxy": true,
908 | "continent": "Asia",
909 | "continentCode": "AS",
910 | "currency": {
911 | "code": "CNY",
912 | "name": "Yuan Renminbi"
913 | },
914 | "language": "Mandarin",
915 | "timeZones": [
916 | "Asia/Shanghai",
917 | "Asia/Urumqi"
918 | ],
919 | "tlds": [
920 | ".cn",
921 | ".公司",
922 | ".网络"
923 | ]
924 | }
925 | ```
926 |
927 |
928 |
929 | **地址18**:https://ipwhois.app/json/?format=json
930 |
931 | 请求类型:GET
932 |
933 | 请求参数(可选):ip
934 |
935 | CORS跨域支持:是
936 |
937 | 请求示例:
938 |
939 | ```
940 | # 查询本机ip
941 | https://ipwhois.app/json/?format=json
942 |
943 | # 通过ip查询信息
944 | https://ipwhois.app/json/121.8.215.106?format=json
945 | ```
946 |
947 | 示例结果:
948 |
949 | ```
950 | {
951 | "ip": "121.8.215.106",
952 | "success": true,
953 | "type": "IPv4",
954 | "continent": "Asia",
955 | "continent_code": "AS",
956 | "country": "China",
957 | "country_code": "CN",
958 | "country_flag": "https://cdn.ipwhois.io/flags/cn.svg",
959 | "country_capital": "Beijing",
960 | "country_phone": "+86",
961 | "country_neighbours": "AF,BT,HK,IN,KG,KP,KZ,LA,MM,MN,MO,NP,PK,RU,TJ,VN",
962 | "region": "Guangdong Province",
963 | "city": "Guangzhou",
964 | "latitude": 23.12911,
965 | "longitude": 113.264385,
966 | "asn": "AS4134",
967 | "org": "Chinanet Guangdong Province Network",
968 | "isp": "No. 1,jin rong Street",
969 | "timezone": "Asia/Shanghai",
970 | "timezone_name": "CST",
971 | "timezone_dstOffset": 0,
972 | "timezone_gmtOffset": 28800,
973 | "timezone_gmt": "+08:00",
974 | "currency": "Chinese Yuan",
975 | "currency_code": "CNY",
976 | "currency_symbol": "¥",
977 | "currency_rates": 7.234,
978 | "currency_plural": "Chinese yuan"
979 | }
980 | ```
981 |
982 |
983 |
984 |
985 |
986 | ### 2.仅查询本机IP信息
987 |
988 | **地址①**:https://ip.useragentinfo.com/json **(已失效)**
989 |
990 | 请求类型:GET
991 |
992 | 请求参数:无
993 |
994 | CORS跨域支持:是
995 |
996 | 请求示例:
997 |
998 | ```
999 | https://ip.useragentinfo.com/json
1000 | ```
1001 |
1002 | 示例结果:
1003 |
1004 | ```
1005 | {
1006 | "country": "韩国",
1007 | "short_name": "KR",
1008 | "province": "首尔",
1009 | "city": "",
1010 | "area": "",
1011 | "isp": "微软云",
1012 | "net": "数据中心",
1013 | "ip": "20.249.16.173",
1014 | "code": 200,
1015 | "desc": "success"
1016 | }
1017 | ```
1018 |
1019 |
1020 |
1021 | **地址②**:http://httpbin.org/ip
1022 |
1023 | 请求类型:GET
1024 |
1025 | 请求参数:无
1026 |
1027 | CORS跨域支持:否
1028 |
1029 | 请求示例:
1030 |
1031 | ```
1032 | http://httpbin.org/ip
1033 | ```
1034 |
1035 | 示例结果:
1036 |
1037 | ```
1038 | {
1039 | "origin": "20.249.16.173"
1040 | }
1041 | ```
1042 |
1043 |
1044 |
1045 | **地址③**:https://cdid.c-ctrip.com/model-poc2/h
1046 |
1047 | 请求类型:GET
1048 |
1049 | 请求参数:无
1050 |
1051 | CORS跨域支持:否
1052 |
1053 | 请求示例:
1054 |
1055 | ```
1056 | https://cdid.c-ctrip.com/model-poc2/h
1057 | ```
1058 |
1059 | 示例结果:
1060 |
1061 | ```
1062 | 20.249.16.173
1063 | ```
1064 |
1065 |
1066 |
1067 | **地址④**:https://vv.video.qq.com/checktime?otype=ojson
1068 |
1069 | 请求类型:GET
1070 |
1071 | 请求参数:otype
1072 |
1073 | CORS跨域支持:否
1074 |
1075 | 请求示例:
1076 |
1077 | ```
1078 | https://vv.video.qq.com/checktime?otype=ojson
1079 | ```
1080 |
1081 | > otype=json时返回类型为jsonp
1082 |
1083 | 示例结果:
1084 |
1085 | ```
1086 | {
1087 | "s": "o",
1088 | "t": 1708586979,
1089 | "ip": "222.79.47.146",
1090 | "pos": "---",
1091 | "rand": "FRM_cmo206yshBHl5h4_9A=="
1092 | }
1093 | ```
1094 |
1095 |
1096 |
1097 | **地址⑤**:https://api.uomg.com/api/visitor.info?skey=1
1098 |
1099 | 请求类型:GET
1100 |
1101 | 请求参数:无
1102 |
1103 | CORS跨域支持:是
1104 |
1105 | 请求示例:
1106 |
1107 | ```
1108 | https://api.uomg.com/api/visitor.info?skey=1
1109 | ```
1110 |
1111 | 示例结果:
1112 |
1113 | ```
1114 | {
1115 | "code": 1,
1116 | "ip": "20.249.16.173",
1117 | "system": "Windows 10 x64 Edition",
1118 | "browser": "Chrome 114.0.0.0",
1119 | "time": "2024-02-22 15:37:33"
1120 | }
1121 | ```
1122 |
1123 |
1124 |
1125 | **地址⑥**:https://test.ipw.cn/api/ip/myip?json
1126 |
1127 | 请求类型:GET
1128 |
1129 | 请求参数:无
1130 |
1131 | CORS跨域支持:否
1132 |
1133 | 请求示例:
1134 |
1135 | ```
1136 | https://test.ipw.cn/api/ip/myip?json
1137 | ```
1138 |
1139 | 示例结果:
1140 |
1141 | ```
1142 | {
1143 | "code": 1,
1144 | "ip": "20.249.16.173",
1145 | "system": "Windows 10 x64 Edition",
1146 | "browser": "Chrome 114.0.0.0",
1147 | "time": "2024-02-22 15:37:33"
1148 | }
1149 | ```
1150 |
1151 |
1152 |
1153 | **地址⑦**:https://api.ipify.org
1154 |
1155 | 请求类型:GET
1156 |
1157 | 请求参数(可选):format
1158 |
1159 | CORS跨域支持:否
1160 |
1161 | 请求示例:
1162 |
1163 | ```
1164 | format:text, json, jsonp
1165 |
1166 | # IPv4
1167 | https://api.ipify.org?format=json
1168 |
1169 | # IPv6
1170 | https://api64.ipify.org/?format=json
1171 | ```
1172 |
1173 | 示例结果:
1174 |
1175 | ```
1176 | {
1177 | "ip": "185.151.146.112"
1178 | }
1179 | ```
1180 |
1181 |
1182 |
1183 | **地址⑧**:https://ipv4.my.ipinfo.app/api/ipDetails.php
1184 |
1185 | 请求类型:GET
1186 |
1187 | 请求参数:无
1188 |
1189 | CORS跨域支持:是
1190 |
1191 | 请求示例:
1192 |
1193 | ```
1194 | https://ipv4.my.ipinfo.app/api/ipDetails.php
1195 | ```
1196 |
1197 | 示例结果:
1198 |
1199 | ```
1200 | {
1201 | "ip": "8.210.218.24",
1202 | "asn": "AS45102 ALIBABA-CN-NET Alibaba US Technology Co., Ltd., CN",
1203 | "continent": "AS",
1204 | "continentLong": "Asia",
1205 | "flag": "https://my.ipinfo.app/imgs/flags/4x3/sg.svg",
1206 | "country": "Singapore"
1207 | }
1208 | ```
1209 |
1210 |
1211 |
1212 | **地址⑨**:https://g3.letv.com/r?format=1
1213 |
1214 | 请求类型:GET
1215 |
1216 | 请求参数:format
1217 |
1218 | CORS跨域支持:否
1219 |
1220 | 请求示例:
1221 |
1222 | ```
1223 | # format=1 返回json
1224 | https://g3.letv.com/r?format=1
1225 |
1226 | # format=2 返回XML
1227 | https://g3.letv.com/r?format=2
1228 | ```
1229 |
1230 | 示例结果:
1231 |
1232 | ```
1233 | {
1234 | "ipint": "1957453184",
1235 | "host": "116.172.93.128",
1236 | "remote": "116.172.93.128",
1237 | "ipstart": "1957445632",
1238 | "ipend": "1957455871",
1239 | "geo": "CN.30.722.2",
1240 | "desc": "中国-宁夏-中卫市-联通",
1241 | "buss": "bussid=6,alv=80,orgqos=5,host=2,port=80",
1242 | "curtime": 1722063761,
1243 | "identify": "1731505687:8140",
1244 | "fixlist": "",
1245 | "qosfix": "",
1246 | "prior": "",
1247 | "manual": "",
1248 | "perfect": "0",
1249 | "recommend": "3345,50041,50042,50057,50058,50072,50073,50074,50075,50076",
1250 | "nodelist": [
1251 | {
1252 | "gone": 50041,
1253 | "name": "中国-北京市-第三方保留ISP-1",
1254 | "pid": 1,
1255 | "aid": 5,
1256 | "isp": 888,
1257 | "detail": "",
1258 | "location": "http://play4.cp21.ott.cibntv.net/letvabcdeasktf512K"
1259 | }
1260 | ]
1261 | }
1262 | ```
1263 |
1264 |
1265 |
1266 | **地址⑩**:https://iplark.com/ipstack
1267 |
1268 | 请求类型:GET
1269 |
1270 | 请求参数:无
1271 |
1272 | CORS跨域支持:否
1273 |
1274 | 请求示例:
1275 |
1276 | ```
1277 | https://iplark.com/ipstack
1278 | ```
1279 |
1280 | 示例结果:
1281 |
1282 | ```
1283 | {
1284 | "ip": "38.207.137.254",
1285 | "type": "ipv4",
1286 | "continent_code": "NA",
1287 | "continent_name": "北美",
1288 | "country_code": "US",
1289 | "country_name": "美国",
1290 | "region_code": "NY",
1291 | "region_name": "纽约州",
1292 | "city": "Manhattan",
1293 | "zip": "10020",
1294 | "latitude": 40.7589111328125,
1295 | "longitude": -73.97901916503906,
1296 | "msa": "35620",
1297 | "dma": "501",
1298 | "radius": null,
1299 | "ip_routing_type": "fixed",
1300 | "connection_type": "tx",
1301 | "location": {
1302 | "geoname_id": 5125771,
1303 | "capital": "Washington D.C.",
1304 | "languages": [
1305 | {
1306 | "code": "en",
1307 | "name": "English",
1308 | "native": "English"
1309 | }
1310 | ],
1311 | "country_flag": "https://assets.ipstack.com/flags/us.svg",
1312 | "country_flag_emoji": "🇺🇸",
1313 | "country_flag_emoji_unicode": "U+1F1FA U+1F1F8",
1314 | "calling_code": "1",
1315 | "is_eu": false
1316 | },
1317 | "time_zone": {
1318 | "id": "America/New_York",
1319 | "current_time": "2024-11-04T22:52:33-05:00",
1320 | "gmt_offset": -18000,
1321 | "code": "EST",
1322 | "is_daylight_saving": false
1323 | }
1324 | }
1325 | ```
1326 |
1327 |
1328 |
1329 | **地址11**:https://qifu-api.baidubce.com/ip/local/geo/v1/district
1330 |
1331 | 请求类型:GET
1332 |
1333 | 请求参数:无
1334 |
1335 | CORS跨域支持:是
1336 |
1337 | 请求示例:
1338 |
1339 | ```
1340 | https://qifu-api.baidubce.com/ip/local/geo/v1/district
1341 | ```
1342 |
1343 | 示例结果:
1344 |
1345 | ```
1346 | {
1347 | "code": "Success",
1348 | "data": {
1349 | "continent": "亚洲",
1350 | "country": "中国",
1351 | "zipcode": "350007",
1352 | "timezone": "UTC+8",
1353 | "accuracy": "区县",
1354 | "owner": "中国电信",
1355 | "isp": "中国电信",
1356 | "source": "数据挖掘",
1357 | "areacode": "CN",
1358 | "adcode": "350104",
1359 | "asnumber": "4134",
1360 | "lat": "26.016978",
1361 | "lng": "119.323547",
1362 | "radius": "13.7621",
1363 | "prov": "福建省",
1364 | "city": "福州市",
1365 | "district": "仓山区"
1366 | },
1367 | "charge": true,
1368 | "msg": "查询成功",
1369 | "ip": "222.79.47.251",
1370 | "coordsys": "WGS84"
1371 | }
1372 | ```
1373 |
1374 |
1375 |
1376 | **地址12**:https://r.inews.qq.com/api/ip2city
1377 |
1378 | 请求类型:GET
1379 |
1380 | 请求参数:无
1381 |
1382 | CORS跨域支持:否
1383 |
1384 | 请求示例:
1385 |
1386 | ```
1387 | https://r.inews.qq.com/api/ip2city
1388 | ```
1389 |
1390 | 示例结果:
1391 |
1392 | ```
1393 | {
1394 | "ret": 0,
1395 | "errMsg": "",
1396 | "ip": "38.207.136.53",
1397 | "provcode": "0",
1398 | "citycode": "0",
1399 | "country": "美国",
1400 | "province": "Texas",
1401 | "city": "",
1402 | "district": "",
1403 | "isp": "",
1404 | "districtCode": "",
1405 | "callback": ""
1406 | }
1407 | ```
1408 |
1409 |
1410 |
1411 | **地址13**:https://myip.ipip.net/json
1412 |
1413 | 请求类型:GET
1414 |
1415 | 请求参数:无
1416 |
1417 | CORS跨域支持:是
1418 |
1419 | 请求示例:
1420 |
1421 | ```
1422 | https://myip.ipip.net/json
1423 | ```
1424 |
1425 | 示例结果:
1426 |
1427 | ```
1428 | {
1429 | "ret": "ok",
1430 | "data": {
1431 | "ip": "121.8.215.106",
1432 | "location": [
1433 | "中国",
1434 | "广东省",
1435 | "广州市",
1436 | "",
1437 | "电信"
1438 | ]
1439 | }
1440 | }
1441 | ```
1442 |
1443 |
1444 |
1445 | **地址14**:https://ifconfig.me/all.json
1446 |
1447 | 请求类型:GET
1448 |
1449 | 请求参数:无
1450 |
1451 | CORS跨域支持:是
1452 |
1453 | 请求示例:
1454 |
1455 | ```
1456 | https://ifconfig.me/all.json
1457 | ```
1458 |
1459 | 示例结果:
1460 |
1461 | ```
1462 | {
1463 | "ip_addr": "121.8.215.106",
1464 | "remote_host": "unavailable",
1465 | "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0",
1466 | "port": "59532",
1467 | "language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
1468 | "method": "GET",
1469 | "encoding": "gzip, deflate, br",
1470 | "mime": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
1471 | "via": "1.1 google",
1472 | "forwarded": "121.8.215.106,34.160.111.145"
1473 | }
1474 | ```
1475 |
1476 |
1477 |
1478 | **地址15**:https://geolocation-db.com/json
1479 |
1480 | 请求类型:GET
1481 |
1482 | 请求参数:无
1483 |
1484 | CORS跨域支持:是
1485 |
1486 | 请求示例:
1487 |
1488 | ```
1489 | https://geolocation-db.com/json
1490 | ```
1491 |
1492 | 示例结果:
1493 |
1494 | ```
1495 | {
1496 | "country_code": "SG",
1497 | "country_name": "Singapore",
1498 | "city": "Singapore",
1499 | "postal": null,
1500 | "latitude": 1.2931,
1501 | "longitude": 103.8558,
1502 | "IPv4": "121.8.215.106",
1503 | "state": "Central Singapore Community Development Council"
1504 | }
1505 | ```
1506 |
1507 |
1508 |
1509 | **地址16**:https://api.myip.com
1510 |
1511 | 请求类型:GET
1512 |
1513 | 请求参数:无
1514 |
1515 | CORS跨域支持:否
1516 |
1517 | 请求示例:
1518 |
1519 | ```
1520 | https://api.myip.com
1521 | ```
1522 |
1523 | 示例结果:
1524 |
1525 | ```
1526 | {
1527 | "ip": "8.210.158.178",
1528 | "country": "Hong Kong",
1529 | "cc": "HK"
1530 | }
1531 | ```
1532 |
1533 |
1534 |
1535 | **地址17**:https://ipapi.co/json
1536 |
1537 | 请求类型:GET
1538 |
1539 | 请求参数:无
1540 |
1541 | CORS跨域支持:是
1542 |
1543 | 请求示例:
1544 |
1545 | ```
1546 | https://ipapi.co/json
1547 | ```
1548 |
1549 | 示例结果:
1550 |
1551 | ```
1552 | {
1553 | "ip": "8.210.158.178",
1554 | "network": "8.210.156.0/22",
1555 | "version": "IPv4",
1556 | "city": "Hong Kong",
1557 | "region": null,
1558 | "region_code": null,
1559 | "country": "HK",
1560 | "country_name": "Hong Kong",
1561 | "country_code": "HK",
1562 | "country_code_iso3": "HKG",
1563 | "country_capital": "Hong Kong",
1564 | "country_tld": ".hk",
1565 | "continent_code": "AS",
1566 | "in_eu": false,
1567 | "postal": null,
1568 | "latitude": 22.2842,
1569 | "longitude": 114.1759,
1570 | "timezone": "Asia/Hong_Kong",
1571 | "utc_offset": "+0800",
1572 | "country_calling_code": "+852",
1573 | "currency": "HKD",
1574 | "currency_name": "Dollar",
1575 | "languages": "zh-HK,yue,zh,en",
1576 | "country_area": 1092,
1577 | "country_population": 7451000,
1578 | "asn": "AS45102",
1579 | "org": "Alibaba US Technology Co., Ltd."
1580 | }
1581 | ```
1582 |
1583 |
1584 |
1585 | **地址18**:https://wtfismyip.com/json
1586 |
1587 | 请求类型:GET
1588 |
1589 | 请求参数:无
1590 |
1591 | CORS跨域支持:是
1592 |
1593 | 请求示例:
1594 |
1595 | ```
1596 | https://wtfismyip.com/json
1597 | ```
1598 |
1599 | 示例结果:
1600 |
1601 | ```
1602 | {
1603 | "YourFuckingIPAddress": "8.210.158.178",
1604 | "YourFuckingLocation": "Hong Kong, Hong Kong",
1605 | "YourFuckingHostname": "8.210.158.178",
1606 | "YourFuckingISP": "Alibaba (US) Technology Co., Ltd.",
1607 | "YourFuckingTorExit": false,
1608 | "YourFuckingCity": "Hong Kong",
1609 | "YourFuckingCountry": "Hong Kong",
1610 | "YourFuckingCountryCode": "HK"
1611 | }
1612 | ```
1613 |
1614 |
1615 |
1616 | **地址19**:https://api.ipbase.com/v1/json
1617 |
1618 | 请求类型:GET
1619 |
1620 | 请求参数:无
1621 |
1622 | CORS跨域支持:是
1623 |
1624 | 请求示例:
1625 |
1626 | ```
1627 | https://api.ipbase.com/v1/json
1628 | ```
1629 |
1630 | 示例结果:
1631 |
1632 | ```
1633 | {
1634 | "ip": "8.210.158.178",
1635 | "country_code": "HK",
1636 | "country_name": "Hong Kong S.A.R.",
1637 | "region_code": null,
1638 | "region_name": "Central and Western",
1639 | "city": "Hong Kong",
1640 | "zip_code": "-",
1641 | "time_zone": "Asia/Hong_Kong",
1642 | "latitude": 22.285520553588867,
1643 | "longitude": 114.1576919555664,
1644 | "metro_code": 0
1645 | }
1646 | ```
1647 |
1648 |
1649 |
1650 | **地址20**:https://api.ipquery.io/?format=json
1651 |
1652 | 请求类型:GET
1653 |
1654 | 请求参数:无
1655 |
1656 | CORS跨域支持:是
1657 |
1658 | 请求示例:
1659 |
1660 | ```
1661 | https://api.ipquery.io/?format=json
1662 | ```
1663 |
1664 | 示例结果:
1665 |
1666 | ```
1667 | {
1668 | "ip": "8.210.158.178",
1669 | "isp": {
1670 | "asn": "AS45102",
1671 | "org": "Alibaba (US) Technology Co., Ltd.",
1672 | "isp": "Alibaba (US) Technology Co., Ltd."
1673 | },
1674 | "location": {
1675 | "country": "Hong Kong",
1676 | "country_code": "HK",
1677 | "city": "Hong Kong",
1678 | "state": "Kowloon",
1679 | "zipcode": "999077",
1680 | "latitude": 22.333551599813337,
1681 | "longitude": 114.16016200912814,
1682 | "timezone": "Asia/Hong_Kong",
1683 | "localtime": "2025-02-07T03:42:03"
1684 | },
1685 | "risk": {
1686 | "is_mobile": false,
1687 | "is_vpn": false,
1688 | "is_tor": false,
1689 | "is_proxy": false,
1690 | "is_datacenter": true,
1691 | "risk_score": 0
1692 | }
1693 | }
1694 | ```
1695 |
1696 |
1697 |
1698 | **地址21**:https://1.1.1.1/cdn-cgi/trace
1699 |
1700 | 请求类型:GET
1701 |
1702 | 请求参数:无
1703 |
1704 | CORS跨域支持:否
1705 |
1706 | 请求示例:
1707 |
1708 | ```
1709 | https://1.1.1.1/cdn-cgi/trace
1710 | ```
1711 |
1712 | 示例结果:
1713 |
1714 | ```
1715 | fl=382f226
1716 | h=1.1.1.1
1717 | ip=121.8.215.106
1718 | ts=1741448917.615
1719 | visit_scheme=https
1720 | uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0
1721 | colo=NRT
1722 | sliver=none
1723 | http=http/2
1724 | loc=JP
1725 | tls=TLSv1.3
1726 | sni=off
1727 | warp=off
1728 | gateway=off
1729 | rbi=off
1730 | kex=X25519MLKEM768
1731 | ```
1732 |
1733 |
1734 |
1735 | **地址22**:https://check.torproject.org/api/ip
1736 |
1737 | 请求类型:GET
1738 |
1739 | 请求参数:无
1740 |
1741 | CORS跨域支持:否
1742 |
1743 | 请求示例:
1744 |
1745 | ```
1746 | https://check.torproject.org/api/ip
1747 | ```
1748 |
1749 | 示例结果:
1750 |
1751 | ```
1752 | {
1753 | "IsTor": false,
1754 | "IP": "121.8.215.106"
1755 | }
1756 | ```
1757 |
1758 |
1759 |
1760 | **地址23**: https://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo
1761 |
1762 | 请求类型:GET
1763 |
1764 | 请求参数:无
1765 |
1766 | CORS跨域支持:否
1767 |
1768 | 请求示例:
1769 |
1770 | ```
1771 | https://api.live.bilibili.com/xlive/web-room/v1/index/getIpInfo
1772 | ```
1773 |
1774 | 示例结果:
1775 |
1776 | ```
1777 | {
1778 | "code":0,
1779 | "message":"0",
1780 | "ttl":1,
1781 | "data":{
1782 | "addr":"220.1.1.1",
1783 | "country":"中国",
1784 | "province":"北京",
1785 | "city":"北京",
1786 | "isp":"电信",
1787 | "latitude":"39.938884",
1788 | "longitude":"116.397459" // 精确到同城
1789 | }
1790 | }
1791 | ```
1792 |
1793 |
1794 |
1795 | **地址24**: https://i.news.qq.com/api/ip2city
1796 |
1797 | 请求类型:GET
1798 |
1799 | 请求参数:无
1800 |
1801 | CORS跨域支持:否
1802 |
1803 | 请求示例:
1804 |
1805 | ```
1806 | https://i.news.qq.com/api/ip2city
1807 | ```
1808 |
1809 | 示例结果:
1810 |
1811 | ```
1812 | {
1813 | "ret": 0,
1814 | "errMsg": "",
1815 | "ip": "223.199.183.154",
1816 | "provcode": "21",
1817 | "citycode": "233",
1818 | "country": "中国",
1819 | "province": "海南省",
1820 | "city": "海口市",
1821 | "district": "",
1822 | "isp": "",
1823 | "districtCode": "460100",
1824 | "callback": ""
1825 | }
1826 |
1827 | ```
1828 |
1829 |
1830 |
1831 |
1832 | **地址25**: https://ipv4.gdt.qq.com/get_client_ip
1833 |
1834 | 请求类型:GET
1835 |
1836 | 请求参数:无
1837 |
1838 | CORS跨域支持:否
1839 |
1840 | 返回类型: `text/plain`
1841 |
1842 | 请求示例:
1843 |
1844 | ```
1845 | https://ipv4.gdt.qq.com/get_client_ip
1846 | ```
1847 |
1848 | 示例结果:
1849 |
1850 | ```
1851 | 223.199.183.154
1852 | ```
1853 |
1854 |
1855 |
1856 |
1857 |
1858 | ### 3.只可通过IP查询
1859 |
1860 | **地址①**:http://opendata.baidu.com/api.php?co=&resource_id=6006&oe=utf8&query=
1861 |
1862 | 请求类型:GET
1863 |
1864 | 请求参数:query
1865 |
1866 | CORS跨域支持:否
1867 |
1868 | 请求示例:
1869 |
1870 | ```
1871 | https://opendata.baidu.com/api.php?co=&resource_id=6006&oe=utf8&query=121.8.215.106
1872 | ```
1873 |
1874 | 示例结果:
1875 |
1876 | ```
1877 | {
1878 | "status": "0",
1879 | "t": "",
1880 | "set_cache_time": "",
1881 | "data": [
1882 | {
1883 | "ExtendedLocation": "",
1884 | "OriginQuery": "121.8.215.106",
1885 | "appinfo": "",
1886 | "disp_type": 0,
1887 | "fetchkey": "121.8.215.106",
1888 | "location": "广东省广州市 电信",
1889 | "origip": "121.8.215.106",
1890 | "origipquery": "121.8.215.106",
1891 | "resourceid": "6006",
1892 | "role_id": 0,
1893 | "shareImage": 1,
1894 | "showLikeShare": 1,
1895 | "showlamp": "1",
1896 | "titlecont": "IP地址查询",
1897 | "tplt": "ip"
1898 | }
1899 | ]
1900 | }
1901 | ```
1902 |
1903 |
1904 |
1905 | **地址②**:https://get.geojs.io/v1/ip/geo/121.8.215.106.json
1906 |
1907 | 请求类型:GET
1908 |
1909 | 请求参数:你的ip
1910 |
1911 | CORS跨域支持:是
1912 |
1913 | 请求示例:
1914 |
1915 | ```
1916 | https://get.geojs.io/v1/ip/geo/121.8.215.106.json
1917 | ```
1918 |
1919 | 示例结果:
1920 |
1921 | ```
1922 | {
1923 | "country": "China",
1924 | "timezone": "Asia/Shanghai",
1925 | "ip": "121.8.215.106",
1926 | "organization": "AS4134 Chinanet",
1927 | "asn": 4134,
1928 | "area_code": "0",
1929 | "organization_name": "Chinanet",
1930 | "country_code": "CN",
1931 | "country_code3": "CHN",
1932 | "continent_code": "AS",
1933 | "latitude": "23.1181",
1934 | "region": "Guangdong",
1935 | "city": "Guangzhou",
1936 | "longitude": "113.2539",
1937 | "accuracy": 1000
1938 | }
1939 | ```
1940 |
1941 |
1942 |
1943 | **地址③**:https://ipinfo.io/widget/demo/121.8.215.106
1944 |
1945 | 请求类型:GET
1946 |
1947 | 请求参数:你的ip
1948 |
1949 | CORS跨域支持:是
1950 |
1951 | 请求示例:
1952 |
1953 | ```
1954 | https://ipinfo.io/widget/demo/121.8.215.106
1955 | ```
1956 |
1957 | 示例结果:
1958 |
1959 | ```
1960 | {
1961 | "input": "121.8.215.106",
1962 | "data": {
1963 | "ip": "121.8.215.106",
1964 | "city": "Shenzhen",
1965 | "region": "Guangdong",
1966 | "country": "CN",
1967 | "loc": "22.5455,114.0683",
1968 | "org": "AS4134 CHINANET-BACKBONE",
1969 | "timezone": "Asia/Shanghai",
1970 | "asn": {
1971 | "asn": "AS4134",
1972 | "name": "CHINANET-BACKBONE",
1973 | "domain": "chinatelecom.com.cn",
1974 | "route": "121.8.0.0/13",
1975 | "type": "isp"
1976 | },
1977 | "company": {
1978 | "name": "CHINANET Guangdong province network",
1979 | "domain": "chinatelecom.cn",
1980 | "type": "isp"
1981 | },
1982 | "privacy": {
1983 | "vpn": false,
1984 | "proxy": false,
1985 | "tor": false,
1986 | "relay": false,
1987 | "hosting": false,
1988 | "service": ""
1989 | },
1990 | "abuse": {
1991 | "address": "No.31 ,jingrong street,beijing, 100032",
1992 | "country": "CN",
1993 | "email": "anti-spam@chinatelecom.cn",
1994 | "name": "ABUSE CHINANETCN",
1995 | "network": "121.8.0.0/13",
1996 | "phone": "+000000000"
1997 | }
1998 | }
1999 | }
2000 | ```
2001 |
2002 |
2003 |
2004 | **地址④**:https://ipapi.com/ip_api.php?ip=121.8.215.106 **(已失效)**
2005 |
2006 | 请求类型:GET
2007 |
2008 | 请求参数:ip
2009 |
2010 | CORS跨域支持:否
2011 |
2012 | 请求示例:
2013 |
2014 | ```
2015 | https://ipapi.com/ip_api.php?ip=121.8.215.106
2016 | ```
2017 |
2018 | 示例结果:
2019 |
2020 | ```
2021 | {
2022 | "ip": "121.8.215.106",
2023 | "hostname": "121.8.215.106",
2024 | "type": "ipv4",
2025 | "continent_code": "AS",
2026 | "continent_name": "Asia",
2027 | "country_code": "CN",
2028 | "country_name": "China",
2029 | "region_code": "GD",
2030 | "region_name": "Guangdong",
2031 | "city": "Guangzhou",
2032 | "zip": "510000",
2033 | "latitude": 23.124719619750977,
2034 | "longitude": 113.23860931396484,
2035 | "location": {
2036 | "geoname_id": 1809858,
2037 | "capital": "Beijing",
2038 | "languages": [
2039 | {
2040 | "code": "zh",
2041 | "name": "Chinese",
2042 | "native": "中文"
2043 | }
2044 | ],
2045 | "country_flag": "https://assets.ipstack.com/flags/cn.svg",
2046 | "country_flag_emoji": "🇨🇳",
2047 | "country_flag_emoji_unicode": "U+1F1E8 U+1F1F3",
2048 | "calling_code": "86",
2049 | "is_eu": false
2050 | },
2051 | "time_zone": {
2052 | "id": "Asia/Shanghai",
2053 | "current_time": "2024-03-15T15:14:15+08:00",
2054 | "gmt_offset": 28800,
2055 | "code": "CST",
2056 | "is_daylight_saving": false
2057 | },
2058 | "currency": {
2059 | "code": "CNY",
2060 | "name": "Chinese Yuan",
2061 | "plural": "Chinese yuan",
2062 | "symbol": "CN¥",
2063 | "symbol_native": "CN¥"
2064 | },
2065 | "connection": {
2066 | "asn": 4134,
2067 | "isp": "Chinanet"
2068 | },
2069 | "security": {
2070 | "is_proxy": false,
2071 | "proxy_type": null,
2072 | "is_crawler": false,
2073 | "crawler_name": null,
2074 | "crawler_type": null,
2075 | "is_tor": false,
2076 | "threat_level": "low",
2077 | "threat_types": null
2078 | }
2079 | }
2080 | ```
2081 |
2082 |
2083 |
2084 | **地址⑤**:https://db-ip.com/demo/home.php?s=121.8.215.106
2085 |
2086 | 请求类型:GET
2087 |
2088 | 请求参数:s=你的ip
2089 |
2090 | CORS跨域支持:否
2091 |
2092 | 请求示例:
2093 |
2094 | ```
2095 | https://db-ip.com/demo/home.php?s=121.8.215.106
2096 | ```
2097 |
2098 | 示例结果:
2099 |
2100 | ```
2101 | {
2102 | "status": "ok",
2103 | "demoInfo": {
2104 | "ipAddress": "121.8.215.106",
2105 | "continentCode": "AS",
2106 | "continentName": "Asia",
2107 | "countryCode": "CN",
2108 | "countryName": "中国",
2109 | "isEuMember": false,
2110 | "currencyCode": "CNY",
2111 | "currencyName": "Yuan Renminbi",
2112 | "phonePrefix": "86",
2113 | "languages": [
2114 | "zh-CN",
2115 | "yue",
2116 | "wuu",
2117 | "dta",
2118 | "ug",
2119 | "za"
2120 | ],
2121 | "stateProvCode": "GD",
2122 | "stateProv": "广东",
2123 | "district": "广州",
2124 | "city": "小楼",
2125 | "geonameId": 1790085,
2126 | "latitude": 23.379,
2127 | "longitude": 113.763,
2128 | "gmtOffset": 8,
2129 | "timeZone": "Asia/Shanghai",
2130 | "weatherCode": "CHXX5497",
2131 | "asNumber": 4134,
2132 | "asName": "CHINANET-BACKBONE",
2133 | "isp": "Chinanet",
2134 | "usageType": "corporate",
2135 | "organization": "Chinanet GD",
2136 | "isCrawler": false,
2137 | "isProxy": false,
2138 | "threatLevel": "high",
2139 | "threatDetails": [
2140 | "attack-source",
2141 | "attack-target:web"
2142 | ]
2143 | }
2144 | }
2145 | ```
2146 |
2147 |
2148 |
2149 | **地址⑥**:https://mesh.if.iqiyi.com/aid/ip/info?version=1.1.1&ip=21.8.215.106 **(已失效)**
2150 |
2151 | 请求类型:GET
2152 |
2153 | 请求参数:ip=查询的ip地址
2154 |
2155 | CORS跨域支持:是
2156 |
2157 | 请求示例:
2158 |
2159 | ```
2160 | https://mesh.if.iqiyi.com/aid/ip/info?version=1.1.1&ip=121.8.215.106
2161 | ```
2162 |
2163 | 示例结果:
2164 |
2165 | ```
2166 | {
2167 | "code": "0",
2168 | "msg": "success",
2169 | "data": {
2170 | "continentCN": "亚洲",
2171 | "countryCN": "中国",
2172 | "zoneCN": "华南",
2173 | "provinceCN": "广东",
2174 | "cityCN": "广州",
2175 | "countyCN": "增城区",
2176 | "townCN": "*",
2177 | "ispCN": "电信",
2178 | "continentID": 1,
2179 | "countryID": 48,
2180 | "zoneID": 5,
2181 | "provinceID": 3,
2182 | "cityID": 3001,
2183 | "countyID": 3001012,
2184 | "ispID": 26,
2185 | "townID": 0,
2186 | "latitude": "23.328300",
2187 | "longitude": "113.758370",
2188 | "overseasRegion": false
2189 | }
2190 | }
2191 | ```
2192 |
2193 | 当ip参数值为空时,查询的是请求者的地址信息。
2194 |
2195 |
2196 |
2197 |
2198 |
2199 | ### 4.根据地区反查IP信息
2200 |
2201 | 根据地区名称或者经纬度查询IP信息
2202 |
2203 | **地址①**:https://nominatim.openstreetmap.org/search?format=json&q=
2204 |
2205 | 请求类型:GET
2206 |
2207 | 请求参数:q(位置) 、lat(纬度) 、lon(经度)
2208 |
2209 | CORS跨域支持:是
2210 |
2211 | 请求示例:
2212 |
2213 | ```
2214 | # 通过地区查询ip信息
2215 | https://nominatim.openstreetmap.org/search?format=json&q=广东深圳南山区
2216 |
2217 | # 通过经纬度查询ip信息
2218 | https://nominatim.openstreetmap.org/search?format=json&lat=22.5317523&lon=113.9734125109087
2219 | ```
2220 |
2221 | 示例结果:
2222 |
2223 | ```
2224 | {
2225 | "place_id": 298782202,
2226 | "licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright",
2227 | "osm_type": "way",
2228 | "osm_id": 741753433,
2229 | "lat": "37.42202505",
2230 | "lon": "-122.08407788511707",
2231 | "class": "leisure",
2232 | "type": "outdoor_seating",
2233 | "place_rank": 30,
2234 | "importance": 0.00006277943083843774,
2235 | "addresstype": "leisure",
2236 | "name": "",
2237 | "display_name": "Amphitheatre Parkway, 山景城, Santa Clara County, 加利福尼亚州/加利福尼亞州, 94043, 美利坚合众国/美利堅合眾國",
2238 | "address": {
2239 | "road": "Amphitheatre Parkway",
2240 | "city": "山景城",
2241 | "county": "Santa Clara County",
2242 | "state": "加利福尼亚州/加利福尼亞州",
2243 | "ISO3166-2-lvl4": "US-CA",
2244 | "postcode": "94043",
2245 | "country": "美利坚合众国/美利堅合眾國",
2246 | "country_code": "us"
2247 | },
2248 | "boundingbox": [
2249 | "37.4219599",
2250 | "37.4221426",
2251 | "-122.0842118",
2252 | "-122.0839386"
2253 | ]
2254 | }
2255 | ```
2256 |
2257 |
2258 |
2259 |
2260 |
2261 | ### 5.更多
2262 |
2263 | 1.只返回本机(访客)IP地址,通过curl访问测试
2264 |
2265 | - 请求类型:GET
2266 |
2267 | ```
2268 | curl ifconfig.me
2269 | curl ifconfig.es
2270 | curl icanhazip.com
2271 | curl ipinfo.io/ip
2272 | curl ipecho.net/ip
2273 | curl ident.me
2274 | curl eth0.me
2275 | curl ipaddr.site
2276 | curl ipaddress.sh
2277 | curl l2.io/ip
2278 | curl tnx.nl/ip
2279 | curl wgetip.com
2280 | curl ip.tyk.nu
2281 | curl curlmyip.net
2282 | curl ipcalf.com
2283 | curl checkip.amazonaws.com
2284 | curl https://myexternalip.com/json
2285 | ```
2286 |
2287 | 示例结果:
2288 |
2289 | ```
2290 | 121.8.215.106
2291 | ```
2292 |
2293 |
2294 |
--------------------------------------------------------------------------------