免费的手机号码归属地查询API接口文档

聚合数据手机号码归属四查询API接口,根据手机号码或手机号码的前7位,查询手机号码归属地信息,包括省份 、城市、区号、邮编、运营商和卡类型。

通过链接https://www.juhe.cn/docs/api/id/11申请,获取APPkey即可调用。

接口地址:http://apis.juhe.cn/mobile/get
支持格式:json/xml
请求方式:get
请求示例:http://apis.juhe.cn/mobile/get?phone=13429667914&key=您申请的KEY
调用样例及调试工具:API测试工具
请求参数说明:
 名称类型必填说明
  phone int 需要查询的手机号码或手机号码前7位
  key string 应用APPKEY(应用详细页查询)
  dtype string 返回数据的格式,xml或json,默认json
返回参数说明:
 名称类型说明
  error_code int 返回码
  reason string 返回说明
  result string 返回结果集
  province string 省份
  city string 城市
  areacode string 区号
  zip string 邮编
  company string 运营商
  card string 卡类型
JSON返回示例:
{
"resultcode":"200",
"reason":"Return Successd!",
"result":{
    "province":"浙江",
    "city":"杭州",
    "areacode":"0571",
    "zip":"310000",
    "company":"中国移动",
    "card":"移动动感地带卡"
}
}

XML返回示例:

  <?xml version="1.0" encoding="utf-8" ?> 
- <root>
      <resultcode>200</resultcode> 
      <reason>Return Successd!</reason> 
    - <result>
          <province>浙江</province> 
          <city>杭州</city> 
          <areacode>0571</areacode> 
          <zip>310000</zip> 
          <company>中国移动</company> 
          <card>移动动感地带卡</card> 
      </result>
  </root>

  

posted @ 2017-01-09 13:24  annie123  阅读(4110)  评论(1编辑  收藏  举报