Whatsapp Unofficial
Number checker

Getting Started with Whatsapp Unofficial

Make sure you install the packages and get your env variables first

Package Setup

Install the packages

npm install node-fetch

Add env variables

WOTMASTER_SECRET=... # A secret key for your app (starts with wotmaster_)
⚠️

If you don't already have a wotmaster secret key, sign up (opens in a new tab) and create one from the dashboard! (opens in a new tab)

Set Up A Whatsapp Unofficial Service

Send request to check if number is present on Whatsapp

src/utils/checkNumber.ts
import fetch from "node-fetch";
 
const url = "http://wotmaster.com/api/wu/check";
 
const response = await fetch(url, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringfy({
    key: "wotmaster_••••••••••••••••••••••••",
    countryCode: "91",
    phone: "9999999999",
    instanceId: "••••••••••••••••••••••••",
  }),
});
if (response.ok) {
  const body = await response.json();
  const { valid } = body;
  console.log(valid); // True / False
}

Params

key = WOTMASTER_SECRET
countryCode = International country code without +
phone = Whatsapp number of receiver without countryCode
instanceId = Instance Id of whatsapp account connected and active
⚠️

This API is rate limited to 1 check / 1 second / 1 instanceId