Introduction to the api interface for obtaining ip geographic location

table of Contents

360 obtain the local IP, region and operator

360 obtains the designated IP area and operator

Sohu IP address query interface

Pacific Network IP address query web interface

Other website interface


360 obtain the local IP, region and operator

Request URL:

  • http://ip.360.cn/IPShare/info

Request method:

  • GET

Return example

{
  "greetheader": "晚上好,",
  "nickname": "",
  "ip": "120.25.163.70",
  "location": "广东深圳\t阿里云/电信/联通/移动/铁通/教育网",
  "loc_client": ""
}

360 obtains the designated IP area and operator

Request URL:

  • http://ip.360.cn/IPQuery/ipquery?ip=120.25.163.70

Request method:

  • POST

Return example

{
  "errno": 0,
  "errmsg": "",
  "data": "广东深圳\t阿里云/电信/联通/移动/铁通/教育网"
}

Sohu IP address query interface

Request URL:

  • http://pv.sohu.com/cityjson

Request method:

  • GET

Return example

var returnCitySN = {"cip": "120.25.163.70", "cid": "310000", "cname": "CHINA

Pacific Network IP address query web interface

URL:http://whois.pconline.com.cn/#tabs-3

Other website interface

 

 

Guess you like

Origin blog.csdn.net/whatday/article/details/114096825