# Telegram API

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.

- Page: https://socialtoai.com/platforms/telegram/
- Last updated: 2026-10-17
- Last tested: 2026-10-17

## Actions

| Action | What it returns | Selected by | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- | --- |
| `detail` | One message by ID or link: text, author, views and publish time. | — | `telegram.detail` | 2 | https://socialtoai.com/telegram-detail-api.md |
| `user_profile` | One account: name, bio and followers. | — | `telegram.user_profile` | 2 | https://socialtoai.com/telegram-user-profile-api.md |
| `user_posts` | The recent messages of one account. | — | `telegram.user_posts` | 2 | https://socialtoai.com/telegram-user-posts-api.md |

Not offered on Telegram: search, trending and comments.

## Example call

```bash
curl https://api.socialtoai.com/v1/detail \
  -H "Authorization: Bearer $SOCIALTOAI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "telegram",
    "id": "telegram/401"
  }'
```

## Fields Telegram cannot give

These fields are always null on the calls named, and are listed in the response's `unavailable`.

| Field | On |
| --- | --- |
| `title` | detail, user_posts |
| `author.id` | detail, user_posts |
| `author.verified` | detail, user_posts |
| `author.followers` | detail, user_posts |
| `metrics.likes` | detail, user_posts |
| `metrics.comments` | detail, user_posts |
| `metrics.shares` | detail, user_posts |
| `metrics.collects` | detail, user_posts |
| `metrics.reposts` | detail, user_posts |
| `hashtags` | detail, user_posts |
| `is_pinned` | detail, user_posts |
| `id` | user_profile |
| `following` | user_profile |
| `posts_count` | user_profile |

## Ask in your AI

- How big is this Telegram account, and what has it posted lately? → user_profile, user_posts: 4 credits

- Look up this Telegram account and tell me who it is. → user_profile: 2 credits

- Compare these three Telegram accounts by followers and posts. → user_profile × 3: 6 credits

## Ready-made tools that read Telegram

- [Account watch](https://socialtoai.com/tools/account-watch.md): What each one posted lately, and which posts beat its usual numbers
- [Creator profile](https://socialtoai.com/tools/creator-card.md): Their accounts on other platforms, the numbers on each, and how sure the match is
- [Bulk link data](https://socialtoai.com/tools/batch-stats.md): One row per link with its numbers as they are now. Links that no longer work are marked

## 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](https://core.telegram.org/api/obtaining_api_id), checked 2026-10-17.
