APIs / Social media / Telegram

1 credit per call4 endpointsChecked working 6 Dec 2026

Telegram API

Telegram API for public channel info, channel posts, single posts and in-channel search as JSON. 4 endpoints, 1 credit per call.

Telegram
GET/v1/telegram/channels?username=durov
curl "https://api.perceptlayer.com/v1/telegram/channels?username=durov" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/telegram/channels?username=durov" \
  -H "X-API-Key: $API_KEY"

Telegram · 4 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointRequired parametersReturnsCost
GET/v1/telegram/channels
usernameNeeds terms
channel
1 credit
GET/v1/telegram/channels-posts
username+1 optionalNeeds terms
idchannelpost_keypermalinkdateedited+4 more
1 credit
GET/v1/telegram/channels-search
usernameqNeeds terms
idchannelpost_keypermalinkdateedited+4 more
1 credit
GET/v1/telegram/posts
usernamepost_id+1 optionalNeeds terms
channelpostfoundtarget_position
1 credit

Overview

About the Telegram API

What you can get

The Telegram API returns public Telegram channel data as JSON through 4 endpoints. Every endpoint takes the channel's username. These are restricted endpoints: the restricted-endpoint terms apply, and they don't permit collecting personal data without a lawful basis or using it to contact people.

  • Channels: channels returns a channel's details by username.
  • Posts: channels-posts lists a channel's posts, with an optional before.
  • One post: posts takes a username and a post_id, with an optional context.
  • Search: channels-search searches within a channel for q.

How a call works

Use the public channel's username: GET /v1/telegram/channels-posts?username=... with your key in the X-API-Key header lists its recent posts. To read one post, pass its post_id to posts. Every successful call costs 1 credit; failed calls cost nothing.

Social mediaJSONRESTMCPSome endpoints need terms

More social media APIs

Use cases

Monitor public news and announcement channels

Use the Telegram API to monitor public news and announcement channels

Search a channel's history for a topic or a product name

Use the Telegram API to search a channel's history for a topic or a product name

Archive your own channel's public posts

Use the Telegram API to archive your own channel's public posts

Feed public channel posts into a research or alerting agent

Use the Telegram API to feed public channel posts into a research or alerting agent

FAQ

Questions

Do I need a Telegram API key or bot token?

No. You call this Telegram API with your Perceptlayer key in the `X-API-Key` header, so there's no bot or app to register. You do need to accept the restricted-endpoint terms first.

How much does the Telegram API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Telegram API?

No. Perceptlayer is an independent service and is not affiliated with Telegram. It returns Telegram data as JSON with a Perceptlayer key, so there is no Telegram developer account, app review or partner approval to get first. It only reads data: if Telegram has an official API and you need to act on your own Telegram account, such as posting, managing orders or reading private data, use that one.

Should I build a Telegram scraper instead?

You can, but a Telegram scraper is code you maintain: page changes break it, requests get blocked, and Telegram's terms govern how you collect data. The Telegram API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first. Some of these endpoints return social or personal data and need the restricted-endpoint terms; collect only what you have a lawful basis for.

Try the Telegram API with 100 free credits

No credit card. Failed calls are never billed.