SocialCrawl

Social platforms

Telegram data API

Read public channels, their posts, the comments under a post and channel search from Telegram with one key and one response shape.

Read public Telegram channels and groups: the profile with an exact subscriber count, the posts with views and reactions, and a single post by its t.me link. You can also read the comments under a post, and search for channels by keyword.

What people build with Telegram

  • Channel monitoring: Poll a channel's latest page and alert when a post lands or when views climb fast.
  • Research and archiving: Walk a channel's full history once with the cursor, then keep it current from page one.
  • Backend product jobs: Resolve a channel, page its posts, and pull media URLs straight into your own pipeline.
Telegram API overview

Your first call

1. Fetch a profile

cURL
curl "https://www.socialcrawl.dev/v1/telegram/profile?handle=telegram" \
  -H "x-api-key: sc_your_key_here"
TypeScript
const res = await fetch(
  "https://www.socialcrawl.dev/v1/telegram/profile?handle=telegram",
  { headers: { "x-api-key": process.env.SOCIALCRAWL_API_KEY! } },
);
const { data } = await res.json();
console.log(data.author.display_name, data.author.followers);
Python
import os
import requests

res = requests.get(
    "https://www.socialcrawl.dev/v1/telegram/profile",
    params={"handle": "telegram"},
    headers={"x-api-key": os.environ["SOCIALCRAWL_API_KEY"]},
)
data = res.json()["data"]
print(data["author"]["display_name"], data["author"]["followers"])

Measured on 22/11/2026: this call returned the official Telegram News channel with its exact subscriber count for 1 credit. A channel profile has no following or post count, so those fields come back null.

2. Fetch their content

cURL
curl "https://www.socialcrawl.dev/v1/telegram/profile/posts?handle=telegram" \
  -H "x-api-key: sc_your_key_here"

Each post carries its text, publish time, view count, the reaction count per emoji, and direct media URLs. Pass the returned cursor back to walk further into the channel's history. A short page does not mean the end of the channel, because photo albums count as one post and service messages are skipped. Keep paging until the cursor is absent.

3. Read computed fields

When an endpoint supports a computed field and the required source inputs are present, the unified response includes that optional field. Depending on the endpoint, optional fields can include engagement_rate, language, content_category, and estimated_reach. See Computed fields for formulas, clamping rules, and null semantics. Where an endpoint supports them, list rows also carry judged labels (computed.labels, computed.relevance) by default at no extra credits; see Labels.

What it covers

What you wantCall
Subscriber count and descriptionGET /v1/telegram/profile
A channel's recent postsGET /v1/telegram/profile/posts
Views and reactions on a postGET /v1/telegram/post
Comments under a postGET /v1/telegram/post/comments
Messages inside one channel by wordGET /v1/telegram/profile/posts with q
Channels about a topicGET /v1/telegram/search
Exact subscriber counts for those hitsGET /v1/telegram/search with include=details

What it does not cover

  • Private channels, invite-only groups and anything that needs a login. A channel with no public preview returns a 404.
  • Direct messages and personal chats are not returned.
  • Member lists. A channel profile gives the subscriber count, not who the subscribers are.
  • Real-time discovery. Channel search reads a public web index, so a channel or message from the last few days may not appear yet.

Find channels that mention a keyword

Send the words to GET /v1/telegram/search. Words match loosely, so put a phrase in double quotes to require it and add -word to exclude one. Many hits are coupon or reseller channels that merely contain your words. Add relevance=filter, or relevant_to= with a sentence describing the channels you want, to drop the ones that are not about your topic.

Search inside one channel

Send q to GET /v1/telegram/profile/posts with the channel's handle. You get one page of the newest messages that contain every word of q, at the same price as a plain page. That page has no cursor, so q cannot be combined with cursor. Telegram's own search also matches other word forms, such as watch for watches, and those messages are left out.

Questions people ask

Is Telegram covered, and can I search it?

Yes. Public channels and groups are covered by profile, profile/posts, post, post/comments and search. Start with GET /v1/telegram/search to find channels by keyword, pass each row's author.username as handle to the profile and posts endpoints, and read views and reactions from the posts. Search finds what a public web index has already seen, so brand-new channels can be missing for a few days. Private channels never appear.

Can I collect the comments on a Telegram post?

Yes, on any public channel post that shows comments in Telegram. Send the post's link, such as https://t.me/binance_announcements/9155, as url to GET /v1/telegram/post/comments. Each page costs 1 credit, comes back newest first, and cursor reads the older ones. A channel without a linked discussion group answers a free empty page with comments_disabled: true.

All endpoints

5 endpoints available.

EndpointPathCredit Tier
Get Telegram post/v1/telegram/poststandard (1cr)
List the comments on a Telegram post/v1/telegram/post/commentsstandard (1cr)
Get Telegram channel profile/v1/telegram/profilestandard (1cr)
List Telegram channel posts/v1/telegram/profile/postsstandard (1cr)
Search Telegram channels by keyword/v1/telegram/searchstandard (2-16cr)metered

How far back and how deep

Each list returns one page at a time. Send cursor for the next page, or max_items or max_pages to collect several pages in one call. A page size appears only where it has been verified. How paging works

PathRows per pageDate windowOne call collects
/v1/telegram/post/commentsabout 50since and until, applied to each page fetchedup to 5,000 rows or 50 pages
/v1/telegram/profile/postsabout 20since and until, applied to each page fetchedup to 5,000 rows or 50 pages
/v1/telegram/searchvariesnoneup to 5,000 rows or 50 pages; limit up to 10

Country and region

country and region do different jobs on different endpoints. Each line below says what the parameter does there. How they differ

  • region on /v1/telegram/search: Two-letter country code (US, AE, IN, KR) whose results to prefer.

How long a call takes

Measured on production calls that were not served from the cache, 14/10/2026 to 21/10/2026. A cached call answers faster. Set your client timeout to the value in Timeout to set, so a slow call is not cut off and sent again.

PathTypical (median)95% finish withinTimeout to set
/v1/telegram/profile/posts2.9 s7.3 s13 s
/v1/telegram/search2.3 s9.6 s20 s

Notes

  • All endpoints use GET with query parameters and the x-api-key header.
  • handle accepts the name with or without the leading @, or a t.me channel URL.
  • View and reaction counts on posts are rounded by Telegram's own public preview, so use them for ranking rather than for exact deltas.
  • A plain search row carries the channel's handle, a title and the matched snippet, but no subscriber count. Add include=details to fill the exact subscriber count, description, avatar and verified flag on every row in the same call. It adds a per-channel charge for channels not already cached, and channels that cannot be filled are refunded.

Next steps