Telegram检查器API:手机号码验证
检测手机号码是否在Telegram上注册。结果从缓存中快速返回。
代码示例:
curl -X POST 'https://api.ekycpro.ai/v1/check' \-H 'X-API-Key: YOUR_API_KEY' \-H 'Content-Type: application/json' \-d '{"service_type": "tg", "identifier": "+1234567890"}'成功响应:
{ "success": true, "data": { "id": "chk_a1b2c3d4e5f6", "identifier": "+1234567890", "registered": true, "billed": true }}错误响应:
{ "success": false, "error": "identifier not found in cache"}HTTP 请求
POST https://api.ekycpro.ai/v1/check
请求头
| 请求头 | 说明 |
|---|---|
X-API-Key | 您的API Key(必填) |
Content-Type | application/json |
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
service_type | string | 是 | tg |
identifier | string | 是 | E.164格式的手机号码 |
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
success | bool | 请求是否成功 |
data.identifier | string | 被检测的标识符 |
data.registered | bool | 账号是否已注册 |
data.id | string | 唯一检测请求ID |
data.billed | bool | 本次请求是否已计费 |
状态码
| 状态码 | 说明 |
|---|---|
200 | 检测完成 |
400 | 请求无效 |
401 | 未授权 |
500 | 服务器错误 |