wtsp.dev
← Блог

WhatsApp channel scraper: search, top lists and posts by API

WhatsApp channels are where brands, newsrooms, clubs and creators now reach their audience, some of them hundreds of millions of followers strong. None of it is easy to export: WhatsApp shows channels inside its app, one screen at a time.

wtsp.dev turns them into data. Four requests cover the whole directory: search it, pull a country's rankings, read any channel's details, and read its posts.

Search the channel directory

Search the way WhatsApp's Channels tab does, by name or topic, and get every match back at once, best first:

Терминал
curl "https://wtsp.dev/v1/channels/search?q=football" \  -H "Authorization: Bearer $WTSP_API_KEY"
JSON
{  "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/…"    }  ]}

A common word returns 45 to 60 channels, for 0.01 USDC. Narrow it to one category with &category=sports (or business, entertainment, lifestyle, news, organizations, people).

A country's top channels, 500 at a time

WhatsApp keeps its own rankings for every country: trending, popular, new, featured and recommended. One request returns a whole list, up to 500 channels in WhatsApp's order:

Терминал
curl "https://wtsp.dev/v1/channels/top?country=US&view=trending" \  -H "Authorization: Bearer $WTSP_API_KEY"

That costs 0.03 USDC, so all five lists of a country cost 15 cents. Run it daily and you have a record of which channels rise and fall, with exact follower counts.

Any channel from its link

Paste a link the way you'd find it, https://whatsapp.com/channel/…, or just the code at its end:

Терминал
curl "https://wtsp.dev/v1/channels/info?channel=https://whatsapp.com/channel/0029Va4K0PZ5a245NkngBA2M" \  -H "Authorization: Bearer $WTSP_API_KEY"

You get its name, description, followers, green tick, creation date, picture, and whether it is active or suspended, for 0.004 USDC. A link to a channel that doesn't exist gets a clear "channel": null.

Read a channel's posts

Up to 300 posts per request, newest first, for 0.01 USDC:

Терминал
curl "https://wtsp.dev/v1/channels/posts?channel=0029Va4K0PZ5a245NkngBA2M" \  -H "Authorization: Bearer $WTSP_API_KEY"

Each post comes with its text or caption, its type (image, video, poll, voice note…), a link to its media, the preview of any shared link, poll options with their votes, its reaction count with the 20 most used emoji, and how many times it was forwarded. For a busy channel, send back the page's before to get the posts before it. WhatsApp keeps 30 days of a channel's posts, so that is how far back they go.

What teams do with it

  • Market research. Find the channels that lead a topic in each country, and see how fast they grow week to week.
  • Social listening. Follow what competitors and media post, and which posts their followers react to and forward.
  • Influencer and partner discovery. Rank a niche by followers and engagement before reaching out.
  • Feeding an AI agent. Agents call the same endpoints and pay each request themselves in USDC, with no account. See WhatsApp lookups for AI agents.

Good to know

  • No WhatsApp account and no phone are needed on your side.
  • Channels are public, and that is what it reads. Private chats and groups stay private.
  • Picture and media links are WhatsApp's own and expire within days, so download what you want to keep.
  • View counts aren't available: WhatsApp shows them only to a channel's admins.
  • A request WhatsApp doesn't answer is never charged, and a malformed link is turned away before you pay.

Every endpoint, parameter and field is on the WhatsApp channel API page. Buy credit once for an API key, or pay per request with x402.

Читать дальше