Telegram public channel posts API
One web-preview page of posts: text, date, views, reactions, forwards and media previews.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
The cursor (a post number) fetches the previous page.
You send one of handle or url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/telegram/channel/posts" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'handle=durov'import os
import requests
params = {
"handle": "durov",
}
res = requests.get(
"https://api.socialscrape.io/v1/telegram/channel/posts",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/telegram/channel/posts");
url.search = new URLSearchParams({
handle: "durov",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Telegram public channel posts",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/telegram/channel/posts",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "handle",
"value": "durov"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | one of | Channel username, without @. Also accepted as username. |
url | url | one of | Channel URL (t.me/<name>). |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_4bfd4c61bbc632c2ff55f435",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "telegram",
"id": "552",
"url": "https://t.me/durov/552",
"type": "video",
"author": {
"id": null,
"handle": "durov",
"name": "Pavel Durov",
"url": "https://t.me/durov",
"avatar_url": "https://cdn4.telesco.pe/file/E1fT1nGQ1lDmNdTpfhudwrMtUB-bHaQjPg9dJWmN5KP932jw4thhnQURK4_DTwLtKMB7u9r6HqRQSNTZSDpohG0KFjyvUfvqBOMBoBgotUycPBIRIdO6jbVgVFfa2R8D...",
"verified": true
},
"title": null,
"text": "✨ Designers × AI\n\n🆕 The mockup era is over. Today’s AI tools give every designer a superpower: you can now craft your ideas, not just draw them. \n\nThe gap b...",
"published_at": "2026-10-11T14:52:40Z",
"duration_seconds": 75,
"language": null,
"hashtags": null,
"mentions": [
"designers"
],
"stats": {
"views": 1680000,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://cdn4.telesco.pe/file/mGZ4d6UrRGZ0VvkWgcOqP96rxXmjtsXB3ftIiRHuO8f7zPvgrd8XeSUF-_w4JMf9lR2Rm4D--QudMKUTGQ91ZID-CvPFBnnpxyzhk3fhlnPzmm4AtyPX23wHPHjBwOld...",
"video_url": null,
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"channel_handle": "durov",
"forwarded": true,
"media_note": "Media is too big",
"reaction_count": 36200,
"reactions": [
{
"count": 7510,
"count_text": "7.51K",
"emoji": null,
"emoji_id": null,
"paid": true
},
{
"count": 16300,
"count_text": "16.3K",
"emoji": null,
"emoji_id": "5936157098181135162",
"paid": null
},
{
"count": 6960,
"count_text": "6.96K",
"emoji": null,
"emoji_id": "5399847211989246390",
"paid": null
}
],
"signature": "Pavel Durov"
}
},
{
"object": "post",
"platform": "telegram",
"id": "551",
"url": "https://t.me/durov/551",
"type": "video",
"author": {
"id": null,
"handle": "durov",
"name": "Pavel Durov",
"url": "https://t.me/durov",
"avatar_url": "https://cdn4.telesco.pe/file/E1fT1nGQ1lDmNdTpfhudwrMtUB-bHaQjPg9dJWmN5KP932jw4thhnQURK4_DTwLtKMB7u9r6HqRQSNTZSDpohG0KFjyvUfvqBOMBoBgotUycPBIRIdO6jbVgVFfa2R8D...",
"verified": true
},
"title": null,
"text": "💸 If your wallet doesn’t look like this, don’t even bother sending me money for my birthday! 🎂",
"published_at": "2026-10-10T14:22:43Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": 1830000,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://cdn4.telesco.pe/file/drycsCEHu0AFQ4jOTXMks14b7PS8Q13l2JhjSd85axmBGatuJZOKUHsA--bs4qLP4gU3gfMtesA43pJpYOdaLC3LGhJiVAWC0QLknD1KDHuZjXL9yLXp_kaKbuSZeo6R...",
"video_url": "https://cdn4.telesco.pe/file/f4b10a0c75.mp4?token=fotBcfxRM-axkewLJY9qMvPK4uGvwufmetZduA9ZTH7iUM09kiYiiiUT9dzdFntAfwK_2AR2USpzen3OiqcHH2hn9MpyVL_DOrxANPBTMDe...",
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"channel_handle": "durov",
"reaction_count": 119920,
"reactions": [
{
"count": 60200,
"count_text": "60.2K",
"emoji": null,
"emoji_id": null,
"paid": true
},
{
"count": 37300,
"count_text": "37.3K",
"emoji": null,
"emoji_id": "5936157098181135162",
"paid": null
},
{
"count": 12700,
"count_text": "12.7K",
"emoji": null,
"emoji_id": "5373223594484587136",
"paid": null
}
],
"signature": "Pavel Durov",
"view_count_text": "1.83M"
}
}
],
"cursor": "531",
"has_more": true,
"parent": {
"object": "community",
"platform": "telegram",
"id": null,
"url": "https://t.me/durov",
"kind": "channel",
"name": "durov",
"title": "Pavel Durov",
"description": "Founder of Telegram.",
"avatar_url": "https://cdn4.telesco.pe/file/E1fT1nGQ1lDmNdTpfhudwrMtUB-bHaQjPg9dJWmN5KP932jw4thhnQURK4_DTwLtKMB7u9r6HqRQSNTZSDpohG0KFjyvUfvqBOMBoBgotUycPBIRIdO6jbVgVFfa2R8D...",
"banner_url": null,
"member_count": 10200000,
"online_count": null,
"is_nsfw": null,
"is_private": null,
"verified": true,
"created_at": null,
"extra": {
"link_count": 200,
"member_count_text": "10.2M",
"photo_count": 102,
"video_count": 47
}
}
},
"cursor": "531",
"has_more": true
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.telegram.channel_posts(...) and the TypeScript client client.telegram.channelPosts(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.