Telegram Analytics API
Real-time data from public Telegram channels
Click on any endpoint below to try it out
6
API Endpoints
v2
API Version
JSON:API
Format
Cached
Responses
🚀
Last Message ID
GET
/api/v2/telegram/channels/
{channel}/messages/last-id /api/v2/telegram/channels/{channel}/messages/last-id
{channel}/messages/last-id /api/v2/telegram/channels/{channel}/messages/last-id
📊
Channel Statistics
GET
/api/v2/telegram/channels/
{channel}/statistics/{days} /api/v2/telegram/channels/{channel}/statistics/{days}
{channel}/statistics/{days} /api/v2/telegram/channels/{channel}/statistics/{days}
🗳️
Channel Polls NEW
GET
/api/v2/telegram/channels/
{channel}/polls /api/v2/telegram/channels/{channel}/polls
{channel}/polls /api/v2/telegram/channels/{channel}/polls
💜
Channel Reactions NEW
GET
/api/v2/telegram/channels/
{channel}/reactions /api/v2/telegram/channels/{channel}/reactions
{channel}/reactions /api/v2/telegram/channels/{channel}/reactions
🏆
Top Contributors BETA
GET
/api/v2/telegram/channels/
{channel}/top-contributors /api/v2/telegram/channels/{channel}/top-contributors
{channel}/top-contributors /api/v2/telegram/channels/{channel}/top-contributors
🔀
Compare Channels
POST
/api/v2/telegram/channels/
compare /api/v2/telegram/channels/compare
compare /api/v2/telegram/channels/compare
⚠️ Legacy v1 API (Deprecated)
The v1 API is still available but deprecated. Please migrate to v2 for better features and JSON:API compliance.
v1 Endpoint (deprecated):
GET https://api-telegram.repostea.com/api/telegram/last-message?channel={channel}
Returns: {"success": true, "last_message_id": 12345}
🚀
Quick Start
cURL examples:
# Get Last Message ID curl "https://api-telegram.repostea.com/api/v2/telegram/channels/laravel/messages/last-id" # Get Channel Info curl "https://api-telegram.repostea.com/api/v2/telegram/channels/laravel" # Get Statistics (7 days) curl "https://api-telegram.repostea.com/api/v2/telegram/channels/laravel/statistics/7" # Compare Channels curl -X POST "https://api-telegram.repostea.com/api/v2/telegram/channels/compare" \ -H "Content-Type: application/json" \ -d '{"channels":["laravel","php"],"days":7}' # Get Polls curl "https://api-telegram.repostea.com/api/v2/telegram/channels/laravel/polls?period=7days" # Get Reactions curl "https://api-telegram.repostea.com/api/v2/telegram/channels/laravel/reactions?period=7days" # Get Top Contributors (BETA) curl "https://api-telegram.repostea.com/api/v2/telegram/channels/laravel/top-contributors?days=7"
All endpoints return data in JSON:API v1.1 format