WhatsApp Avatar Check API: Fields, Examples and Limits
What the WhatsApp avatar check returns for a phone number: registered, avatar and avatar_url, how to read empty values, and how to store results safely.

What does a WhatsApp avatar check return?
A WhatsApp avatar check (ws_avatar) takes one phone number in international format and returns, in the same response, whether the number is registered on WhatsApp, whether an avatar was obtained (avatar) and the image link (avatar_url), which may be an empty string. It can only return a profile photo that the account's privacy settings make visible, and the result describes the moment of the check.
A WhatsApp avatar check tells you, for one phone number, whether the number is registered on WhatsApp and whether a profile photo could be obtained at the moment of the check. In WA Lookup this is the ws_avatar product: you send one number to POST /api/v1/check and read registered, avatar and avatar_url in the same response. It can only return a photo that the account's own privacy settings make visible, and the check does not send any message to the number.
Which WA Lookup check do you need?
WA Lookup has five realtime WhatsApp checks. They share one endpoint, one API key and one balance, and every one of them also reports registration. The service_type you send decides which extra fields come back.
| Product | service_type |
Extra fields | Use it when you need |
|---|---|---|---|
| Registration Check | ws |
none | Only whether the number has a WhatsApp account |
| Avatar Check | ws_avatar |
avatar, avatar_url |
Whether a profile photo is visible, and its link |
| Avatar Analysis | ws_profile |
avatar, avatar_url, category, age, gender, skin_color, hair_color |
What the photo shows, as estimates |
| Business Account Check | ws_business |
business |
Whether the account is a WhatsApp Business account |
| Activity Check | ws_active |
activedays |
Days since the account was last active |
This article covers ws_avatar, with a short section on when ws_profile is the better choice.
How do you call the avatar check?
Send the number in international (E.164) form with its country code. The leading + is optional; the server normalizes it. If your data holds local formats, see what the E.164 format is before you start.
curl -X POST "https://api.walookup.com/api/v1/check" \
-H "X-API-Key: sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "service_type": "ws_avatar", "identifier": "+12345678900" }'
A completed check returns the standard code, msg, data envelope:
{
"code": 0,
"msg": "ok",
"data": {
"service_type": "ws_avatar",
"identifier": "+12345678900",
"registered": true,
"avatar": true,
"avatar_url": "<image url>"
}
}
| Field | Type | Meaning |
|---|---|---|
registered |
boolean | Whether the number is registered on WhatsApp |
avatar |
boolean | Whether the account has an avatar set |
avatar_url |
string | The image link; an empty string when no URL is available |
For a number that is not registered, the same request returns registered: false, avatar: false and avatar_url: "". Keep the API key on your server: anyone holding it can spend your balance.
Checking several numbers in one request
POST /api/v1/batch-check takes identifiers, an array of 1 to 100 numbers, and returns the results in the same order within the same response. Each row carries exists: true means that number produced a result and the avatar fields follow; false means the format was invalid, the result was undetermined or the check failed, and no other fields are present for that row. Each number is billed on its own.
What happens when the check cannot decide?
A number that cannot be determined returns HTTP 422 with code 42200, no data and no charge. Do not save that as avatar=false or registered=false; record it as unresolved and try again later. Code 42901 means your in-flight request slots are full (resubmit after the Retry-After header), and 50400 is a timeout, also not charged. The API documentation lists every error code.
How to read the avatar fields
Read registered first, then avatar, then avatar_url. The combinations you will see:
registered |
avatar |
avatar_url |
Reasonable reading |
|---|---|---|---|
true |
true |
a link | A visible photo existed at check time; the link is a snapshot of it |
true |
true |
"" |
A photo is set, but no image link was available; keep avatar=true |
true |
false |
"" |
Registered, no photo obtained: none set, removed, or not shown publicly |
false |
false |
"" |
Not registered at check time; the avatar fields carry no information |
code 42200 |
none | none | No decision; retry later, do not record a value |
Two rules prevent most mistakes. First, avatar=false never means the number is unregistered; registration is its own field. Second, a photo is not proof of identity. It can be a logo, a pet, a landscape or another person, and nothing in the result confirms who controls the account, whether they agreed to be contacted, or whether a message will reach them.
What a "WhatsApp profile picture API" can and cannot return
Many people searching for a WhatsApp profile picture API want the photo for a number they already have. WhatsApp lets each user choose who can see their profile photo, as described in How to change your privacy settings. The avatar check works within that choice: when the photo is visible publicly, you get avatar=true and usually a link; when the owner limits it, you get avatar=false or an empty avatar_url. There is no way to retrieve a photo the owner has restricted, and this API does not try.
Reasonable uses are narrow: showing the public photo next to an inbound conversation in a support tool, completing contact records your organization already holds, or helping an operator review a short list by hand. Do not use the photo to infer personal traits or to build profiles of people, and do not reuse it in marketing material without a lawful basis.
If you just want to look up one number's public photo by hand rather than integrate an API, the walkthrough on seeing a WhatsApp profile photo by phone number and the checker page are the faster route.
When should you use avatar analysis (ws_profile) instead?
ws_profile returns the same avatar and avatar_url fields and then describes the picture itself:
category: individual portrait, group photo, game avatar, cartoon avatar, landscape, pet avatar or object;unknownwhen no portrait could be produced.age: an estimated age as an integer; it may be absent when it could not be estimated.gender,skin_color,hair_color: descriptive estimates; treat the colour values as open sets, withunknownwhen not determined.
These are estimates about the picture, not facts about the account owner. Choose ws_profile when your workflow needs to separate real portraits from logos, cartoons or landscapes; choose ws_avatar when you only need to know whether a photo is visible and where to fetch it. Details are on the Avatar Analysis product page.
How should you store avatar_url and the check result?
The URL is the field that most often surprises an integration, because it can be an empty string and because a link is a different thing to store than a boolean.
- Keep
avatarandavatar_urlin two columns. They answer different questions: whether a photo is set, and where an image could be fetched. Folding them into one nullable column loses the first answer whenever the link is empty, and an empty link is a normal outcome. - Store the check time next to the URL. Profile photos change. A stored link is a snapshot of what was available when you checked, not a permanent address, and it may stop working. When you need a current photo, run a new check instead of trusting an old link.
- Decide whether you need the URL at all. If your process only uses the flag, discard the link and the retention questions go with it.
- Treat fetching the image as a separate step. Downloading what a link points to has its own failures and timing. Log it apart from the check, so a failed download never looks like a failed check.
- Normalize once at the boundary. Convert the response into your own representation in one place (for example, empty string becomes "no link") instead of testing for empty values all over the code.
A minimal record holds identifier, service_type, registered, avatar, avatar_url and your own checked_at. Unresolved attempts (code 42200 and other non-zero codes) belong in a separate log, not in these columns.
How do you run the avatar check on a larger list?
For a handful of numbers, the checker page runs the same check in the browser. For up to 100 numbers per call, use the synchronous multi request shown above. For a whole list far beyond that, the asynchronous bulk avatar check (ws_avatar_batch) accepts a TXT or CSV upload with a selected country, processes it, and gives you a result file with identifier, registered, avatar and avatar_url columns; rows that are not registered leave the other columns empty. Current limits and prices are on the pricing page. AI assistants can run the same realtime checks through the WA Lookup MCP server, described in the MCP documentation.
FAQ
Does avatar=false mean the number is not on WhatsApp?
No. A registered account may have no photo, may have removed it, or may not show it publicly. Read registered for the account question.
Can the avatar check return a photo hidden by privacy settings?
No. It only returns a photo the owner's privacy settings make visible. Restricted photos come back as avatar=false or an empty avatar_url.
Why is avatar_url empty when avatar is true?
The account has a photo set, but no image link was available at check time. Keep avatar=true and treat the link as missing rather than as an error.
How long does an avatar_url keep working?
There is no guaranteed lifetime. Store it with the check time, and run a fresh check when you need the current photo.
What is the difference between ws_avatar and ws_profile?
ws_avatar reports whether a photo is visible and its link. ws_profile adds estimated attributes of the picture, such as category, age and gender.