channelstring必填
Channel username (required).
https://api.sandbase.ai/v1/api/telegram/web/post-detailRetrieves details for a single public Telegram channel post parsed from the web embed view. Provide the channel username and post ID to view reactions and post data.
[
{
"data": {
"author": "Pavel Durov",
"channel": "durov",
"date": "2026-05-12T17:28:39+00:00",
"forwarded_from": null,
"id": 510,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": true,
"photos": [
"https://cdn4.telesco.pe/file/fIldq7CZwG1iEPjTx8-hqv4Tbs6e9E-6geRKXA1mcCIhvjABZanxXadm9jQIKQOHdu3LGvw2u_OXDZHIaAJ-OqXcDgRQpJ7ZNM5eHxoZUEEhvDjGIynxhrPkMm6oXomu0K_NMQ4reo6wOflXNq5iiK0noOR6fJIjkYLl5At-4u435_h70UMfVTDi0R5hqvrCBExD10v_k0yYkVrPBqman89_11DAoubqLM3eQyJoUp_KukNYBqeFNCG6bWEGfe7Dvxh7rQcZIkWuHIkaWNUHntd8tXSOmvS2guztMxbJzfNxs-UwoEmz15_aQGjbxixH_GVuP3B4xoxthYiDAIgmbQ.jpg",
"https://cdn4.telesco.pe/file/ijLNof7CPrwy-kILGXhsqHfdDur5MsCortQO2yT6yhRKfOoDKgOqTpqu2ztysNEFB9itQw1sExKgZ7NxJJrlGrGeKGRf2gOCcext_9WmDFuXQjBVJgvDRRY7a5P_4jnKMONTU8GrI7iGUg0DWf1rKJjQLu3jjmUIFsDKDhzT28ZqRClmT1iGxhVKKBkmhtphK8QLy_EhcszzF_MgHCWjDkL6DF7uN1Pb2SpaCLs1qy9UGU1wARROrCxJ7OX9CvVepeCE9mS1U1Mp4JMTs5cuI7aKFu4-z6Rntj6hoqRA8TYEO2GYRfDFW_65-dol9rgtANIzYAN3gW8uV2JcYmtASA.jpg"
],
"videos": []
},
"reactions": [
{
"count": "8.23K",
"emoji": "⭐",
"paid": true
},
{
"count": "31K",
"emoji": "",
"paid": false
},
{
"count": "8.92K",
"emoji": "🫡",
"paid": false
},
"… 3 more items in the full response"
],
"reply_to": null,
"text": "🌍 With 400 validators across 6 continents, TON is one of the most decentralized blockchain networks on the planet. \n\n🧑💻 Telegram becoming the largest validator opened the door for major exchanges and custodians to stake TON without increasing centralization risk.",
"text_html": "🌍 With 400 validators across 6 continents, TON is one of the most decentralized blockchain networks on the planet. <br><br>🧑💻 Telegram becoming the largest validator opened the door for major exchanges and custodians to stake TON without increasing centralization risk.",
"type": "album",
"url": "https://t.me/durov/510",
"views": "3.73M"
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns one public Telegram channel post, parsed from the web embed view. It needs the channel username (channel) and the numeric post ID (post_id). The response includes the post text, media links, view count, and reactions.
channel and id and confirm the post exists.curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/post-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel": "durov", "post_id": 510}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel username (required). |
post_id | integer | Yes | Post ID (required, auto-incremented integer within the channel). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"author": "Pavel Durov",
"channel": "durov",
"date": "2026-05-12T17:28:39+00:00",
"forwarded_from": null,
"id": 510,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": true,
"photos": [
"https://cdn4.telesco.pe/file/iw0nUCyqIulL0q3pX-lSNo9-_oaB0eX3MMQgjzDggf_QZEMrMic…"
],
"videos": []
},
"reactions": [
{
"count": "8.25K",
"emoji": "⭐",
"paid": true
}
],
"reply_to": null,
"text": "🌍 With 400 validators across 6 continents, TON is one of the most decentralized …",
"text_html": "🌍 With 400 validators across 6 continents, TON is one of the most decentralized …"
}
| Field | Meaning |
|---|---|
text / text_html | Post body as plain text and as HTML. The HTML version keeps line breaks as <br> tags. |
date | Publication time of the post in ISO 8601 format with a UTC offset, such as 2026-05-12T17:28:39+00:00. |
type | Kind of post. The example post is an album, which holds more than one photo. |
media.photos[] / media.videos[] | Lists of media URLs attached to the post. videos is empty in the example. |
media.has_unsupported | true when the post holds media that the embed view could not parse. |
reactions[].emoji / reactions[].count | Reaction emoji and how many people used it. Counts are shortened strings such as 8.25K. The emoji can be an empty string. |
reactions[].paid | true for a paid reaction. The ⭐ reaction in the example has this flag set. |
views | View count of the post as a shortened string, such as 3.86M. |
is_forwarded / forwarded_from / reply_to | Show whether the post is forwarded or a reply. All three are empty or false in the example. |
url | Public t.me link to the post. |
channel from the t.me link of the channel, without the @. post_id is the integer at the end of the post URL.views and reactions[].count are strings with K or M suffixes, so parse them before you do math.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/post-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel": "durov",
"post_id": 510
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
channelstring必填Channel username (required).
post_idinteger必填Post ID (required, auto-incremented integer within the channel).
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"author": "Pavel Durov",
"channel": "durov",
"date": "2026-05-12T17:28:39+00:00",
"forwarded_from": null,
"id": 510,
"is_forwarded": false,
"link_preview": null,
"media": {
"has_unsupported": true,
"photos": [
"https://cdn4.telesco.pe/file/fIldq7CZwG1iEPjTx8-hqv4Tbs6e9E-6geRKXA1mcCIhvjABZanxXadm9jQIKQOHdu3LGvw2u_OXDZHIaAJ-OqXcDgRQpJ7ZNM5eHxoZUEEhvDjGIynxhrPkMm6oXomu0K_NMQ4reo6wOflXNq5iiK0noOR6fJIjkYLl5At-4u435_h70UMfVTDi0R5hqvrCBExD10v_k0yYkVrPBqman89_11DAoubqLM3eQyJoUp_KukNYBqeFNCG6bWEGfe7Dvxh7rQcZIkWuHIkaWNUHntd8tXSOmvS2guztMxbJzfNxs-UwoEmz15_aQGjbxixH_GVuP3B4xoxthYiDAIgmbQ.jpg",
"https://cdn4.telesco.pe/file/ijLNof7CPrwy-kILGXhsqHfdDur5MsCortQO2yT6yhRKfOoDKgOqTpqu2ztysNEFB9itQw1sExKgZ7NxJJrlGrGeKGRf2gOCcext_9WmDFuXQjBVJgvDRRY7a5P_4jnKMONTU8GrI7iGUg0DWf1rKJjQLu3jjmUIFsDKDhzT28ZqRClmT1iGxhVKKBkmhtphK8QLy_EhcszzF_MgHCWjDkL6DF7uN1Pb2SpaCLs1qy9UGU1wARROrCxJ7OX9CvVepeCE9mS1U1Mp4JMTs5cuI7aKFu4-z6Rntj6hoqRA8TYEO2GYRfDFW_65-dol9rgtANIzYAN3gW8uV2JcYmtASA.jpg"
],
"videos": []
},
"reactions": [
{
"count": "8.23K",
"emoji": "⭐",
"paid": true
},
{
"count": "31K",
"emoji": "",
"paid": false
},
{
"count": "8.92K",
"emoji": "🫡",
"paid": false
},
"… 3 more items in the full response"
],
"reply_to": null,
"text": "🌍 With 400 validators across 6 continents, TON is one of the most decentralized blockchain networks on the planet. \n\n🧑💻 Telegram becoming the largest validator opened the door for major exchanges and custodians to stake TON without increasing centralization risk.",
"text_html": "🌍 With 400 validators across 6 continents, TON is one of the most decentralized blockchain networks on the planet. <br><br>🧑💻 Telegram becoming the largest validator opened the door for major exchanges and custodians to stake TON without increasing centralization risk.",
"type": "album",
"url": "https://t.me/durov/510",
"views": "3.73M"
}
}
]探索更多
| 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/post-detail。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:channel (string) 和 post_id (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Telegram Channel Post Details 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Telegram API 存取權。