API reference
Telegram Channel Scraper API
Public Telegram channels as JSON: posts, views, reactions, media, search and an AI digest.
- Host
telegram-channel-scraper-posts-ai-digest.p.rapidapi.com- Base path
/v1/telegram- Auth
X-RapidAPI-Key,X-RapidAPI-Host- For agents
openapi.json·telegram.md
Overview and pricing · Tutorial: Telegram Channel Scraper · RapidAPI playground (opens in a new tab) ↗ · Apify actor (opens in a new tab) ↗
Channels
Channel profile, exact subscribers and activity, one or up to 20.
Get Channel Info
GET /v1/telegram/channel
Channel profile: title, description, exact subscribers, activity. Check how big and active a public channel is: title, description, picture, verified badge, exact subscribers, media counters and newest post date. 404 `channel_not_found` (unknown or private), 400 `not_a_channel` (groups, bots, people), neither billed. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
channel required |
query | string |
Public channel: username, @handle or t.me link. |
curl -G "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/channel" \
--data-urlencode "channel=durov" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com"
import requests
url = "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/channel"
params = {
"channel": "durov"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/channel?channel=durov", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
},
});
console.log(await res.json());
Get Channels in Bulk
POST /v1/telegram/channels
Profiles of up to 20 channels in one call. The same profile for up to 20 channels, in order: shortlist channels by audience and activity. A channel that cannot be read gets its error code and is not billed. 1 credit per channel found.
| Parameter | In | Type | Description |
|---|---|---|---|
channels required |
body | string[] |
Up to 20 channels: usernames, @handles or t.me links. |
curl -X POST "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/channels" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"channels": [
"durov",
"@telegram",
"https://t.me/s/bbcrussian"
]
}'
import requests
url = "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/channels"
payload = {
"channels": [
"durov",
"@telegram",
"https://t.me/s/bbcrussian"
]
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/channels", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"channels": [
"durov",
"@telegram",
"https://t.me/s/bbcrussian"
]
}),
});
console.log(await res.json());
Posts
Posts with views, reactions, media and links; paging and search.
Get Channel Posts
GET /v1/telegram/posts
Latest posts of a channel, with paging. Read a public channel's latest posts, newest first: text, date, views, reactions, media links, documents, polls, links, buttons, forwards and replies. Page back with `before` = `next_before`; poll for new posts with `after`. 1 credit per 20 posts returned (1 minimum).
| Parameter | In | Type | Description |
|---|---|---|---|
channel required |
query | string |
Public channel: username, @handle or t.me link. |
limit |
query | integer |
Posts to return, 1-100. Default 20. |
before |
query | integer |
Only posts older than this post id (the `next_before` of the previous page). |
after |
query | integer |
Only posts newer than this id: poll a channel with the newest id you already have, then follow `next_after` while it is set. Not with `before`, e.g. after=540. |
since |
query | string |
Stop at posts older than this date (2026-11-01) or ISO date-time. |
curl -G "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/posts" \
--data-urlencode "channel=durov" \
--data-urlencode "limit=5" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com"
import requests
url = "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/posts"
params = {
"channel": "durov",
"limit": 5
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/posts?channel=durov&limit=5", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
},
});
console.log(await res.json());
Get Single Post
GET /v1/telegram/post
One post by its link or id. One post with everything Get Channel Posts returns, from its link (t.me/durov/551) or channel + id. 404 `post_not_found` when it was deleted (not billed). 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
channel required |
query | string |
Channel username, or the post's link (t.me/durov/551). |
id |
query | integer |
Post id, when `channel` is not a post link. |
curl -G "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/post" \
--data-urlencode "channel=https://t.me/durov/551" \
--data-urlencode "id=551" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com"
import requests
url = "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/post"
params = {
"channel": "https://t.me/durov/551",
"id": 551
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/post?channel=https://t.me/durov/551&id=551", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
},
});
console.log(await res.json());
Search Channel Posts
GET /v1/telegram/search
Search a channel's posts by keyword or hashtag. Telegram's own search inside one channel, newest first, with the same post fields as Get Channel Posts. Page back with `before` = `next_before`. 1 credit per 20 posts returned (1 minimum).
| Parameter | In | Type | Description |
|---|---|---|---|
channel required |
query | string |
Public channel: username, @handle or t.me link. |
q required |
query | string |
Words or a #hashtag, any language. |
limit |
query | integer |
Posts to return, 1-100. Default 20. |
before |
query | integer |
Only posts older than this post id (the `next_before` of the previous page). |
curl -G "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/search" \
--data-urlencode "channel=durov" \
--data-urlencode "q=TON" \
--data-urlencode "before=531" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com"
import requests
url = "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/search"
params = {
"channel": "durov",
"q": "TON",
"before": 531
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/search?channel=durov&q=TON&before=531", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
},
});
console.log(await res.json());
AI Digest
Topics, key facts, sentiment and links of recent posts, by AI.
Get Channel Digest
GET /v1/telegram/digest
AI digest of a channel's recent posts: topics, facts, sentiment. Summarize what a channel has been posting: an AI digest in your language with summary, topics, key facts, sentiment, links and stats, every point tied to a real post. 400 `no_posts` for an empty channel or search (not billed). 30 credits per digest, whatever the number of posts.
| Parameter | In | Type | Description |
|---|---|---|---|
channel required |
query | string |
Public channel: username, @handle or t.me link. |
posts |
query | integer |
Latest posts to read, 5-100. Default 30. |
language |
query | string |
Language of the digest, whatever the channel's: English, French, es, Deutsch... Default English. |
q |
query | string |
Only posts matching this search (what does the channel say about X?). |
before |
query | integer |
Only posts older than this post id (the `next_before` of the previous page). |
curl -G "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/digest" \
--data-urlencode "channel=durov" \
--data-urlencode "q=TON" \
--data-urlencode "before=531" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com"
import requests
url = "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/digest"
params = {
"channel": "durov",
"q": "TON",
"before": 531
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/digest?channel=durov&q=TON&before=531", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "telegram-channel-scraper-posts-ai-digest.p.rapidapi.com",
},
});
console.log(await res.json());
Response
{
"channel": {
"username": "durov",
"title": "Pavel Durov",
"url": "https://t.me/durov",
"description": "Founder/CEO/Owner of Telegram.\n\nFounder of TON/Gram.\n\nHalf-part troll.",
"photo": "https://cdn4.telesco.pe/file/dlY-pWv1M0zHrFRk5ZyAURHmcT...",
"verified": true,
"subscribers": 9880000,
"subscribers_exact": false,
"counters": { "photos": 106, "videos": 47, "links": 203 },
"preview_available": true,
"last_post": { "id": 570, "date": "2026-11-23T21:00:12+00:00" }
},
"count": 5,
"posts": [
{
"id": 570,
"url": "https://t.me/durov/570",
"date": "2026-11-23T21:00:12+00:00",
"edited": true,
"text": "🎉 Jensen's back.\n\nNvidia's board finally understood that a CEO has to evaluate Chinese models personally.\n\nYou can't delegate that.",
"views": 780000,
"reactions": [
{ "emoji": "⭐", "paid": true, "count": 6550 },
{ "custom_emoji_id": "5334575279731909928", "paid": false, "count": 36300 },
{ "custom_emoji_id": "5399847211989246390", "paid": false, "count": 11400 },
{ "custom_emoji_id": "5373223594484587136", "paid": false, "count": 10100 }
],
"reactions_total": 64350,
"media": [],
"links": [],
"hashtags": [],
"buttons": [],
"unsupported": false
},
{
"id": 568,
"url": "https://t.me/durov/568",
"date": "2026-11-21T22:48:52+00:00",
"edited": false,
"text": "You won't look professional in 2027 if your QR is unpimped.",
"views": 1260000,
"reactions": [
{ "emoji": "⭐", "paid": true, "count": 1850 },
{ "custom_emoji_id": "5373223594484587136", "paid": false, "count": 20500 },
{ "custom_emoji_id": "5399847211989246390", "paid": false, "count": 6560 },
{ "custom_emoji_id": "5334575279731909928", "paid": false, "count": 5410 }
],
"reactions_total": 34320,
"media": [
{
"type": "video",
"url": "https://cdn4.telesco.pe/file/e865fee2c6.mp4?token=clU6Un2qxa...",
"thumbnail": "https://cdn4.telesco.pe/file/VhQ0d7isXj5O5Kx_rO8FK37Z6oXnk2X...",
"duration": 24
}
],
"links": [],
"hashtags": [],
"buttons": [],
"unsupported": false
}
],
"next_before": 566,
"credits": 1
}
From a real response, shortened (2 of the 5 posts, CDN links cut). next_before is the cursor to older posts. In post listings subscribers is Telegram's rounded figure; Get Channel Info returns the exact one (9879809).
Why developers pick this API
- 🔓 No login, no ban risk: reads the public web preview Telegram itself publishes (t.me/s/), so there is no account to get banned and no session to keep alive.
- 🧠 The only digest on the market: other Telegram APIs stop at raw messages. Here one call turns 5 to 100 posts in Russian, Arabic, Persian or Spanish into an English (or French, or German...) briefing, where every fact and link points to a real post.
- 💸 Half the price: $0.0005 per call on PRO, for up to 20 posts, where the popular Telegram APIs charge $0.001 to $0.0015 per request. A digest is $0.015. Failed calls (4xx, 5xx) use 0 credits.
- 🎯 Exact numbers: the real subscriber count (9,879,809, not "9.88M"), real view and reaction counts, ISO dates.
- 🧭 Clear errors: an unknown name, a private invite link, a group or a bot each get their own error code, never billed.
AI digest
curl "https://telegram-channel-scraper-posts-ai-digest.p.rapidapi.com/v1/telegram/digest?channel=bbcrussian&posts=30&language=English" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: telegram-channel-scraper-posts-ai-digest.p.rapidapi.com"
{
"language": "English",
"channel_language": "ru",
"summary": "The channel covers ongoing military developments in the Russia-Ukraine war, including attacks on infrastructure and diplomatic efforts for peace. It also reports on significant political changes in Russia, such as the exclusion of Alexander Sokurov from the Human Rights Council. Additionally, the channel highlights international news, including incidents involving the British royal family and cultural updates like the Booker Prize for children.",
"topics": [
{
"name": "Russia-Ukraine War",
"summary": "The conflict continues with reports on drone attacks, naval engagements, and diplomatic discussions regarding potential peace agreements.",
"post_ids": [101774, 101776, 101781, 101782, 101783, 101786, 101792, 101796, 101799, 101800]
},
{
"name": "Russian Domestic Politics",
"summary": "Key political figures are being removed from advisory councils, and there is ongoing scrutiny of state statistics regarding war casualties.",
"post_ids": [101779, 101791, 101794, 101797]
}
],
"key_facts": [
{
"fact": "Ukraine is awaiting delivery of approximately 60 Patriot interceptor missiles, which are currently delayed by the Pentagon.",
"post_id": 101772
},
{
"fact": "President Zelensky confirmed that Ukrainian forces were responsible for the attack on the Russian cargo ship 'Sparta II' in the Gulf of Finland.",
"post_id": 101776
}
],
"sentiment": {
"label": "negative",
"score": -0.8,
"rationale": "The majority of the content focuses on war casualties, military strikes, sabotage threats, and political repression, creating a somber and tense tone."
},
"important_links": [
{
"url": "https://www.reuters.com/world/uk-warns-russian-sabotage-threat-companies-that-supply-ukraine-2026-11-24/",
"why": "Official warning from UK authorities regarding Russian sabotage threats against companies supplying Ukraine.",
"post_id": 101789
}
],
"stats": {
"posts": 30,
"posts_read": 30,
"first_date": "2026-11-24T07:54:31+00:00",
"last_date": "2026-11-24T19:53:12+00:00",
"posts_per_day": 60.1,
"average_views": 31091,
"with_media": 11,
"top_posts": [
{ "id": 101774, "url": "https://t.me/bbcrussian/101774", "views": 63700, "reactions": 0, "excerpt": "Российский дрон ударил по железнодорожной станции в Житомирской области..." }
]
},
"credits": 30
}
From a real response, shortened (5 topics, 7 facts and 3 links in full). Add q=Bitcoin to digest only the posts about one subject: "what did @cointelegraph say about Bitcoin this week, in Spanish?" is one call.
Paging and monitoring
- History: call
/posts, then again withbeforeset to thatnext_before, untilnext_beforeis gone.limitgoes up to 100 per call. - New posts only: keep the newest id you have and call
/postswithafterset to it; follownext_afterwhile it is set. Cheap polling for alerts and feeds. - A time window:
since=2026-11-01stops at older posts.
Errors
| Status | code |
Meaning |
|---|---|---|
| 400 | invalid_channel |
Not a Telegram username (4-32 letters, digits or _), handle or t.me link. |
| 400 | private_channel |
An invite link (t.me/+..., joinchat): private chats cannot be read. |
| 400 | not_a_channel |
A group, a bot or a person: Telegram publishes no posts of these. |
| 400 | preview_unavailable |
A channel whose owner turned the web preview off: its profile works, its posts do not. |
| 400 | no_posts |
Nothing to digest (empty channel or search). |
| 400 | invalid_request / invalid_language |
A parameter is out of range. |
| 404 | channel_not_found |
No public channel with this name. |
| 404 | post_not_found |
The post was deleted or never existed. |
| 429 | daily_limit_reached |
Daily safety limit of your plan; resets at 00:00 UTC. |
| 503 | source_unavailable |
Telegram did not answer; retry. |
| 503 | ai_error / capacity_exhausted |
The AI did not answer; retry. |
None of these is billed.
Limits
- Comments, member lists and private chats are not on the public preview, so they are not in this API.
- Custom emoji reactions come as an id (
custom_emoji_id) rather than a picture. - Very long histories are read 20 message ids per page: a channel full of photo albums takes more pages for the same number of posts (you still pay per post returned, not per page).
Use it from an AI agent
Add this MCP server and the Telegram Channel Scraper - Posts, Search & AI Digest actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.
https://mcp.apify.com?tools=helenisapi/telegram-channel-scraper
Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.