Skip to content

Telegram API

7 endpointsSocial & VideoGlobalsocial:read7 real examples

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/channelTitle, description, member count and photo of one channel, group, bot or user; channels also get their photo, video, file and link counts.
GET/telegram/messagesLatest public posts of one channel, about 20 per page, newest first.
GET/telegram/searchPublic posts of one channel that match a search query, about 20 per page, newest first.
GET/telegram/messageOne public post of a channel, by id or by its t.me link.
GET/telegram/commentsPublic comments under one channel post, newest first, about 50 per page. Telegram hides commenter names from visitors, so comments carry no author.
GET/telegram/stickerSetTitle and add link of one public sticker set, by its short name.
GET/telegram/emojiPackTitle and add link of one public custom emoji pack, by its short name.

channel

GET/v1/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.

scope social:read1 unitcached 1 h

Parameters

channel
string
required
Username, @username, or t.me URL.
e.g. durov
tunnel
string
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.
proxy
string
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.
profileId
string
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
audioCountinteger (int64)
descriptionstring
fileCountinteger (int64)
linkCountinteger (int64)
memberCountinteger (int64)
photostring
photoCountinteger (int64)
titlestring
typestring
urlstring
usernamestring
verifiedboolean
videoCountinteger (int64)
curl "https://api.hoshime.com/v1/telegram/channel?channel=durov" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/telegram/messages

Latest public posts of one channel, about 20 per page, newest first.

scope social:read1 unitcached 5 minpaginated

Parameters

channel
string
required
Username, @username, or t.me URL.
e.g. durov
after
integer
Only posts newer than this post id. Ignored when a cursor is given.
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
channelstring
forwardedFromstring
hasVideoboolean
idstring
photosImage[]
heightany
urlstring
widthany
publishedAtstring
reactionsReaction[]
countinteger (int64)
customEmojiIdstring
emojistring
paidboolean
textstring
urlstring
viewsinteger (int64)
curl "https://api.hoshime.com/v1/telegram/messages?channel=durov" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}

message

GET/v1/telegram/message

One public post of a channel, by id or by its t.me link.

scope social:read1 unitcached 1 h

Parameters

channel
string
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
id
integer
Post id. Optional when channel is a post link.
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorstring
channelstring
forwardedFromstring
hasVideoboolean
idstring
photosImage[]
heightany
urlstring
widthany
publishedAtstring
reactionsReaction[]
countinteger (int64)
customEmojiIdstring
emojistring
paidboolean
textstring
urlstring
viewsinteger (int64)
curl "https://api.hoshime.com/v1/telegram/message?channel=https%3A%2F%2Ft.me%2Fdurov%2F1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 10 minpaginated

Parameters

channel
string
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
id
integer
Post id. Optional when channel is a post link.
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
photosImage[]
heightany
urlstring
widthany
publishedAtstring
reactionsReaction[]
countinteger (int64)
customEmojiIdstring
emojistring
paidboolean
replyToIdstring
textstring
urlstring
curl "https://api.hoshime.com/v1/telegram/comments?channel=https%3A%2F%2Ft.me%2Ftginfo%2F4446" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/telegram/stickerSet

Title and add link of one public sticker set, by its short name.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Sticker set short name, as in t.me/addstickers/<name>.
e.g. Animals
tunnel
string
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.
proxy
string
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.
profileId
string
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
descriptionstring
namestring
titlestring
urlstring
curl "https://api.hoshime.com/v1/telegram/stickerSet?name=Animals" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/telegram/emojiPack

Title and add link of one public custom emoji pack, by its short name.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Emoji pack short name, as in t.me/addemoji/<name>.
e.g. RestrictedEmoji
tunnel
string
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.
proxy
string
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.
profileId
string
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
namestring
titlestring
urlstring
curl "https://api.hoshime.com/v1/telegram/emojiPack?name=RestrictedEmoji" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open