Check Numbers on WhatsApp
curl --request POST \
--url https://api.wppfy.com/chat/check \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"numbers": [
"5511999999999",
"123456789@g.us"
]
}
'import requests
url = "https://api.wppfy.com/chat/check"
payload = { "numbers": ["5511999999999", "123456789@g.us"] }
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({numbers: ['5511999999999', '123456789@g.us']})
};
fetch('https://api.wppfy.com/chat/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wppfy.com/chat/check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'numbers' => [
'5511999999999',
'123456789@g.us'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/chat/check"
payload := strings.NewReader("{\n \"numbers\": [\n \"5511999999999\",\n \"123456789@g.us\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wppfy.com/chat/check")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"numbers\": [\n \"5511999999999\",\n \"123456789@g.us\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/chat/check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"numbers\": [\n \"5511999999999\",\n \"123456789@g.us\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"query": "<string>",
"jid": "<string>",
"lid": "<string>",
"isInWhatsapp": true,
"verifiedName": "<string>",
"groupName": "<string>",
"error": "<string>"
}
]{
"error": "Missing numbers in payload"
}{
"error": "No active session"
}{
"error": "WhatsApp client is not connected"
}Contacts
Check Numbers on WhatsApp
Checks whether the provided numbers are registered on WhatsApp and returns detailed information.
Features:
- Checks multiple numbers simultaneously
- Supports individual numbers and group IDs
- Returns verified name when available
- Identifies groups and communities
- Checks community subgroups
Specific behavior:
- For individual numbers:
- Checks WhatsApp registration
- Returns verified name if available
- Normalizes the number format
- For groups:
- Checks existence
- Returns the group name
- Returns the announcement group id if searched by community id
POST
/
chat
/
check
Check Numbers on WhatsApp
curl --request POST \
--url https://api.wppfy.com/chat/check \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"numbers": [
"5511999999999",
"123456789@g.us"
]
}
'import requests
url = "https://api.wppfy.com/chat/check"
payload = { "numbers": ["5511999999999", "123456789@g.us"] }
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({numbers: ['5511999999999', '123456789@g.us']})
};
fetch('https://api.wppfy.com/chat/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wppfy.com/chat/check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'numbers' => [
'5511999999999',
'123456789@g.us'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wppfy.com/chat/check"
payload := strings.NewReader("{\n \"numbers\": [\n \"5511999999999\",\n \"123456789@g.us\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wppfy.com/chat/check")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"numbers\": [\n \"5511999999999\",\n \"123456789@g.us\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/chat/check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"numbers\": [\n \"5511999999999\",\n \"123456789@g.us\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"query": "<string>",
"jid": "<string>",
"lid": "<string>",
"isInWhatsapp": true,
"verifiedName": "<string>",
"groupName": "<string>",
"error": "<string>"
}
]{
"error": "Missing numbers in payload"
}{
"error": "No active session"
}{
"error": "WhatsApp client is not connected"
}Authorizations
Body
application/json
List of numbers or group IDs to check
Example:
["5511999999999", "123456789@g.us"]
