Telegram Channel Posts

https://api.sandbase.ai/v1/api/telegram/web/channel-posts

Get a public Telegram channel's recent posts: text, media, forwards, replies, link previews, reactions, views and time, with cursor pagination.

Price
$0.0015USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 3 optional
Production route

Try the model

Playground

Open playground
Input
Pagination cursor — fetch newer posts, pass `data.pagination.after_cursor` from the previous page.
Pagination cursor — fetch older posts, pass `data.pagination.before_cursor` from the previous page.
Channel username (required).
1100
Number of posts (1-100, default 20; when >20 the server automatically pages toward older posts). Range: 1 to 100.
OutputExample
Responseoutputs · 7.9 KB · 107 lines
[
  {
    "data": {
      "channel": "telegram",
      "channel_info": {
        "counters": {
          "links": "378",
          "photos": "16",
          "subscribers": "9.39M",
          "videos": "228"
        },
        "description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
        "photo": "https://cdn1.telesco.pe/file/uD1p4tMGhImdMimOPmsCryQhp8WC8j3pnTfxcBrqPyqhV_95GMsh3ZN-IZbMSGNCDwOsmS2YdjyFuuPg1WtqRw9O33otBT0nsTmME4s82WyRLr0w_EqwwERoPwqG-auB75gIa6tqlAfk3iCPZ5XuiH8Uw5kbtwRGHjUWwWEznwOfmZVt7UzNBbCYAv5yhv3p4SP34D6LkkzYZJ3mDPAPqDyppw79yOKDqvduzRUG8TAXHkGTfKRhJcIRb9-bAbr1t7GtcwYdquTJLhJdU3AnJBPZdPTFq9_M2AMSyy-K3llQ4RgOImDEQBEGed5aiOrVrDwpbsWAW1KNiUm9zvu6Wg.jpg",
        "subscribers": "9.39M",
        "title": "Telegram News",
        "username": "telegram",
        "verified": true
      },
      "messages": [
        {
          "author": "Telegram News",
          "channel": "telegram",
          "date": "2026-08-26T19:12:34+00:00",
          "forwarded_from": null,
          "id": 460,
          "is_forwarded": false,
          "link_preview": {
            "description": "Introducing Welcome Messages to greet new members of groups or channels, Buttons in Messages to make any text interactive, Inline Documents in Messages and much more.",
            "site_name": "Telegram",
            "title": "Welcome Messages, Buttons in Messages and Signed Gifts",
            "url": "https://telegram.org/blog/welcome-messages-buttons-TG-13"
          },
          "media": {
            "has_unsupported": false,
            "photos": [],
            "videos": []
          },
          "reactions": [],
          "reply_to": null,
          "text": "For all the info from today's update and a look back at 13 years of Telegram features — check out our blog:\nhttps://telegram.org/blog/welcome-messages-buttons-TG-13\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
          "text_html": "For all the info from today's update and a look back at <b>13 years of Telegram features</b> — check out our blog:<br><a href=\"https://telegram.org/blog/welcome-messages-buttons-TG-13\" target=\"_blank\" rel=\"noopener\">https://telegram.org/blog/welcome-messages-buttons-TG-13</a><br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> •&nbsp;<a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> •&nbsp;<a href=\"https://t.me/telegram/457\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">3</a> •&nbsp;<a href=\"https://t.me/telegram/458\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">4</a> •&nbsp;<a href=\"https://t.me/telegram/459\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">5</a> •&nbsp;<b>More</b>",
          "type": "text",
          "url": "https://t.me/telegram/460",
          "views": "1.68M"
        },
        {
          "author": "Telegram News",
          "channel": "telegram",
          "date": "2026-08-26T19:12:24+00:00",
          "forwarded_from": null,
          "id": 459,
          "is_forwarded": false,
          "link_preview": null,
          "media": {
            "has_unsupported": true,
            "photos": [],
            "videos": [
              {
                "duration": "0:12",
                "thumb": "https://cdn1.telesco.pe/file/Mig4C5_yhfOzJY6LL5XREHmG5-XSOEgVjcKaq31j5hz6jdBzXBWm7wSR8urtWdcaMCwcDR4XB_vH5Rx1-K7zz4qa6LdxYXVFNQxgiwdSB7qlzrfdHmDHp7nXmsoIEpayJdiy_CZHx4bD5ox3b5QfPA92644nbLQGub9uyIvewHjrVcid5B9f_XzibZAUQOFHkuL8bMuB0Dnj39NYtMzWiMweBXjr2P366ZH610IOGNZOeb8YyqWaGZemvT2TbvPPfs7PG3eiFf9YGTYlCfkDrVsshoGRsUkyBg08-fc-2plYBhvAR53mwWEAqh8sVfD7Mh8__pYgYQUcx_piWB8ZUQ",
                "url": "https://cdn1.telesco.pe/file/6efb59a075.mp4?token=fxejM2IN88xXhxY7zoUg56XvuFVMzMh_zt3YOIj1MHbfyBmlBZXgJ8w6nQ9189eFQCORGRThdzXor5sg7j3nzp-TSihUTaVKFWplz9iyoTcdU1tQ4qe3xUr0wUE1hNxY-vAl4HxVaG5oQR50bErNmdhoYPv8oCPwNaUDBfuYVJRwAfUcqf_xbOnvABeviwpHpFIQMMrTB81GDLywOhqfh3XQ4TO-9ZMRlpATIwJcqtbm8WVnMA23H9dZxL70-azbd4xKTy7sd0CUlFeap37o94TG4WpWXH5KW0FQ67DNzfczVoRjp32yOUM-7Bl9lBewmcJHtc4spRyqCtEkAv9Hjw"
              }
            ]
          },
          "reactions": [],
          "reply_to": null,
          "text": "Signed Gifts. You can now add your signature and a comment to gifts you buy via the gift marketplace.\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
          "text_html": "<b>Signed Gifts.</b> You can now add <b>your signature</b> and a comment to gifts you buy via the <a href=\"https://t.me/telegram/382\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">gift marketplace</a>.<br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> •&nbsp;<a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> •&nbsp;<a href=\"https://t.me/telegram/457\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">3</a> •&nbsp;<a href=\"https://t.me/telegram/458\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">4</a> •&nbsp;<b>5</b> •&nbsp;<a href=\"https://t.me/telegram/460\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">More</a>",
          "type": "video",
          "url": "https://t.me/telegram/459",
          "views": "1.48M"
        },
        {
          "author": "Telegram News",
          "channel": "telegram",
          "date": "2026-08-26T19:12:04+00:00",
          "forwarded_from": null,
          "id": 458,
          "is_forwarded": false,
          "link_preview": null,
          "media": {
            "has_unsupported": false,
            "photos": [
              "https://cdn1.telesco.pe/file/vYcqWu7S2GAzf8uvJjev8Yr0jcR6nQ_0deAc4WKXMenL8u-M0dIfcqmEM1rNmBOESCrWWXu7mOuVjuEFtDq1mgHrtkoQifzTYT5pEx56XoQWzl1p7aYEDwuHoethuqHxLOOV08BFamn8qLYI5kkeITgEewYYwL-Yz5ge6PhH295Jheil8InES0sAGm4YmUoHSXgvtXtXBV33I-4dAijMseE0HD0hHkUn8_zByM03clOBbthyA7a4schLST15e6fFgC6v7NTDTdmURvYtGnUi1KgISz3d5cP6cU-PowZe3rXabM_DD_qkT_g7w38xkBmqTs8yG2_dj2Uh3vrV1q9JJQ.jpg"
            ],
            "videos": []
          },
          "reactions": [],
          "reply_to": null,
          "text": "Placeholders for App Updates. If a user with an outdated app encounters a new feature, they can now instantly tap to download the latest update.\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
          "text_html": "<b>Placeholders for App Updates.</b> If a user with an <b>outdated app</b> encounters a new feature, they can now <b>instantly tap</b> to download the latest update.<br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> •&nbsp;<a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> •&nbsp;<a href=\"https://t.me/telegram/457\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">3</a> •&nbsp;<b>4</b> •&nbsp;<a href=\"https://t.me/telegram/459\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">5</a> •&nbsp;<a href=\"https://t.me/telegram/460\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">More</a>",
          "type": "photo",
          "url": "https://t.me/telegram/458",
          "views": "948K"
        }
      ],
      "pagination": {
        "after_cursor": 460,
        "before_cursor": 458,
        "count": 3,
        "has_more_before": true,
        "limit": 3,
        "pages_fetched": 1
      }
    }
  }
]

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.0015 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

channel
string · required
after
integer · optional
before
integer · optional
limit
integer · optional

Access

Provider
Telegram
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/telegram/web/channel-posts
Authentication
Bearer API key

API README

Telegram Channel Posts API

Pass a public channel username and get its latest posts with views, reactions and link previews.

Use cases

  • Monitor announcements from crypto, news or product channels.
  • Track post reach (views) over time.
  • Archive channel content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel": "telegram", "limit": 3}'

Parameters

NameTypeRequiredDescription
channelstringYesChannel username (required).
afterintegerNoPagination cursor — fetch newer posts, pass data.pagination.after_cursor from the previous page.
limitintegerNoNumber of posts (1-100, default 20; when >20 the server automatically pages toward older posts).
beforeintegerNoPagination cursor — fetch older posts, pass data.pagination.before_cursor from the previous page.

Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

{
  "messages": [
    {
      "id": 460,
      "date": "2026-08-26T19:12:34+00:00",
      "type": "text",
      "views": "1.68M",
      "url": "https://t.me/telegram/460",
      "text": "For all the info from today's update and a look back at 13 years of T…"
    }
  ],
  "pagination": {
    "after_cursor": 460,
    "before_cursor": 458,
    "count": 3,
    "has_more_before": true,
    "limit": 3,
    "pages_fetched": 1
  }
}

Notes

  • Use before / after cursors from pagination to page older or newer posts.

Related APIs

  • Batch channel info: Fetch basic info (title/description/avatar/subscribers/verified) for multiple public channels concurrently.
  • Get channel info: Get public Telegram channel metadata: title, description, avatar, subscriber count, verified badge and media counters..
  • Search posts in a channel: Search posts in a channel by keyword (case-insensitive)..

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/telegram/web/channel-posts
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "after": 0,
  "limit": 3,
  "before": 0,
  "channel": "telegram"
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Telegram$0.0015 per callJSONJul 31, 2026
Telegram$0.01 per callJSONJul 31, 2026
Telegram$0.0015 per callJSONJul 31, 2026
Telegram$0.0015 per callJSONJul 31, 2026
Telegram$0.0015 per callJSONJul 31, 2026
Telegram$0.0015 per callJSONJul 31, 2026

Questions

FAQ

How do I use the Telegram Channel Posts API?

Send a POST request to https://api.sandbase.ai/v1/api/telegram/web/channel-posts with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Telegram Channel Posts API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Telegram Channel Posts API accept?

Required: channel (string). Optional: after (integer), before (integer) and limit (integer). The Parameters table and the Playground on this page list every field.

What does the Telegram Channel Posts API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

Do I need a Telegram developer account or API key?

No. Telegram Channel Posts runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Telegram API access separately.