Sources › Social media › Telegram Channel › Get Messages

Telegram Channel Messages API
Pesan sebuah channel Telegram publik, bisa ditelusuri ke belakang.
Request
https://api.zapi.ink/v1/social-media:telegram-channel/messages/:channelSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| channel | string | path | Yes | Telegram public channel username (without @) Example: durov |
| before | number | query | No | Return messages older than this message id Example: 100 |
| after | number | query | No | Return messages newer than this message id Example: 1 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:telegram-channel/messages/durov?before=100&after=1" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:telegram-channel/messages/durov?before=100&after=1", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:telegram-channel/messages/durov", params={"before":"100","after":"1"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:telegram-channel", "data": { "ok": true, "count": 20, "channel": "durov", "messages": [ { "id": 518, "url": "https://t.me/durov/518", "date": "2026-05-19T18:02:53+00:00", "text": "💪 Anyone can now prompt their own text transformation style — for example, “Gym Bro” — and turn any message into motivational protein poetry.\n\n💪 Then share the style with friends…", "media": "https://cdn4.telesco.pe/file/105be22719.mp4?token=HGQVyL-KFZW9v4QGrWUCv7BffqoVt4Gs0T9N577dVtRW-tWPxrXwF9Nxd3g91rZiNOhtseXV2HJuNbN8ERj17KLjoiakcpfum_cXJ0Tj_7KJ_Du2bIvqAu94B9MqNh9nyQ…", "views": "4.47M" }, { "id": 519, "url": "https://t.me/durov/519", "date": "2026-05-20T15:38:10+00:00", "text": "🤖 Your Telegram inbox can now run itself.\n\nAssign a bot to read and reply for you — with granular control over its rights and chat access. 🧠\n\n⚙️ Start building!", "media": "https://cdn4.telesco.pe/file/e174be993b.mp4?token=ohtSSMZAhThj4sFImo9zSLjbBQL-_f4gsyzNyPEQmebkua-Fzfjvv-roC2IPuJSB5aF_LMFjiI488ZnzhnHleK6YMHpXYwKjHdzXaH7BA3Swbjitr8GHJFWhLh-AgpueKR…", "views": "8.65M" }, { "id": 520, "url": "https://t.me/durov/520", "date": "2026-05-23T13:26:07+00:00", "text": "🎭 WhatsApp encryption is a giant fraud.\n\n🇺🇸 The state of Texas just sued WhatsApp for lying to users about privacy — because WhatsApp employees have access to “virtually all” pr…", "views": "11.4M" } ], "newestId": 538, "oldestId": 518, "nextBefore": 518 }, "timestamp": "2026-05-27T13:36:09Z" }
Frequently asked questions
How do I call the Telegram Channel Messages API?
Send a GET request to https://api.zapi.ink/v1/social-media:telegram-channel/messages/durov with your Zapi key in the x-api-key header. Parameters — required: channel; optional: before, after. The response is JSON in the { project, data, timestamp } envelope.
What does the Telegram Channel Messages API return?
Pesan sebuah channel Telegram publik, bisa ditelusuri ke belakang. The example response has the fields ok, count, channel, messages, newestId, oldestId, nextBefore. Each item in messages has fields such as id, url, date, text, media, views.
Is the Telegram Channel Messages API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Telegram Channel Messages API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "telegram-channel" and endpoint "messages".
What other Telegram Channel API endpoints are there?
It has 3 endpoints. Besides Get Messages: Channel Preview, Lookup Entity.