channelstringbắt buộc
Channel username (required).
https://api.sandbase.ai/v1/api/telegram/web/channel-postsGet a public Telegram channel's recent posts: text, media, forwards, replies, link previews, reactions, views and time, with cursor pagination.
[
{
"data": {
"channel": "telegram",
"channel_info": {
"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
},
"messages": [
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:34+00:00",
"forwarded_from": null,
"id": 460,
"is_forwarded": false,
"link_preview": {
"description": "Introducing Welcome Messages to greet new members of groups or channels, Buttons in Messages to make any text interactive, Inline Documents in Messages and much more.",
"site_name": "Telegram",
"title": "Welcome Messages, Buttons in Messages and Signed Gifts",
"url": "https://telegram.org/blog/welcome-messages-buttons-TG-13"
},
"media": {
"has_unsupported": false,
"photos": [],
"videos": []
},
"reactions": [],
"reply_to": null,
"text": "For all the info from today's update and a look back at 13 years of Telegram features — check out our blog:\nhttps://telegram.org/blog/welcome-messages-buttons-TG-13\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
"text_html": "For all the info from today's update and a look back at <b>13 years of Telegram features</b> — check out our blog:<br><a href=\"https://telegram.org/blog/welcome-messages-buttons-TG-13\" target=\"_blank\" rel=\"noopener\">https://telegram.org/blog/welcome-messages-buttons-TG-13</a><br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> • <a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> • <a href=\"https://t.…",
"type": "text",
"url": "https://t.me/telegram/460",
"views": "1.68M"
},
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:24+00:00",
"forwarded_from": null,
"id": 459,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": true,
"photos": [],
"videos": [
{
"duration": "0:12",
"thumb": "https://cdn1.telesco.pe/file/Mig4C5_yhfOzJY6LL5XREHmG5-XSOEgVjcKaq31j5hz6jdBzXBWm7wSR8urtWdcaMCwcDR4XB_vH5Rx1-K7zz4qa6LdxYXVFNQxgiwdSB7qlzrfdHmDHp7nXmsoIEpayJdiy_CZHx4bD5ox3b5QfPA92644nbLQGub9uyIvewHjrVcid5B9f_XzibZAUQOFHkuL8bMuB0Dnj39NYtMzWiMweBXjr2P366ZH610IOGNZOeb8YyqWaGZemvT2TbvPPfs7PG3eiFf9YGTYlCfkDrVsshoGRsUkyBg08-fc-2plYBhvAR53mwWEAqh8sVfD7Mh8__pYgYQUcx_piWB8ZUQ",
"url": "https://cdn1.telesco.pe/file/6efb59a075.mp4?token=fxejM2IN88xXhxY7zoUg56XvuFVMzMh_zt3YOIj1MHbfyBmlBZXgJ8w6nQ9189eFQCORGRThdzXor5sg7j3nzp-TSihUTaVKFWplz9iyoTcdU1tQ4qe3xUr0wUE1hNxY-vAl4HxVaG5oQR50bErNmdhoYPv8oCPwNaUDBfuYVJRwAfUcqf_xbOnvABeviwpHpFIQMMrTB81GDLywOhqfh3XQ4TO-9ZMRlpATIwJcqtbm8WVnMA23H9dZxL70-azbd4xKTy7sd0CUlFeap37o94TG4WpWXH5KW0FQ67DNzfczVoRjp32yOUM-7Bl9lBewmcJHtc4spRyqCtEkAv9Hjw"
}
]
},
"reactions": [],
"reply_to": null,
"text": "Signed Gifts. You can now add your signature and a comment to gifts you buy via the gift marketplace.\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
"text_html": "<b>Signed Gifts.</b> You can now add <b>your signature</b> and a comment to gifts you buy via the <a href=\"https://t.me/telegram/382\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">gift marketplace</a>.<br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> • <a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> • <a href=\"https://t.me/telegram/457\" target=\"_blank…",
"type": "video",
"url": "https://t.me/telegram/459",
"views": "1.48M"
},
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:04+00:00",
"forwarded_from": null,
"id": 458,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": false,
"photos": [
"https://cdn1.telesco.pe/file/vYcqWu7S2GAzf8uvJjev8Yr0jcR6nQ_0deAc4WKXMenL8u-M0dIfcqmEM1rNmBOESCrWWXu7mOuVjuEFtDq1mgHrtkoQifzTYT5pEx56XoQWzl1p7aYEDwuHoethuqHxLOOV08BFamn8qLYI5kkeITgEewYYwL-Yz5ge6PhH295Jheil8InES0sAGm4YmUoHSXgvtXtXBV33I-4dAijMseE0HD0hHkUn8_zByM03clOBbthyA7a4schLST15e6fFgC6v7NTDTdmURvYtGnUi1KgISz3d5cP6cU-PowZe3rXabM_DD_qkT_g7w38xkBmqTs8yG2_dj2Uh3vrV1q9JJQ.jpg"
],
"videos": []
},
"reactions": [],
"reply_to": null,
"text": "Placeholders for App Updates. If a user with an outdated app encounters a new feature, they can now instantly tap to download the latest update.\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
"text_html": "<b>Placeholders for App Updates.</b> If a user with an <b>outdated app</b> encounters a new feature, they can now <b>instantly tap</b> to download the latest update.<br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> • <a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> • <a href=\"https://t.me/telegram/457\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">3</a…",
"type": "photo",
"url": "https://t.me/telegram/458",
"views": "948K"
}
],
"pagination": {
"after_cursor": 460,
"before_cursor": 458,
"count": 3,
"has_more_before": true,
"limit": 3,
"pages_fetched": 1
}
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns recent posts from a public Telegram channel, plus basic channel info. Each post has text, media, link preview, reactions, views and a timestamp. The only required input is channel, the public channel username.
link_preview.views strings across recent posts as approximate view observations, not unique-reader reach.curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel": "telegram", "limit": 3}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel username (required). |
after | integer | No | Pagination cursor — fetch newer posts, pass data.pagination.after_cursor from the previous page. |
before | integer | No | Pagination cursor — fetch older posts, pass data.pagination.before_cursor from the previous page. |
limit | integer | No | Number of posts (1-100, default 20; when >20 the server automatically pages toward older posts). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"channel": "telegram",
"channel_info": {
"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
},
"messages": [
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:34+00:00",
"forwarded_from": null,
"id": 460,
"is_forwarded": false,
"link_preview": {
"description": "Introducing Welcome Messages to greet new members of groups or channels, Buttons…",
"site_name": "Telegram",
"title": "Welcome Messages, Buttons in Messages and Signed Gifts",
"url": "https://telegram.org/blog/welcome-messages-buttons-TG-13"
},
"media": {
"has_unsupported": false,
"photos": [],
"videos": []
},
"reactions": [],
"reply_to": null,
"text": "For all the info from today's update and a look back at 13 years of Telegram fea…",
"text_html": "For all the info from today's update and a look back at <b>13 years of Telegram …"
}
],
"pagination": {
"after_cursor": 460,
"before_cursor": 458,
"count": 3,
"has_more_before": true,
"limit": 3,
"pages_fetched": 1
}
}
| Field | Meaning |
|---|---|
messages[].id | Numeric ID of the post inside the channel. Posts with higher IDs are newer. |
messages[].date | Time the post was published, in ISO 8601 format with a UTC offset. |
messages[].type | Kind of post, such as text, video or photo. |
messages[].text / messages[].text_html | The post body as plain text, and as HTML with tags for bold text and links. |
messages[].url | Public t.me link to the post. |
messages[].views | View count as a short string such as 2.29M, not an exact number. |
messages[].link_preview.title / messages[].link_preview.description / messages[].link_preview.url | Title, summary and target URL of the web page previewed under the post. The value is null when the post has no preview. |
messages[].media.photos[] / messages[].media.videos[] | Photo URLs, and video objects with url, thumb and duration. media.has_unsupported is true when the post has media that is not listed. |
messages[].is_forwarded / messages[].forwarded_from / messages[].reply_to | Show whether the post was forwarded, where it came from, and which post it replies to. These are null or false when they do not apply. |
channel_info.title / channel_info.subscribers / channel_info.verified | Channel display name, subscriber count as a short string, and whether the channel has a verified badge. |
@ sign as channel, for example telegram.pagination.before_cursor as before. To load newer posts, pass pagination.after_cursor as after.pagination.has_more_before tells you if older posts remain. limit accepts 1 to 100.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send channel with a bare public handle and an explicit small limit, such as 3 in the saved example. The required key is channel, not username. The schema permits limit 1–100 with default 20; a value above 20 makes the server automatically fetch older pages. A small first request makes its scope easier to inspect. Omit before and after for the initial request; their schema defaults are zero.
Read messages as a list alongside channel_info and pagination directly from outputs[0].data. A present empty messages list differs from a missing or malformed list. Retain each message's channel and id together; the numeric message ID alone is not a cross-channel key. Keep publication date separate from retrieval time and preserve text as text. The text_html field is untrusted markup and must not be rendered unsanitized.
The saved example contains pagination.count 3, limit 3 and pages_fetched 1. The shortened README keeps one message while retaining that pagination object, so the displayed excerpt is not the full response. A live count is not a total channel archive size. Views such as 1.68M are abbreviated strings, not exact unique-reader counts; missing views or reactions are unknown rather than zero. media.has_unsupported can indicate media omitted from the listed arrays.
For an explicitly chosen later request, the contract maps pagination.before_cursor to before for older posts and after_cursor to after for newer posts. Preserve channel and direction and use response-derived values; do not invent offsets, send both directions as a guessed range or copy the sample's numeric cursor into a new channel. has_more_before describes older availability. No continuation roundtrip was tested for this revision, and this first task does not paginate, archive every post, follow link previews, download media or start polling automatically.
Need channel metadata only? Use Channel Info independently.
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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/channel-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 3,
"channel": "telegram"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
channelstringbắt buộcChannel username (required).
afterintegerPagination cursor — fetch newer posts, pass `data.pagination.after_cursor` from the previous page.
Mặc định: 0
beforeintegerPagination cursor — fetch older posts, pass `data.pagination.before_cursor` from the previous page.
Mặc định: 0
limitintegerNumber of posts (1-100, default 20; when >20 the server automatically pages toward older posts).
Mặc định: 20
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"channel": "telegram",
"channel_info": {
"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
},
"messages": [
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:34+00:00",
"forwarded_from": null,
"id": 460,
"is_forwarded": false,
"link_preview": {
"description": "Introducing Welcome Messages to greet new members of groups or channels, Buttons in Messages to make any text interactive, Inline Documents in Messages and much more.",
"site_name": "Telegram",
"title": "Welcome Messages, Buttons in Messages and Signed Gifts",
"url": "https://telegram.org/blog/welcome-messages-buttons-TG-13"
},
"media": {
"has_unsupported": false,
"photos": [],
"videos": []
},
"reactions": [],
"reply_to": null,
"text": "For all the info from today's update and a look back at 13 years of Telegram features — check out our blog:\nhttps://telegram.org/blog/welcome-messages-buttons-TG-13\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
"text_html": "For all the info from today's update and a look back at <b>13 years of Telegram features</b> — check out our blog:<br><a href=\"https://telegram.org/blog/welcome-messages-buttons-TG-13\" target=\"_blank\" rel=\"noopener\">https://telegram.org/blog/welcome-messages-buttons-TG-13</a><br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> • <a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> • <a href=\"https://t.…",
"type": "text",
"url": "https://t.me/telegram/460",
"views": "1.68M"
},
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:24+00:00",
"forwarded_from": null,
"id": 459,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": true,
"photos": [],
"videos": [
{
"duration": "0:12",
"thumb": "https://cdn1.telesco.pe/file/Mig4C5_yhfOzJY6LL5XREHmG5-XSOEgVjcKaq31j5hz6jdBzXBWm7wSR8urtWdcaMCwcDR4XB_vH5Rx1-K7zz4qa6LdxYXVFNQxgiwdSB7qlzrfdHmDHp7nXmsoIEpayJdiy_CZHx4bD5ox3b5QfPA92644nbLQGub9uyIvewHjrVcid5B9f_XzibZAUQOFHkuL8bMuB0Dnj39NYtMzWiMweBXjr2P366ZH610IOGNZOeb8YyqWaGZemvT2TbvPPfs7PG3eiFf9YGTYlCfkDrVsshoGRsUkyBg08-fc-2plYBhvAR53mwWEAqh8sVfD7Mh8__pYgYQUcx_piWB8ZUQ",
"url": "https://cdn1.telesco.pe/file/6efb59a075.mp4?token=fxejM2IN88xXhxY7zoUg56XvuFVMzMh_zt3YOIj1MHbfyBmlBZXgJ8w6nQ9189eFQCORGRThdzXor5sg7j3nzp-TSihUTaVKFWplz9iyoTcdU1tQ4qe3xUr0wUE1hNxY-vAl4HxVaG5oQR50bErNmdhoYPv8oCPwNaUDBfuYVJRwAfUcqf_xbOnvABeviwpHpFIQMMrTB81GDLywOhqfh3XQ4TO-9ZMRlpATIwJcqtbm8WVnMA23H9dZxL70-azbd4xKTy7sd0CUlFeap37o94TG4WpWXH5KW0FQ67DNzfczVoRjp32yOUM-7Bl9lBewmcJHtc4spRyqCtEkAv9Hjw"
}
]
},
"reactions": [],
"reply_to": null,
"text": "Signed Gifts. You can now add your signature and a comment to gifts you buy via the gift marketplace.\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
"text_html": "<b>Signed Gifts.</b> You can now add <b>your signature</b> and a comment to gifts you buy via the <a href=\"https://t.me/telegram/382\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">gift marketplace</a>.<br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> • <a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> • <a href=\"https://t.me/telegram/457\" target=\"_blank…",
"type": "video",
"url": "https://t.me/telegram/459",
"views": "1.48M"
},
{
"author": "Telegram News",
"channel": "telegram",
"date": "2026-08-26T19:12:04+00:00",
"forwarded_from": null,
"id": 458,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": false,
"photos": [
"https://cdn1.telesco.pe/file/vYcqWu7S2GAzf8uvJjev8Yr0jcR6nQ_0deAc4WKXMenL8u-M0dIfcqmEM1rNmBOESCrWWXu7mOuVjuEFtDq1mgHrtkoQifzTYT5pEx56XoQWzl1p7aYEDwuHoethuqHxLOOV08BFamn8qLYI5kkeITgEewYYwL-Yz5ge6PhH295Jheil8InES0sAGm4YmUoHSXgvtXtXBV33I-4dAijMseE0HD0hHkUn8_zByM03clOBbthyA7a4schLST15e6fFgC6v7NTDTdmURvYtGnUi1KgISz3d5cP6cU-PowZe3rXabM_DD_qkT_g7w38xkBmqTs8yG2_dj2Uh3vrV1q9JJQ.jpg"
],
"videos": []
},
"reactions": [],
"reply_to": null,
"text": "Placeholders for App Updates. If a user with an outdated app encounters a new feature, they can now instantly tap to download the latest update.\n\nAugust Features\n1 • 2 • 3 • 4 • 5 • More",
"text_html": "<b>Placeholders for App Updates.</b> If a user with an <b>outdated app</b> encounters a new feature, they can now <b>instantly tap</b> to download the latest update.<br><br>August Features<br><a href=\"https://t.me/telegram/455\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">1</a> • <a href=\"https://t.me/telegram/456\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">2</a> • <a href=\"https://t.me/telegram/457\" target=\"_blank\" rel=\"noopener\" onclick=\"return confirm('Open this link?\\n\\n'+this.href);\">3</a…",
"type": "photo",
"url": "https://t.me/telegram/458",
"views": "948K"
}
],
"pagination": {
"after_cursor": 460,
"before_cursor": 458,
"count": 3,
"has_more_before": true,
"limit": 3,
"pages_fetched": 1
}
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Telegram Channel PostsAPI này Telegram | $0.001 mỗi lần gọi | JSON |
Telegram | $0.008 mỗi lần gọi | JSON |
Telegram | $0.001 mỗi lần gọi | JSON |
Telegram | $0.001 mỗi lần gọi | JSON |
Telegram | $0.001 mỗi lần gọi | JSON |
Telegram | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/telegram/web/channel-posts với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: channel (string). Tùy chọn: after (integer), before (integer) và limit (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Telegram Channel Posts chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Telegram.
Gửi channel và một limit nhỏ rõ ràng, chẳng hạn 3. Limit chấp nhận 1–100 và mặc định là 20; giá trị trên 20 sẽ khiến máy chủ tự động lấy các trang cũ hơn. Bỏ qua before và after cho yêu cầu đầu tiên và xem một phản hồi trước khi mở rộng.
Với cùng một channel, hợp đồng ánh xạ pagination.before_cursor thành before cho các bài cũ hơn và pagination.after_cursor thành after cho các bài mới hơn. Chọn một hướng và dùng giá trị được trả về. Bản sửa đổi này chưa kiểm thử việc tiếp tục và không tự động yêu cầu trang tiếp theo.
Dùng channel cộng với message id làm khóa bản ghi. Giữ views dưới dạng chuỗi viết tắt thô kèm thời điểm quan sát; nó không phải là số lượng người đọc duy nhất chính xác. Bảo toàn các giá trị thiếu và phân biệt danh sách messages rỗng hợp lệ với phản hồi sai định dạng. Làm sạch text_html trước khi hiển thị.