Telegram public channel posts
Beta GET /v1/telegram/channel/posts
GET /v1/telegram/channel/posts
One web-preview page of posts: text, date, views, reactions, forwards and media previews. The cursor (a post number) fetches the previous page.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
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>). Accepted hosts: t.me, telegram.me. |
Send at least one of handle, url. If you send several, the first listed is used and the rest are ignored.
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
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,
)
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": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"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_DTwLtKMB7u9r6HqRQSNTZSDpohG0KFjyvUfvqBOMBoBgotUycPBIRIdO6jbVgVFfa2R8DlhaMN_qmA-2ItIIYREsJPt_YGGFq4FAWNchY0p7d09c15aL4NiQh5viq8ID4ddleu6IXRPJ8iSw8tRzkWMN...",
"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 between “what if…?” and “look, it works!” has never been smaller, and that changed ho...",
"published_at": "2026-10-11T14:52:40Z",
"duration_seconds": 75.0,
"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-CvPFBnnpxyzhk3fhlnPzmm4AtyPX23wHPHjBwOldqFwF8M8Z44K3uMAc71JlvB-qzMR-QUY73PkoYRfFAKcxDh_Z1tA3V0hYv-qowcwfTi76BFAV1tLGp_XKOeN...",
"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",
"view_count_text": "1.68M"
}
},
{
"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_DTwLtKMB7u9r6HqRQSNTZSDpohG0KFjyvUfvqBOMBoBgotUycPBIRIdO6jbVgVFfa2R8DlhaMN_qmA-2ItIIYREsJPt_YGGFq4FAWNchY0p7d09c15aL4NiQh5viq8ID4ddleu6IXRPJ8iSw8tRzkWMN...",
"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_kaKbuSZeo6RW0dW9tz_FJYWMzJ4AfcXAn1NMmSVaQ-W-PoiUea2zrcUn-8gC4I3UArGlsBQk-A6pnT7Vrnp3bKE0L2rvJB...",
"video_url": "https://cdn4.telesco.pe/file/f4b10a0c75.mp4?token=fotBcfxRM-axkewLJY9qMvPK4uGvwufmetZduA9ZTH7iUM09kiYiiiUT9dzdFntAfwK_2AR2USpzen3OiqcHH2hn9MpyVL_DOrxANPBTMDeuE22VwS3QtuRkjSaHHiPIoxXYZenD1Mz91DqZXj4JMHXfi_E8EwrAO7AK_3q6z2DaaAEFw16-3RN8WJChmb...",
"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_DTwLtKMB7u9r6HqRQSNTZSDpohG0KFjyvUfvqBOMBoBgotUycPBIRIdO6jbVgVFfa2R8DlhaMN_qmA-2ItIIYREsJPt_YGGFq4FAWNchY0p7d09c15aL4NiQh5viq8ID4ddleu6IXRPJ8iSw8tRzkWMN...",
"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
}Response#
A list of Post objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- Telegram public channel (
GET /v1/telegram/channel) - Telegram public post (
GET /v1/telegram/post)