Introducing the Instagram APIRead more →

Telegram Channel Posts API. Posts, page by page.

Full history with views and reactions. We handle the proxies, blocks and platform changes.

Telegram Channel Posts API at a glance

Returns a public Telegram channel's posts a page at a time, newest first, back to its first post, from its username or link. Each post has its text, the links, hashtags and mentions in it, its date, photos, albums, videos, voice messages and stickers with their files, views, each reaction with its count, its poll, link preview and file, what it was forwarded from or replies to, and whether it was edited. Add contains to search the channel's posts.

GET /v1/telegram/channel_posts

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 20 posts per page, newest first
  • handle is all it needs, e.g. durov

Send one request. Get up to 20 posts back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
handle = durov
GET /v1/telegram/channel_postsTry in
const params = new URLSearchParams({
  handle: "durov",
});
const res = await fetch(`https://socialtap.dev/v1/telegram/channel_posts?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/telegram/channel_postsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 21 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Telegram doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The Telegram channel: its username with or without the @, or any link to it (t.me/durov, t.me/s/durov, telegram.me/durov, durov.t.me).

  • Write one parser

    Telegram, TikTok, Instagram and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the Telegram Channel Posts API.

  • Monitor a channel for new posts

  • Archive a channel's full history

  • Search a channel's posts by keyword or hashtag

  • Track views and reactions per post

  • Feed news and crypto channels into sentiment models

Good to know before you build.

  • Views, reactions and voters are as Telegram shows them, rounded from the thousands up (10.4K), and the rounded ones are listed in each post's approximate_fields.
  • An album is one post of type carousel, with the number of its first message; the numbers of the others are skipped in the list.
  • Service messages (a channel's creation, a changed name or photo) are listed too, with platform_type service.
  • An animated sticker's url is its Lottie file (.tgs), not an image.
  • Media links can stop working after a while, so download what you need promptly. A video too big for Telegram's web page has its poster and duration but no url.
  • A search (contains) reaches only Telegram's newest matches, a little over one page, on Telegram's own page too, and the walk ends with page.end_reason platform_limit. To go further back, walk the channel without contains.
  • Some posts Telegram's web page won't show ("Please open Telegram to view this post"; on some channels, every recent post). They are listed with platform_type unsupported, their date, views and reactions, null text, and media among their unknown_fields: their [] means unknown, not none.
  • An audio file is a post of type audio with its title and performer in platform_specific.telegram.document. Telegram's web page doesn't link the file, so its media url is null.
  • A public group returns private_or_unavailable, because Telegram lists a group's messages only in its app. So does a channel whose preview Telegram doesn't serve, turned off or withheld, which can depend on the country a request leaves from. A user, a bot or a name nobody holds returns not_found.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Telegram Channel Posts API.

More in the API reference.

How much does the Telegram Channel Posts API cost?
A page of up to 20 posts costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs