Help Desk
  • Getting Started
    • ๐Ÿ™ŒWelcome to Whapi.Cloud
    • ๐Ÿ’ฐPricing
    • โ˜•Partners
    • ๐Ÿš€Getting started
    • ๐Ÿ‘จโ€๐Ÿ’ปAPI Docs
      • Developer hubs
      • Swagger environment
      • Postman collection
  • Sending
    • Introduction
    • Send text message
      • Whatsapp API send message PHP
      • Whatsapp API send message Python
      • Whatsapp API send message Node JS
      • Whatsapp API send message ะก#
      • Whatsapp API send message Java
      • API integration with VB6
      • Whatsapp API send message GO (Golang)
    • Send video, audio, image, document
    • Send Group message
    • Send post to WhatsApp Channel
    • Send message with Buttons
    • Send Emoji
    • Overview of other methods for sending
      • Send Voice message
      • Send contact (vCard)
      • Send message reactions
  • Receiving
    • Introduction
    • Webhooks
      • Our webhooks (Tracked events)
      • Where to Find the Webhook URL?
      • Set the webhook link to the channel
      • Detailed webhook settings
      • How to check the webhook?
      • Incoming webhooks format
        • Incoming message
        • Sent message
        • Chats
        • Groups
        • Account and device status
        • Other
          • Presences
          • Views of stories (statuses)
          • Story (status) from your contacts
          • Calls
      • Receive messages
        • Receive WhatsApp messages using PHP
        • Receive WhatsApp messages using Node js
        • Receive WhatsApp messages using Python
    • HTTP API
      • Retrieve a Specific User's Chat History
      • Get a full-size picture in the response
      • Get order items
      • Get a profile picture of a chat or user
    • File expiration period
  • Groups
    • Send Group message
      • Mentioning all participants in a WhatsApp group
    • Get list of group members
    • Add new member to Group
  • Channels
    • Send post to WhatsApp Channel
    • Get messages from Channels
    • Get votes from polls in the Channel
  • Communities
    • Introduction
    • Create a community
    • Add a member to a community
    • Send announcement
    • Get info on community participants
    • Add a group / Exclude a group from the community
  • Account
    • Setting "Auto Download"
    • Customizable Webhook Headers
    • How to find out the IP channel
    • How to Delete a Channel
    • Add Business Info to Invoice
  • Source code
    • WhatsApp ChatBot
      • WhatsApp Python Bot
      • WhatsApp PHP Bot
      • WhatsApp Node JS Bot
      • WhatsApp Java Bot
    • WhatsApp API Google Sheets
    • WhatsApp Phone Number Checker
    • Request Distributor (Balancer)
  • FAQ
    • Chat ID. What is it and how to get it?
    • Current status of Buttons on WhatsApp
    • How to send a paragraph (line break)
    • Inactive Links in WhatsApp Messages
    • WhatsApp Text Formatting
    • Checking if the number has Whatsapp
    • Specifics of sending messages to numbers of different countries
    • Why aren't participants being added to the group?
  • Does WhatsApp API Work with the Phone Turned Off?
  • Hints
    • Android Emulators
    • Virtual Numbers for WhatsApp
    • How to use polls as buttons?
    • How to check who blocked you in Whatsapp?
    • Setting up a WhatsApp proxy
  • Integrations
    • Make.com
      • Ready-Made Scenarios
        • WhatsApp & Whisper API: Voice-to-Text Integration
        • Automated WhatsApp Group Message Forwarding in Make.com
      • Request Scenario Setup
    • Pabbly Connect
    • Google Contacts
    • DialogFlow
    • n8n
  • Tools
    • WhatsApp Number Checker
    • Automatic warm-up module
    • WhatsApp Activity Safety Meter
    • Residential Proxies from Whapi.Cloud
  • Troubleshooting
    • Couldn't Link Device โ€“ WhatsApp QR Code or Pairing Code Fails
    • Channel status โ€œSYNC_ERRORโ€
    • Not getting a READ status on webhook
    • 429 (Too Many Requests) - Soft Ban
    • โ€œWaiting for this message. This may take a whileโ€ โ€“ WhatsApp Message Error
    • Missing push notifications after connecting to API
  • Blocking
    • How to not get Banned?
    • How to do mailings without the risk of being blocked?
    • If My Number Is Banned, Can It Be Restored?
    • Unlocking Your WhatsApp Number
    • Connecting a New WhatsApp Number After a Ban: Steps and Recommendations
    • Warming Up New Phone Numbers for WhatsApp API
  • Partner Documentation
    • Introduction
    • Partner Dashboard Overview
    • Partner Program Guidelines
      • Workflow: Step-by-Step
      • Billing for Partners
      • Allocating Days to Customer Channels: Best Practices & Guide
      • Interface for channel management
    • Partner Documentation
      • Channel creation
      • Changing channel mode
      • Channel extension
      • Channel deletion
      • Getting the list of channels
      • Notices of end of days on balance
Powered by GitBook
On this page

Was this helpful?

  1. Source code

WhatsApp Phone Number Checker

PreviousWhatsApp API Google SheetsNextRequest Distributor (Balancer)

Last updated 9 months ago

Was this helpful?

This script is developed to check the existence of phone numbers in WhatsApp. It analyzes the numbers specified in the file and classifies them into existing numbers in WhatsApp and non-existing ones.

Check any numbers from any country. Determine which phone numbers are active and which cannot receive Whatsapp messages. Optimize your resources and save time and money.

This tool was created using our public API that you can access too with your account. Getting Started with our API:

How to use

Preparation

Customization

  1. open the phones.json file.

  2. In the check_phones array, add the phone numbers you want to check. For example:

    {
      "`check_phones`: [ "number1", "number2".]
    }

Requirements

In the file config.json you need to insert the token from your personal account Whapi.Cloud, as well as the number you want to check. It also shows the limits we recommend to use. daily_limit is how many checks are left, and refreshed_limit is how much of the limit is set on refresh.

The delay argument determines the frequency of checks. And checks_per_delay is responsible for the number of numbers that will be checked during the check.

{
  "token":"YOUR-TOKEN",  // Whapi.Cloud channel token.
  "refreshed_limit": 1000, // Maximum number of checks per day.
  
  "last_limit_refresh": 0, // Date of last update of limits. (Filled automatically).
  "daily_limit":0 // Remaining number of checks per day (Filled automatically).
  
  "delay": 10000, // Pause between checks of the number packet
  "checks_per_delay": 5 // Amount of numbers to be checked by one packet
  
  // In this case, 5 numbers will be checked every 10 seconds, but a maximum of 1000 numbers per day.
}

Running the script

Open a terminal or command prompt in the folder with the script. Run the following commands to install the necessary dependencies and compile the script: npm i

Run the script with the command: npm run start

Result

When the script finishes, you will get two files with results: invalid.csv and valid.csv, where numbers will be filtered accordingly.

  • The invalid.csv file will contain numbers that do not have WhatsApp.

  • The valid.csv file will contain numbers that have WhatsApp.

  • The unlimited.csv file may appear if there are numbers left that are outside the daily limit you have set in the settings. This will allow you to continue working on checking numbers using this file.

Make sure you have installed.

Clone the repository or download of the script.

Node.js
the source files
Whapi.Cloud
https://support.whapi.cloud/help-desk/getting-started/getting-started
GitHub - Whapi-Cloud/whatsapp-checker: This checker is designed to check numbers for whatsapp installed on them. Validate any numbers from any country. Identify which phone numbers are active and those that are not able to receive whatsapp messages. Optimize your resources and save time and money.GitHub
Logo