Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

YouTube Community Post Details

API dokümanları
https://api.sandbase.ai/v1/api/youtube/web-v2/post-detail

Returns detailed information for a YouTube community post, including post text, media attachments, and engagement metrics. Filter results by post ID, language, and country.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 3 isteğe bağlı

Oynatma Alanı

Girdi
**Purpose**: Post ID
Country code, default `"US"`
Language code, default `"zh-CN"`
Whether to format data, default `true`
ÇıktıÖrnek
Yanıtoutputs · 3.2 KB · 63 satır
[
  {
    "data": {
      "channel_metadata": {
        "avatar_url": "",
        "channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
        "channel_url": "",
        "description": "",
        "title": "YouTube Creators"
      },
      "comments_continuation_token": "4qmFsgKzAhIoRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3RvcF9sZXZlbBqGAkVnVndiM04wYzZvRFd5SkhNQURZQVFIcUFTUlZaMnQ0YVVOVFVtWkVObWMzVTFCc1YwZFFSR0V6ZG1KUU4yRkpjM2wwV0ZKcmRubnlBUmhWUTJ0U1prRnlkbko2YUdWWE1rVTNZalpUVmxRM2RsRkNFR052YlcxbGJuUnpMWE5sWTNScGIyN0NBMW9TR0ZWRGExSm1RWEoyY25wb1pWY3lSVGRpTmxOV1ZEZDJVUm9rVldkcmVHbERVMUptUkRabk4xTlFiRmRIVUVSaE0zWmlVRGRoU1hONWRGaFNhM1o1V2hoVlEydFNaa0Z5ZG5KNmFHVlhNa1UzWWpaVFZsUTNkbEUlM0Q%3D",
      "post": {
        "attachment": {
          "images": [
            {
              "height": 288,
              "url": "https://yt3.ggpht.com/wbxSQ9KLMZWcSCw2Q78wZ1YfvUb9zpWRs6QYRSHt4n277DENaKkLxd9WYZeU4NGCplLEe4E1Ty1TMQ=s288-rw-nd-v1",
              "width": 288
            },
            {
              "height": 400,
              "url": "https://yt3.ggpht.com/wbxSQ9KLMZWcSCw2Q78wZ1YfvUb9zpWRs6QYRSHt4n277DENaKkLxd9WYZeU4NGCplLEe4E1Ty1TMQ=s400-rw-nd-v1",
              "width": 400
            },
            {
              "height": 512,
              "url": "https://yt3.ggpht.com/wbxSQ9KLMZWcSCw2Q78wZ1YfvUb9zpWRs6QYRSHt4n277DENaKkLxd9WYZeU4NGCplLEe4E1Ty1TMQ=s512-rw-nd-v1",
              "width": 512
            },
            "… 6 more items in the full response"
          ],
          "type": "image"
        },
        "author_channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
        "author_name": "YouTube Creators",
        "author_thumbnails": [
          {
            "height": 32,
            "url": "//yt3.googleusercontent.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_-bCUq7Gld-LPX_R7uieWsA=s32-c-k-c0x00ffffff-no-rj-mo",
            "width": 32
          },
          {
            "height": 48,
            "url": "//yt3.googleusercontent.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_-bCUq7Gld-LPX_R7uieWsA=s48-c-k-c0x00ffffff-no-rj-mo",
            "width": 48
          },
          {
            "height": 76,
            "url": "//yt3.googleusercontent.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_-bCUq7Gld-LPX_R7uieWsA=s76-c-k-c0x00ffffff-no-rj-mo",
            "width": 76
          }
        ],
        "author_url": "/@youtubecreators",
        "comment_count": "",
        "content_text": "🎉 Posts are rolling out to more creators than ever before!! 🎉 \n\nWe're so excited to announce that we’re starting to roll out posts access to all eligible channels TODAY and over the coming weeks. While posts will become available to most channels on YouTube, there are some cases where the feature will continue to be turned off as it has been historically:\n\n✅ Channels that are set as Made for Kids\n✅ Folks who access YouTube with a supervised account\n✅ More details can be found in our Help Center: https://yt.be/help/postsGA \n\nOnce you have access, get the post party on your channel started by:…",
        "post_id": "UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy",
        "post_url": "https://www.youtube.com/post/UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy",
        "published_time": "2年前(修改过)",
        "vote_count": "4428"
      }
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

YouTube Community Post Details API

Returns one YouTube community post with its text, image attachments, author details, and vote count. The only required input is the post_id of the post.

Use cases

  • Read the full text and image attachments of a single community post.
  • Track the vote count of a specific post by calling it again later.
  • Identify which channel published a post from its author name and channel ID.
  • Build a link back to the post on YouTube using the returned post URL.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/post-detail" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"post_id": "UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
post_idstringYesPurpose: Post ID
country_codestringNoCountry code, default "US"
language_codestringNoLanguage code, default "zh-CN"
need_formatbooleanNoWhether to format data, default true

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "channel_metadata": {
    "avatar_url": "",
    "channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
    "channel_url": "",
    "description": "",
    "title": "YouTube Creators"
  },
  "comments_continuation_token": "4qmFsgKz…",
  "post": {
    "attachment": {
      "images": [
        {
          "height": 288,
          "url": "https://yt3.ggpht.com/wbxSQ9KLMZWcSCw2Q78wZ1YfvUb9zpWRs6QYRSHt4n277DENaKkLxd9WYZ…",
          "width": 288
        }
      ],
      "type": "image"
    },
    "author_channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
    "author_name": "YouTube Creators",
    "author_thumbnails": [
      {
        "height": 32,
        "url": "//yt3.googleusercontent.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_…",
        "width": 32
      }
    ],
    "author_url": "/@youtubecreators",
    "comment_count": "",
    "content_text": "🎉 Posts are rolling out to more creators than ever before!! 🎉 \n\nWe're so excited…",
    "post_id": "UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy",
    "post_url": "https://www.youtube.com/post/UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy",
    "published_time": "2年前(修改过)",
    "vote_count": "4409"
  }
}

Response fields

FieldMeaning
post.post_id / post.post_urlThe ID of the post and its full YouTube link.
post.content_textThe text of the post.
post.vote_countThe number of votes on the post, returned as a string such as "4409".
post.comment_countThe comment count of the post. It is an empty string in this response.
post.published_timeThe publish time as display text in the requested language, for example 2年前(修改过). It is relative text, not a date.
post.author_name / post.author_channel_id / post.author_urlThe name of the posting channel, its channel ID, and its relative channel path.
post.author_thumbnails[].urlAvatar image URLs for the author at several sizes. Each row has width and height.
post.attachment.images[].urlImage URLs attached to the post, one per size, with width and height. post.attachment.type is image here.
channel_metadata.channel_id / channel_metadata.titleThe ID and title of the channel that owns the post.
comments_continuation_tokenA token for loading the comments of this post.

Notes

  • Take post_id from the post list of a channel. YouTube Channel Community Posts returns posts for a channel.
  • Use comments_continuation_token with YouTube Community Post Comments to read the comments on this post.
  • language_code defaults to zh-CN, so text such as published_time comes back in Chinese unless you set another value like en-US.
  • In this response, channel_metadata.avatar_url, channel_metadata.channel_url, and channel_metadata.description are empty strings. Use post.author_thumbnails and post.author_url for these values.

Pricing

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

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON
YouTube$0.001 çağrı başınaJSON

Kılavuzlar:Best YouTube API in 2026: Pricing Compared

Sorular

SSS

YouTube Community Post Details API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/youtube/web-v2/post-detail adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

YouTube Community Post Details API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

YouTube Community Post Details API'si hangi parametreleri kabul eder?

Gerekli: post_id (string). İsteğe bağlı: country_code (string), language_code (string) ve need_format (boolean). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

YouTube Community Post Details API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir YouTube geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. YouTube Community Post Details, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. YouTube API erişimi için ayrıca başvuru yapmanız gerekmez.