Developers & API

Search the directory, read measured channel stats, list channels and feature them, from code or from an AI agent.

Everything the website shows is also available to code: search with filters, single listings with measured stats, daily member history, similar channels, rankings and curated collections. You can submit channels without the web form and follow each submission's review, and an agent with a key can buy a Featured placement in USDC. The same features run as REST endpoints and as MCP tools for AI assistants.

Every submission is reviewed (an AI pre-screen plus human review) before it goes live, so nothing is published automatically.

Read the directory (REST)

Search and look up approved listings as JSON. No key is needed, and every field returned is already public on the channel page: title, username, description, type, members, rating (withheld below three votes), category, language, verified badge and links.

curl "https://telegramchannels.io/api/v1/channels?q=crypto&language=en&type=channel&sort=members&perPage=10"
curl "https://telegramchannels.io/api/v1/channels/@telegram"
curl "https://telegramchannels.io/api/v1/categories"
curl "https://telegramchannels.io/api/v1/languages"

type is channel, group or bot; sort is members, rating, new or growth. Pages hold at most 20 results and a query goes at most 10 pages deep. To reach further, narrow the query with q, category, language or type.

More filters on the search:

  • min_members and max_members: whole numbers, bounds on the measured member count.
  • active=1: only listings that posted in the last 7 days.
  • verified=1: only listings that carry the verified badge.
  • sort=growth: channels by measured seven-day member growth, among the 3,000 largest matches. A channel without a measured growth is left out, never ranked on a guess. The response adds rankedBy, one entry per channel in the same order.
curl "https://telegramchannels.io/api/v1/channels?category=crypto&min_members=10000&active=1&sort=growth"
curl "https://telegramchannels.io/api/v1/channels?verified=1&max_members=50000"

Limits: 60 requests a minute and 1,000 a day per IP. With an agent API key (Authorization: Bearer …) the limits are 300 a minute and 5,000 a day per key. Over a limit the answer is 429 with a Retry-After header. Every endpoint below counts against the same limits.

Need higher API limits? Contact our admin at contact@telegramchannels.io or through the contact page.

Channel stats and history

A single listing (/api/v1/channels/{ref}) also returns stats. Every value is measured or null, never a zero standing in for unknown, and stats are null for groups and bots, as on the channel page:

  • avgPostViews, medianPostViews, postViewsSample (the posts the average is over), postsPerWeek, read from the channel's public Telegram page
  • lastPostAt and active (a post in the last 7 days; null until a post date has been read)
  • engagementRate: average post views divided by members (0.12 means 12%)
  • growth7d and growth30d: pct, the real spanDays, and the from and to member counts, from our own daily snapshots. Null without two real snapshots or below 500 members at the start.
  • statsUpdatedAt: when the post figures were last read
curl "https://telegramchannels.io/api/v1/channels/@telegram"
curl "https://telegramchannels.io/api/v1/channels/@telegram/history"
curl "https://telegramchannels.io/api/v1/channels/@telegram/similar"

/history returns the real daily member counts, oldest first, at most 365. There is no backfill and no interpolation: a day we did not measure has no point, and a listing never measured returns an empty array. /similar returns up to 10 listings, the same list the channel page shows.

Rankings and collections

Paged like the search (page, perPage, same caps). Each item is { channel, rankedBy, pinned }: the listing, the measured figure behind its place (metric, value, spanDays for growth, count for a rating) or null when none is measured, and whether an editor pinned it there.

curl "https://telegramchannels.io/api/v1/rankings/trending"
curl "https://telegramchannels.io/api/v1/rankings/new?page=2"
curl "https://telegramchannels.io/api/v1/rankings/top-rated?perPage=20"
curl "https://telegramchannels.io/api/v1/collections"
curl "https://telegramchannels.io/api/v1/collections/telegram-trading-signals"
  • trending: channels with at least 1,000 members, by real seven-day member growth.
  • new: approved in the last 30 days, by measured early growth and post views.
  • top-rated: by rating, one per verified account, withheld below three votes.
  • collections: the curated best-of lists with at least three listings, each by member count.

Submit a channel (REST)

Send one handle or many. Handles can be @name, a t.me/name link, or a bare name. Both fields are accepted: channels (an array) or channel (a single string).

curl -X POST https://telegramchannels.io/api/channels/submit \
  -H "Content-Type: application/json" \
  -d '{"channels": ["@crypto_daily", "https://t.me/ai_tools"]}'

Or from JavaScript:

await fetch("https://telegramchannels.io/api/channels/submit", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ channel: "@my_channel" }),
});

The response reports what happened to each handle:

{
  "ok": true,
  "submitted": 1,
  "duplicates": 1,
  "invalid": 0,
  "results": [
    { "input": "@crypto_daily", "handle": "crypto_daily", "status": "submitted", "channelId": "...", "statusToken": "..." },
    { "input": "https://t.me/ai_tools", "handle": "ai_tools", "status": "duplicate", "channelId": "..." }
  ],
  "note": "Submitted channels are PENDING and go live after the AI pre-screen + review."
}

Submission status

Each newly submitted channel comes back with a statusToken. Keep it: it is the only way to look the submission up, so the review queue cannot be browsed by handle.

curl "https://telegramchannels.io/api/v1/submissions/<statusToken>"
{ "status": "approved", "url": "https://telegramchannels.io/channel/crypto-daily" }

status is pending, approved or rejected; url is set once the listing is approved. Nothing else is returned. A token that is not valid gets a plain 404. A handle that was already listed returns no token.

Bulk lists

Up to 500 handles per call. Larger lists: split across calls. Rate limit is 30 calls a minute (per account or IP), and nothing per hour. A GET on the same URL returns the usage as JSON.

Use it as an AI tool (MCP)

We run a Model Context Protocol server, so an AI assistant can list a channel as a native tool call. Point your MCP client at:

https://telegramchannels.io/api/mcp

Example client config (Streamable HTTP):

{
  "mcpServers": {
    "tgdirectory": { "url": "https://telegramchannels.io/api/mcp" }
  }
}

For a client that only speaks stdio, bridge it with npx mcp-remote https://telegramchannels.io/api/mcp. The tools are submit_channel({ channels: [...] }) and, to read:

  • search_channels
  • get_channel
  • list_categories
  • list_languages
  • get_similar_channels
  • list_trending
  • list_new
  • list_top_rated
  • list_collections
  • get_collection
  • get_channel_history
  • get_channel_stats
  • search_posts
  • get_submission_status

The read tools return the same fields as the REST endpoints, with the same page caps, and each call counts against the same limits. get_submission_status takes the statusToken that submit_channel returned.

Agent API keys

The read and submit endpoints need no key. A key is for agents that call often or act on their own: it raises the read limits to 300 a minute and 5,000 a day per key, and a key with the purchase permission can buy Featured placements (below). Keys are issued by our admin with only the permissions an agent needs, and every action taken with a key is logged against it. Send it as Authorization: Bearer <key>.

To get a key, write to contact@telegramchannels.io with what your agent does.

An agent can put an approved channel into the Featured spots without a browser. It uses the x402 pattern: the first call answers 402 Payment Required with the price and the address, the agent pays in USDC on Ethereum mainnet, and the same call with the transaction hash activates the placement once the transfer is verified on chain.

# 1. ask: the answer is 402 with the payment details
curl -X POST https://telegramchannels.io/api/agent/featured \
  -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
  -d '{"channelId": "<id>", "planId": "monthly"}'

{ "paymentRequired": { "protocol": "x402", "network": "ethereum-mainnet", "currency": "USDC",
    "receivingAddress": "0x...", "amount": "...", "amountUnits": "...", "planLabel": "...", "durationDays": ... } }

# 2. send exactly that amount of USDC, then repeat the call with the transaction hash
curl -X POST https://telegramchannels.io/api/agent/featured \
  -H "Authorization: Bearer <key>" -H "X-PAYMENT: 0x<transaction hash>" \
  -H "Content-Type: application/json" -d '{"channelId": "<id>", "planId": "monthly"}'
  • planId is monthly or annual. The price is the current one from our settings and comes back in the 402 answer, so read it there rather than hard-coding it.
  • Only approved listings can be featured, and a channel with an active or pending placement is refused with 409. A transaction hash can be used once.
  • The channelId is the listing's id from the read API.

Plain pages for AI assistants

Assistants that browse rather than call APIs can read https://telegramchannels.io/find (the ranking) and https://telegramchannels.io/find/<topic>, for example /find/crypto-news: plain pages with each channel's member count and links, current on every request.

Telegram chat ID tools

Need the numeric chat_id of a public channel or group for your own bot? The chat ID finder turns an @username or t.me link into the ID, with the -100 prefix explained. No bot token is needed or accepted. Beside it: the ID format and a converter, a message link parser, a getUpdates inspector, a MarkdownV2 escaper, the Bot API limits and every tool.

Machine-readable specs

What gets listed

Each submitted handle becomes a pending channel. The AI pre-screen blocks adult, gambling and illegal content; the rest is reviewed by a person before it appears in the directory. Metadata (title, members, photo) is fetched from Telegram automatically: you only send the handle.