Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

YouTube Channel Community Posts

Dokumentasi API
https://api.sandbase.ai/v1/api/youtube/channel-community-posts

List a YouTube channel's community posts by handle or channel ID with cursor pagination (text, likes, image, publish time).

Harga
Dari $0.0012USD / panggilan
Metode
POST
Respons
JSON
Parameter
0 wajib · 3 opsional

Playground

Input
Continuation token from a previous response for pagination.
YouTube channel handle.
YouTube channel ID.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

YouTube Channel Community Posts API

Returns a list of community posts for a YouTube channel, with the post text, like count, image links and publish time. You pass a channel handle such as @MrBeast or a channelId.

Use cases

  • Track what a creator announces in community posts, such as new video releases.
  • Compare likeCount across posts to see which posts get the most engagement.
  • Archive post text and image links for a channel.
  • Build a feed of recent posts from a list of channels.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/channel-community-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle": "@MrBeast"}'

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

Parameters

NameTypeRequiredDescription
channelIdstringNoYouTube channel ID.
cursorstringNoContinuation token from a previous response for pagination.
handlestringNoYouTube channel handle.

Example response

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

{
  "data": {
    "nextCursor": "cur_VMouee4IpseKyQo6IPoYVg",
    "posts": [
      {
        "channelHandle": "MrBeast",
        "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
        "channelTitle": "MrBeast",
        "content": "We spent $7,000,000 making the new MrBeast Lab animation series, and EPISODE 1 I…",
        "createdUtc": 1793605689,
        "id": "UgkxvMrKTpUbvqLPjv-lVi7N0wn68DV_NCBQ",
        "image": "",
        "likeCount": 9000,
        "publishedTime": "1 day ago",
        "url": "https://www.youtube.com/post/UgkxvMrKTpUbvqLPjv-lVi7N0wn68DV_NCBQ"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.posts[]List of community posts for the channel, as returned on this page.
data.posts[].idID of the post. It also appears at the end of the post url.
data.posts[].contentText of the post. Long text can end with an ellipsis.
data.posts[].likeCountNumber of likes on the post, as a whole number.
data.posts[].createdUtcTime the post was created, as a Unix timestamp in seconds.
data.posts[].publishedTimeRelative publish time as shown on YouTube, for example 2 weeks ago.
data.posts[].image / data.posts[].images[]Image attached to the post. image is an empty string when the post has no image. images appears on posts that have images.
data.posts[].urlLink to the post on YouTube.
data.posts[].channelHandle / data.posts[].channelId / data.posts[].channelTitleHandle, ID and display name of the channel that made the post.
data.nextCursorToken for the next page of posts. Send it as cursor.

Notes

  • Send either handle or channelId. The handle in the response (channelHandle) has no leading @.
  • For the next page, repeat the request with cursor set to the data.nextCursor value.
  • To get details for one post, use the post id or url with YouTube Community Post.
  • To get the channel ID from a handle first, call YouTube Channel.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
YouTubeDari $0.0012 per panggilanJSON
YouTubeDari $0.00045 per panggilanJSON
YouTubeDari $0.0012 per panggilanJSON
YouTubeDari $0.0012 per panggilanJSON
YouTube$0.014286 per panggilanJSON
YouTube$0.014286 per panggilanJSON

Panduan:Best YouTube API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API YouTube Channel Community Posts?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/youtube/channel-community-posts dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API YouTube Channel Community Posts?

Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API YouTube Channel Community Posts?

Tidak ada parameter yang wajib. Opsional: cursor (string), handle (string) dan channelId (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API YouTube Channel Community Posts?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API YouTube?

Tidak. YouTube Channel Community Posts berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API YouTube secara terpisah.