分享几个IP获取地理位置的API

淘宝

1. 请求接口(GET):

https://ip.taobao.com/outGetIpInfo?ip=IP地址&accessKey=alibaba-inc

2. 返回数据格式:

{
    "data":
    {
        "area":"",
        "country":"中国",
        "isp_id":"1000331",
        "queryIp":"119.35.6.120",
        "city":"广州",
        "ip":"119.35.6.120",
        "isp":"珠江宽频",
        "county":"",
        "region_id":"440000",
        "area_id":"",
        "county_id":null,
        "region":"广东",
        "country_id":"CN",
        "city_id":"440100"
    },
    "msg":"query success",
    "code":0
}

3. 频次限制:

每个用户的访问频率需小于1qps

4. 文档说明:

http://ip.taobao.com/instructions.html

ip-api

1. 请求接口(GET):

http://ip-api.com/json/ip地址字串?lang=zh-CN

2. 返回数据格式:

{
    "status": "success",
    "country": "中国",
    "countryCode": "CN",
    "region": "GD",
    "regionName": "广东",
    "city": "广州",
    "zip": "",
    "lat": 23.1167,
    "lon": 113.25,
    "timezone": "Asia/Shanghai",
    "isp": "China Unicom Guangzhou network",
    "org": "GuangZhou Radio \u0026 Television network Co., LTD.",
    "as": "AS17622 China Unicom Guangzhou network",
    "query": "119.35.6.120"
}

3. 频次限制:

不详

4. 文档说明:

https://ip-api.com/docs

IPIP

1. 请求接口(GET):

http://freeapi.ipip.net/ip地址字串

2. 返回数据格式:

["中国","广东","广州","","珠江宽频/联通"]

3. 频次限制:

每天1000次

4. 文档说明:

https://www.ipip.net/support/api.html

0%