zoukankan      html  css  js  c++  java
  • 各大巨头电商提供的IP库API接口-新浪、搜狐、阿里

    新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js     (不可用)
    新浪多地域测试方法:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=218.192.3.42     (不可用)

    搜狐IP地址查询接口(默认GBK):http://pv.sohu.com/cityjson  (亲测可行)
    搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8
    搜狐另外的IP地址查询接口:http://txt.go.sohu.com/ip/soip


    太平洋电脑 IP库接口:(默认callback=IPCallBack)    http://whois.pconline.com.cn/ipJson.jsp   (亲测可行)
    http://whois.pconline.com.cn/?ip=[ip地址字符串]
    直接访问:http://whois.pconline.com.cn/?ip=
    调用方法非常丰富,提供多种JS嵌入调用。



    网易有道IP地址API接口
    查询IP地址:
    http://www.youdao.com/smartresult-xml/search.s?type=ip&q=115.156.238.114     (不可用,smartresult-xml/资源不存在)


    淘宝IP地址库API接口

    1. 请求接口(GET):
    http://ip.taobao.com/service/getIpInfo.php?ip=[ip地址字串]     (不稳定,时常报502错误)


    另外,还有Google,搜狐,腾讯等均提供相应接口,请参看相关资料,这里不再赘述。

  • 相关阅读:
    C#数组添加元素
    C#数组排序方法
    C#遍历数组
    C#动态数组ArrayList
    C#传递数组参数
    基础题(四)
    基础题(三)
    CMDB概述(二)
    CMDB概述(一)
    Django(基础篇)
  • 原文地址:https://www.cnblogs.com/lxwphp/p/10271451.html
Copyright © 2011-2022 走看看