分享几个免费IP地址查询API接口

几个免费IP地址查询API接口

1. 淘宝  



用post请求上面的接口

python代码示例

import requests r=requests.post(url=\'\', data={\'ip\': \'myip\'}) print(r.json()) # {\'code\': 0, \'data\': {\'ip\': \'59.164.141.201\', \'country\': \'中国\', \'area\': \'\', \'region\': \'湖北\', \'city\': \'武汉\', \'county\': \'XX\', \'isp\': \'电信\', \'country_id\': \'CN\', \'area_id\': \'\', \'region_id\': \'420000\', \'city_id\': \'420100\', \'county_id\': \'xx\', \'isp_id\': \'100017\'}}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zgzsfw.html