Telegram API
Messages, accounts.
The Telegram API lets you read message details, account profiles and an account's messages, with no Telegram account or login. Each call costs 2 credits ($0.004 to $0.0067); failed calls are free. Telegram does not give the author's follower count with a post, so that field is returned as null. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-10-17.
Last tested: Last updated:
/v1/detail200 OK2 creditsplatform: "telegram" · id: "telegram/401"nullcomments nullshares nullcollects nullviews 4,350,000titleauthor.idauthor.verifiedauthor.followers+73 actions.
One response format.
Open a row to see its request. Its full parameters and response fields are on its own page.
DetailOne message by ID or link: text, author, views and publish time./v1/detail2 credits
platformid or urlcurl https://api.socialtoai.com/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -H "Content-Type: application/json" \ -d '{ "platform": "telegram", "id": "telegram/401" }'POST /v1/detailYour key goes in the Authorization headerUser ProfileOne account: name, bio and followers./v1/user_profile2 credits
platformusernamecurl https://api.socialtoai.com/v1/user_profile \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -H "Content-Type: application/json" \ -d '{ "platform": "telegram", "username": "telegram" }'POST /v1/user_profileYour key goes in the Authorization headerUser PostsThe recent messages of one account./v1/user_posts2 credits
platformusernamecurl https://api.socialtoai.com/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -H "Content-Type: application/json" \ -d '{ "platform": "telegram", "username": "telegram" }'POST /v1/user_postsYour key goes in the Authorization headerNot offered on Telegram: search, trending and comments.
Or skip the parameters.
Just ask.
Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.
How big is this Telegram account, and what has it posted lately?
- user_profilethe account you named2 credits
- user_postsits latest page2 credits
Look up this Telegram account and tell me who it is.
- user_profilethe account you named2 credits
Compare these three Telegram accounts by followers and posts.
- user_profile3 accounts6 credits
Same shape on every platform.
Learn it once.
A Telegram message and a Xiaohongshu note come back with the same field names. What a platform cannot give comes back as null.
{ "platform": "telegram", "id": "…", "ref": "…", "approx": [ { "field": "metrics.views", "kind": "approximate" } ], "type": "content", "url": "https://example.com/…", "format": "video", "title": null, "text": "…", "published_at": "2021-01-11T21:57:12.000Z", "author": { "id": null, "username": "…", "name": "…", "verified": null, "followers": null }, "metrics": { "likes": null, "comments": null, "shares": null, "collects": null, "views": 4350000, "reposts": null }, "images": [], "hashtags": null, "is_pinned": null}titleauthor.idauthor.verifiedauthor.followersmetrics.likesmetrics.commentsmetrics.sharesmetrics.collectsmetrics.repostshashtagsis_pinned{ "platform": "xiaohongshu", "id": "…", "ref": "…", "approx": [], "type": "content", "url": "https://example.com/…", "format": "image", "title": "…", "text": "…", "published_at": "2026-10-09T01:00:34.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": null }, "metrics": { "likes": 927, "comments": 122, "shares": 256, "collects": 59, "views": null, "reposts": null }, "images": ["https://example.com/…", "https://example.com/…"], "hashtags": ["…", "…"], "is_pinned": false}author.verifiedauthor.followersmetrics.viewsmetrics.reposts3 tools read Telegram.
All toolsDoes Telegram have an official API?
Telegram's API is open to all developers: anyone with a Telegram account can obtain an API ID at my.telegram.org. It is a full client API that covers channels (which can be public) and message search, and use is subject to Telegram's API Terms of Service.
Source: Telegram's developer documentation, checked 2026-10-17.