Answers / Telegram
How do I read Telegram public channel posts with an API without a bot token?
Call GET /v1/telegram/user_posts?username=CHANNEL_NAME with your PostToData key, or use get_user_posts with platform=telegram. It retrieves public broadcast messages, view counts, publication dates and source t.me links from any public Telegram channel without requiring a bot token or phone number session.
Telegram · user posts · $0.003 a call · one verified website trial · updated 2026-11-13
Run it live
Calls run only when you press Run. Opening this page does not spend credit.
Loading…
Public channels only. Use a channel handle for profiles, and channel/message_id for posts. Maximum 20 messages per call.
Your results will appear here. Choose a platform and action, then press Run.
Real API calls require verification for one trial, or a signed-in account with prepaid credit.
From code
curl "https://posttodata.com/v1/telegram/user_posts?username=durov&limit=5" -H "Authorization: Bearer YOUR_API_KEY"import requests
r = requests.get(
"https://posttodata.com/v1/telegram/user_posts",
headers={"Authorization": "Bearer YOUR_API_KEY"},
params={"username": "durov", "limit": 5},
)
for item in r.json()["data"]["items"]:
print(item["url"], item.get("text") or item.get("title"))const url = new URL("https://posttodata.com/v1/telegram/user_posts");
url.searchParams.set("username", "durov");
url.searchParams.set("limit", "5");
const res = await fetch(url, {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await res.json();
console.log(data.data.items);req, _ := http.NewRequest("GET", "https://posttodata.com/v1/telegram/user_posts?username=durov&limit=5", nil)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)From your AI
Claude and ChatGPT clients that support OAuth can sign in without pasting a key. Follow the client setup guide. The command below is the API-key option for Claude Code.
claude mcp add --transport http posttodata https://posttodata.com/mcp --header "Authorization: Bearer YOUR_API_KEY"Then ask
“Fetch recent posts from public Telegram channel 'durov' using PostToData and summarize the announcements with t.me links.”
The model calls get_user_posts with platform telegram.
Response Schema & Data Sample
Normalized JSON output structure returned by PostToData. All fields are strongly typed; missing upstream metrics return null rather than being omitted.
{
"meta": {
"platform": "telegram",
"action": "user_posts",
"total_items": 1,
"currency": "USD",
"price_usd": "0.003"
},
"data": {
"items": [
{
"id": "durov",
"type": "post",
"url": "https://telegram.com/example_id",
"published_at": "2026-11-15T12:00:00Z",
"title": "durov insights & discussion",
"text": "Structured body content retrieved from the public social post, ready for AI indexing or sentiment analysis.",
"author": {
"id": "creator_01",
"username": "durov",
"name": "Creator",
"url": null
},
"metrics": {
"likes": 215,
"comments": 34,
"shares": 12,
"views": 5400,
"score": null
}
}
]
}
}Good to know
- Telegram channel post lookups list at $0.003 per successful call.
- No MTProto credentials, Telegram bot token or phone number needed.
- Reads any public channel or supergroup broadcast.
- Clean JSON response stripped of spam formatting.
Full reference in the docs. All Telegram endpoints are on the Telegram API page.
More answers