IP interface to query the information listed

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/lierwang2017/article/details/82659468

1, IP network query interface Pacific
    a, ip according to the query: http://whois.pconline.com.cn/ipJson.jsp?json=true&ip=14.16.139.216
    {
        "ip": "14.16.139.216",
        "Pro" : "Guangdong Province",
        "proCode": "440000",
        "City": "Guangzhou",
        "cityCode": "440 100",
        "Region": "",
        "regionCode": "0",
        "addr": "Guangdong Province, Guangzhou City Telecom",
        "regionNames": "",
        "ERR": ""
    }

    b, the client queries: http://whois.pconline.com.cn/ipJson.jsp?json=true
    {
        "ip": "113.108.110.26",
        "Pro": "Guangdong Province",
        "proCode": " 440000 ",
        " City ":" Shenzhen ",
        " cityCode ":" 440 300 ",
        " Region ":" ",
        " regionCode ":" 0 ",
        " addr ":" Shenzhen, Guangdong Telecom ",
        " regionNames " : "",
        "ERR": ""
    }

2、国外IP查询接口(返回英文)
    a、根据ip查询: http://ip-api.com/json/14.16.139.216
    {
        "as":"AS4134 No.31,Jin-rong Street",
        "city":"Guangzhou",
        "country":"China",
        "countryCode":"CN",
        "isp":"China Telecom Guangdong",
        "lat":23.1167,
        "lon":113.25,
        "org":"China Telecom Guangdong",
        "query":"14.16.139.216",
        "region":"GD",
        "regionName":"Guangdong",
        "status":"success",
        "TimeZone ":" Asia / of Shanghai ",     {     B, client queries: http://ip-api.com/json/     }
        " ZIP ":" "

    


        "as":"AS4134 No.31,Jin-rong Street",
        "city":"Shenzhen",
        "country":"China",
        "countryCode":"CN",
        "isp":"China Telecom Guangdong",
        "lat":22.5333,
        "lon":114.1333,
        "org":"China Telecom Guangdong",
        "query":"113.108.110.26",
        "region":"GD",
        "regionName":"Guangdong",
        "status":"success",
        "timezone":"Asia/Shanghai",
        "zip":""     Reference api: http://ip-api.com/docs/api:json
    }
    

3、apnic
    a、根据ip查询: http://www.geoplugin.net/json.gp/14.16.139.216
    {
        "geoplugin_request":"113.108.110.26",
        "geoplugin_status":200,
        "geoplugin_delay":"2ms",
        "geoplugin_credit":"Some of the returned data includes GeoLite data created by MaxMind, available from <a href='http://www.maxmind.com'>http://www.maxmind.com</a>.",
        "geoplugin_city":"Shenzhen",
        "geoplugin_region":"Guangdong",
        "geoplugin_regionCode":"GD",
        "geoplugin_regionName":"Guangdong",
        "geoplugin_areaCode":"",
        "geoplugin_dmaCode":"",
        "geoplugin_countryCode":"CN",
        "geoplugin_countryName":"China",
        "geoplugin_inEU":0,
        "geoplugin_euVATrate":false,
        "geoplugin_continentCode":"AS",
        "geoplugin_continentName":"Asia",
        "geoplugin_latitude":"22.5333",
        "geoplugin_longitude":"114.1333",
        "geoplugin_locationAccuracyRadius":"100",
        "geoplugin_timezone":"Asia/Shanghai",
        "geoplugin_currencyCode":"CNY",
        "geoplugin_currencySymbol":"元",
        "geoplugin_currencySymbol_UTF8":"元",
        "geoplugin_currencyConverter":6.8651         "geoplugin_status": 200 is,         "geoplugin_request": "113.108.110.26",     {     B, client queries: http://www.geoplugin.net/json.gp
    }
    




        "geoplugin_delay":"2ms",
        "geoplugin_credit":"Some of the returned data includes GeoLite data created by MaxMind, available from <a href='http://www.maxmind.com'>http://www.maxmind.com</a>.",
        "geoplugin_city":"Shenzhen",
        "geoplugin_region":"Guangdong",
        "geoplugin_regionCode":"GD",
        "geoplugin_regionName":"Guangdong",
        "geoplugin_areaCode":"",
        "geoplugin_dmaCode":"",
        "geoplugin_countryCode":"CN",
        "geoplugin_countryName":"China",
        "geoplugin_inEU":0,
        "geoplugin_euVATrate":false,
        "geoplugin_continentCode":"AS",
        "geoplugin_continentName":"Asia",
        "geoplugin_latitude":"22.5333",
        "geoplugin_longitude":"114.1333",
        "geoplugin_locationAccuracyRadius":"100",
        "geoplugin_timezone":"Asia/Shanghai",
        "geoplugin_currencyCode":"CNY",
        "geoplugin_currencySymbol":"元",
        "geoplugin_currencySymbol_UTF8":"元",
        "geoplugin_currencyConverter":6.8651
    }
    
    参考地址api: http://ip138.com/ips138.asp

4, Sohu query interface IP
    client query: http://pv.sohu.com/cityjson?ie=utf-8
    var returnCitySN = { "CIP": "113.108.110.26", "CID": "440 300", " cname ":" Shenzhen City, Guangdong Province "};

5,126IP query interface
    client queries: http://ip.ws.126.net/ipquery
    var LO = "Guangdong Province", lc = "Shenzhen"; var localAddress = {city: " Shenzhen", province: "Guangdong Province"}

6, Baidu map IP positioning API
    A, according to ip query: https://api.map.baidu.com/location/ip?ak=32f38c9491f2da9eb61106aaab1e9739&ip=14.16.139.216
    b, client queries: https://api.map. baidu.com/location/ip?ak=32f38c9491f2da9eb61106aaab1e9739
    Description: ak need to pass parameters (not clear whether free)

Free reference
    a, Avatar data: https://www.avatardata.cn/docs/api/a5e61fce-b65e-49ef-896f-1a682218a054
    b, Baidu opendata: http://opendata.baidu.com/api.php?query 42.196.245.48 & CO.'s = & = RESOURCE_ID = 6006 & T = 1,412,300,361,645 & IE = UTF8 & GBK OE = CB = & op_aladdin_callback the format = & JSON & baidu TN =
    C, the GEO location the IP the API: https://www.boip.net/api/
    D, JsonBird: HTTPS: // Bird .ioliu.cn / # interface
    E, Webscan query interface API: http://www.webscan.cc/api/


Free Weather API: https://www.sojson.com/blog/234.html

Guess you like

Origin blog.csdn.net/lierwang2017/article/details/82659468