免费API-手机号码归属地API接口

浏览:3013 发布日期:2016/11/29 分类:技术分享 关键字: 免费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
请求参数说明:
名称 类型 必填 说明
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>
最佳答案
评论( 相关
后面还有条评论,点击查看>>