Basic information about a Telegram channel or chat.
GET/channels/get
- Takes: Username
- Takes: URL
- Passive: the target is not contacted
- Plan: All plans
Returns the channel's identifiers, title, description, category, country, language, subscriber count, citation index and creation date. Works for channels and chats. Available on all plans of API Stat and API Search.
Query parameters
channelIdChannel or chat: @username, t.me/username, a t.me/joinchat/... invite link, or the TGStat ID
Response fields · 15ShowHide
status
ok on success
id
TGStat internal ID
tg_id
Telegram ID
link
Channel link
peer_type
channel or chat
username
Main username
active_usernames
Active usernames
title
Name
about
Description
category
Category
country
Country
language
Content language
participants_count
Current subscriber count
ci_index
Citation index
created_at
Creation date in Telegram, Unix timestamp
curl 'https://api.tgstat.ru/channels/get?channelId=%40example_channel&token=YOUR_API_KEY'{
"status": "ok",
"response": {
"id": 1000001,
"tg_id": 1000000001,
"link": "t.me/example_channel",
"peer_type": "channel",
"username": "@example_channel",
"title": "Example channel",
"about": "An example description",
"participants_count": 1500,
"ci_index": 12.5,
"created_at": 1500000000
}
}