实名校验与文本工具 · util.mobile.carrier

中国大陆手机号段运营商识别与隐私脱敏

识别中国移动、中国联通、中国电信、中国广电号段并返回标准脱敏格式。

请求地址(支持 GET / POST)
GET https://www.xntou.cn/api/open/v1/util/mobile-carrier
单次计费
¥0.01 / 1 点
沙箱体验
免费 20 次/日

⚡ 在线调试台(Sandbox Debugger)

实时返回结果
{
  "error_code": 0,
  "reason": "Success",
  "api_code": "util.mobile.carrier",
  "result": {
    "valid": true,
    "carrier": "中国联通",
    "maskedMobile": "176****3504"
  }
}

请求参数与返回字段说明

1. 请求参数

参数名类型必填示例默认值说明
mobile string 必填 17633723504 11 位中国大陆手机号

2. 核心返回字段(result)

字段路径类型说明
result.valid boolean 号段格式是否有效
result.carrier string 所属运营商
result.maskedMobile string 脱敏手机号

多语言接入代码示例

curl -s "https://www.xntou.cn/api/open/v1/util/mobile-carrier?key=YOUR_APP_KEY&mobile=17633723504"
import requests
resp = requests.get("https://www.xntou.cn/api/open/v1/util/mobile-carrier", params={
  "key": "YOUR_APP_KEY",
  "mobile": "17633723504"
})
print(resp.json())
const res = await fetch("https://www.xntou.cn/api/open/v1/util/mobile-carrier?key=YOUR_APP_KEY&mobile=17633723504");
console.log(await res.json());
<?php
$res = file_get_contents("https://www.xntou.cn/api/open/v1/util/mobile-carrier?key=YOUR_APP_KEY&mobile=17633723504");
echo $res;