Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

YouTube Channel Community Posts

Documentación de la 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).

Precio
Desde $0.0012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 3 opcionales

Entorno de pruebas

Entrada
Continuation token from a previous response for pagination.
YouTube channel handle.
YouTube channel ID.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
YouTubeDesde $0.0012 por llamadaJSON
YouTubeDesde $0.00045 por llamadaJSON
YouTubeDesde $0.0012 por llamadaJSON
YouTubeDesde $0.0012 por llamadaJSON
YouTube$0.014286 por llamadaJSON
YouTube$0.014286 por llamadaJSON

Guías:Best YouTube API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de YouTube Channel Community Posts?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/youtube/channel-community-posts con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de YouTube Channel Community Posts?

Desde $0.0012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de YouTube Channel Community Posts?

No se requieren parámetros. Opcionales: cursor (string), handle (string) y channelId (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de YouTube Channel Community Posts?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de YouTube?

No. YouTube Channel Community Posts funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de YouTube por separado.