接口描述:根据手机号码查询所在归属地、卡类型、邮编、区号等.
请求方式:GET
接口限速:200次/每小时
发布日期:2021-03-22 11:29:24
累计调用次数:10000
累计使用人数:50
请求参数:
应用参数 | 类型 | 是否必填 | 默认值 | 示例值 | 说明 | phone | string | true | 13800138000 | 11位手机号 |
系统参数 | 类型 | 是否必填 | 说明 | ak | string | 是 | 开发者密钥 | appid | string | 是 | 接口id |
请求示例:http://api.liangmlk.cn?ak=xxxx&appid=36&phone=xxxx 在线调试:立即调试
返回 [json] 格式的数据:
{
"success": "1",
"result": {
"status": "ALREADY_ATT",
"phone": "13800138000",
"area": "010",
"postno": "100000",
"att": "中国,北京",
"ctype": "中国移动138卡",
"par": "1380013",
"prefix": "138",
"operators": "中国移动",
"style_simcall": "中国,北京",
"style_citynm": "中华人民共和国,北京市"
}
}PHP代码示例:
<?php
header(&#39;content-type:text/html;charset=utf-8&#39;);
$ch = curl_init();
$url = &#39;http://api.liangmlk.cn?ak=xxxx&appid=15&ip=xxxx&#39;;
curl_setopt($ch,CURLOPT_URL,$url);
$res = curl_exec($ch);
curl_close($ch);
return json_decode($res,true);
?>Python3代码示例:
import requests
url = &#39;http://api.liangmlk.cn?ak=xxxx&appid=15&ip=xxxx&#39;
print( requests.get(url).json() )CURL请求示例:
curl http://api.liangmlk.cn?ak=xxxx&appid=15&ip=xxxx |