文章内容
接口简介:

查询指定城市手机号段,服务商,区号,邮编,区号代码等。



请求地址:

https://cn.apihz.cn/api/ip/haoduan2.php



请求方式:

POST或GET。



请求参数:

【名称】【参数】【必填】【说明】

【用户ID】【id】【是】【用户中心的数字ID,例:id=10000000】

【用户KEY】【key】【是】【用户中心通讯秘钥,例:key=15he5h15ty854j5sr152hs2】

【城市名称】【words】【是】【城市名称,必须为一级市,不能是被市级管辖的二级市,尽量去掉后缀,如上海市则传上海,例:words=上海】

【页码】【page】【否】【查询页码,默认第一页,例:page=1】

【运营商】【type】【否】【指定运营商,1=中国移动,2=中国联通,3=中国电信,4=中国广电,5=其他运营商。默认所有运营商。例:type=1】



返回参数:

【名称】【参数】【说明】

【状态码】【code】【200成功,400错误】

【信息提示】【msg】【返回信息提示。】

【数量】【count】【查询总数量。】

【最大页码】【maxpage】【最大页码。】

【当前页码】【page】【当前页码,每页返回100条结果。】

【省份】【sheng】【省级归属地。】

【城市】【shi】【市级归属地。】

【区号】【quhao】【区号。】

【邮编】【youbian】【邮编。】

【区划代码】【qhdm】【区划代码。】

【数据集】【data】【数据集。】

【号段】【data.hd】【号段。】

【运营商】【data.isp】【运营商。】



GET请求示例:

https://cn.apihz.cn/api/ip/haoduan2.php?id=88888888&key=88888888&words=上海&type=1&page=1

注意:示例里的ID与KEY为公共ID与KEY,共享每分钟调用频次限制,接口本身免费,请使用自己的ID与KEY,独享每分钟调用频次。每日调用无上限。



POST请求示例:

请根据开发语言自行POST。



返回数据示例:

示例:{"code":400,"msg":"通讯秘钥错误。"}

示例:{"code":200,"count":"9344","maxpage":94,"page":"1","sheng":"上海","shi":"上海","quhao":"021","youbian":"200000","qhdm":"310100","data":[{"hd":"1340200","isp":"中国移动"},{"hd":"1340201","isp":"中国移动"},{"hd":"1340202","isp":"中国移动"},{"hd":"1340203","isp":"中国移动"},{"hd":"1340204","isp":"中国移动"},{"hd":"1340205","isp":"中国移动"},{"hd":"1340206","isp":"中国移动"},{"hd":"1340207","isp":"中国移动"},{"hd":"1340208","isp":"中国移动"},{"hd":"1340209","isp":"中国移动"},{"hd":"1340210","isp":"中国移动"},{"hd":"1340211","isp":"中国移动"},{"hd":"1340212","isp":"中国移动"},{"hd":"1340213","isp":"中国移动"},{"hd":"1340214","isp":"中国移动"},{"hd":"1340215","isp":"中国移动"},{"hd":"1340216","isp":"中国移动"},{"hd":"1340217","isp":"中国移动"},{"hd":"1340218","isp":"中国移动"},{"hd":"1340219","isp":"中国移动"},{"hd":"1344032","isp":"中国移动"},{"hd":"1344033","isp":"中国移动"},{"hd":"1344034","isp":"中国移动"},{"hd":"1344035","isp":"中国移动"},{"hd":"1344036","isp":"中国移动"},{"hd":"1344037","isp":"中国移动"},{"hd":"1344043","isp":"中国移动"},{"hd":"1344044","isp":"中国移动"},{"hd":"1344045","isp":"中国移动"},{"hd":"1344046","isp":"中国移动"},{"hd":"1344047","isp":"中国移动"},{"hd":"1344048","isp":"中国移动"},{"hd":"1344049","isp":"中国移动"},{"hd":"1344050","isp":"中国移动"},{"hd":"1344051","isp":"中国移动"},{"hd":"1344052","isp":"中国移动"},{"hd":"1344053","isp":"中国移动"},{"hd":"1344058","isp":"中国移动"},{"hd":"1344059","isp":"中国移动"},{"hd":"1344060","isp":"中国移动"},{"hd":"1344064","isp":"中国移动"},{"hd":"1344073","isp":"中国移动"},{"hd":"1344074","isp":"中国移动"},{"hd":"1344075","isp":"中国移动"},{"hd":"1344076","isp":"中国移动"},{"hd":"1344080","isp":"中国移动"},{"hd":"1344081","isp":"中国移动"},{"hd":"1344082","isp":"中国移动"},{"hd":"1344085","isp":"中国移动"},{"hd":"1344086","isp":"中国移动"},{"hd":"1344087","isp":"中国移动"},{"hd":"1344088","isp":"中国移动"},{"hd":"1344089","isp":"中国移动"},{"hd":"1344090","isp":"中国移动"},{"hd":"1344091","isp":"中国移动"},{"hd":"1344092","isp":"中国移动"},{"hd":"1344094","isp":"中国移动"},{"hd":"1344096","isp":"中国移动"},{"hd":"1344097","isp":"中国移动"},{"hd":"1344098","isp":"中国移动"},{"hd":"1344100","isp":"中国移动"},{"hd":"1344101","isp":"中国移动"},{"hd":"1344102","isp":"中国移动"},{"hd":"1344103","isp":"中国移动"},{"hd":"1344104","isp":"中国移动"},{"hd":"1344105","isp":"中国移动"},{"hd":"1344106","isp":"中国移动"},{"hd":"1344107","isp":"中国移动"},{"hd":"1344108","isp":"中国移动"},{"hd":"1344109","isp":"中国移动"},{"hd":"1344110","isp":"中国移动"},{"hd":"1344111","isp":"中国移动"},{"hd":"1344112","isp":"中国移动"},{"hd":"1344113","isp":"中国移动"},{"hd":"1344114","isp":"中国移动"},{"hd":"1344115","isp":"中国移动"},{"hd":"1344116","isp":"中国移动"},{"hd":"1344117","isp":"中国移动"},{"hd":"1344118","isp":"中国移动"},{"hd":"1344119","isp":"中国移动"},{"hd":"1344122","isp":"中国移动"},{"hd":"1344133","isp":"中国移动"},{"hd":"1344134","isp":"中国移动"},{"hd":"1344135","isp":"中国移动"},{"hd":"1344137","isp":"中国移动"},{"hd":"1344138","isp":"中国移动"},{"hd":"1344141","isp":"中国移动"},{"hd":"1344142","isp":"中国移动"},{"hd":"1344143","isp":"中国移动"},{"hd":"1344144","isp":"中国移动"},{"hd":"1344145","isp":"中国移动"},{"hd":"1344146","isp":"中国移动"},{"hd":"1344147","isp":"中国移动"},{"hd":"1344148","isp":"中国移动"},{"hd":"1344149","isp":"中国移动"},{"hd":"1344150","isp":"中国移动"},{"hd":"1344151","isp":"中国移动"},{"hd":"1344152","isp":"中国移动"},{"hd":"1344153","isp":"中国移动"},{"hd":"1344154","isp":"中国移动"}]}



参考资料(版权):

https://www.apihz.cn/api/iphaoduan2.html
如有侵权请联系我们删除!
近义词反义词查询免费API接口教程

 查看详情 

短网址生成-查询信息免费API接口教程

 查看详情 

短网址生成-指定后缀免费API接口教程

 查看详情 

短网址生成-随机后缀免费API接口教程

 查看详情 

百家号文章内容提取免费API接口教程

 查看详情 

火车车次经停站点查询免费API接口教程

 查看详情 

火车票票价查询免费API接口教程

 查看详情 

火车票余票信息查询免费API接口教程

 查看详情 

微信公众号文章内容提取免费API接口教程

 查看详情 

检查指定网站SSL证书信息免费API接口教程

 查看详情 

国内无法拉取Docker镜像了?这些方法拯救你的Docker

 查看详情 

解决Python报错:ModuleNotFoundError: No module named ‘requests‘

 查看详情 

MySQL删除表数据、清空表命令(truncate、drop、delete 区别)

 查看详情 

国产数据库:目前最火的五款国产数据介绍

 查看详情 

推荐一些好用的数据库管理工具合集

 查看详情 

深入理解分布式锁Redis

 查看详情 

MySQL删除表数据、清空表命令(truncate、drop、delete 区别)

 查看详情 

如何在IDEA中使用DeepSeek

 查看详情 

全球域名WHOIS信息查询免费API接口教程

 查看详情 

sql如何查询表中数据 sql表数据查询技巧

 查看详情