已验证】最新可用免费IP查询接口:

爱奇艺接口

API

  1. http://ip.geo.iqiyi.com/cityjson?format=json&ip=115.199.52.195

返回格式

  1. {
  2. "code": "A00000",
  3. "data": {
  4. "country": "中国",
  5. "province": "浙江",
  6. "city": "杭州",
  7. "country_id": 48,
  8. "province_id": 10,
  9. "city_id": 10001,
  10. "location_id": 26010001,
  11. "isp_id": 26,
  12. "isp": "电信",
  13. "longitude": 0,
  14. "latitude": 0,
  15. "ip": "115.199.52.195"
  16. }
  17. }

网易云

API

  1. http://ip.ws.126.net/ipquery?ip=[IP地址]

返回格式

  1. var lo="北京市", lc="海淀区"; var localAddress={city:"海淀区", province:"北京市"}

搜狐

API

  1. http://pv.sohu.com/cityjson?ie=utf-8

返回格式

  1. var returnCitySN = {"cip": "115.199.52.195", "cid": "330100", "cname": "浙江省杭州市"};

4、ip-api接口

  1. http://ip-api.com/115.199.52.195?lang=zh-CN

返回格式

  1. {
  2. "status" : "success",
  3. "continent" : "亚洲",
  4. "continentCode": "AS",
  5. "country" : "中国",
  6. "countryCode" : "CN",
  7. "region" : "ZJ",
  8. "regionName" : "浙江省",
  9. "city" : "杭州",
  10. "district" : "",
  11. "zip" : "",
  12. "lat" : 30.2994,
  13. "lon" : 120.1612,
  14. "timezone" : "Asia/Shanghai",
  15. "offset" : 28800,
  16. "currency" : "CNY",
  17. "isp" : "Chinanet",
  18. "org" : "",
  19. "as" : "AS4134 CHINANET-BACKBONE",
  20. "asname" : "CHINANET-BACKBONE",
  21. "mobile" : false,
  22. "proxy" : false,
  23. "hosting" : false,
  24. "query" : "115.199.52.195"
  25. }

太平洋接口

  1. http://whois.pconline.com.cn/ipJson.jsp?ip=115.199.52.195&json=true

返回格式

  1. {
  2. "ip": "115.199.52.195",
  3. "pro": "浙江省",
  4. "proCode": "330000",
  5. "city": "杭州市",
  6. "cityCode": "330100",
  7. "region": "",
  8. "regionCode": "0",
  9. "addr": "浙江省杭州市 电信",
  10. "regionNames": "",
  11. "err": ""
  12. }

腾讯接口

(需要 key), 以下key仅供测试
API

  1. https://apis.map.qq.com/ws/location/v1/ip?output=json&key=KUQBZ-FYDCU-YMVVN-2DDW5-7WDYE-5JBJR&ip=115.199.52.195

返回格式

  1. {
  2. "status": 0,
  3. "message": "query ok",
  4. "result": {
  5. "ip": "115.199.52.195",
  6. "location": {
  7. "lat": 30.25727,
  8. "lng": 120.20523
  9. },
  10. "ad_info": {
  11. "nation": "中国",
  12. "province": "浙江省",
  13. "city": "杭州市",
  14. "district": "江干区",
  15. "adcode": 330104
  16. }
  17. }
  18. }

[

](https://blog.csdn.net/stxxnetwork/article/details/118604483)