IP address api third-party jsonp interface sorting

Source: Internet
Author: User

Tencent IP address query interface: http://fw.qq.com/ipaddress
Sina IP address query interface: http://int.dpool.sina.com.cn/iplookup/iplookup.php? Format = js
Sohu IP address query interface: http://pv.sohu.com/cityjson
Google IP address query interface: http://j.maxmind.com/app/geoip.js
Youdao IP address query interface: http://www.youdao.com/smartresult-xml/search.s
1616 IP address query interface: http://w.1616.net/chaxun/iptolocal.php
126 http://ip.ws.126.net/ipquery
Hao123 http://app.hao123.com/ipquery/getcity.php? Rtype = 2

Let me take a look at the test Tencent IP address aip

Tencent IP address API address: http://fw.qq.com/ipaddress

The returned data format is:

The code is as follows: Copy code

Var IPData = new Array (" & Prime;," "," Jiangsu Province "," Xuzhou City ");

Use JS code for retrieval:

The code is as follows: Copy code

<Script language = "javascript" type = "text/javascript" src = "http://fw.qq.com/ipaddress"> </script>
<Script> document. write ("Your IP address is:" + IPData [0] + ", from:" + IPData [2]); </script>

The Sina IP address query interface returns

The code is as follows: Copy code

Var remote_ip_info = {"ret": 1, "start": "", "end": "", "country": "u4e2du56fd", "province ": "u6e56u5357", "city": "u957fu6c99", "district": "", "isp": "u94c1u901a", "type": "", "desc ": ""};

Sohu IP address query interface

The code is as follows: Copy code

Var returnCitySN = {"cip": "Maid", "cid": "430000", "cname": "Hunan province "};

Well, I will not introduce you to other operations.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.