Telegram API
Returns public Telegram channel info and media counts, channel posts with reactions, post search within a channel, single posts, post comments, and sticker set and emoji pack details.
View as Markdown| GET | /telegram/channel | Title, description, member count and photo of one channel, group, bot or user; channels also get their photo, video, file and link counts. |
| GET | /telegram/messages | Latest public posts of one channel, about 20 per page, newest first. |
| GET | /telegram/search | Public posts of one channel that match a search query, about 20 per page, newest first. |
| GET | /telegram/message | One public post of a channel, by id or by its t.me link. |
| GET | /telegram/comments | Public comments under one channel post, newest first, about 50 per page. Telegram hides commenter names from visitors, so comments carry no author. |
| GET | /telegram/stickerSet | Title and add link of one public sticker set, by its short name. |
| GET | /telegram/emojiPack | Title and add link of one public custom emoji pack, by its short name. |
channel
/v1/telegram/channelTitle, description, member count and photo of one channel, group, bot or user; channels also get their photo, video, file and link counts.
Parameters
channelstring required | Username, @username, or t.me URL. e.g. durov |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
audioCount | integer (int64) |
description | string |
fileCount | integer (int64) |
linkCount | integer (int64) |
memberCount | integer (int64) |
photo | string |
photoCount | integer (int64) |
title | string |
type | string |
url | string |
username | string |
verified | boolean |
videoCount | integer (int64) |
curl "https://api.hoshime.com/v1/telegram/channel?channel=durov" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/channel?channel=durov", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/channel?channel=durov", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "audioCount": 0, "description": "Founder of Telegram.", "fileCount": 0, "linkCount": 200, "memberCount": 10106139, "photo": "https://cdn4.telesco.pe/file/FC6pj9SwHPR-Vx-u_oDsDmlH4SV77NyZSMMjs5KJBSLvQ-iu3g-HLsbP52rdsB2BMF_xaGxMUMX7TqG1uYuXfu4bmov8hyQ5ys5a2ZaY3dqMSFbRk4gw8dmJV…", "photoCount": 102, "title": "Pavel Durov", "type": "channel", "url": "https://t.me/durov", "username": "durov", "verified": true, "videoCount": 47 }, "meta": { "cached": false, "endpoint": "channel", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }
messages
/v1/telegram/messagesLatest public posts of one channel, about 20 per page, newest first.
Parameters
channelstring required | Username, @username, or t.me URL. e.g. durov |
afterinteger | Only posts newer than this post id. Ignored when a cursor is given. |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
18 fields
author | string |
channel | string |
forwardedFrom | string |
hasVideo | boolean |
id | string |
photos | Image[] |
height | any |
url | string |
width | any |
publishedAt | string |
reactions | Reaction[] |
count | integer (int64) |
customEmojiId | string |
emoji | string |
paid | boolean |
text | string |
url | string |
views | integer (int64) |
curl "https://api.hoshime.com/v1/telegram/messages?channel=durov" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/messages?channel=durov", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/messages?channel=durov", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "Pavel Durov", "channel": "durov", "forwardedFrom": "", "hasVideo": true, "id": "552", "photos": [], "publishedAt": "2026-10-11T14:52:40Z", "reactions": [ { "count": 10600, "customEmojiId": "", "emoji": "", "paid": true }, { "count": 18900, "customEmojiId": "5936157098181135162", "emoji": "", "paid": false } ], "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…", "url": "https://t.me/durov/552", "views": 2070000 }, { "author": "Pavel Durov", "channel": "durov", "forwardedFrom": "", "hasVideo": true, "id": "551", "photos": [], "publishedAt": "2026-10-10T14:22:43Z", "reactions": [ { "count": 60400, "customEmojiId": "", "emoji": "", "paid": true }, { "count": 38700, "customEmojiId": "5936157098181135162", "emoji": "", "paid": false } ], "text": "💸 If your wallet doesn’t look like this, don’t even bother sending me money for my birthday! 🎂", "url": "https://t.me/durov/551", "views": 2140000 } ], "meta": { "cached": false, "endpoint": "messages", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
/v1/telegram/searchPublic posts of one channel that match a search query, about 20 per page, newest first.
Parameters
channelstring required | Username, @username, or t.me URL. e.g. durov |
querystring required | Words or #hashtag to find in the channel's posts. e.g. telegram |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
18 fields
author | string |
channel | string |
forwardedFrom | string |
hasVideo | boolean |
id | string |
photos | Image[] |
height | any |
url | string |
width | any |
publishedAt | string |
reactions | Reaction[] |
count | integer (int64) |
customEmojiId | string |
emoji | string |
paid | boolean |
text | string |
url | string |
views | integer (int64) |
curl "https://api.hoshime.com/v1/telegram/search?channel=durov&query=telegram" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/search?channel=durov&query=telegram", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/search?channel=durov&query=telegram", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": "Pavel Durov", "channel": "durov", "forwardedFrom": "Telegram Designers", "hasVideo": true, "id": "552", "photos": [], "publishedAt": "2026-10-11T14:52:40Z", "reactions": [ { "count": 10600, "customEmojiId": "", "emoji": "", "paid": true }, { "count": 18900, "customEmojiId": "5936157098181135162", "emoji": "", "paid": false } ], "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…", "url": "https://t.me/durov/552", "views": 2070000 }, { "author": "Pavel Durov", "channel": "durov", "forwardedFrom": "", "hasVideo": false, "id": "548", "photos": [], "publishedAt": "2026-09-11T16:04:02Z", "reactions": [ { "count": 21900, "customEmojiId": "", "emoji": "", "paid": true }, { "count": 37000, "customEmojiId": "5399847211989246390", "emoji": "", "paid": false } ], "text": "🤝 Telegram has become the sponsor of Codeforces — the largest competitive programming platform in the world. \n\n ⚡CodeForces organizes over 100 coding …", "url": "https://t.me/durov/548", "views": 4120000 } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }
message
/v1/telegram/messageOne public post of a channel, by id or by its t.me link.
Parameters
channelstring required | Username, @username, or t.me URL. A post link (t.me/<name>/<id>) also gives the id. e.g. https://t.me/durov/1 |
idinteger | Post id. Optional when channel is a post link. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
18 fields
author | string |
channel | string |
forwardedFrom | string |
hasVideo | boolean |
id | string |
photos | Image[] |
height | any |
url | string |
width | any |
publishedAt | string |
reactions | Reaction[] |
count | integer (int64) |
customEmojiId | string |
emoji | string |
paid | boolean |
text | string |
url | string |
views | integer (int64) |
curl "https://api.hoshime.com/v1/telegram/message?channel=https%3A%2F%2Ft.me%2Fdurov%2F1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/message?channel=https%3A%2F%2Ft.me%2Fdurov%2F1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/message?channel=https%3A%2F%2Ft.me%2Fdurov%2F1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": "", "channel": "durov", "forwardedFrom": "", "hasVideo": false, "id": "1", "photos": [], "publishedAt": "2015-10-28T18:20:58Z", "reactions": [], "text": "", "url": "https://t.me/durov/1", "views": 0 }, "meta": { "cached": false, "endpoint": "message", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }
comments
/v1/telegram/commentsPublic comments under one channel post, newest first, about 50 per page. Telegram hides commenter names from visitors, so comments carry no author.
Parameters
channelstring required | Username, @username, or t.me URL. A post link (t.me/<name>/<id>) also gives the id. e.g. https://t.me/tginfo/4446 |
idinteger | Post id. Optional when channel is a post link. |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
14 fields
id | string |
photos | Image[] |
height | any |
url | string |
width | any |
publishedAt | string |
reactions | Reaction[] |
count | integer (int64) |
customEmojiId | string |
emoji | string |
paid | boolean |
replyToId | string |
text | string |
url | string |
curl "https://api.hoshime.com/v1/telegram/comments?channel=https%3A%2F%2Ft.me%2Ftginfo%2F4446" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/comments?channel=https%3A%2F%2Ft.me%2Ftginfo%2F4446", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/comments?channel=https%3A%2F%2Ft.me%2Ftginfo%2F4446", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "1837633", "photos": [], "publishedAt": "2026-11-01T16:13:25Z", "reactions": [], "replyToId": "1837632", "text": "Неее, в настройках там скобка не отключается вроде. К тому же на ios последней версии, делаю статью с фоткой, при публикации или отложке, телега завис…", "url": "https://t.me/tginfo/4446?comment=1837633" }, { "id": "1837632", "photos": [], "publishedAt": "2026-11-01T16:02:29Z", "reactions": [], "replyToId": "1837631", "text": "Проверь настройку, может поменял или кто-то за тебя. Рано репортить баг который не проверен полностью, да и только от тебя жалоба пока что была", "url": "https://t.me/tginfo/4446?comment=1837632" } ], "meta": { "cached": false, "endpoint": "comments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }
stickerSet
/v1/telegram/stickerSetTitle and add link of one public sticker set, by its short name.
Parameters
namestring required | Sticker set short name, as in t.me/addstickers/<name>. e.g. Animals |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
description | string |
name | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/telegram/stickerSet?name=Animals" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/stickerSet?name=Animals", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/stickerSet?name=Animals", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "A Telegram user has created the Just zoo it! sticker set.", "name": "Animals", "title": "Just zoo it!", "url": "https://t.me/addstickers/Animals" }, "meta": { "cached": false, "endpoint": "stickerSet", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }
emojiPack
/v1/telegram/emojiPackTitle and add link of one public custom emoji pack, by its short name.
Parameters
namestring required | Emoji pack short name, as in t.me/addemoji/<name>. e.g. RestrictedEmoji |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
name | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/telegram/emojiPack?name=RestrictedEmoji" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/telegram/emojiPack?name=RestrictedEmoji", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/telegram/emojiPack?name=RestrictedEmoji", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "RestrictedEmoji", "title": "Animated Emoji", "url": "https://t.me/addemoji/RestrictedEmoji" }, "meta": { "cached": false, "endpoint": "emojiPack", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "telegram", "requestId": "req_2Xb9kQ…", "units": 1 } }