channel_idstring필수
Channel ID
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-community-postsReturns community posts from a specific YouTube channel, including text content, polls, votes, and comment counts. Supports pagination via a continuation token.
[
{
"data": {
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"continuation_token": "4qmFsgKBARIYVUNldTZVNjdPekpoVjFLd0JhbnNIM0RnGkxFZ1Z3YjNOMGM2b0RLQW9rVVRKb1ExSkdUbGxoTTFKcFpXeHdlVlZxUWxkVlIwWjBWbGh3VkUxV1drVlNWVVpDS0FueUJnUUtBa29BmgIWYmFja3N0YWdlLWl0ZW0tc2VjdGlvbg%3D%3D",
"has_more": true,
"posts": [
{
"attachment": {
"choices": [
{
"text": "Yes, slow 'em down",
"vote_count": "",
"vote_percentage": ""
},
{
"text": "No, original speed",
"vote_count": "",
"vote_percentage": ""
}
],
"total_votes": "1837 票",
"type": "poll"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32
},
{
"height": 48,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48
},
{
"height": 76,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s76-c-k-c0x00ffffff-no-rj-mo",
"width": 76
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "9",
"content_text": "Would you like to see more slowed versions of songs? 🤔",
"post_id": "Ugkxarbrw7GyCGm2je0mLftFSKUOIMp3CUkE",
"post_url": "https://www.youtube.com/post/Ugkxarbrw7GyCGm2je0mLftFSKUOIMp3CUkE",
"published_time": "5个月前",
"vote_count": "98"
},
{
"attachment": {
"choices": [
{
"text": "Photon",
"vote_count": "",
"vote_percentage": ""
},
{
"text": "BSL",
"vote_count": "",
"vote_percentage": ""
},
{
"text": "Bliss",
"vote_count": "",
"vote_percentage": ""
},
"… 1 more items in the full response"
],
"total_votes": "2832 票",
"type": "poll"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32
},
{
"height": 48,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48
},
{
"height": 76,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s76-c-k-c0x00ffffff-no-rj-mo",
"width": 76
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "19",
"content_text": "Which shader is your favorite? 🤔",
"post_id": "UgkxuWOnekxLVBYuFt1hSm125Ym-cMaxMzsj",
"post_url": "https://www.youtube.com/post/UgkxuWOnekxLVBYuFt1hSm125Ym-cMaxMzsj",
"published_time": "7个月前",
"vote_count": "120"
},
{
"attachment": {
"images": [
{
"height": 288,
"url": "https://yt3.ggpht.com/Y635hMtgWtpT8oRAHtt3VGCP5Tvx7_MyS1cB8SS4V7XztCK83Ns8xUpf2hkhyYbaE6aRwIIY_l8p5g=s288-c-fcrop64=1,00000000ffffffff-rw-nd-v1",
"width": 288
},
{
"height": 400,
"url": "https://yt3.ggpht.com/Y635hMtgWtpT8oRAHtt3VGCP5Tvx7_MyS1cB8SS4V7XztCK83Ns8xUpf2hkhyYbaE6aRwIIY_l8p5g=s400-c-fcrop64=1,00000000ffffffff-rw-nd-v1",
"width": 400
},
{
"height": 512,
"url": "https://yt3.ggpht.com/Y635hMtgWtpT8oRAHtt3VGCP5Tvx7_MyS1cB8SS4V7XztCK83Ns8xUpf2hkhyYbaE6aRwIIY_l8p5g=s512-c-fcrop64=1,00000000ffffffff-rw-nd-v1",
"width": 512
},
"… 4 more items in the full response"
],
"type": "image"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32
},
{
"height": 48,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48
},
{
"height": 76,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s76-c-k-c0x00ffffff-no-rj-mo",
"width": 76
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "36",
"content_text": "I just want to say how thankful I am to everyone who’s supported the channel. Hitting 100K subscribers is an incredible milestone, and I truly appreciate each of you. I’ll keep doing my best to grow and improve with every video! Thank you so much 💜\n\nWith love and appreciation,\n- Cozy",
"post_id": "Ugkxe7pBWWgtCrd3UqwbzaqHkKb0rYURZAlY",
"post_url": "https://www.youtube.com/post/Ugkxe7pBWWgtCrd3UqwbzaqHkKb0rYURZAlY",
"published_time": "7个月前",
"vote_count": "219"
},
"… 6 more items in the full response"
],
"total_count": 9
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Returns community posts from a YouTube channel, including post text, poll or image attachments, vote counts, and comment counts. It needs a channel_id and returns a page of posts with a token for the next page.
comment_count and vote_count across posts to see which topics get the most reaction.curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-community-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel_id": "UCeu6U67OzJhV1KwBansH3Dg"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | Channel ID |
continuation_token | string | No | Next page pagination token |
country_code | string | No | Country code, default "US" |
language_code | string | No | Language code, default "zh-CN" |
need_format | boolean | No | Whether to format data, default true |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"continuation_token": "4qmFsgKB…",
"has_more": true,
"posts": [
{
"attachment": {
"choices": [
{
"text": "Yes, slow 'em down",
"vote_count": "",
"vote_percentage": ""
}
],
"total_votes": "1919 票",
"type": "poll"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9Fab…",
"width": 32
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "9",
"content_text": "Would you like to see more slowed versions of songs? 🤔",
"post_id": "Ugkxarbrw7GyCGm2je0mLftFSKUOIMp3CUkE",
"post_url": "https://www.youtube.com/post/Ugkxarbrw7GyCGm2je0mLftFSKUOIMp3CUkE",
"published_time": "6个月前",
"vote_count": "102"
}
],
"total_count": 9
}
| Field | Meaning |
|---|---|
posts[].post_id | ID of the community post. |
posts[].post_url | Link to the post on YouTube. |
posts[].content_text | Text of the post. Long text may be cut off with an ellipsis. |
posts[].published_time | Relative publish time as a text label, such as 6个月前. It is not a date or timestamp. |
posts[].vote_count / posts[].comment_count | Counts for the post, returned as strings. vote_count is the like-style vote count, and comment_count is the number of comments. |
posts[].author_name / posts[].author_channel_id / posts[].author_url | Name, channel ID and channel path (such as /@CozyCraftYT) of the channel that wrote the post. |
posts[].attachment.type | Kind of attachment on the post. This response shows poll and image. |
posts[].attachment.choices[].text | Text of each poll option. vote_count and vote_percentage inside each choice were empty strings in this response. |
posts[].attachment.total_votes | Total votes on a poll as a text label, for example 1919 票. |
posts[].attachment.images[].url | Image URL for image posts, listed with its width and height. Several sizes of the same image are returned. |
has_more / continuation_token | has_more is true when more posts exist. Pass continuation_token in the next request to get them. |
channel_id from a channel URL with YouTube Channel ID from URL. Channel IDs start with UC.continuation_token as continuation_token along with the same channel_id. Stop when has_more is false.post_id.published_time and total_votes follow language_code, which defaults to zh-CN. Set another value if you want labels in a different language.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-community-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"need_format": true,
"country_code": "US",
"language_code": "zh-CN"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
channel_idstring필수Channel ID
continuation_tokenstringNext page pagination token
country_codestringCountry code, default `"US"`
기본값: "US"
language_codestringLanguage code, default `"zh-CN"`
기본값: "zh-CN"
need_formatbooleanWhether to format data, default `true`
기본값: true
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"continuation_token": "4qmFsgKBARIYVUNldTZVNjdPekpoVjFLd0JhbnNIM0RnGkxFZ1Z3YjNOMGM2b0RLQW9rVVRKb1ExSkdUbGxoTTFKcFpXeHdlVlZxUWxkVlIwWjBWbGh3VkUxV1drVlNWVVpDS0FueUJnUUtBa29BmgIWYmFja3N0YWdlLWl0ZW0tc2VjdGlvbg%3D%3D",
"has_more": true,
"posts": [
{
"attachment": {
"choices": [
{
"text": "Yes, slow 'em down",
"vote_count": "",
"vote_percentage": ""
},
{
"text": "No, original speed",
"vote_count": "",
"vote_percentage": ""
}
],
"total_votes": "1837 票",
"type": "poll"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32
},
{
"height": 48,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48
},
{
"height": 76,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s76-c-k-c0x00ffffff-no-rj-mo",
"width": 76
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "9",
"content_text": "Would you like to see more slowed versions of songs? 🤔",
"post_id": "Ugkxarbrw7GyCGm2je0mLftFSKUOIMp3CUkE",
"post_url": "https://www.youtube.com/post/Ugkxarbrw7GyCGm2je0mLftFSKUOIMp3CUkE",
"published_time": "5个月前",
"vote_count": "98"
},
{
"attachment": {
"choices": [
{
"text": "Photon",
"vote_count": "",
"vote_percentage": ""
},
{
"text": "BSL",
"vote_count": "",
"vote_percentage": ""
},
{
"text": "Bliss",
"vote_count": "",
"vote_percentage": ""
},
"… 1 more items in the full response"
],
"total_votes": "2832 票",
"type": "poll"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32
},
{
"height": 48,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48
},
{
"height": 76,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s76-c-k-c0x00ffffff-no-rj-mo",
"width": 76
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "19",
"content_text": "Which shader is your favorite? 🤔",
"post_id": "UgkxuWOnekxLVBYuFt1hSm125Ym-cMaxMzsj",
"post_url": "https://www.youtube.com/post/UgkxuWOnekxLVBYuFt1hSm125Ym-cMaxMzsj",
"published_time": "7个月前",
"vote_count": "120"
},
{
"attachment": {
"images": [
{
"height": 288,
"url": "https://yt3.ggpht.com/Y635hMtgWtpT8oRAHtt3VGCP5Tvx7_MyS1cB8SS4V7XztCK83Ns8xUpf2hkhyYbaE6aRwIIY_l8p5g=s288-c-fcrop64=1,00000000ffffffff-rw-nd-v1",
"width": 288
},
{
"height": 400,
"url": "https://yt3.ggpht.com/Y635hMtgWtpT8oRAHtt3VGCP5Tvx7_MyS1cB8SS4V7XztCK83Ns8xUpf2hkhyYbaE6aRwIIY_l8p5g=s400-c-fcrop64=1,00000000ffffffff-rw-nd-v1",
"width": 400
},
{
"height": 512,
"url": "https://yt3.ggpht.com/Y635hMtgWtpT8oRAHtt3VGCP5Tvx7_MyS1cB8SS4V7XztCK83Ns8xUpf2hkhyYbaE6aRwIIY_l8p5g=s512-c-fcrop64=1,00000000ffffffff-rw-nd-v1",
"width": 512
},
"… 4 more items in the full response"
],
"type": "image"
},
"author_channel_id": "UCeu6U67OzJhV1KwBansH3Dg",
"author_name": "CozyCraft",
"author_thumbnails": [
{
"height": 32,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s32-c-k-c0x00ffffff-no-rj-mo",
"width": 32
},
{
"height": 48,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s48-c-k-c0x00ffffff-no-rj-mo",
"width": 48
},
{
"height": 76,
"url": "//yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s76-c-k-c0x00ffffff-no-rj-mo",
"width": 76
}
],
"author_url": "/@CozyCraftYT",
"comment_count": "36",
"content_text": "I just want to say how thankful I am to everyone who’s supported the channel. Hitting 100K subscribers is an incredible milestone, and I truly appreciate each of you. I’ll keep doing my best to grow and improve with every video! Thank you so much 💜\n\nWith love and appreciation,\n- Cozy",
"post_id": "Ugkxe7pBWWgtCrd3UqwbzaqHkKb0rYURZAlY",
"post_url": "https://www.youtube.com/post/Ugkxe7pBWWgtCrd3UqwbzaqHkKb0rYURZAlY",
"published_time": "7个月前",
"vote_count": "219"
},
"… 6 more items in the full response"
],
"total_count": 9
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
YouTube | $0.001 / 호출 | JSON |
YouTube | $0.001 / 호출 | JSON |
YouTube | $0.001 / 호출 | JSON |
YouTube | $0.001 / 호출 | JSON |
YouTube | $0.001 / 호출 | JSON |
YouTube | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/youtube/web-v2/channel-community-posts에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: channel_id (string). 선택: continuation_token (string), country_code (string), language_code (string) 및 need_format (boolean). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. YouTube Channel Community Posts은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. YouTube API 액세스를 별도로 신청할 필요는 없습니다.