wtsp.dev

API reference

Each lookup is one GET that answers in JSON. Every endpoint is here with its price, code to copy and a sample answer.

Base URLhttps://wtsp.dev

Not a person? Read openapi.json, llms.txt or skill.md.

Quick start

From nothing to your first answer in three steps.

  1. 01

    Get a key

    Buy credit from $1.00. No account, no subscription, and credit never expires.

  2. 02

    Send a request

    One GET with your key in the Authorization header. This one asks whether a number is on WhatsApp.

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

    Read the answer

    The answer is JSON. The wtsp-credits-remaining header on it says how much credit the key has left.

    200 OK
    wtsp-credits-remaining: 9.997

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

Building an AI agent? It needs no key: it pays for each request itself. Set it up with skill.md

Paying

Three ways to pay, at the same prices. A response of 400 or above is never charged.

  • API key

    Prepaid credit for your own code, sent as Authorization: Bearer wtsp_…. Each answer takes its price off the balance, a failed lookup costs nothing, and only a key can send up to 100 numbers in one request.

  • Pay per request

    No key and no account. The first request answers 402 with a price; the client signs a USDC payment and sends it again. Made for AI agents, over x402 on Base or MPP on Tempo.

    Set up an agent

  • Free on the site

    5 lookups a day on this site, with no sign-up: real answers before you pay anything.

    Look up a number

Lookups

Pay per request with x402, or send an API key.

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.

Parameter

phonestring · queryrequired

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

Price

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

On 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.

Parameter

phonestring · queryrequired

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

Price

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

BusinessGrocery 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
  • Mon 08:00-20:00, Sat 09:00-18:00, Sun by appointment
  • Joined in March, 2021
  • Fresh Market SF · 1,840 likes
  • Sells through a WhatsApp cart

2 devices including the phone

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.

Parameter

phonestring · queryrequired

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

Price

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

Business@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
  • Mon 08:00-20:00, Sat 09:00-18:00, Sun by appointment
  • Joined in March, 2021
  • Fresh Market SF · 1,840 likes
  • Sells through a WhatsApp cart

2 devices including the phone

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.

Parameter

phonestring · queryrequired

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

Price

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

Channels

Search, top lists, details and posts. Paid the same ways.

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.

Parameters

qstring · queryrequired

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

categorystring · queryoptional

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

Price

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.

Parameters

countrystring · queryrequired

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

viewstring · queryoptional

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

categorystring · queryoptional

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

Price

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.

Parameter

channelstring · queryrequired

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

Price

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.

Parameters

channelstring · queryrequired

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

countinteger · queryoptional

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

beforeinteger · queryoptional

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

Price

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
}

API key

Prepay once, then send the key with every lookup.

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.

Parameters

amountinteger · queryrequired

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

AuthorizationBearer wtsp_… · headeroptional

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

Price

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.

Parameter

AuthorizationBearer wtsp_… · headerrequired

Your API key.

Price

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.

Parameters

AuthorizationBearer wtsp_… · headerrequired

Your API key.

lookupstring · bodyrequired

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

phonesstring[] · bodyrequired

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

Price

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"
}

Errors

Every error is JSON in one shape: a code for your program and a message for a person.

StatusWhat it means
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."
  }
}