Search code examples
javascriptgoogle-chromegoogle-chrome-extensionwhatsapp

How to check valid contact number? Not format like if it actually exist or not without sending verification message?


I am developing chrome extension to send messages in BULK via WhatsApp. The problem I am currently facing is that I cannot validate phone number. I have used regex to check format and length. But still its not enough. By term invalid contact number, I meant to say that the number does not exist or belong to a person. I have seen a lot of questions on stack overflow but most of them are about checking contact numbers with regex. The major problem occurs when an invalid number comes in a list it stops sending msgs to remaining numbers. I cannot control it. So, I want to check invalid numbers and avoid sending request to them. Kindly guide me in this. I want to use like API or something like that to check if number actually exist. I'm having trouble with this, and I was wondering if anyone could help me out. As I'm feeling stuck and don't know how to proceed.


Solution

  • This API does just what you've described: https://rapidapi.com/inutil-inutil-default/api/bulk-whatsapp-validator/

    This one too: https://apify.com/inutil_labs/wscrp-free