This api unofficial from GetContact

get-contact.js
A GetContact API gclient that connects through the GetContact Web browser app
It uses Puppeteer to run a real instance of GetContact Web to avoid getting blocked.
NOTE: I can't guarantee you will not be blocked by using this method, although it has worked for me. GetContact does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.
Quick Links
Installation
The module is now available on npm! npm i get-contact.js
Please note that Node v12+ is required.
Example usage
const { GClient } = require("get-contact.js");
const gclient = new GClient();
gclient.on("qr", (qr) => {
console.log("QR RECEIVED", qr);
});
gclient.on("ready", () => {
console.log("Client is ready!");
});
gclient.initialize();
Take a look at example.js for another example with more use cases.
Reference
https://github.com/pedroslopez/whatsapp-web.js