请求Header:
| 名称 | 值 | |
|---|---|---|
| Content-Type | application/x-www-form-urlencoded |
请求参数说明:
| 名称 | 必填 | 类型 | 说明 | |
|---|---|---|---|---|
| phone | 是 | string | 需要查询的手机号码或手机号码前7位 | |
| apikey | 是 | string | 登录控制台->IP查询->概览,获取APIKEY参数 |
返回参数说明:
| 名称 | 类型 | 说明 | |
|---|---|---|---|
| error_code | int | 返回码 | |
| reason | string | 返回说明 | |
| result | string | 返回结果集 | |
| province | string | 省份 | |
| city | string | 城市,(部分记录可能为空) | |
| areacode | string | 区号,(部分记录可能为空) | |
| zip | string | 邮编,(部分记录可能为空) | |
| company | string | 运营商 |
JSON返回示例:JSON在线格式化工具 >
{
"resultcode":"200",
"reason":"Return Successd!",
"result":{
"province":"浙江",
"city":"杭州",
"areacode":"0571",
"zip":"310000",
"company":"中国移动",
"card":""
}
}