@antoniocesar/whatsapp-scraper
v1.0.1
Published
Node.js client for WhatsApp Scraper RapidAPI using native fetch
Maintainers
Readme
WhatsApp Scraper Client
WhatsApp Scraper public data client for RapidAPI.
Install
npm install @antoniocesar/whatsapp-scraperGet your API key
Create an app and subscribe on RapidAPI: https://rapidapi.com/antoniocesar16794/api/whatsapp-scraper1
Usage (Fetch-based client)
const { createClient } = require("@antoniocesar/whatsapp-scraper");
const client = createClient(process.env.RAPIDAPI_KEY);
async function run() {
const single = await client.getProfile("5511999999999");
console.log("Single profile:", single);
const bodySingle = await client.postProfile("5511999999999");
console.log("Single profile (POST):", bodySingle);
const bulk = await client.getProfiles(["5511999999999", "12025551234"]);
console.log("Bulk:", bulk);
const status = await client.getStatus();
console.log("Status:", status);
}
run().catch(console.error);API methods
getProfile(number)-> GET/profile?number=...postProfile(number)-> POST/profilewith{ number }getProfiles(numbers)-> POST/profileswith{ numbers }getStatus()-> GET/status
API key validation
If key is missing, placeholder, invalid, or unauthorized, the client throws an error with guidance to get a valid key at: https://rapidapi.com/antoniocesar16794/api/whatsapp-scraper1
Node version
Requires Node.js 18+ (native Fetch support).
