Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Telegram Channel Info

API 文档
https://api.sandbase.ai/v1/api/telegram/web/channel-info

Returns public metadata for a Telegram channel, including title, description, verified status, and username, using the public web preview.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
Channel username (accepts `durov` / `@durov` / `https://t.me/durov`, normalized automatically).
输出示例
响应outputs · 768 B · 18 行
[
  {
    "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 中。

API README

Telegram Channel Info API

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.

Use cases

  • Check whether a Telegram channel is verified before you add it to a monitoring list.
  • Show a channel card with its title, photo and subscriber count inside your own app.
  • Track the subscriber count of a channel by calling the API on a schedule and storing the result.
  • Resolve a https://t.me/ link into a clean username and title.

Request

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.

Parameters

NameTypeRequiredDescription
channelstringYesChannel username (accepts durov / @durov / https://t.me/durov, normalized automatically).

Example response

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
}

Response fields

FieldMeaning
titleDisplay name of the channel, such as Telegram News.
usernameChannel username without the @ sign.
descriptionPublic description text shown on the channel page.
verifiedtrue when the channel shows as verified.
subscribers / counters.subscribersSubscriber count as a short string such as 9.2M. Both fields hold the same value in this response.
counters.photos / counters.videos / counters.linksCounts of photos, videos and links shared in the channel, returned as strings.
photoURL of the channel profile picture.

Notes

  • Pass channel as durov, @durov or https://t.me/durov. The API normalizes all three.
  • Counts are returned as strings and may be abbreviated, for example 9.2M. Keep the raw display value; converting an abbreviated count produces an approximation, not an exact count.
  • To read the channel's messages, call Telegram Channel Posts next.
  • To look up many channels in one call, use Telegram Batch Channel Info.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Read one public channel profile

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.

Give your agent one selected-channel task

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.

探索更多

相关 APIs

全部 APIs
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

指南:Best Telegram API in 2026: Pricing Compared

问题

常见问题

如何使用 Telegram Channel Info API?

向 https://api.sandbase.ai/v1/api/telegram/web/channel-info 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Telegram Channel Info API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Telegram Channel Info API 接受哪些参数?

必填:channel (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Telegram Channel Info API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Telegram 开发者账户或 API key 吗?

不需要。Telegram Channel Info 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Telegram API 访问权限。

哪个输入用于标识公开频道?

使用 channel 字段。Channel Info 接受裸 handle、@handle 或 t.me 频道链接,并且文档说明了规范化。这个请求只读取一个已选定的公开资料;它不会搜索所有频道,也不提供私有访问。

我可以根据 9.2M 计算精确的订阅增长吗?

不可以。缩写的订阅者字符串只是近似观察值。请保留原始值和检索时间。相同的缩写值并不能证明增长为零,而用转换后的值相减也无法还原精确变化。

个人资料响应是否包含订阅者或所有消息?

它包含公开元数据和可用计数器,不包含订阅者身份、消息存档或历史序列。verified 标志反映的是所显示的资料标记,并不是独立的身份验证。需要消息时请单独选择 Channel Posts。