跳转到内容

Telegram 批量头像检测 API:档案分析

检测输入的全球号码 Telegram 账户的头像信息,包括账户是否活跃、头像 URL、性别、年龄、发色和肤色。

上传检测文件示例:

Terminal window
curl --location 'https://api.checknumber.ai/v1/tasks' \
--header 'X-API-Key: API-KEY' \
--form 'file=@"./number.txt"' \
--form 'task_type="tg_avatar"'

查询任务状态示例:

Terminal window
curl --location 'https://api.checknumber.ai/v1/gettasks' \
--header 'X-API-Key: API-KEY' \
--form 'task_id="task_id"'

上传成功后的响应

{
"task_id": "d4g8o46p2jvh04o9uolg",
"status": "pending",
"total": 2049,
"estimated_amount": {
"amount": "0.500000",
"currency": "USD"
},
"message": "Task created successfully",
"created_at": "2025-11-21T15:58:08.916446594Z"
}

处理中

{
"created_at": "2025-11-21T08:27:09.933Z",
"updated_at": "2025-11-21T08:27:10.241Z",
"task_id": "d4g24nep2jvh04o9uoh0",
"user_id": "wfi7wGPS4B4PdtTMox5Y",
"status": "processing",
"total": 2049,
"success": 1024,
"failure": 0
}

完成(exported

{
"created_at": "2025-11-21T08:27:09.933Z",
"updated_at": "2025-11-21T08:27:10.241Z",
"task_id": "d4g24nep2jvh04o9uoh0",
"user_id": "wfi7wGPS4B4PdtTMox5Y",
"status": "exported",
"total": 2049,
"success": 2049,
"failure": 0,
"result_url": "https://example-link-to-results.zip",
"actual_amount": {
"amount": "2.000000",
"currency": "USD"
}
}

上传文件地址

POST https://api.checknumber.ai/v1/tasks

上传参数

参数说明
filefile,每行一个手机号(E.164 格式)
task_typestring,固定为 tg_avatar

查询任务状态地址

POST https://api.checknumber.ai/v1/gettasks

查询参数

参数说明
task_id任务 ID

结果字段

字段说明示例
NumberE.164 格式手机号+41798284651
telegram是否有活跃 Telegram 账户yes, no
avatarTelegram 头像 URLhttps://example.com/avatar.jpg
age根据头像估计的年龄25
gender头像检测的性别male, female
category头像分类individual portrait, pet avatar, object, etc.
hair_color头像检测的发色black, brown, blonde, etc.
skin_color头像检测的肤色white, black, etc.

响应字段说明

字段说明
created_at创建时间
updated_at最后更新时间
task_id任务 ID
user_id用户 ID
statuspending · processing · exported · failed(自动退款)
total总行数
success成功数
failure失败数
result_url结果下载地址
actual_amount(可选)实际扣费金额,任务结算后返回
estimated_amount(创建响应)任务预估费用,最终以任务完成后的结算金额为准

状态码

状态说明
200free,请求成功(如状态查询)
202charge,任务创建成功,预扣预估费用
400free,错误的请求:参数或文件格式无效、任务类型不支持、或有效数据量低于最小批量
401free,API Key 缺失或无效
402free,账户余额不足
404free,任务不存在
413free,上传文件过大
500free,内部服务器错误,请稍后重试