Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

YouTube Channel Community Posts

Dokumentacja 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).

Cena
Od $0.0012USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
0 wymaganych · 3 opcjonalnych

Playground

Wejście
Continuation token from a previous response for pagination.
YouTube channel handle.
YouTube channel ID.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
YouTubeOd $0.0012 za wywołanieJSON
YouTubeOd $0.00045 za wywołanieJSON
YouTubeOd $0.0012 za wywołanieJSON
YouTubeOd $0.0012 za wywołanieJSON
YouTube$0.014286 za wywołanieJSON
YouTube$0.014286 za wywołanieJSON

Przewodniki:Best YouTube API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API YouTube Channel Community Posts?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/youtube/channel-community-posts z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API YouTube Channel Community Posts?

Od $0.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API YouTube Channel Community Posts?

Nie są wymagane żadne parametry. Opcjonalne: cursor (string), handle (string) i channelId (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API YouTube Channel Community Posts?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego YouTube lub klucza API?

Nie. YouTube Channel Community Posts działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API YouTube.