Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Telegram Channel Post Details

เอกสาร API
https://api.sandbase.ai/v1/api/telegram/web/post-detail

Retrieves 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.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
2 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
Channel username (required).
Post ID (required, auto-incremented integer within the channel).
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 2.1 KB · 45 บรรทัด
[
  {
    "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

API README

Telegram Channel Post Details API

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.

Use cases

  • Read the full text and photo links of a single announcement from a public channel.
  • Record the view count and reaction counts of one post at the time you call it.
  • Check whether a post is forwarded or replies to another post.
  • Build a link to a post from its channel and id and confirm the post exists.

Request

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.

Parameters

NameTypeRequiredDescription
channelstringYesChannel username (required).
post_idintegerYesPost ID (required, auto-incremented integer within the channel).

Example response

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 …"
}

Response fields

FieldMeaning
text / text_htmlPost body as plain text and as HTML. The HTML version keeps line breaks as <br> tags.
datePublication time of the post in ISO 8601 format with a UTC offset, such as 2026-05-12T17:28:39+00:00.
typeKind 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_unsupportedtrue when the post holds media that the embed view could not parse.
reactions[].emoji / reactions[].countReaction emoji and how many people used it. Counts are shortened strings such as 8.25K. The emoji can be an empty string.
reactions[].paidtrue for a paid reaction. The ⭐ reaction in the example has this flag set.
viewsView count of the post as a shortened string, such as 3.86M.
is_forwarded / forwarded_from / reply_toShow whether the post is forwarded or a reply. All three are empty or false in the example.
urlPublic t.me link to the post.

Notes

  • Take 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.
  • To list recent posts and find IDs, call Telegram Channel Posts.
  • To read replies to a post, use Telegram Post Comments.

Pricing

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

สำรวจเพิ่มเติม

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 Post Details API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/telegram/web/post-detail โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Telegram Channel Post Details API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Telegram Channel Post Details API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: channel (string) และ post_id (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Telegram Channel Post Details API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Telegram ไหม?

ไม่จำเป็น Telegram Channel Post Details ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Telegram API แยกต่างหาก