号码归属地查询API(返回json和XML数据)

来源:互联网 发布:模型和算法的区别 编辑:程序博客网 时间:2024/05/18 01:23

手机号码归属地查询api

基本信息
根据手机号码查询归属地、卡类型、邮编、区号等
Json: http://api.k780.com:88/?app=phone.get&phone=13800138000&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json
Xml: http://api.k780.com:88/?app=phone.get&phone=13800138000&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=xml
Method: Get/Post
Format: Json/Xml
请求参数
参数名称类型是否必须说明appkeystring是使用API的唯一凭证 说明signstring是md5后的32位密文,登陆用. 说明format{json|xml}否返回类型.phonestring是手机号码 例如:13800138000
返回字段
字段类型说明success{0/1}执行结果phonestring查询的手机号码msgstring出错消息,当出错时将会出现此节点,否则不出现areastring手机号码所在地区区号postnostring所在地区邮编attstring手机号码归属地ctypestring号码卡类型parstring所有号码区间prefixstring运营商号段operatorsstring所属运营商style_simcallstring简写归属地style_citynmstring完整归属地

返回json数据
{        "success":"1",        "result":{                "phone":"13800138000",                "area":"010",                "postno":"100000",                "att":"中国,北京",                "ctype":"北京移动全球通卡",                "par":"1380013",                "prefix":"138",                "operators":"移动",                "style_simcall":"中国,北京",                "style_citynm":"中华人民共和国,北京市"        }}

另外返回XML数据
 <?xml version="1.0" encoding="utf-8" ?> - <root>  <success>1</success> - <result>      <phone>13800138000</phone>       <area>010</area>       <postno>100000</postno>       <att>中国,北京</att>       <ctype>北京移动全球通卡</ctype>       <par>1380013</par>       <prefix>138</prefix>       <operators>移动</operators>       <style_simcall>中国,北京</style_simcall>       <style_citynm>中华人民共和国,北京市</style_citynm>   </result>  </root>


0 0
原创粉丝点击