WhatsExtract API client (sync + async)
Project description
Node.js & Python client for the WhatsExtract API — extract leads (names, emails, phones, requirements) from WhatsApp messages using AI.
—
🚀 Features
Extracts name, email, phone, budget, company, requirements from WhatsApp-style text
95% accuracy, <500ms response time
Sync + Async client support
Works with Node.js and Python
Free tier: 100 calls/month
—
📦 Installation
Node.js:
npm install whatsextract
Python:
pip install whatsextract
—
⚡ Quick Start
Node.js (ESM):
import { WhatsExtract } from "whatsextract";
const client = new WhatsExtract(process.env.WE_API_KEY);
const result = await client.extract("Priya here. Email priya@gmail.com, phone 9876543210");
console.log(result);
Node.js (CommonJS):
const { WhatsExtract } = require("whatsextract");
const client = new WhatsExtract(process.env.WE_API_KEY);
client.extract("Contact Sarah at sarah@company.com or +1 555 123 4567")
.then(console.log);
Python:
from whatsextract import WhatsExtract
client = WhatsExtract("we_xxx")
print(client.extract("Email john@example.com").email)
—
📊 Example Response
{
"name": "Priya",
"email": "priya@gmail.com",
"phone": "+919876543210",
"budget": null,
"company": null,
"requirement": "Priya here. Email priya@gmail.com, phone 9876543210",
"confidence": 0.85
}
—
🔑 Authentication
You’ll need an API key from WhatsExtract. Export it as an environment variable:
export WE_API_KEY=your_api_key_here
—
📚 Resources
—
License
MIT License © 2025 devopsballog25
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whatsextract-1.0.1.tar.gz.
File metadata
- Download URL: whatsextract-1.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f916b921bfb80f89e2fa848ed4baebccf6713c325f8ac29f8f85cf03385e8ff9
|
|
| MD5 |
a1e8c183e944edb5e94e4945b393bdf8
|
|
| BLAKE2b-256 |
7dd56dff8fcb48273c9553c1f99c403383e7aa4b58ccdc044ca26d750437eeb7
|
File details
Details for the file whatsextract-1.0.1-py3-none-any.whl.
File metadata
- Download URL: whatsextract-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3664f32fe9b49aa8e7ddfe0621200a32c6e9a32537a8cda14a15b7babb23e00d
|
|
| MD5 |
be1f98682042de686687076d7d5ba2b1
|
|
| BLAKE2b-256 |
57daa883750f36aa24ba4ad1c2a18b91ec09418994f5efdfa9c6687ae4439e13
|