Telegram API: Get public channel
Gets the title, username, description, subscriber total, verification, photo and public media totals of a public Telegram channel.
Unofficial. Not affiliated with or endorsed by Telegram.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Channel, required
channel Public channel name with or without @, or its t.me link, such as durov, @durov, or t.me/durov.
@nytimes
Input as JSON
{ "channel": "@nytimes"}Output
{ "username": "@nytimes", "file_count": null, "link_count": 2800, "description": "New York Times coverage from around the world, including the Russia-Ukraine war. Get the latest at https://www.nytimes.com/world" , "is_verified": true, "photo_count": 3320, "video_count": 165, "channel_link": "https://t.me/nytimes" , "channel_title": "The New York Times", "subscriber_count": 187927, "channel_photo_link": "https://cdn1.telesco.pe/file/gHkhbsFsxJFuMtSOtEf54miJ0AGJ_AOx2OnSmugzDTa-JiJ4Ka1NeVMQD4UWiOICqaxmYEHFUnPPgm-TZMBVKSMX-FMiRItt-ht3glin2GV9SYJSAT_hqsdBs6baByHZeVXcxDy8YqNHe9g2VE04QKhE8WFVZaXDdGGe_KU5JogyLrWBN0xN_lCsiaWbImcIWSGAuOg8AY8bbfV6UBLsbts-ZGZjKljyNz28eH5mae3SI4dDswasXaECAriL4HP5KqjJj_FjJDwwig6…" }Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"t.me/get_channel","input":{"channel":"@nytimes"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "t.me/get_channel" , "input": { "channel": "@nytimes" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "t.me/get_channel" , "input": { "channel": "@nytimes" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run t.me/get_channel# with {"channel":"@nytimes"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "channel" ], "properties": { "channel": { "type": "string", "description": "Public channel name with or without @, or its t.me link, such as durov, @durov, or t.me/durov." } }, "additionalProperties": false}Output schema
{ "type": "object", "required": [ "channel_title", "username", "description", "subscriber_count", "photo_count", "video_count", "file_count", "link_count", "is_verified", "channel_photo_link", "channel_link" ], "properties": { "username": { "type": "string", "description": "The channel username with @." }, "file_count": { "type": [ "integer", "null" ], "description": "Files shown in the public preview; may be rounded if abbreviated." }, "link_count": { "type": [ "integer", "null" ], "description": "Links shown in the public preview; may be rounded if abbreviated." }, "description": { "type": [ "string", "null" ], "description": "Channel description, or null when not provided." }, "is_verified": { "type": "boolean", "description": "Whether the public channel displays a verified badge." }, "photo_count": { "type": [ "integer", "null" ], "description": "Photos shown in the public preview; may be rounded if abbreviated." }, "video_count": { "type": [ "integer", "null" ], "description": "Videos shown in the public preview; may be rounded if abbreviated." }, "channel_link": { "type": "string", "description": "The channel t.me page link." }, "channel_title": { "type": "string", "description": "The channel title." }, "subscriber_count": { "type": "integer", "description": "Exact number of subscribers from the public profile." }, "channel_photo_link": { "type": [ "string", "null" ], "description": "Channel profile photo URL, or null if absent." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
t.me/get_channel- Returns
- channel title, username, description, subscriber count, photo/video/file/link counts, verified flag, photo and t.me link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method t.me/get_channel with the inputs above.
Ask your agent
- How many subscribers does the public channel durov have, and is it verified?
- Can you pull up the description and photo for the Telegram channel @durov?
- What are the title and media counts for t.me/durov, including photos and links shared?
- Look up the public channel named durov and tell me its username and t.me link.
- I need the subscriber total and verified status for the Telegram channel @techdaily_news.
See more
All Telegram methodsLists the latest posts from a public Telegram channel preview, with text, posting time, approximate views, edit flag, forwarded source, thumbnails and post links.
t.me/list_channel_postsGets a public YouTube channel's profile, links and statistics from its name, @handle or link. Subscriber totals may be rounded as YouTube displays them.
youtube.com/get_channelLooks up a YouTube channel on Social Blade by name, @handle, YouTube link or Social Blade link and returns its profile, 30-day growth, earnings estimates and the last 14 daily statistics.
socialblade.com/get_youtube_channel_statsLists a YouTube channel's public videos, Shorts, or live uploads, newest first or most popular first, along with channel details. Counts and dates taken from displayed text may be approximate.
youtube.com/list_channel_videosGets public details and statistics for one YouTube video by link, ID or title. A title selects the top search match.
youtube.com/get_videoGets a TikTok creator's public profile and totals (followers, following, likes, videos) from a username, @handle or profile link. Profiles not visible to public visitors cannot be returned.
tiktok.com/get_profileLooks up a public Twitch channel by name, display name or channel link and returns its profile, live status and up to 10 recent broadcast videos.
twitch.tv/get_channelGets an Instagram account's public profile from its username, @name or profile link: name, bio, exact follower, following and post counts, verified and private flags, first bio link, profile picture and account ID.
instagram.com/get_profile