找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1317|回复: 0

全网最全的免费api接口(2)-手机号归属地查询

[复制链接]
发表于 2022-2-6 11:59:54 | 显示全部楼层 |阅读模式
全网最全的免费api接口(2)-手机号归属地查询-1.png
接口描述:根据手机号码查询所在归属地、卡类型、邮编、区号等.
请求方式:GET
接口限速:200次/每小时
发布日期:2021-03-22 11:29:24
累计调用次数:10000
累计使用人数:50
请求参数:
应用参数类型是否必填默认值示例值说明
phonestringtrue1380013800011位手机号

系统参数类型是否必填说明
akstring开发者密钥
appidstring接口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('content-type:text/html;charset=utf-8');
        $ch  = curl_init();
        $url = 'http://api.liangmlk.cn?ak=xxxx&appid=15&ip=xxxx';
        curl_setopt($ch,CURLOPT_URL,$url);
        $res = curl_exec($ch);
        curl_close($ch);
        return json_decode($res,true);
?>Python3代码示例:
import requests
url = 'http://api.liangmlk.cn?ak=xxxx&appid=15&ip=xxxx'
print( requests.get(url).json() )CURL请求示例:
curl http://api.liangmlk.cn?ak=xxxx&appid=15&ip=xxxx
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|广告网 ( 鄂ICP备20005464号-17 )

GMT+8, 2024-5-20 13:28

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表