小小API是一个稳定 快速 的 API 接口服务   点击加入QQ群

ip查询

GEThttps://v2.xxapi.cn/api/ip

接口描述

免费API提供快速的IP查询服务,基于本地数据实现高效响应,支持位置查询等功能。如需额外支持,请联系管理员获取更多信息。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/ip?ip=122.228.216.223'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
	"code": 200,
	"msg": "数据请求成功",
	"data": {
		"address": "中国浙江温州 电信",
		"type": "数据中心",
		"begin": "122.228.192.0",
		"end": "122.228.255.255"
	}
}