wtsp.dev

Referência da API

Cada consulta é um único GET que responde em JSON. Todos os endpoints estão aqui, com preço, código para copiar e uma resposta de exemplo.

URL basehttps://wtsp.dev

Não é uma pessoa? Leia openapi.json, llms.txt ou skill.md.

Início rápido

Do zero à primeira resposta em três passos.

  1. 01

    Obtenha uma chave

    Compre crédito a partir de US$ 1,00. Sem conta, sem assinatura, e o crédito nunca expira.

  2. 02

    Envie uma requisição

    Um GET com a sua chave no cabeçalho Authorization. Este pergunta se um número tem WhatsApp.

    curl "https://wtsp.dev/v1/exists?phone=14155550123" \  -H "Authorization: Bearer $WTSP_API_KEY"
  3. 03

    Leia a resposta

    A resposta vem em JSON. O cabeçalho wtsp-credits-remaining nela diz quanto crédito resta na chave.

    200 OK
    wtsp-credits-remaining: 9.997

    {
      "phone": "+14155550123",
      "hasWhatsApp": true
    }

Criando um agente de IA? Ele não precisa de chave: paga sozinho por cada requisição. Configure com o skill.md

Pagamento

Três formas de pagar, com os mesmos preços. Uma resposta 400 ou acima nunca é cobrada.

  • Chave de API

    Crédito pré-pago para o seu código, enviado como Authorization: Bearer wtsp_…. Cada resposta desconta o seu preço do saldo, uma consulta que falha não custa nada, e só com uma chave dá para enviar até 100 números em uma requisição.

  • Pagar por requisição

    Sem chave e sem conta. A primeira requisição responde 402 com um preço; o cliente assina um pagamento em USDC e a envia de novo. Feito para agentes de IA, via x402 na rede Base ou MPP na rede Tempo.

    Configurar um agente

  • Grátis no site

    5 consultas por dia aqui no site, sem cadastro: respostas reais antes de pagar qualquer coisa.

    Consultar um número

Consultas

Pague por requisição com x402 ou envie uma chave de API.

WhatsApp check

GET/v1/exists

Whether a number has a WhatsApp account, and nothing else: the cheapest way to clean a list before paying for profiles. /v1/profile gives the same answer plus the account's details.

Parâmetro

phonestring · queryobrigatório

Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.

Preço

0.003USDC per request

Every answer is charged, “not on WhatsApp” included; a lookup WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli exists +14155550123

+1 415 555 0123

Tem WhatsApp

WhatsApp profile

GET/v1/profile

Whether a number is on WhatsApp and, if so: personal or business account, about text, country, linked devices and whether it runs on the Cloud API. Businesses add their public profile: name, description, categories, email, websites, address, coordinates, hours, join date and Facebook page. No photo or username; /v1/profile/full adds them.

Parâmetro

phonestring · queryobrigatório

Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.

Preço

0.006USDC per request

Every answer is charged, “not on WhatsApp” included; a lookup WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli profile +14155550123
FM

Fresh Market SF

+1 415 555 0123 US

EmpresaGrocery StoreFood delivery

Fresh groceries, delivered daily 🍋

Neighbourhood grocery with same-day delivery across San Francisco.

  • 123 Market St, San Francisco, CA 94103
  • freshmarket.example
  • hello@freshmarket.example
  • Seg 08:00-20:00, Sáb 09:00-18:00, Dom com hora marcada
  • Joined in March, 2021
  • Fresh Market SF · 1.840 curtidas
  • Vende pelo carrinho do WhatsApp

2 aparelhos, incluindo o celular

WhatsApp profile + photo

GET/v1/profile/full

Everything /v1/profile returns, plus the profile photo as a permanent URL and a content hash (an unchanged hash means an unchanged photo), and the account's WhatsApp username (@handle). The URL is null when the account has no photo or hides it, and the username is null when it has none.

Parâmetro

phonestring · queryobrigatório

Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.

Preço

0.01USDC per request

Every answer is charged, “not on WhatsApp” included; a lookup WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli profile +14155550123 --photo
FM

Fresh Market SF

+1 415 555 0123 US

Empresa@freshmarketsfGrocery StoreFood delivery

Fresh groceries, delivered daily 🍋

Neighbourhood grocery with same-day delivery across San Francisco.

  • 123 Market St, San Francisco, CA 94103
  • freshmarket.example
  • hello@freshmarket.example
  • Seg 08:00-20:00, Sáb 09:00-18:00, Dom com hora marcada
  • Joined in March, 2021
  • Fresh Market SF · 1.840 curtidas
  • Vende pelo carrinho do WhatsApp

2 aparelhos, incluindo o celular

Carrier lookup

GET/v1/carrier

The carrier and line type of any number (mobile, fixed line or VoIP), plus its country, region, time zones and national and international formats. Works whether or not the number is on WhatsApp. Ported numbers report their original carrier.

Parâmetro

phonestring · queryobrigatório

Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.

Preço

0.002USDC per request

Only charged when a carrier is on record; numbers without one (the US and Canada among them) get a free 404.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli carrier +447400123456

United Kingdom +44

Three

+44 7400 123456

mobileEurope/London

Canais

Busca, rankings, dados e posts. Pagos das mesmas formas.

Channel search

GET/v1/channels/search

Searches WhatsApp's channel directory the way its Channels tab does, and returns every match it gives, best first (45 to 60 for a common word): each channel's id, link code, name, description, exact follower count, green tick, creation date and picture.

Parâmetros

qstring · queryobrigatório

What to search for, as typed in WhatsApp's channel search: a name, a topic, a brand.

categorystring · queryopcional

Only channels in this category: `business`, `entertainment`, `lifestyle`, `news`, `organizations`, `people`, `sports`. One at a time.

Preço

0.01USDC per request

Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli search football
{
  "channels": [
    {
      "id": "120363421468257352@newsletter",
      "invite": "0029Vb6tXGL90x2oSNph2y19",
      "handle": null,
      "name": "Matchday Football",
      "description": "Scores, transfers and highlights from every league, every day ⚽",
      "followers": 1482907,
      "verified": true,
      "createdAt": "2024-02-18T09:12:44.000Z",
      "picture": "https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"
    },
    {
      "id": "120363302218843175@newsletter",
      "invite": "0029VaeWKs9I7BeMxk4QOV2s",
      "handle": "transferwatch",
      "name": "Transfer Watch",
      "description": "Confirmed deals and rumours, the minute they land.",
      "followers": 386114,
      "verified": false,
      "createdAt": "2024-05-30T17:40:02.000Z",
      "picture": "https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"
    }
  ]
}

Top channels

GET/v1/channels/top

One of the channel lists WhatsApp keeps per country (trending, popular, new, featured or recommended), whole, in its order: up to 500 channels (about 250 for recommended), with the same details as a search.

Parâmetros

countrystring · queryobrigatório

Whose list to read, as a two-letter country code (ISO 3166-1 alpha-2), e.g. US. WhatsApp keeps no worldwide list.

viewstring · queryopcional

Which list: `recommended`, `trending`, `popular`, `new`, `featured`. Defaults to `recommended`.

categorystring · queryopcional

Only channels in this category: `business`, `entertainment`, `lifestyle`, `news`, `organizations`, `people`, `sports`. One at a time.

Preço

0.03USDC per request

Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli top US --view trending
{
  "channels": [
    {
      "id": "120363421468257352@newsletter",
      "invite": "0029Vb6tXGL90x2oSNph2y19",
      "handle": null,
      "name": "Matchday Football",
      "description": "Scores, transfers and highlights from every league, every day ⚽",
      "followers": 1482907,
      "verified": true,
      "createdAt": "2024-02-18T09:12:44.000Z",
      "picture": "https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"
    },
    {
      "id": "120363302218843175@newsletter",
      "invite": "0029VaeWKs9I7BeMxk4QOV2s",
      "handle": "transferwatch",
      "name": "Transfer Watch",
      "description": "Confirmed deals and rumours, the minute they land.",
      "followers": 386114,
      "verified": false,
      "createdAt": "2024-05-30T17:40:02.000Z",
      "picture": "https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"
    }
  ]
}

Channel details

GET/v1/channels/info

A channel's details from its link, link code or id: name, description, exact follower count, green tick, creation date, picture, and whether it is active or suspended. A channel WhatsApp doesn't have comes back as null.

Parâmetro

channelstring · queryobrigatório

The channel: its link (https://whatsapp.com/channel/…), the code at the end of the link, or its id (<digits>@newsletter).

Preço

0.004USDC per request

Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli channel 0029Va4K0PZ5a245NkngBA2M
{
  "channel": {
    "id": "120363144038483540@newsletter",
    "invite": "0029Va4K0PZ5a245NkngBA2M",
    "handle": null,
    "name": "WhatsApp",
    "description": "WhatsApp’s official channel. Follow for our latest feature launches, updates, exclusive drops and more.",
    "followers": 233827056,
    "verified": true,
    "createdAt": "2023-07-07T16:21:35.000Z",
    "picture": "https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18",
    "state": "active"
  }
}

Channel posts

GET/v1/channels/posts

A channel's posts, newest first, up to 300 a request and back 30 days (all WhatsApp keeps): text, media links, link previews, poll votes, reaction counts and forwards. Send a page's before back for the posts before it.

Parâmetros

channelstring · queryobrigatório

The channel: its link (https://whatsapp.com/channel/…), the code at the end of the link, or its id (<digits>@newsletter).

countinteger · queryopcional

How many posts, from 1 to 300 (the default).

beforeinteger · queryopcional

The `before` of an earlier page, for the posts before it. Leave it out for the latest posts.

Preço

0.01USDC per request

Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.

# Once: npx @wtsp/cli start, then fund the wallet it prints.# Each request pays for itself and prints JSON.npx @wtsp/cli posts 0029Va4K0PZ5a245NkngBA2M
{
  "channel": "120363144038483540@newsletter",
  "posts": [
    {
      "id": 801,
      "postedAt": "2026-11-12T21:58:41.000Z",
      "editedAt": null,
      "type": "image",
      "text": "*What We’re Channeling: Latin Pop* Big hooks, bigger energy, and choruses you play five times in a row.",
      "media": {
        "url": "https://mmg.whatsapp.net/m1/v/t24/AQMN9nbOMn8pcmJwYklDm9UfET3mYYYp_8MWgq309F47l8WjLFiISmDFtq5KSa2C7P87L?oe=6B1D9FFE",
        "mimetype": "image/jpeg",
        "bytes": 109901,
        "width": 1600,
        "height": 675,
        "seconds": null,
        "fileName": null
      },
      "linkPreview": null,
      "poll": null,
      "reactionCount": 12753,
      "reactions": [
        {
          "emoji": "👍",
          "count": 3885
        },
        {
          "emoji": "❤️",
          "count": 1725
        },
        {
          "emoji": "🙏",
          "count": 774
        }
      ],
      "forwards": 1322
    }
  ],
  "before": 801
}

Chave de API

Pague uma vez antes e envie a chave em cada consulta.

Buy API credit

POST/v1/credits

Buy prepaid credit in whole USDC, paid with x402. Without an Authorization header a new API key is issued and returned once; with one, that key is topped up. The payment settles before any credit is written.

Parâmetros

amountinteger · queryobrigatório

Whole USDC to pay, from 1 to 5000. Every full 50 adds 2% bonus credit, up to 30%.

AuthorizationBearer wtsp_… · headeropcional

The key to top up. Leave it out to get a new key.

Preço

1–5000USDC, the amount you pay

You pay the amount you choose, and it becomes credit at the same prices, with 2% more for every full 50 USDC, up to 30%. Credit never expires; failed lookups go back on it.

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";import { ExactEvmScheme } from "@x402/evm/exact/client";import { privateKeyToAccount } from "viem/accounts";
const wallet = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);const client = new x402Client().register("eip155:*", new ExactEvmScheme(wallet))  // x402 refuses payments above $1 unless told otherwise.  .setSpendControls({ maxAmountPerPayment: "$10" });const fetchWithPayment = wrapFetchWithPayment(fetch, client);
// A new key, holding 10 USDC. It is shown this once: save it.const res = await fetchWithPayment("https://wtsp.dev/v1/credits?amount=10", { method: "POST" });console.log(await res.json());
{
  "key": "wtsp_7Kq2xLmN4pR8sT1vW6yZ0aB3cD5eF9gH",
  "keyPrefix": "wtsp_7Kq2xLm",
  "added": "10",
  "balance": "10"
}

API key balance

GET/v1/credits

The credit left on an API key, and when it was last used. Free.

Parâmetro

AuthorizationBearer wtsp_… · headerobrigatório

Your API key.

Preço

Free

Every paid response also carries the credit left in the wtsp-credits-remaining header.

curl "https://wtsp.dev/v1/credits" \  -H "Authorization: Bearer $WTSP_API_KEY"
{
  "keyPrefix": "wtsp_7Kq2xLm",
  "balance": "9.986",
  "createdAt": "2026-10-02T14:05:11.000Z",
  "lastUsedAt": "2026-10-09T18:24:03.000Z"
}

Bulk lookup

POST/v1/bulk

Runs one lookup (exists, profile, profileFull or carrier) on up to 100 numbers and answers each one, in the order sent, with the same JSON the single lookup returns. Same prices. API keys only: an x402 or MPP payment covers one number.

Parâmetros

AuthorizationBearer wtsp_… · headerobrigatório

Your API key.

lookupstring · bodyobrigatório

Which lookup to run on every number: `exists`, `profile`, `profileFull` or `carrier`.

phonesstring[] · bodyobrigatório

1 to 100 numbers with their country codes, written any way a single lookup accepts.

Preço

Sameprice per answer

Each distinct number answered is charged once at its lookup's price. Typos, lookups WhatsApp did not answer and numbers without a carrier are free. The full price is held when the request starts; the unused part goes straight back on the key.

# Reads the key from WTSP_API_KEY and the numbers from a file, one per line.# A longer list goes out 100 numbers at a time.npx @wtsp/cli bulk exists numbers.txt
{
  "results": [
    {
      "input": "+14155550123",
      "answer": {
        "phone": "+14155550123",
        "hasWhatsApp": true
      }
    },
    {
      "input": "+44 7400 123456",
      "answer": {
        "phone": "+447400123456",
        "hasWhatsApp": false
      }
    },
    {
      "input": "+1415",
      "error": {
        "code": "invalid_phone",
        "message": "Wrong number of digits for its country. Include the country code, like +14155550123."
      }
    }
  ],
  "charged": "0.006",
  "balance": "9.98"
}

Erros

Todo erro é um JSON com o mesmo formato: um código para o seu programa e uma mensagem para uma pessoa.

StatusO que significa
200The answer, “not on WhatsApp” and “no such channel” included.
400A malformed number, channel link or parameter, rejected before any payment is asked for.
401The API key sent does not exist.
402Payment required, or the payment sent was invalid.
404no_carrierCarrier lookup only: no carrier on record for the number.
503lookup_failedWhatsApp did not answer. The payment is cancelled, never settled.

400 Bad Request

{
  "error": {
    "code": "invalid_phone",
    "message": "Wrong number of digits for its country. Include the country code, like +14155550123."
  }
}