how to check if a phone number is valid whatsapp number in Android?
Asked Answered
F

3

6

so I have an edit text that will be used as a view to get phone number from user, say if the phone number is +6123456789 , I want to check if this number has whatsapp number or not,i want to avoid the user to input fake whatsapp number, how to do that ?

Flashy answered 5/6, 2020 at 10:38 Comment(0)
G
7

Update (Nov 2022):

Whatsapp are repurposing the contacts node starting in v2.43 to no longer provide status information about a phone number. Regardless of whether a user has WhatsApp, it will always return valid for status in the response. For more information see official docs

original answer:

You must have: Facebook Whatsapp Business Api for contacts check

Once you have a valid business account you could then query the Contact. You will get all the details in the documentation.

Hope it works for you!

Gwendagwendolen answered 5/6, 2020 at 12:20 Comment(5)
is it free to perform phone number checking like this ? thank you very much for your information :)Flashy
but from the documentation in here: developers.facebook.com/docs/whatsapp/api/contacts . it is said that: "If you check too many phone numbers without sending to them, you will be banned"Flashy
Interesting. Any idea how many (Too many phone number) means?Trilly
there's a limitation for several period of time i guess....Tocharian
so basically after Update (Nov 2022) we can never ever check if the phone number is valid or not?Flashy
R
2

You can send a message to the phone number that you want to check, and if you get the 131026 error code in Webhook, it means your phone number is invalid.

Whatsapp error codes:

https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes/

Ruin answered 20/1, 2024 at 7:43 Comment(0)
N
0

You can try this service https://watverifyapi.live
It allows you to verify multiple whatsapp number at a time.

Ninon answered 4/10, 2022 at 4:44 Comment(4)
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From ReviewUnderpants
Is this still working after WhatsApp changes to the contacts node mentioned by on the answer above?Womankind
Yes still working so far I tested but its a paid serviceHegemony
What is the response time on this API?Afterdamp

© 2022 - 2025 — McMap. All rights reserved.