随机图片v1
图床v1(推荐用V2)
生成二维码
二维码解析
某易云歌词
随机图片v2-302跳转
某易云点歌
获取天气
宝贝回家
随机一言·网络
必应每日一图(横屏-不跳转)
必应每日一图(横屏-302跳转)
必应每日一图(竖屏-不跳转)
必应每日一图(竖屏-302跳转)
随机快手美女视频V1
获取天气v2
城市天气ID查询
IPv6地址获取
程序员历史上的今天
微博热榜
抖音热榜
知乎热榜
百度热搜
二要素核验
网站信息TDK获取
SSl证书检测
域名dns解析查询
查询域名Whois
QQ域名拦截查询
ICP备案查询
天气查询v4
QQ昵称获取
快递查询V1
中国天气
快手解析
抖音视频解析
官方影视/动漫海报获取接口
HunyuanOCR
酷小我音乐YT
IP签名档YT
阿里oss图床TM
ocr图片文字识别YT
手机号归属地查询
随机一言v1
实时金价v1
知乎热搜
随机快手美女视频v2
三角洲每日密码TM
ICP备案查询V2
IP地址详情V1·本地
图床V2
某易云点歌V2
某易云点歌V3
手机号归属地查询
https://api.xunjinlu.fun/api/74/index.php
手机号归属地查询API文档
接口简介
本接口提供手机号归属地查询服务,用户可以通过传入11位手机号码,获取归属地、区号、邮编及行政区划码等全维度数据。请求说明
- 请求地址:https://api.xunjinlu.fun/api/74/index.php
- 请求方法:GET
- 请求头:无特殊请求头要求
请求参数
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口访问密钥(开启密钥访问时必填) |
| mobile | string | 是 | 需要查询的11位手机号 |
返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | integer | 状态码,200表示成功 |
| msg | string | 描述信息,成功时为"success" |
| data | object | 返回的具体数据 |
| - mobile | string | 查询的手机号 |
| - location | string | 归属地 |
| - area_code | string | 区号 |
| - postcode | string | 邮编 |
| - division_code | string | 行政区划码 |
| api_info | object | 接口信息 |
| - developer | string | 开发者 |
| - blog | string | 开发者博客 |
| - api_platform | string | API平台 |
返回示例
成功响应
{
"code": 200,
"msg": "success",
"data": {
"mobile": "13000000000",
"location": "云南 曲靖 联通",
"area_code": "0874",
"postcode": "655000",
"division_code": "530300"
},
"api_info": {
"developer": "尋鯨錄",
"blog": "https://www.xunjinlu.fun",
"api_platform": "https://api.xunjinlu.fun"
}
}
失败响应
{
"code": 404,
"msg": "手机号不存在"
}
错误码说明
404:手机号不存在
调用示例
直接访问链接
手机号归属地查询APIcURL命令示例
curl -X GET "https://api.xunjinlu.fun/api/74/index.php?key=YOUR_KEY&mobile=13000000000"
JavaScript (fetch) 示例
fetch('https://api.xunjinlu.fun/api/74/index.php?key=YOUR_KEY&mobile=13000000000')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
jQuery AJAX 示例
$.ajax({
url: 'https://api.xunjinlu.fun/api/74/index.php?key=YOUR_KEY&mobile=13000000000',
type: 'GET',
dataType: 'json',
success: function(data) {
console.log(data);
},
error: function(error) {
console.error('Error:', error);
}
});
Python (requests) 示例
import requests
url = 'https://api.xunjinlu.fun/api/74/index.php'
params = {
'key': 'YOUR_KEY',
'mobile': '13000000000'
}
response = requests.get(url, params=params)
data = response.json()
print(data)
PHP (curl) 示例
$url = 'https://api.xunjinlu.fun/api/74/index.php';
$params = array(
'key' => 'YOUR_KEY',
'mobile' => '13000000000'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);