Telegram API

Read the profiles and posts of public Telegram channels, search public messages by keyword and read public groups and their visible members as JSON with one EveryInfra API key, from $0.56 per 1,000 calls.

All you need is one API key, no Telegram account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.

  • Failed calls and empty results are not charged.
  • No private chats and no private invite links.
  • 10 endpoints, one key.

Real sample values for one public group

POST /api/v1/social params {"username":"DatascienceChats"}

Real sample calls for the same public group on group information and the member list, captured September 26, 2026 (UTC). Each box links to its endpoint page.

Platform availability

24h health
Normal
Normal

Last 30 days

Available capabilities

Search Telegram public channels, groups and messages to retrieve post content, view counts and member samples.

Usernames can be plain or in URL form. Private invite links and complete member lists are not supported.

Channels

  • Read the messages posted in a public Telegram channel.

    channel_posts$0.56 per 1,000 callsEvery 20 rows count as one call

  • ProfilesNormal

    See how big a public Telegram channel is.

    profile$0.56 per 1,000 calls

  • Read one message from a public Telegram channel by its link, such as https://t.me/durov/520.

    post_detail$0.81 per 1,000 calls

  • Read the comments under one public Telegram channel message from its url, such as https://t.me/contest/198, newest first.

    post_comments$0.56 per 1,000 calls

  • Look up as many as 20 public Telegram channels in one call by passing their usernames in the channels array.

    channels_batch$0.56 per 1,000 callsEach element in channels counts as one call

  • SearchNormal

    Search messages across public Telegram channels by keyword.

    search$0.56 per 1,000 callsEvery 20 rows count as one call

  • Search one public Telegram channel's messages by keyword: the channel goes in username and the word in keyword, up to 100 characters.

    search_in_channel$0.56 per 1,000 calls

Groups

  • GroupNormal

    Look up the info card of a Telegram group or channel: title, description, member and online counts, creation date and scam, fake or verified flags.

    group$0.56 per 1,000 calls

  • MembersNormal

    List the visible members of a public Telegram group, with username, name, account type, Premium, scam and fake flags and last-seen time.

    members$0.56 per 1,000 callsEvery 100 rows count as one call

Users and bots

  • Read the public profile of a Telegram personal account or bot from its username, such as BotFather: name, bio, avatar_url, is_verified, type (user or bot), scam and fake flags, and monthly_user_count for bots.

    user_profile$0.56 per 1,000 calls

5 questions to ask before choosing a data API for Telegram

Do I need to log in to Telegram or provide a cookie to make calls?

No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.

How is it billed? Are failed requests charged? Is there a free trial?

Billing is per request, from $0.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.

Can I connect this Telegram API to Claude or Cursor?

Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server.

What compliance points apply when using Telegram data?

The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.

What Telegram data can I get?

Available Telegram capabilities (10): Channel posts, Profiles, Search, Group, Members, Post details, Post comments, Search in channel, Channels in bulk, User profile. The parameters and response fields of each capability are in the API reference on this page.

Use cases

  • Follow what channels post

    Read the posts and the profile of a channel to see what it publishes and how large it is.

    Useschannel_postsprofile

  • Find public channels that talk about a topic

    Search public messages by topic word and follow the source channel details in the results to the channels behind them.

    Usessearch

  • Check a public group

    Read the information of a group, then the members that are visible in it.

    Usesgroupmembers

  • Read post fields from a t.me link

    Pass a public t.me link and read the post fields that come back. Only the channel name in the link is used, and a message number has no effect.

    Usespost_detail

Telegram official FAQ vs EveryInfra

How the Telegram official Channels FAQ and EveryInfra compare on public and private channels:

ComparedTelegram official FAQEveryInfra
Public and private channels"Public channels have a username. Anyone can find them in Telegram search and join. Private channels are closed societies – you need to be added by the owner or get an invite link to join."username takes the username of a public channel or group. Private invite links are not supported.

The quote comes from the Telegram official Channels FAQ. The page shows no update date. Official sources: Channels FAQ

What does each Telegram action accept?

Parameter table for all 10 actions

Sync delivery for every action.

ActionRequiredOptionalLimitPer 1,000Response fields
channel_posts

Channel posts

Read the messages posted in a public Telegram channel. Each post has text, views, media, reactions and its forwarding source. Private invite links are not supported. The batch may not reach the full channel history.

username—Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 20 rows count as one callid · url · channel_username · channel_title · text · view_count · posted_at · media_type · media_url · author · is_forwarded · forwarded_from · reply_to_url · platform · link_preview_url · reactions
profile

Profiles

See how big a public Telegram channel is. Get subscriber count, photo, video and link counts, bio, avatar and verification status. It takes a name, @name, t.me/name or t.me/s/name. Private chats, phone numbers and member names stay out of reach.

username——$0.56 per 1,000 requestsusername · name · bio · subscriber_count · photo_count · video_count · link_count · is_verified · avatar_url · url · platform
search

Search

Search messages across public Telegram channels by keyword. Each hit has channel name, type, subscriber count, views, reactions and media. Narrow the window with since and until. Private chats are never searched, and results do not represent all of Telegram.

keywordsince, untilCatalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 20 rows count as one callid · url · text · posted_at · view_count · media_url · reactions · channel_username · channel_title · channel_type · channel_subscriber_count · channel_description · platform
group

Group

Look up the info card of a Telegram group or channel: title, description, member and online counts, creation date and scam, fake or verified flags. Private invite links are not supported, and the call never joins the group or opens restricted content.

username——$0.56 per 1,000 requestsid · type · username · url · title · name · description · member_count · online_count · created_at · is_verified · is_scam · is_fake · is_forum · is_restricted · admin_bots · platform
members

Members

List the visible members of a public Telegram group, with username, name, account type, Premium, scam and fake flags and last-seen time. The list may be partial, and a phone number appears only when the member has made it public.

username—Catalog values: defaultLimit=100, maxLimit=5000. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 100 rows count as one callid · username · url · name · type · is_verified · is_premium · is_scam · is_fake · last_seen_at · phone · platform
post_detail

Post details

Read one message from a public Telegram channel by its link, such as https://t.me/durov/520. Get text, views, post time, media type and link, author signature, forward source, reply link, link preview and reactions with counts.

url——$0.81 per 1,000 requestsid · url · channel_username · text · view_count · posted_at · media_type · media_url · author · is_forwarded · forwarded_from · reply_to_url · platform · link_preview_url · reactions
post_comments

Post comments

Read the comments under one public Telegram channel message from its url, such as https://t.me/contest/198, newest first. Each comment has text, text_html, posted_at, the commenter's author_name, author_username and avatar, media, reactions, links and the comment it replied to; post_comment_count is the message's total. Up to 100 per page with next_page_token. Comments turned off returns comments_closed, not charged.

urlpage_tokenCatalog values: defaultLimit=50, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. A larger limit is accepted and capped at 100. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.$0.56 per 1,000 requestsid · post_id · post_url · url · text · posted_at · author_username · author_name · author_url · author_avatar_url · text_html · media_type · image_urls · video_url · media · reactions · reaction_count · reaction_count_estimated · links · reply_to_id · reply_to_name · reply_to_text · post_comment_count · platform
search_in_channel

Search in channel

Search one public Telegram channel's messages by keyword: the channel goes in username and the word in keyword, up to 100 characters. Telegram's own in-channel search covers the whole history, newest first. Rows have the channel post fields plus text_html, media, hashtags, links, link_preview, poll fields and channel_subscriber_count. Up to 100 per page; no match is an empty list, not charged.

username, keywordpage_tokenCatalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. A larger limit is accepted and capped at 100. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.$0.56 per 1,000 requestsid · url · channel_username · channel_title · text · view_count · posted_at · media_type · media_url · author · is_forwarded · forwarded_from · reply_to_url · platform · link_preview_url · reactions · text_html · image_urls · video_url · media · reaction_count · reaction_count_estimated · links · reply_to_id · reply_to_name · reply_to_text · is_edited · image_count · video_urls · thumbnail_url · duration_sec · duration_seconds · width · height · hashtags · mentions · is_reply · view_count_estimated · link_preview · reposted_post · poll_question · poll_options · poll_total_votes · poll_total_votes_estimated · channel_id · channel_url · channel_avatar_url · channel_description · channel_subscriber_count · channel_subscriber_count_estimated
channels_batch

Channels in bulk

Look up as many as 20 public Telegram channels in one call by passing their usernames in the channels array. Each channel is one row, in the order given, with ok, name, bio, subscriber_count, avatar_url, is_verified, type and has_preview; a channel that could not be read has ok false and an error_code. Each channel is billed as one call; channels that could not be read are refunded. No numeric IDs or media counts here.

channelslimit—$0.56 per 1,000 requestsEach element in channels counts as one callusername · url · type · name · bio · avatar_url · is_verified · bio_links · is_scam · is_fake · ok · error_code · error_retryable · subscriber_count · has_preview · platform
user_profile

User profile

Read the public profile of a Telegram personal account or bot from its username, such as BotFather: name, bio, avatar_url, is_verified, type (user or bot), scam and fake flags, and monthly_user_count for bots. Telegram gives no numeric ID or follower count for these accounts. An unknown username returns account_not_found; a channel or group returns not_a_user. Neither is charged.

username——$0.56 per 1,000 requestsusername · url · type · name · bio · avatar_url · is_verified · bio_links · is_scam · is_fake · monthly_user_count · platform
What each action's parameters mean (10 actions)

Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.

Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.

What do the Telegram channel_posts parameters mean?

Read the messages posted in a public Telegram channel. Each post has text, views, media, reactions and its forwarding source. Private invite links are not supported. The batch may not reach the full channel history.

Full API reference: parameters, code samples, response example and health
usernameRequired
Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed.
Telegram Official: Channels, Public Usernames, and View Counts — Official Telegram documentation distinguishes public channels from invite-only private channels, noting that channels function as broadcast tools and view counts include forwarded copies as approximate figures; this explains the channel object and view_count parameter, but does not prove this endpoint can read complete channel history or private content. · Checked
Telegram Official: Content Access Remains Subject to Licensing Terms — Limited official exceptions for third-party clients, bots, and Mini Apps cover only data strictly necessary for operational functionality and remain bound by terms, copyright, and privacy rules; the mere existence of an API endpoint does not constitute authorization for scraping, reselling, or arbitrary re-use of platform data. · Checked

What do the Telegram profile parameters mean?

See how big a public Telegram channel is. Get subscriber count, photo, video and link counts, bio, avatar and verification status. It takes a name, @name, t.me/name or t.me/s/name. Private chats, phone numbers and member names stay out of reach.

Full API reference: parameters, code samples, response example and health
usernameRequired
Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed.
Telegram Official: Channels, Public Usernames, and View Counts — Official Telegram documentation distinguishes public channels from invite-only private channels, noting that channels function as broadcast tools and view counts include forwarded copies as approximate figures; this explains the channel object and view_count parameter, but does not prove this endpoint can read complete channel history or private content. · Checked

What do the Telegram search parameters mean?

Search messages across public Telegram channels by keyword. Each hit has channel name, type, subscriber count, views, reactions and media. Narrow the window with since and until. Private chats are never searched, and results do not represent all of Telegram.

Full API reference: parameters, code samples, response example and health
keywordRequired
Specifies the message search query for the search action in public channels. It does not search contact lists or private chats.
Telegram Official: Content Licensing and AI Usage Restrictions — Official Telegram terms restrict content access beyond normal intended platform usage and prohibit scraping or aggregating platform data for AI model training, validation, enhancement, benchmarking, and deployment; exceptions require explicit, continuous consent from relevant users per piece of content and context, as public visibility does not grant a general usage license. · Checked
sinceOptional
Sets the lower message date bound for the search action. It does not filter by group creation date, and channel_posts has no date filter.
untilOptional
Sets the upper message date bound (beforeDate) for the search action. Used alongside since to narrow public message results; it does not guarantee complete message coverage within the specified range.

What do the Telegram group parameters mean?

Look up the info card of a Telegram group or channel: title, description, member and online counts, creation date and scam, fake or verified flags. Private invite links are not supported, and the call never joins the group or opens restricted content.

Full API reference: parameters, code samples, response example and health
usernameRequired
Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed.
Telegram Official: Groups, Usernames, and Last Seen Privacy Settings — Official Telegram documentation details public usernames and t.me links, noting that last-seen status can be hidden or configured to display only approximate timeframes; member last_seen_at fields cannot be used to reconstruct exact activity histories, nor does a public username imply access to a public phone number. · Checked

What do the Telegram members parameters mean?

List the visible members of a public Telegram group, with username, name, account type, Premium, scam and fake flags and last-seen time. The list may be partial, and a phone number appears only when the member has made it public.

Full API reference: parameters, code samples, response example and health
usernameRequired
Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed.
Telegram Official: Groups, Usernames, and Last Seen Privacy Settings — Official Telegram documentation details public usernames and t.me links, noting that last-seen status can be hidden or configured to display only approximate timeframes; member last_seen_at fields cannot be used to reconstruct exact activity histories, nor does a public username imply access to a public phone number. · Checked
Telegram Official: Content Access Remains Subject to Licensing Terms — Limited official exceptions for third-party clients, bots, and Mini Apps cover only data strictly necessary for operational functionality and remain bound by terms, copyright, and privacy rules; the mere existence of an API endpoint does not constitute authorization for scraping, reselling, or arbitrary re-use of platform data. · Checked

What do the Telegram post_detail parameters mean?

Read one message from a public Telegram channel by its link, such as https://t.me/durov/520. Get text, views, post time, media type and link, author signature, forward source, reply link, link preview and reactions with counts.

Full API reference: parameters, code samples, response example and health
urlRequired
Link to one public channel message for post_detail, https://t.me/<channel>/<message ID>; t.me/s/ links work too.

What do the Telegram post_comments parameters mean?

Read the comments under one public Telegram channel message from its url, such as https://t.me/contest/198, newest first. Each comment has text, text_html, posted_at, the commenter's author_name, author_username and avatar, media, reactions, links and the comment it replied to; post_comment_count is the message's total. Up to 100 per page with next_page_token. Comments turned off returns comments_closed, not charged.

Full API reference: parameters, code samples, response example and health
urlRequired
Link to one public channel message, https://t.me/<channel>/<message ID> (t.me/s/ links work too); the call returns the comments under it. Invite links (t.me/+…) are not accepted, and a value in the wrong form is rejected (422) before you are charged. A message whose comments are turned off or not public returns 200 with an empty result and empty_reason set to comments_closed; a channel or message that does not exist returns an empty result. Neither is charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 100 comments (limit, default 50) and counts as one call; paging reaches all the way back to the first comment, and only a page without next_page_token is the last one.

What do the Telegram search_in_channel parameters mean?

Search one public Telegram channel's messages by keyword: the channel goes in username and the word in keyword, up to 100 characters. Telegram's own in-channel search covers the whole history, newest first. Rows have the channel post fields plus text_html, media, hashtags, links, link_preview, poll fields and channel_subscriber_count. Up to 100 per page; no match is an empty list, not charged.

Full API reference: parameters, code samples, response example and health
usernameRequired
The public channel to search in: name, @name, t.me/name or t.me/s/name. A channel that does not exist returns 200 with an empty result and empty_reason set to account_not_found, and the call is not charged.
keywordRequired
The word or phrase to look for, up to 100 characters. Telegram's own in-channel search runs across the channel's whole history; no match returns an empty list and is not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 100 messages (limit, default 20) and counts as one call; only a page without next_page_token is the last one.

What do the Telegram channels_batch parameters mean?

Look up as many as 20 public Telegram channels in one call by passing their usernames in the channels array. Each channel is one row, in the order given, with ok, name, bio, subscriber_count, avatar_url, is_verified, type and has_preview; a channel that could not be read has ok false and an error_code. Each channel is billed as one call; channels that could not be read are refunded. No numeric IDs or media counts here.

Full API reference: parameters, code samples, response example and health
channelsRequired
The public channels to look up with channels_batch, as an array of up to 20 usernames (name, @name or a t.me/name link), each at most once; a comma-separated string is not accepted. A value in the wrong form is rejected (422) before you are charged. Each channel is charged at the per-call price; channels that cannot be read are refunded and listed in missed, and when none of them can be read, the result is empty and not charged.
limitOptional
Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without limit, whatever the value.

What do the Telegram user_profile parameters mean?

Read the public profile of a Telegram personal account or bot from its username, such as BotFather: name, bio, avatar_url, is_verified, type (user or bot), scam and fake flags, and monthly_user_count for bots. Telegram gives no numeric ID or follower count for these accounts. An unknown username returns account_not_found; a channel or group returns not_a_user. Neither is charged.

Full API reference: parameters, code samples, response example and health
usernameRequired
A personal account or bot username such as BotFather (a leading @ is removed), or a t.me/<username> link. A username that does not exist returns 200 with an empty result and empty_reason set to account_not_found; a channel or group username returns empty_reason set to not_a_user (use profile for a channel and group for a group). Neither is charged.

How to use the Telegram API

  1. 01Choose a platform action from the public catalog.
  2. 02Send the platform, action, and required parameters to POST /api/v1/social.
  3. 03Read the result from the response. For an asynchronous action, poll the returned job ID.
  4. 04Store the response fields that your application needs.
telegram_channel_posts.sh
curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"telegram","action":"channel_posts","params":{"username":"<username>"}}'

Telegram API questions

What can I retrieve with the Telegram API?

Set platform to telegram. The current catalog lists channel posts, profiles, search, group, members, and more. These action names identify different Telegram objects or views; they are not interchangeable search modes.

Which input starts the Telegram channel_posts request?

Specifies the target public channel or group using formats such as name, @name, t.me/name, or t.me/s/name. Used by channel_posts and profile for public channels, group for public entity metadata, and members to retrieve visible group members; private invite links are not supported, and complete member lists are not guaranteed. Send it as username inside params.

Which fields can Telegram channel_posts return?

Its declared schema includes channel_username, channel_title, text, and view_count. A declared field can still be absent from an individual record, and every other action has its own field list.

Does every Telegram action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

Google Analytics needs consent. Privacy