Telegram API提供了一种高效可靠的方式来访问有关频道和最近消息的详细信息,使开发人员、分析师和公司能够将最新数据直接集成到他们的应用程序、仪表板或内部系统中
通过此API,可以获取关键数据,例如频道ID、标题、描述、验证状态、头像、订阅者数量和相关指标。它还包括提取频道上发布的最新消息的能力,显示文本、多媒体内容、链接和查看统计信息。这些信息对希望监控公共频道活动、执行趋势分析、验证真实性或创建自动跟踪工具的人至关重要
该API稳定且实时工作,确保您收到的信息始终是最新的。其结构化设计便于与其他系统或平台集成,并且标准化的响应格式允许顺利处理大量数据
简而言之,此Telegram API在一个安全、快速且易于使用的接入点集中管理频道和消息信息,非常适合大规模监控、分析和软件开发解决方案
频道信息 - 端点功能
| 对象 | 描述 |
|---|---|
channel |
[必需] Indicates the name of the channel |
{
"id": "{\"$numberInt\":\"1005640892\"}",
"chat_type": "channel",
"verified": true,
"title": "Telegram News",
"description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
"image": "https://cdn1.telesco.pe/file/Q52vSDd_iD81n1sCp9r9M7xV_w7z6s94qwXXO9JzbbcfcDrWy0ayfdP_2aXtc7aVRw6XA9ADv2Wv-YZE3rKV2XUNAJ41sMwXr3UxObvalVxdxAxAjPWQwFYcdkmfSjqnD9MIXQ5lGI1csWxFeNyQERzDOZX6z4mTrR3lfBv-gfeDNj-lz9F6uTTpuuPxuzXaFQx-UV9xXVraZ6lBdKQ2Pqv9g0MnXKGUbEguY-nMvFD9NR3EbPSGAEYVC5V3pmeClR6m__-liiBczoCGyR4NthMrDZ9ptFHMBOx9cctqrxBg1es9rZwJG6zmBHM43c2xzNO2p3OfBf54AMtbRk3EPw.jpg",
"subscribers": "11650763",
"subscribers_online": "0"
}
curl --location --request GET 'https://zylalabs.com/api/9874/telegram+api/18582/channel+information?channel=telegram' --header 'Authorization: Bearer YOUR_API_KEY'
从Telegram频道获取消息,包括ID、作者、日期、阅读状态、文本、多媒体内容和相关链接
频道最新消息 - 端点功能
| 对象 | 描述 |
|---|---|
channel |
[必需] Indicates the name of the channel |
limit |
可选 Indicates the number of messages |
[
{
"id": "401",
"author": "Telegram News",
"date": "2025-08-18T13:34:15+00:00",
"user_read_status": "read",
"text": "For all the new features from this update, like Premium gifts and a new mini app for developers – check out the full blog:https://telegram.org/blog/post-search-story-albums-and-moreJuly Features1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • More",
"html": "\u003cp\u003eFor all the new features from this update, like \u003cb\u003ePremium gifts \u003c/b\u003eand a\u003cb\u003e new mini app\u003c/b\u003e for developers – check out the full blog:\u003cbr/\u003e\u003cbr/\u003e\u003ca href=\"https://telegram.org/blog/post-search-story-albums-and-more\" target=\"_blank\" rel=\"noopener\"\u003ehttps://telegram.org/blog/post-search-story-albums-and-more\u003c/a\u003e\u003cbr/\u003e\u003cbr/\u003eJuly Features\u003cbr/\u003e\u003ca href=\"https://t.me/telegram/392\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e1\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/393\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e2\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/394\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e3\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/395\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e4\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/396\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e5\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/397\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e6\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/398\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e7\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/399\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e8\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/400\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e9\u003c/a\u003e • \u003cb\u003eMore\u003c/b\u003e\u003c/p\u003e",
"views": "1150000",
"forwarded": {},
"button": {},
"link": {
"description": "Today's update introduces global search for public posts on Telegram, sorting stories into albums and organizing gifts into collections, managing bots via a new stylish mini app -- and so much more.",
"name": "Telegram",
"title": "Public Post Search, Story Albums, Gift Collections and More",
"url": "https://telegram.org/blog/post-search-story-albums-and-more"
},
"photo": {},
"video": {},
"audio": {},
"sticker": {},
"attachment": {},
"media_poll": {}
},
{
"id": "400",
"author": "Telegram News",
"date": "2025-08-18T13:34:04+00:00",
"user_read_status": "read",
"text": "Profile Ratings. Profiles now show a numerical rating based on the total volume of successful transactions they've made with Telegram Stars.July Features1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • More",
"html": "\u003cp\u003e\u003cb\u003eProfile Ratings.\u003c/b\u003e Profiles now show a \u003cb\u003enumerical rating\u003c/b\u003e based on the total volume of \u003cb\u003esuccessful transactions\u003c/b\u003e they\u0026#39;ve made with Telegram Stars.\u003cbr/\u003e\u003cbr/\u003eJuly Features\u003cbr/\u003e\u003ca href=\"https://t.me/telegram/392\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e1\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/393\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e2\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/394\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e3\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/395\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e4\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/396\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e5\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/397\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e6\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/398\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e7\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/399\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e8\u003c/a\u003e • \u003cb\u003e9\u003c/b\u003e • \u003ca href=\"https://t.me/telegram/401\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003eMore\u003c/a\u003e\u003c/p\u003e",
"views": "995000",
"forwarded": {},
"button": {},
"link": {},
"photo": {},
"video": {
"caption": "Profile Ratings. Profiles now show a numerical rating based on the total volume of successful transactions they've made with Telegram Stars.July Features1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • More",
"url": "https://cdn1.telesco.pe/file/831335feb8.mp4?token=a84LZctQqGvq_vVnFsp0n38MXoynihJJi0hIhA8Pp1LnlmumgsWOkQWJ8IHvGHJKHizTy4LKPD1owBjlW2BG479ngGHfwtNd09MbnhGUEaTEy78tJpXXoOquVUAZiqXvOS4GK8NcewtgrhPcEvMe-Kp5w2by9fSeuxScAQ-asYxNvmPvLiOMeUHZCH1JIYnqaPAiAhWHcO7Gcs5tK04mi0AyvXnKJS566k7fz1ayx42LTu-vyB1VluJVL3-_2XpBYXfC1ONwcEW7K4NtepyJBfFEb9cGZc5uFj7Pi1N56AxI7IfUTkMfdnwymjuFIZJ8R9BVarnbd05yhhDQuGK_HQ"
},
"audio": {},
"sticker": {},
"attachment": {},
"media_poll": {}
},
{
"id": "399",
"author": "Telegram News",
"date": "2025-08-18T13:33:41+00:00",
"user_read_status": "read",
"text": "Gift Collections. You can now group gifts on your profile or channel into custom collections – based on theme, rarity or other traits.July Features1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • More",
"html": "\u003cp\u003e\u003cb\u003eGift Collections.\u003c/b\u003e You can now \u003cb\u003egroup gifts\u003c/b\u003e on your profile or channel into \u003cb\u003ecustom collections\u003c/b\u003e – based on theme, rarity or other traits.\u003cbr/\u003e\u003cbr/\u003eJuly Features\u003cbr/\u003e\u003ca href=\"https://t.me/telegram/392\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e1\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/393\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e2\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/394\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e3\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/395\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e4\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/396\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e5\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/397\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e6\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/398\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e7\u003c/a\u003e • \u003cb\u003e8\u003c/b\u003e • \u003ca href=\"https://t.me/telegram/400\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003e9\u003c/a\u003e • \u003ca href=\"https://t.me/telegram/401\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm(\u0026#39;Open this link?\\n\\n\u0026#39;+this.href);\"\u003eMore\u003c/a\u003e\u003c/p\u003e",
"views": "717000",
"forwarded": {},
"button": {},
"link": {},
"photo": {},
"video": {
"caption": "Gift Collections. You can now group gifts on your profile or channel into custom collections – based on theme, rarity or other traits.July Features1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • More",
"url": "https://cdn1.telesco.pe/file/d42ff443be.mp4?token=ZPMfNgdBr5HQCyvCG5ppcx8u0wmk2d6xdNj2-AHJi5VUhYCuAniY2id3pqYbeqn1_bNgMJZiOoUuhFQGQntRPF4pHuk1N6shqiUyMt9OfxuzTZ7Q4C0Qa12aKUvQxAr6_fSKban8v50VhICItQbFFfio0FxCJqFjqUhHaLVKGJaYlWrDigaQ3NXmM04GrQ6AscD7W2sZiVJ8smpRctEX1SQ8cteSEUDiYwPGM8zM8gymNHeK3sXBk9nf9WkltNfYGRKkQ7dFkv5ipmsXFS9RlFL3CITuw8OfMjHzdODzWRN7_oCEvazB9HXdqfZ90H9Qsk_OrAgIYM3Psr0uR1eIMw"
},
"audio": {},
"sticker": {},
"attachment": {},
"media_poll": {}
},
{
"id": "398",
"author": "Telegram News",
"date": "2025-08-18T13:33:24+00:00",
"user_read_status": "read"},{"_note":"Response truncated for documentation purposes"}]
curl --location --request GET 'https://zylalabs.com/api/9874/telegram+api/18583/channel+latest+messages?channel=telegram' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
获取频道信息端点返回详细的频道数据,包括ID、标题、描述、验证状态、个人资料图片和订阅者统计信息 获取频道最新消息端点提供最近的消息,包括ID、作者、日期、阅读状态、文本、多媒体内容和相关链接
获取频道信息端点的关键字段包括频道ID 标题 描述 验证状态 和订阅者数量 对于获取频道最新消息端点 关键字段包括消息ID 作者 日期 文本内容 多媒体链接 和阅读状态
响应数据采用JSON格式结构,每个端点返回一个包含相关字段的对象。频道信息的数据在频道属性下分组,而消息数据则组织为一个消息对象的数组,每个对象包含其相应的详细信息
获取频道信息端点提供有关频道属性的见解,如标题、描述和订阅者指标 获取频道最新消息端点访问最新消息,包括文本、多媒体和互动统计数据,允许对频道活动进行全面监控
获取频道信息端点通常需要频道 ID 作为参数 获取频道最新消息端点可能允许诸如频道 ID 和消息数量等参数来自定义返回的数据,使用户能够指定他们想要检索的哪个频道的消息
用户可以分析频道统计数据,以评估受欢迎程度和参与度,而消息数据可以用于趋势分析、内容监控或自动报告。例如,跟踪订阅者的增长趋势或分析消息的参与度可以为内容策略提供有价值的见解
数据准确性通过Telegram平台的实时更新得以维持,确保检索的信息反映了频道和消息的最新状态。定期检查和验证Telegram的数据源有助于维护提供信息的完整性
典型的用例包括监控公共频道活动以进行趋势分析 验证频道真实性以确保品牌安全 以及创建自动化工具用于内容追踪 企业和分析师可以利用这些数据来制定营销策略和增强观众参与度
服务级别:
100%
响应时间:
561ms
服务级别:
100%
响应时间:
649ms
服务级别:
100%
响应时间:
854ms
服务级别:
100%
响应时间:
849ms
服务级别:
100%
响应时间:
370ms
服务级别:
86%
响应时间:
2,458ms
服务级别:
100%
响应时间:
2,566ms
服务级别:
100%
响应时间:
3,625ms
服务级别:
100%
响应时间:
1,726ms
服务级别:
100%
响应时间:
358ms