channelstring必填
Channel username (accepts `durov` / `@durov` / `https://t.me/durov`, normalized automatically).
https://api.sandbase.ai/v1/api/telegram/web/channel-infoReturns public metadata for a Telegram channel, including title, description, verified status, and username, using the public web preview.
[
{
"data": {
"counters": {
"links": "378",
"photos": "16",
"subscribers": "9.39M",
"videos": "228"
},
"description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
"photo": "https://cdn1.telesco.pe/file/uD1p4tMGhImdMimOPmsCryQhp8WC8j3pnTfxcBrqPyqhV_95GMsh3ZN-IZbMSGNCDwOsmS2YdjyFuuPg1WtqRw9O33otBT0nsTmME4s82WyRLr0w_EqwwERoPwqG-auB75gIa6tqlAfk3iCPZ5XuiH8Uw5kbtwRGHjUWwWEznwOfmZVt7UzNBbCYAv5yhv3p4SP34D6LkkzYZJ3mDPAPqDyppw79yOKDqvduzRUG8TAXHkGTfKRhJcIRb9-bAbr1t7GtcwYdquTJLhJdU3AnJBPZdPTFq9_M2AMSyy-K3llQ4RgOImDEQBEGed5aiOrVrDwpbsWAW1KNiUm9zvu6Wg.jpg",
"subscribers": "9.39M",
"title": "Telegram News",
"username": "telegram",
"verified": true
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns public metadata for a Telegram channel: title, description, username, verified flag, profile photo URL and subscriber and media counts. It needs one input, the channel username, link or @handle.
https://t.me/ link into a clean username and title.curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel": "telegram"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel username (accepts durov / @durov / https://t.me/durov, normalized automatically). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"counters": {
"links": "378",
"photos": "16",
"subscribers": "9.2M",
"videos": "228"
},
"description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
"photo": "https://cdn1.telesco.pe/file/hnmFZVV6A1_vjW41WnRQI9LiY1404GFwcfT_HbWGXlPkZCJQr6y…",
"subscribers": "9.2M",
"title": "Telegram News",
"username": "telegram",
"verified": true
}
| Field | Meaning |
|---|---|
title | Display name of the channel, such as Telegram News. |
username | Channel username without the @ sign. |
description | Public description text shown on the channel page. |
verified | true when the channel shows as verified. |
subscribers / counters.subscribers | Subscriber count as a short string such as 9.2M. Both fields hold the same value in this response. |
counters.photos / counters.videos / counters.links | Counts of photos, videos and links shared in the channel, returned as strings. |
photo | URL of the channel profile picture. |
channel as durov, @durov or https://t.me/durov. The API normalizes all three.9.2M. Keep the raw display value; converting an abbreviated count produces an approximation, not an exact count.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send the channel handle in the channel field, not a username field. Channel Info accepts a bare handle, an @handle or a https://t.me/ channel link and documents automatic normalization. A channel you selected is the input; this is not a global channel search, subscriber list or batch request.
Read title, username, description, verified and available counters directly from outputs[0].data. Preserve returned username and the input together, and check identity before attaching the record to an existing channel. A displayed verification flag is not an independent identity check. An absent field is unknown, not false or zero.
Subscriber and media counters are strings. Values such as 9.2M are abbreviated observations, so a numeric conversion remains approximate. Keep the raw display value and retrieval time. Two equal abbreviated values do not establish zero growth, and subtracting them does not produce an exact subscriber change. The README and saved example contain different subscriber displays from different references; neither is a current count.
For messages, make a separately selected Channel Posts request. The profile response does not contain all post bodies, individual subscriber identities or a historical growth series. Photo URLs are references and may expire; this request does not download them.
Already have a SandBase key? Store SANDBASE_API_KEY locally and use the API tab for POST /v1/api/ with Bearer authentication. Starting a project? Share the setup Skill, Markdown quickstart, public channel handle and the output you need. Read one response before choosing a recurring schedule, another channel or a media download.
Validate completed SandBase status and an object at outputs[0].data. The selected reference payloads put channel fields or messages directly in that object; they do not document a nested data.data or a provider status_code success flag. Reject missing or malformed fields rather than reporting a successful empty result. These public-preview endpoints do not grant access to private channels or account-bound messages.
Pricing checked on 2026-11-08: both endpoints list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not a measurement of remaining allowance; check current pricing before execution. No new business request was made for this revision. The Telegram Python channel guide separates dated saved evidence from local parser tests.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel": "telegram"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
channelstring必填Channel username (accepts `durov` / `@durov` / `https://t.me/durov`, normalized automatically).
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"counters": {
"links": "378",
"photos": "16",
"subscribers": "9.39M",
"videos": "228"
},
"description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
"photo": "https://cdn1.telesco.pe/file/uD1p4tMGhImdMimOPmsCryQhp8WC8j3pnTfxcBrqPyqhV_95GMsh3ZN-IZbMSGNCDwOsmS2YdjyFuuPg1WtqRw9O33otBT0nsTmME4s82WyRLr0w_EqwwERoPwqG-auB75gIa6tqlAfk3iCPZ5XuiH8Uw5kbtwRGHjUWwWEznwOfmZVt7UzNBbCYAv5yhv3p4SP34D6LkkzYZJ3mDPAPqDyppw79yOKDqvduzRUG8TAXHkGTfKRhJcIRb9-bAbr1t7GtcwYdquTJLhJdU3AnJBPZdPTFq9_M2AMSyy-K3llQ4RgOImDEQBEGed5aiOrVrDwpbsWAW1KNiUm9zvu6Wg.jpg",
"subscribers": "9.39M",
"title": "Telegram News",
"username": "telegram",
"verified": true
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
Telegram | 每次呼叫 $0.001 | JSON |
Telegram | 每次呼叫 $0.008 | JSON |
Telegram | 每次呼叫 $0.001 | JSON |
Telegram | 每次呼叫 $0.001 | JSON |
Telegram | 每次呼叫 $0.001 | JSON |
Telegram | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/telegram/web/channel-info。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:channel (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Telegram Channel Info 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Telegram API 存取權。
請使用 channel 欄位。Channel Info 可接受純 handle、@handle 或 t.me 頻道連結,並且文件有說明正規化。此請求只會讀取一個已選取的公開個人資料;不會搜尋所有頻道,也不提供私人存取。
不行。簡寫的訂閱人數字串只是近似觀察。請保留原始值與擷取時間。相同的簡寫值不能證明成長為零,而把轉換後的值相減也無法還原精確變化。
它只包含公開中繼資料和可用計數,不包含訂閱者身分、訊息封存或歷史序列。verified 標記反映的是顯示中的個人資料標記,並不代表獨立的身分驗證。若需要訊息,請另外選擇 Channel Posts。