嗨豆壳API,获取数据其实如此简单.
hi-docs.com

IP地址查询 Ip API

接口地址 :

https://api.hi-docs.com/ip/

请求方法 :

GET

请求参数 :

参数名类型必填描述
ipGET必填IP地址

返回示例 :

{
    "code": 200,
    "res": {
        "country": "中国",
        "country_id": "CN",
        "area": "华南",
        "area_id": "800000",
        "region": "广东省",
        "region_id": "440000",
        "city": "深圳市",
        "city_id": "440300",
        "county": "",
        "county_id": "-1",
        "isp": "阿里巴巴",
        "isp_id": "100098",
        "ip": "120.24.34.45"
    }
}