运营商检测API:手机号运营商与号码类型查询
查询手机号的运营商、号码类型(移动/固话)、国家与归属地。基于离线号段库全球覆盖,毫秒级返回。巴西、墨西哥、俄罗斯、瑞士、秘鲁五国使用官方监管机构号段数据(ABR Telecom、IFT、NIC Telecom、OFCOM、MTC)。
代码示例:
curl -X POST 'https://api.ekycpro.com/v1/check' \-H 'X-API-Key: YOUR_API_KEY' \-H 'Content-Type: application/json' \-d '{"service_type": "carrier", "identifier": "+5511987654321"}'成功响应:
{ "success": true, "data": { "id": "chk_a1b2c3d4e5f6", "identifier": "+5511987654321", "registered": true, "carrier": "TIM", "number_type": "Mobile", "country_code": "BR", "region": "Sao Paulo", "city": "", "billed": true }}HTTP 请求
POST https://api.ekycpro.com/v1/check
请求头
| Header | 说明 |
|---|---|
X-API-Key | 你的 API Key(必填) |
Content-Type | application/json |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
service_type | string | 是 | carrier |
identifier | string | 是 | E.164 格式手机号 |
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
success | bool | 请求是否成功 |
data.identifier | string | 被查询的手机号 |
data.registered | bool | 号码是否属于有效的运营商号段分配 |
data.carrier | string | 运营商名称(未知为空) |
data.number_type | string | Mobile、Landline 等 |
data.country_code | string | ISO 国家码(如 BR) |
data.region | string | 地区/州(官方号段库数据) |
data.city | string | 城市或粗粒度归属地 |
data.id | string | 本次检测唯一 ID |
data.billed | bool | 本次请求是否计费 |
数据来源
| 国家 | 来源 |
|---|---|
| 巴西 | ABR Telecom SMP |
| 墨西哥 | IFT PNN |
| 俄罗斯 | NIC Telecom DEF |
| 瑞士 | OFCOM E.164 |
| 秘鲁 | MTC 移动号段 |
| 其他国家 | 国际号段库元数据 |
运营商检测也可用于组合检测——把 carrier 加入手机号组合,一次调用同时获得运营商信息与各平台注册信号。
NOT_FOUND
返回 "success": false、"error": "NOT_FOUND" 表示未查询到结果,包括上游服务异常、超时或无法给出确定结论的情况。NOT_FOUND 不计费,也不代表账号未注册,可稍后重试。
状态码
| 状态码 | 说明 |
|---|---|
200 | 请求成功 |
400 | 手机号非法或 service_type 不支持 |
401 | API Key 无效 |
402 | 余额不足 |