Verificar Números no 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"
}Contatos
Verificar Números no WhatsApp
Verifica se números fornecidos estão registrados no WhatsApp e retorna informações detalhadas.
Funcionalidades:
- Verifica múltiplos números simultaneamente
- Suporta números individuais e IDs de grupo
- Retorna nome verificado quando disponível
- Identifica grupos e comunidades
- Verifica subgrupos de comunidades
Comportamento específico:
- Para números individuais:
- Verifica registro no WhatsApp
- Retorna nome verificado se disponível
- Normaliza formato do número
- Para grupos:
- Verifica existência
- Retorna nome do grupo
- Retorna id do grupo de anúncios se buscado por id de comunidade
POST
/
chat
/
check
Verificar Números no 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"
}Autorizações
Corpo
application/json
Lista de números ou IDs de grupo para verificar
Exemplo:
["5511999999999", "123456789@g.us"]
