# Telegram API

> Public channels and their messages.

Canonical page: https://okdata.online/apis/telegram/

3 endpoints, $0.002 per call. Region: Global. No Telegram login or cookies needed.

| Endpoint | ID | Returns | Price |
|---|---|---|---|
| [Profil channel Telegram](https://okdata.online/apis/telegram/channels/get/) | `telegram.channels.get` | Account | $0.002 per call |
| [Pesan channel Telegram](https://okdata.online/apis/telegram/channels/messages/list/) | `telegram.channels.messages.list` | Post[] | $0.002 per call · about 20 posts per page |
| [Detail pesan Telegram](https://okdata.online/apis/telegram/messages/get/) | `telegram.messages.get` | Post | $0.002 per call |

## Good for

- Pemantauan pesaing: `telegram.channels.get`, `telegram.channels.messages.list`
- Penemuan kreator: `telegram.channels.get`
- Riset konten: `telegram.channels.messages.list`, `telegram.messages.get`

## At a glance

3 Telegram endpoints covering channels and messages, from $0.002 a call. No Telegram account or cookie needed.

Categories: [Media sosial](https://okdata.online/categories/social/)

- **Endpoints**: 3 endpoints. In 2 groups, one response format.
- **Lowest price**: From $0.002. A call, paid from a prepaid balance.
- **Freshness**: Live. Read from the platform when you call.
- **Monthly fee**: $0. No subscription or minimum spend.

- [Start free](https://okdata.online/console/)
- Try one: [Profil channel Telegram](https://okdata.online/apis/telegram/channels/get/)
- Telegram in Claude, Cursor and other agents: [Telegram MCP](https://okdata.online/mcp/telegram/)

## Endpoints by group

### Channels (2)

| Endpoint | Request | Returns | Price |
|---|---|---|---|
| [Profil channel Telegram](https://okdata.online/apis/telegram/channels/get/) | `GET /v1/telegram/channels/get` | Account | $0.002 per call |
| [Pesan channel Telegram](https://okdata.online/apis/telegram/channels/messages/list/) | `GET /v1/telegram/channels/messages/list` | Post[] | $0.002 per call |

### Messages (1)

| Endpoint | Request | Returns | Price |
|---|---|---|---|
| [Detail pesan Telegram](https://okdata.online/apis/telegram/messages/get/) | `GET /v1/telegram/messages/get` | Post | $0.002 per call |

- [Telegram API pricing](https://okdata.online/pricing/telegram/)
- [Telegram in your AI (MCP)](https://okdata.online/mcp/telegram/)
- [Live status](https://okdata.online/status/)

## What people do with Telegram data

- [Pemantauan pesaing](https://okdata.online/solutions/competitor-monitoring/): “What did our competitors post this week, and what took off?” [Profil channel Telegram](https://okdata.online/apis/telegram/channels/get/) $0.002, [Pesan channel Telegram](https://okdata.online/apis/telegram/channels/messages/list/) $0.002
- [Riset konten](https://okdata.online/solutions/content-research/): “What do the top posts on this topic have in common?” [Pesan channel Telegram](https://okdata.online/apis/telegram/channels/messages/list/) $0.002, [Detail pesan Telegram](https://okdata.online/apis/telegram/messages/get/) $0.002
- [Penemuan kreator](https://okdata.online/solutions/creator-discovery/): “Who are the mid-size creators in camping gear?” [Profil channel Telegram](https://okdata.online/apis/telegram/channels/get/) $0.002

## Start in three steps

1. Get a key: [open the console](https://okdata.online/console/). A new key comes with $0.20 to try, no card.
2. Connect your AI with this sentence (swap in your key), or call the API yourself:

   > Set up okdata for me by following https://okdata.online/agents.md. Here is my okdata API key: okd_…. Keep it safe and use it for all okdata calls.

3. Make the first call (Profil channel Telegram). Items arrive in data.items, the next page in page.next_cursor, the charge in meta.billing.amount.

```bash
curl -G "https://api.okdata.online/v1/telegram/channels/get" \
  -H "Authorization: Bearer $OKDATA_API_KEY" \
  --data-urlencode 'username=telegram'
```

## Questions about the Telegram API

### What does the Telegram API cost?

Each of the 3 endpoints has its own price, $0.002 a call; the cheapest is Profil channel Telegram at $0.002. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.

### Do I need a Telegram account or cookie?

No. You call https://api.okdata.online with one okdata key and get public Telegram data back; you never use your own Telegram account, cookie or QR login.

### How fresh is the data?

A request reads Telegram when you call, unless the same request was answered a short while ago: then the answer can come from the result cache, with meta.cached: true and meta.fetched_at saying when it was read (lists and searches up to 30 minutes old, one post or product up to 1 hour, profiles up to 6 hours).

### Can my AI agent use the Telegram API?

Yes. Connect the MCP server at https://api.okdata.online/mcp: its find tool lists these 3 endpoints with their prices, and its call tool runs them on your key.

### Can I try it for free?

New accounts get $0.20 of trial credit with no card: enough for 100 calls to Profil channel Telegram.

## More about Telegram

- [How do I read a public Telegram channel's messages through an API without a bot or a user login?](https://okdata.online/answers/telegram-channel-messages-api/)

## Other platforms

[TikTok API](https://okdata.online/apis/tiktok/) · [YouTube API](https://okdata.online/apis/youtube/) · [Instagram API](https://okdata.online/apis/instagram/) · [X (Twitter) API](https://okdata.online/apis/x/) · [Reddit API](https://okdata.online/apis/reddit/) · [Amazon API](https://okdata.online/apis/amazon/) · [AliExpress API](https://okdata.online/apis/aliexpress/) · [Meta Ad Library API](https://okdata.online/apis/meta/) · [Google API](https://okdata.online/apis/google/) · [Facebook API](https://okdata.online/apis/facebook/) · [LinkedIn API](https://okdata.online/apis/linkedin/) · [Threads API](https://okdata.online/apis/threads/) · [Lemon8 API](https://okdata.online/apis/lemon8/) · [Pinterest API](https://okdata.online/apis/pinterest/) · [Bluesky API](https://okdata.online/apis/bluesky/) · [App Store API](https://okdata.online/apis/app_store/) · [Apple Podcasts API](https://okdata.online/apis/apple_podcasts/) · [Twitch API](https://okdata.online/apis/twitch/) · [IMDb API](https://okdata.online/apis/imdb/) · [Xiaohongshu (RedNote) API](https://okdata.online/apis/xiaohongshu/) · [Douyin API](https://okdata.online/apis/douyin/) · [WeChat Official Accounts API](https://okdata.online/apis/wechat_mp/) · [WeChat Channels API](https://okdata.online/apis/wechat_channels/) · [WeChat Search API](https://okdata.online/apis/wechat/) · [Weibo API](https://okdata.online/apis/weibo/) · [Bilibili API](https://okdata.online/apis/bilibili/) · [Kuaishou API](https://okdata.online/apis/kuaishou/) · [Zhihu API](https://okdata.online/apis/zhihu/) · [Douyin Shop API](https://okdata.online/apis/douyin_shop/) · [Taobao & Tmall API](https://okdata.online/apis/taobao/) · [1688 API](https://okdata.online/apis/alibaba_1688/) · [Xianyu (Goofish) API](https://okdata.online/apis/xianyu/) · [JD.com API](https://okdata.online/apis/jd/) · [Douban Movie API](https://okdata.online/apis/douban/) · [Youku API](https://okdata.online/apis/youku/) · [Xiaoyuzhou (小宇宙) API](https://okdata.online/apis/xiaoyuzhou/) · [Toutiao API](https://okdata.online/apis/toutiao/) · [Xigua Video API](https://okdata.online/apis/xigua/) · [Baidu API](https://okdata.online/apis/baidu/) · [Semua platform API](https://okdata.online/apis/all/)
