WhatsApp Lookup API: Endpoints, Products and Error Handling
How the WA Lookup API checks a phone number on WhatsApp in one request: endpoints, the five realtime products and their fields, multi checks, error codes and retries.

How does a WhatsApp lookup API work?
Your server sends a phone number to POST /api/v1/check on api.walookup.com with an X-API-Key header and a service_type, and the answer returns in the same response. ws reports registration; ws_avatar, ws_profile, ws_business and ws_active add avatar, avatar analysis, business-account and activity-day fields. Up to 100 numbers fit in one batch-check request. An undecided check returns code 42200 and is not charged.
A WhatsApp lookup API takes a phone number from your server and returns, in the same HTTP response, whether a WhatsApp account was registered on it at check time. With WA Lookup you send POST /api/v1/check to https://api.walookup.com with an X-API-Key header and a service_type that picks the product; up to 100 numbers fit in one POST /api/v1/batch-check request. A check that cannot be decided returns code 42200, is not charged, and should be retried rather than stored as "not registered".
Which products can the API check?
All realtime products share the same two endpoints, the same key and the same balance. The service_type value decides which fields come back. Every completed result contains service_type, identifier and registered; the table lists what each product adds.
service_type |
Product | Extra fields | Typical question |
|---|---|---|---|
ws |
Registration check | none | Is this number on WhatsApp? |
ws_avatar |
Avatar check | avatar, avatar_url |
Is a profile photo available, and where? |
ws_profile |
Avatar analysis | avatar, avatar_url, category, age, gender, skin_color, hair_color |
What kind of picture is the avatar, with estimated attributes? |
ws_business |
Business account check | business |
Is the account a WhatsApp Business account? |
ws_active |
Activity check | activedays |
How many days since the number was last active? |
Some boundaries to keep in client code: avatar_url can be an empty string even when avatar is true, and only avatars that the account's privacy settings make visible can be returned. age, gender, skin_color and hair_color are estimates, and age may be absent. business=false does not prove the account is personal. activedays is null when the number is not registered and is not a last-seen time. No product reports online status, identity or consent.
How to choose a product
Pick the product by the field your downstream code will actually read. If the CRM only stores "on WhatsApp: yes/no", ws is enough. Add ws_business, ws_active, ws_avatar or ws_profile only when a field depends on it, because every completed check is charged whether the answer is registered or not.
A common pattern for a large contact table is to run ws across everything first, then send only the registered subset to a richer product. Each richer product returns registered too, so do not run ws and then the richer product on the same number when one call would do. Current unit prices are on the pricing page.
How do you call the API for one number?
- Normalize to E.164. Country code plus national number, following ITU-T E.164. Strip spaces, brackets and trunk zeros; a German mobile written locally as 0151 2345 6789 becomes
+4915123456789. Google's libphonenumber handles this more safely than hand-written rules. The API accepts the number with or without+. - Authenticate from the server. Create a key in Settings and send it in
X-API-Key. - Send the request and read the same response.
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", "identifier": "+12345678900" }'
{
"code": 0,
"msg": "ok",
"data": {
"service_type": "ws",
"identifier": "+12345678900",
"registered": true
}
}
code: 0 with a boolean registered is a completed answer. Anything else is not an answer about the number; see the error table below.
Keep the API key on the server
Anyone holding the key can spend your balance. Load it from a secret store or environment variable on your backend, and have browsers or mobile apps call your own endpoint, which then calls WA Lookup. Never put the key in front-end JavaScript, an app bundle or a public repository. If a key may have leaked, create a new one in Settings, switch your backend to it, and delete the old one.
How do multi checks work?
POST /api/v1/batch-check takes service_type plus an identifiers array of 1 to 100 numbers. It is still synchronous: the whole result comes back in the response.
{
"code": 0,
"msg": "ok",
"data": {
"service_type": "ws",
"total": 3,
"succeeded": 2,
"failed": 1,
"results": [
{ "identifier": "+12345678900", "exists": true, "registered": true },
{ "identifier": "+19999999999", "exists": true, "registered": false },
{ "identifier": "12345", "exists": false }
]
}
}
Rules that shape the client:
- Read each entry's
exists.truemeans that number has a completed result.falsemeans the format was invalid, the result was undetermined, or the check failed, and no other fields are present. Retry only theexists: falseentries; keep the completed ones. - Order is preserved. Results come back in the same order and length as the input, and each number is billed independently.
- A request that fails, fails as a whole. If the multi request does not finish within 300 seconds it returns
50400, no partial results are returned, and every charge is refunded. Retry that whole chunk. - One multi check at a time. Only one multi request per account runs at once. Send the next chunk after the previous one returns, and deduplicate numbers before chunking.
How should errors and retries be handled?
Branch on code, not just on the HTTP status. These are the cases a backend meets most often:
| Code | Meaning | Charged? | What to do |
|---|---|---|---|
0 |
Completed result | Yes | Store the result with the check date |
40002 |
Invalid number | No | Fix the input format; do not retry as-is |
40100 |
Missing or invalid API key | No | Check the key configuration |
40200 |
Insufficient balance | No | Top up, then resubmit |
42200 |
Could not be determined this time | No | Leave the result empty; retry later with backoff |
42901 |
All 5 in-flight slots busy, or a multi check is already running | No | Wait for the Retry-After header, then resubmit |
50303 |
Service at capacity | No | Wait for Retry-After, then resubmit the same request |
50400 |
Timed out (60 s single, 300 s multi) | No | Retry; a multi timeout fails the whole batch |
The most expensive mistake is writing "not registered" when the check never reached a decision. Keep undecided numbers in a separate state such as "pending re-check", use exponential backoff with a cap on attempts, and alert if failures persist.
Concurrency
Each user can have 5 requests in flight across single and multi checks, and a multi request counts as one no matter how many numbers it carries. There is no fixed per-minute allowance. Size your worker pool to stay under that limit rather than relying on 42901 rejections, and read the API documentation again before scaling up.
How do you test the integration?
Start with a few numbers whose answer you already know, such as company phones, and exercise the registered, not-registered and retry paths from a staging environment. After you sign up, you can contact support to request the standard trial credit. The same key also works from an AI assistant through the MCP server.
Hosted APIs avoid the main weakness of scripts that drive a personal WhatsApp session: WhatsApp's Terms of Service restrict automated access, and such scripts stop working when that session goes offline.
When is a bulk task better than the API?
For a whole exported list far beyond what a few multi requests should carry, the asynchronous bulk products (ws_batch and its avatar, analysis, business and activity counterparts) accept a TXT or CSV upload for one selected country through POST /api/v1/bulk-tasks. You read the task status (processing, success or failed) and download a result file when it succeeds. Bulk file tasks do not cover mainland China, Hong Kong or Macau numbers. Per-product rules are in the API documentation; for anything a user is waiting on, stay with the realtime endpoints.
FAQ
Is a not-registered result charged?
Yes. A completed check is charged whether registered is true or false. Undetermined checks (42200), rejected requests (42901) and timeouts (50400) are not charged.
Does the API accept numbers without the plus sign?
Yes. The single-check identifier can be E.164 with or without the leading +; the server normalizes it. The number still needs its country code.
Can I call the API directly from a browser?
No. That would expose your API key. Call WA Lookup from your server and let the browser talk to your own endpoint.
Is there a per-minute rate limit?
No fixed per-minute limit. Capacity is controlled by 5 in-flight requests per user, with one multi check at a time; extra requests get 42901 with a Retry-After header.