IP定位
GET
/openapi/base/ipLocation可用于用户选号是智能号码归属地推荐,或收货地区编码默认选择,仅支持国内IP
请求参数
Body 参数application/x-www-form-urlencoded
ip
string
必需
用户IP,如果不传默认使用访问IP
示例值:
119.91.150.156
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
ip
string
IP地址
country
string
国家
region
string
地理位置
province
string
省份名称
province_code
integer
省编码(通用编码)
city
string
城市名称
city_code
integer
必需
城市编码(通用编码)
area
string
区县名称
area_code
integer
区编码(通用编码)
timestamp
integer
必需
traceID
string
必需
示例
{
"code": 0,
"message": "string",
"data": {
"ip": "string",
"country": "string",
"region": "string",
"province": "string",
"province_code": 0,
"city": "string",
"city_code": 0,
"area": "string",
"area_code": 0
},
"timestamp": 0,
"traceID": "string"
}
最后修改时间: 4 个月前