cursorstring
Continuation token from a previous response for pagination.
https://api.sandbase.ai/v1/api/youtube/channel-community-postsList a YouTube channel's community posts by handle or channel ID with cursor pagination (text, likes, image, publish time).
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
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.
likeCount across posts to see which posts get the most engagement.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.
| Name | Type | Required | Description |
|---|---|---|---|
channelId | string | No | YouTube channel ID. |
cursor | string | No | Continuation token from a previous response for pagination. |
handle | string | No | YouTube channel handle. |
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
}
| Field | Meaning |
|---|---|
data.posts[] | List of community posts for the channel, as returned on this page. |
data.posts[].id | ID of the post. It also appears at the end of the post url. |
data.posts[].content | Text of the post. Long text can end with an ellipsis. |
data.posts[].likeCount | Number of likes on the post, as a whole number. |
data.posts[].createdUtc | Time the post was created, as a Unix timestamp in seconds. |
data.posts[].publishedTime | Relative 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[].url | Link to the post on YouTube. |
data.posts[].channelHandle / data.posts[].channelId / data.posts[].channelTitle | Handle, ID and display name of the channel that made the post. |
data.nextCursor | Token for the next page of posts. Send it as cursor. |
handle or channelId. The handle in the response (channelHandle) has no leading @.cursor set to the data.nextCursor value.id or url with YouTube Community Post.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
cursorstringContinuation token from a previous response for pagination.
handlestringYouTube channel handle.
channelIdstringYouTube channel ID.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
YouTube Channel Community PostsЭтот API YouTube | От $0.0012 за запрос | JSON |
YouTube | От $0.00045 за запрос | JSON |
YouTube | От $0.0012 за запрос | JSON |
YouTube | От $0.0012 за запрос | JSON |
YouTube | $0.014286 за запрос | JSON |
YouTube | $0.014286 за запрос | JSON |
Руководства:Best YouTube API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/youtube/channel-community-posts, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Параметры не требуются. Необязательные: cursor (string), handle (string) и channelId (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. YouTube Channel Community Posts работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API YouTube.