注册并联系客服,免费领取 100 次检测。免费注册

AvatarLookup API 文档

所有端点共用同一个 API Key 与余额。

项目值
Base URLhttps://api.avatarlookup.com
鉴权头X-API-Key: sk_your_api_key
响应结构{ code, msg, data }
最低计费
有可计费结果时,设有最低计费量的产品至少按该下限结算。
退款
多预扣的余额会退回,零条可计费结果全额退款。

单价请见价格页。 查看定价

认证

使用在设置中创建的 API Key,并随每次请求一起发送。

鉴权头
X-API-Key: sk_your_api_key

妥善保管您的 API Key请始终从您的服务端发起请求;持有该 Key 的任何人都可以消耗您的账户余额。

同步检测

POST/api/v1/checkPOST/api/v1/batch-checkPOST/api/v1/image/profile

提交一个标识,或在一次请求里提交最多 100 个,结果都在同一次响应里返回,不需要轮询也不需要回调。无法判定时返回 422 与业务码 42200,且不计费。多号请求保持提交顺序、每个标识独立计费,整批限时 300 秒,超时则整批失败并全额退款。图片画像识别走独立端点 /api/v1/image/profile,入参是一张图片而不是标识。

请求参数

字段类型说明
service_typestring产品码,取下面列出的任一产品。
identifierstring单号检测用:一个标识。服务端会做归一化。
identifiersstring[]多号检测用:1~100 个标识,响应按此顺序返回。
filefile图片画像识别用:一张人像图片(multipart 上传),没有 identifier。

图片人像解析

image_profile图片

上传任意一张图,得到它的画像属性:估计年龄、性别、图片类型、发色与肤色。

单号检测

POST/api/v1/image/profile
请求
curl -X POST "https://api.avatarlookup.com/api/v1/image/profile" \
  -H "X-API-Key: sk_your_api_key" \
  -F service_type=image_profile \
  -F [email protected]
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "service_type": "image_profile",
    "identifier": "img:7013df96c540904a4b7ba295e9162ab2",
    "category": "individual portrait",
    "age": 39,
    "gender": "male",
    "skin_color": "white",
    "hair_color": "brown"
  }
}
响应字段
字段类型说明
identifierstring提交图片的指纹,由图片内容算出。同一张图恒定是同一个值。
categorystring图片是什么:individual portrait、group photo、game avatar、cartoon avatar、landscape、pet avatar 或 object。没跑出画像时为 unknown。
ageinteger估计年龄,整数,误差约 3 岁,范围 0-80。估计不出时(例如没判定出性别)不返回该字段。
genderstringmale、female 或 unknown。
skin_colorstring描述性的肤色,如 white、east_asian、hispanic。按开放集合处理;判不出时为 unknown。
hair_colorstring描述性的发色,如 black、brown、blond、gray white。按开放集合处理;判不出时为 unknown。

邮箱头像解析

email_profile邮箱

查一个邮箱账号有没有头像,并读出它的画像属性。覆盖 Gmail、Yandex、Mail.ru。

单号检测

POST/api/v1/check
请求
curl -X POST "https://api.avatarlookup.com/api/v1/check" \
  -H "X-API-Key: sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "service_type": "email_profile", "identifier": "[email protected]" }'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "service_type": "email_profile",
    "identifier": "[email protected]",
    "avatar": true,
    "avatar_url": "https://lh3.googleusercontent.com/a/example",
    "category": "individual portrait",
    "age": 39,
    "gender": "male",
    "skin_color": "white",
    "hair_color": "brown"
  }
}
响应字段
字段类型说明
avatarboolean是否设置了头像。
avatar_urlstring头像的图片地址;未设置头像时为空字符串。
categorystring图片是什么:individual portrait、group photo、game avatar、cartoon avatar、landscape、pet avatar 或 object。没跑出画像时为 unknown。
ageinteger估计年龄,整数,误差约 3 岁,范围 0-80。估计不出时(例如没判定出性别)不返回该字段。
genderstringmale、female 或 unknown。
skin_colorstring描述性的肤色,如 white、east_asian、hispanic。按开放集合处理;判不出时为 unknown。
hair_colorstring描述性的发色,如 black、brown、blond、gray white。按开放集合处理;判不出时为 unknown。

多号检测

POST/api/v1/batch-check
请求
curl -X POST "https://api.avatarlookup.com/api/v1/batch-check" \
  -H "X-API-Key: sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "service_type": "email_profile", "identifiers": ["[email protected]", "[email protected]", "not-an-email"] }'
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "service_type": "email_profile",
    "total": 3,
    "succeeded": 2,
    "failed": 1,
    "results": [
      {
        "identifier": "[email protected]",
        "exists": true,
        "avatar": true,
        "avatar_url": "https://lh3.googleusercontent.com/a/example",
        "category": "individual portrait",
        "age": 39,
        "gender": "male",
        "skin_color": "white",
        "hair_color": "brown"
      },
      {
        "identifier": "[email protected]",
        "exists": true,
        "avatar": false,
        "avatar_url": "",
        "category": "unknown",
        "gender": "unknown",
        "skin_color": "unknown",
        "hair_color": "unknown"
      },
      {
        "identifier": "not-an-email",
        "exists": false
      }
    ]
  }
}
响应字段
字段类型说明
existsboolean该标识是否得到了结果。为 false 表示标识格式错误、结果无法判定或本次检测失败;为 false 时,以下字段均不出现。
avatarboolean是否设置了头像。
avatar_urlstring头像的图片地址;未设置头像时为空字符串。
categorystring图片是什么:individual portrait、group photo、game avatar、cartoon avatar、landscape、pet avatar 或 object。没跑出画像时为 unknown。
ageinteger估计年龄,整数,误差约 3 岁,范围 0-80。估计不出时(例如没判定出性别)不返回该字段。
genderstringmale、female 或 unknown。
skin_colorstring描述性的肤色,如 white、east_asian、hispanic。按开放集合处理;判不出时为 unknown。
hair_colorstring描述性的发色,如 black、brown、blond、gray white。按开放集合处理;判不出时为 unknown。

WhatsApp 头像解析

ws_profile手机号

查一个号码在 WhatsApp 上有没有头像,取回图片地址,并读出这张头像的画像属性。

单号检测

POST/api/v1/check
请求
curl -X POST "https://api.avatarlookup.com/api/v1/check" \
  -H "X-API-Key: sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "service_type": "ws_profile", "identifier": "+16175550158" }'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "service_type": "ws_profile",
    "identifier": "+16175550158",
    "registered": true,
    "avatar": true,
    "avatar_url": "https://pps.whatsapp.net/v/example.jpg",
    "category": "individual portrait",
    "age": 39,
    "gender": "male",
    "skin_color": "white",
    "hair_color": "brown"
  }
}
响应字段
字段类型说明
registeredboolean该号码是否注册了 WhatsApp。
avatarboolean是否设置了头像。
avatar_urlstring头像的图片地址;未设置头像时为空字符串。
categorystring图片是什么:individual portrait、group photo、game avatar、cartoon avatar、landscape、pet avatar 或 object。没跑出画像时为 unknown。
ageinteger估计年龄,整数,误差约 3 岁,范围 0-80。估计不出时(例如没判定出性别)不返回该字段。
genderstringmale、female 或 unknown。
skin_colorstring描述性的肤色,如 white、east_asian、hispanic。按开放集合处理;判不出时为 unknown。
hair_colorstring描述性的发色,如 black、brown、blond、gray white。按开放集合处理;判不出时为 unknown。

多号检测

POST/api/v1/batch-check
请求
curl -X POST "https://api.avatarlookup.com/api/v1/batch-check" \
  -H "X-API-Key: sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "service_type": "ws_profile", "identifiers": ["+16175550158", "+16175550104", "12345"] }'
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "service_type": "ws_profile",
    "total": 3,
    "succeeded": 2,
    "failed": 1,
    "results": [
      {
        "identifier": "+16175550158",
        "exists": true,
        "registered": true,
        "avatar": true,
        "avatar_url": "https://pps.whatsapp.net/v/example.jpg",
        "category": "individual portrait",
        "age": 39,
        "gender": "male",
        "skin_color": "white",
        "hair_color": "brown"
      },
      {
        "identifier": "+16175550104",
        "exists": true,
        "registered": false,
        "avatar": false,
        "avatar_url": "",
        "category": "unknown",
        "gender": "unknown",
        "skin_color": "unknown",
        "hair_color": "unknown"
      },
      {
        "identifier": "12345",
        "exists": false
      }
    ]
  }
}
响应字段
字段类型说明
identifierstring有效号码返回归一化后的 E.164 值;无效号码保留提交值,并返回 exists: false。
existsboolean该标识是否得到了结果。为 false 表示标识格式错误、结果无法判定或本次检测失败;为 false 时,以下字段均不出现。
registeredboolean该账号在对应平台上是否存在(邮箱产品与 avatar 相同,表示有没有公开头像)。仅在 exists 为 true 时出现,含义与单次查询一致。
avatarboolean是否设置了头像。
avatar_urlstring头像的图片地址;未设置头像时为空字符串。
categorystring图片是什么:individual portrait、group photo、game avatar、cartoon avatar、landscape、pet avatar 或 object。没跑出画像时为 unknown。
ageinteger估计年龄,整数,误差约 3 岁,范围 0-80。估计不出时(例如没判定出性别)不返回该字段。
genderstringmale、female 或 unknown。
skin_colorstring描述性的肤色,如 white、east_asian、hispanic。按开放集合处理;判不出时为 unknown。
hair_colorstring描述性的发色,如 black、brown、blond、gray white。按开放集合处理;判不出时为 unknown。

批量检测

POST/api/v1/bulk-tasksGET/api/v1/bulk-tasks/{id}

上传文件后立刻拿到任务号,之后按任务号查询;成功的响应里带 result_url 结果下载链接。对外只有提交与查询两个动作,轮询间隔不要短于 30 秒。 按任务创建时间计算,超过 60 天后查询返回 HTTP 410 (41000).

请求参数

字段类型说明
service_typestring批量产品码,取下面列出的任一产品。 min_billable_count 是 GET /api/v1/bulk-products 返回的只读产品字段,提交任务时传入 0 也不能关闭最低计费。 调用目录接口时请带上请求头 X-App-Code: avatar。
countrystringISO 3166-1 国家码(如 US)。号码类任务必填:每个号码都要带国家码并属于这个国家(不符合的号码会被排除、不计费),也用它选路。multipart 时必须排在 file 之前。
filefile.txt 或 .csv,每行一个标识,不超过 max_file_bytes(默认 20MB)。
Idempotency-Keyheader可选,≤128 字符。同一个 key 重放返回原任务,不会重复建单。

WhatsApp 头像解析 · 批量

ws_profile_batch手机号每个任务可提交 1–500,000 条;最低计费条数为 500(0 表示按实际可计费结果计费);零条可计费结果全额退款。

上传整份号码文件,批量返回 WhatsApp 头像链接,以及头像识别结果:类别、年龄、性别、肤色与发色。

提交任务

POST/api/v1/bulk-tasks
请求
curl -X POST "https://api.avatarlookup.com/api/v1/bulk-tasks" \
  -H "X-API-Key: sk_your_api_key" \
  -F service_type=ws_profile_batch \
  -F country=US \
  -F [email protected]
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "ws_profile_batch",
    "status": "processing",
    "country": "US",
    "submitted_lines": 509,
    "total": 509,
    "invalid_cnt": 0,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 0,
    "preparing": true,
    "created_at": "2026-09-08T09:30:00Z"
  }
}

查询任务

GET/api/v1/bulk-tasks/{id}
请求
curl "https://api.avatarlookup.com/api/v1/bulk-tasks/3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13" \
  -H "X-API-Key: sk_your_api_key"
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "ws_profile_batch",
    "status": "success",
    "country": "US",
    "submitted_lines": 509,
    "total": 500,
    "invalid_cnt": 3,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 6,
    "preparing": false,
    "success_cnt": 495,
    "failure_cnt": 5,
    "result_url": "https://…/result.csv",
    "created_at": "2026-09-08T09:30:00Z"
  }
}
结果列
字段示例说明
identifier16175550158提交的号码,统一为带国家码的纯数字,不含加号和空格(例如 16175550158)。
registeredtrue该号码是否已注册 WhatsApp:true 或 false。不为 true 时,该行其余各列留空。
avatar_urlhttps://pps.waavatar.xyz/v/example.jpg头像链接;账号没有头像时为空。
categoryindividual portrait头像内容:individual portrait(个人照)、group photo(合照)、cartoon avatar(卡通)、pet avatar(宠物)、landscape(风景)、object(物品)等;认不出为 unknown,没有头像时为空。
age31根据头像估算的年龄;无法估算时为空。
gendermale根据头像估算的性别:male 或 female;认不出为 unknown,没有头像时为空。
skin_coloreast_asian根据头像估算的肤色,例如 white、asian、east_asian;认不出为 unknown,没有头像时为空。
hair_colorblack根据头像估算的发色,例如 black、brown;认不出为 unknown,没有头像时为空。

Telegram 号码资料 · 批量

tg_profile_batch手机号每个任务可提交 1–500,000 条;最低计费条数为 1,000(0 表示按实际可计费结果计费);零条可计费结果全额退款。

上传号码,批量返回 Telegram 用户 ID、用户名、活跃天数与头像链接,以及头像识别出的年龄、性别与肤色。

提交任务

POST/api/v1/bulk-tasks
请求
curl -X POST "https://api.avatarlookup.com/api/v1/bulk-tasks" \
  -H "X-API-Key: sk_your_api_key" \
  -F service_type=tg_profile_batch \
  -F country=US \
  -F [email protected]
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "tg_profile_batch",
    "status": "processing",
    "country": "US",
    "submitted_lines": 1015,
    "total": 1015,
    "invalid_cnt": 0,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 0,
    "preparing": true,
    "created_at": "2026-09-08T09:30:00Z"
  }
}

查询任务

GET/api/v1/bulk-tasks/{id}
请求
curl "https://api.avatarlookup.com/api/v1/bulk-tasks/3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13" \
  -H "X-API-Key: sk_your_api_key"
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "tg_profile_batch",
    "status": "success",
    "country": "US",
    "submitted_lines": 1015,
    "total": 1000,
    "invalid_cnt": 3,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 12,
    "preparing": false,
    "success_cnt": 990,
    "failure_cnt": 10,
    "result_url": "https://…/result.csv",
    "created_at": "2026-09-08T09:30:00Z"
  }
}
结果列
字段示例说明
identifier16175550158提交的号码,统一为带国家码的纯数字,不含加号和空格(例如 16175550158)。
registeredtrue该号码是否已注册 Telegram:true 或 false。不为 true 时,该行其余各列留空。
uid1234567890Telegram 用户 ID。
usernamealex_kim用户名,未设置时为空。
activedays9距上次在线的天数(整数),数值越小越近期。账号隐藏了精确在线时间时,Telegram 只给出大致范围,此时为近似值:0(最近)、7(一周内)、30(一月内)或 1000(很久以前)。
avatar_urlhttps://telegram.waavatar.xyz/v/example.jpg头像链接;账号没有头像时为空。
age31根据头像估算的年龄;无法估算时为空。
gendermale根据头像估算的性别:male 或 female;认不出为 unknown,没有头像时为空。
skin_colorwhite根据头像估算的肤色,例如 white、asian、east_asian;认不出为 unknown,没有头像时为空。

Viber 号码资料 · 批量

viber_profile_batch手机号每个任务可提交 1–500,000 条;最低计费条数为 500(0 表示按实际可计费结果计费);零条可计费结果全额退款。

上传号码,批量返回 Viber 成员 ID、活跃天数与头像链接,以及头像识别出的类别、年龄、性别与肤色。

提交任务

POST/api/v1/bulk-tasks
请求
curl -X POST "https://api.avatarlookup.com/api/v1/bulk-tasks" \
  -H "X-API-Key: sk_your_api_key" \
  -F service_type=viber_profile_batch \
  -F country=US \
  -F [email protected]
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "viber_profile_batch",
    "status": "processing",
    "country": "US",
    "submitted_lines": 509,
    "total": 509,
    "invalid_cnt": 0,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 0,
    "preparing": true,
    "created_at": "2026-09-08T09:30:00Z"
  }
}

查询任务

GET/api/v1/bulk-tasks/{id}
请求
curl "https://api.avatarlookup.com/api/v1/bulk-tasks/3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13" \
  -H "X-API-Key: sk_your_api_key"
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "viber_profile_batch",
    "status": "success",
    "country": "US",
    "submitted_lines": 509,
    "total": 500,
    "invalid_cnt": 3,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 6,
    "preparing": false,
    "success_cnt": 495,
    "failure_cnt": 5,
    "result_url": "https://…/result.csv",
    "created_at": "2026-09-08T09:30:00Z"
  }
}
结果列
字段示例说明
identifier16175550158提交的号码,统一为带国家码的纯数字,不含加号和空格(例如 16175550158)。
registeredtrue该号码是否已注册 Viber:true 或 false。不为 true 时,该行其余各列留空。
uidA5qCVDb3jPU=Viber 成员 ID。
activedays3距上次在线的天数,数值越小越近期。
avatar_urlhttps://viber.waavatar.xyz/v/example.jpg头像链接;账号没有头像时为空。
categoryindividual portrait头像内容:individual portrait(个人照)、group photo(合照)、cartoon avatar(卡通)、pet avatar(宠物)、landscape(风景)、object(物品)等;认不出为 unknown,没有头像时为空。
age31根据头像估算的年龄;无法估算时为空。
gendermale根据头像估算的性别:male 或 female;认不出为 unknown,没有头像时为空。
skin_colorwhite根据头像估算的肤色,例如 white、asian、east_asian;认不出为 unknown,没有头像时为空。

LINE 头像解析 · 批量

line_profile_batch手机号每个任务可提交 1–500,000 条;最低计费条数为 2,000(0 表示按实际可计费结果计费);零条可计费结果全额退款。

上传号码,批量返回 LINE 用户 ID 与头像链接,以及头像识别出的类别、年龄、性别、肤色与发色。

提交任务

POST/api/v1/bulk-tasks
请求
curl -X POST "https://api.avatarlookup.com/api/v1/bulk-tasks" \
  -H "X-API-Key: sk_your_api_key" \
  -F service_type=line_profile_batch \
  -F country=US \
  -F [email protected]
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "line_profile_batch",
    "status": "processing",
    "country": "US",
    "submitted_lines": 2027,
    "total": 2027,
    "invalid_cnt": 0,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 0,
    "preparing": true,
    "created_at": "2026-09-08T09:30:00Z"
  }
}

查询任务

GET/api/v1/bulk-tasks/{id}
请求
curl "https://api.avatarlookup.com/api/v1/bulk-tasks/3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13" \
  -H "X-API-Key: sk_your_api_key"
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "line_profile_batch",
    "status": "success",
    "country": "US",
    "submitted_lines": 2027,
    "total": 2000,
    "invalid_cnt": 3,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 24,
    "preparing": false,
    "success_cnt": 1980,
    "failure_cnt": 20,
    "result_url": "https://…/result.csv",
    "created_at": "2026-09-08T09:30:00Z"
  }
}
结果列
字段示例说明
identifier16175550158提交的号码,统一为带国家码的纯数字,不含加号和空格(例如 16175550158)。
registeredtrue该号码是否已注册 LINE:true 或 false。不为 true 时,该行其余各列留空。
uidu5158553776c28d9164035c4fd0a07cd4LINE 用户 ID。
avatar_urlhttps://profile.line-scdn.net/example头像链接;账号没有头像时为空。
categoryindividual portrait头像内容:individual portrait(个人照)、group photo(合照)、cartoon avatar(卡通)、pet avatar(宠物)、landscape(风景)、object(物品)等;认不出为 unknown,没有头像时为空。
age31根据头像估算的年龄;无法估算时为空。
gendermale根据头像估算的性别:male 或 female;认不出为 unknown,没有头像时为空。
skin_coloreast_asian根据头像估算的肤色,例如 white、asian、east_asian;认不出为 unknown,没有头像时为空。
hair_colorblack根据头像估算的发色,例如 black、brown;认不出为 unknown,没有头像时为空。

Zalo 号码资料 · 批量

zalo_profile_batch手机号每个任务可提交 1–500,000 条;最低计费条数为 500(0 表示按实际可计费结果计费);零条可计费结果全额退款。

上传号码,批量返回 Zalo 用户 ID 与头像链接,以及头像识别出的类别、年龄、性别与肤色。

提交任务

POST/api/v1/bulk-tasks
请求
curl -X POST "https://api.avatarlookup.com/api/v1/bulk-tasks" \
  -H "X-API-Key: sk_your_api_key" \
  -F service_type=zalo_profile_batch \
  -F country=US \
  -F [email protected]
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "zalo_profile_batch",
    "status": "processing",
    "country": "US",
    "submitted_lines": 509,
    "total": 509,
    "invalid_cnt": 0,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 0,
    "preparing": true,
    "created_at": "2026-09-08T09:30:00Z"
  }
}

查询任务

GET/api/v1/bulk-tasks/{id}
请求
curl "https://api.avatarlookup.com/api/v1/bulk-tasks/3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13" \
  -H "X-API-Key: sk_your_api_key"
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "id": "3f9c2a7d8e4b4c1a9f0e6b2d5c8a7e13",
    "product": "zalo_profile_batch",
    "status": "success",
    "country": "US",
    "submitted_lines": 509,
    "total": 500,
    "invalid_cnt": 3,
    "no_code_cnt": 0,
    "other_country_cnt": 0,
    "duplicate_cnt": 6,
    "preparing": false,
    "success_cnt": 495,
    "failure_cnt": 5,
    "result_url": "https://…/result.csv",
    "created_at": "2026-09-08T09:30:00Z"
  }
}
结果列
字段示例说明
identifier16175550158提交的号码,统一为带国家码的纯数字,不含加号和空格(例如 16175550158)。
registeredtrue该号码是否已注册 Zalo:true 或 false。不为 true 时,该行其余各列留空。
uid452114152Zalo 用户 ID。
avatar_urlhttps://s160-ava-talk.zadn.vn/example.jpg头像链接;账号没有头像时为空。
categoryindividual portrait头像内容:individual portrait(个人照)、group photo(合照)、cartoon avatar(卡通)、pet avatar(宠物)、landscape(风景)、object(物品)等;认不出为 unknown,没有头像时为空。
age31根据头像估算的年龄;无法估算时为空。
gendermale根据头像估算的性别:male 或 female;认不出为 unknown,没有头像时为空。
skin_colorasian根据头像估算的肤色,例如 white、asian、east_asian;认不出为 unknown,没有头像时为空。

余额查询

GET/api/v1/balance

查询账户当前余额(USD micros)。只读接口:不产生检测记录,也不扣费。

余额查询

GET/api/v1/balance
请求
curl "https://api.avatarlookup.com/api/v1/balance" \
  -H "X-API-Key: sk_your_api_key"
响应
{
  "code": 0,
  "msg": "ok",
  "data": {
    "balance_micros": 12500000
  }
}

并发、超时与重试方式

头像检测采用同步响应,请根据返回码决定接收结果或稍后重试。

字段说明
每个用户最多 5 个请求在处理单次检测与多条检测共用这个上限,一次多标识请求算一个请求,与标识数量无关。此外每个账号同时只能跑 1 个多条检测,第二个会被拒绝直到前一个结束。达到任一上限都会立即返回业务码 42901 并附带 Retry-After 响应头,不扣费,等已有请求结束后再提交即可。
单次 60 秒,多条 300 秒超过后返回业务码 50400,不计费;多条超时是整批失败,不返回部分结果,已扣费用全额退回。
多标识单次最多 100 个标识结果按提交顺序、同等长度返回。每个账号同时只跑 1 个多条检测,上一批返回后再提交下一批。

错误码

业务码说明
40000不支持的 service_type 或字段冲突
40001JSON 请求体无效
40002标识无效
40100缺少或无效的 API Key
40200余额不足
42200暂时无法判定该标识。不返回 data,且本次不计费
42900次数配额已用完,或未完成订单数超限
429015 个在处理的请求名额已满,或该账号已有一个多条检测在跑;已有请求结束后可再次提交,拒绝请求不扣余额,响应带 Retry-After
50303平台此刻处理中的检测已达上限,不扣费;按 Retry-After 的秒数等待后重新提交同一请求
50400本次检测未在超时预算内完成,不计费,可直接重试;批量超时为整批失败并全额退款
50300检测服务维护中