免费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>

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值