channel_idstringbắt buộc
**Purpose**: Channel ID
https://api.sandbase.ai/v1/api/youtube/web-v2/channel-videosReturns a list of videos for a specified YouTube channel, including title, duration, URLs, and view counts. Supports pagination and region or language filters.
[
{
"data": {
"channel": {
"avatar": "https://yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s900-c-k-c0x00ffffff-no-rj",
"description": "Minecraft ambience and cozy visuals for sleep, relaxing, studying, etc 🌿\n\nHi, I’m glad you’re here! I create peaceful Minecraft ambience to help you slow down, breathe, and feel at home. From cozy cabins in the forest to rainy lakeside docks, cherry blossom villages, and underwater reefs, I build and explore with the goal of bringing you comfort.\n\nIf you love cozy Minecraft builds, gentle rain, crackling fireplaces, and relaxing soundscapes, you’ll feel right at home here.\nHope you enjoy! -Cozy",
"handle_url": "http://www.youtube.com/@CozyCraftYT",
"id": "UCeu6U67OzJhV1KwBansH3Dg",
"is_family_safe": true,
"is_verified": true,
"keywords": "Minecraft Ambience Rain Thunderstorm \"Relaxing Music\" C418 ASMR Sleep Study Relax Thunder 1.21.8 CozyCraft \"minecraft music\" \"minecraft longplay\" \"heavy rain\" \"sleep sounds\" \"white noise\" \"minecraft ambiance\" \"minecraft update\" ambient background \"minecraft soundtrack\" \"minecraft playlist\" \"8 hours\" \"white noise\" peaceful campfire \"minecraft build\" \"minecraft shaders\" \"music for studying\" \"study mix\" \"lena raine\" \"cozy house build\" \"minecraft sounds\" \"minecraft mods\" \"sleep music\" nostalgia cozy",
"name": "CozyCraft",
"rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCeu6U67OzJhV1KwBansH3Dg",
"url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg"
},
"continuation_token": "4qmFsgLdCBIYVUNldTZVNjdPekpoVjFLd0JhbnNIM0RnGsAIOGdhbkJocWtCbnFoQmpxZUJnb2tObUU0WVRrek5XWXRNREF3TUMweU5tTXlMVGczTmpNdE0yTXlPRFprTkRabFpUbGxFdk1GUVZreFZ6RkpaMlZ6V21sRU1sb3hjVU5CTm1ZdGNXOUdXRXhPUkVwcVJsWjJXR1JsVkUxdFpWbGpXRFZtU0dKUU5rcDZiM1ZqY0VWTFltOVpkbTFKZVMxT1ZUTTRlVzFDTm10cVVIZFdZMWxGYzBrMWRHZGtUR2t0VjNKNmRXODNSMmx4YUZoMWJFOW9WazVaYWxweldFRmhMV1k0UXpWSE5Fc3hlSFJvVUVOaUxYcDVWMloyVlRWNlRrSllaRk5CUVVVM1QyaE9PWFUxV2pWMWVFeHVjMmhuVkdKalJVMVVlazlSZEV4NWFsbHRiM2d5VURKV1dVWk9SR3hZU2pKaE5tOU5jMEp5Y0ZVeVNFZHFhbk0wTm1kVVVrOWtjVEJGWW1SeFkyeFJaSEZ0ZEdST2NuSXhWMDFuYmt4bk9VRkpTSEZQY0hSRlRsZFlYM0JsV1VacU9I…",
"videos": [
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "https://i.ytimg.com/an_webp/Y30C0VjUT78/mqdefault_6s.webp?du=3000&sqp=CJnymtQG&rs=AOn4CLC0GkeQG0MV_K1qG7x4w-PIiVtrBA",
"playback_url": "https://rr1---sn-xnnv4pcg5-2v5e.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&olis=1&ofpcc=1&msp=1&odepv=1&id=637d02d158d44fbf&ip=45.6.210.203&initcwndbps=1653750&mt=1787218178&oweuc=",
"published_time": "2天前",
"short_view_count": "7265次观看",
"thumbnail": "https://i.ytimg.com/vi/Y30C0VjUT78/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDkcC1j4iYVOllZ4KHj1oA4o3EQDA",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Y30C0VjUT78/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDZghakNPsygGemuQSyp7uDU7Ymag",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/Y30C0VjUT78/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDkcC1j4iYVOllZ4KHj1oA4o3EQDA",
"width": 720
}
],
"title": "you don't have to worry tonight… (minecraft music & ambience)",
"url": "https://www.youtube.com/watch?v=Y30C0VjUT78",
"video_id": "Y30C0VjUT78",
"view_count": "7265次观看"
},
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "",
"playback_url": "https://rr1---sn-xnnv4pcg5-2v5e.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&olis=1&ofpcc=1&msp=1&odepv=1&id=79c4c1776ef574ac&ip=45.6.210.203&initcwndbps=1653750&mt=1787218178&oweuc=",
"published_time": "9天前",
"short_view_count": "1.2万次观看",
"thumbnail": "https://i.ytimg.com/vi/ecTBd271dKw/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC5wH6xR7HpFiFSEf2kxtv-En58Lg",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/ecTBd271dKw/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDBhi5_HcMYjXhOBTjgdS4sw7HgkQ",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/ecTBd271dKw/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC5wH6xR7HpFiFSEf2kxtv-En58Lg",
"width": 720
}
],
"title": "you've done enough for today, just rest… (minecraft music & ambience)",
"url": "https://www.youtube.com/watch?v=ecTBd271dKw",
"video_id": "ecTBd271dKw",
"view_count": "1.2万次观看"
},
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "",
"playback_url": "https://rr4---sn-xnnv4pcg5-2v5e.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&olis=1&ofpcc=1&msp=1&odepv=1&id=39eef804167adc0d&ip=45.6.210.203&initcwndbps=1653750&mt=1787218178&oweuc=",
"published_time": "2周前",
"short_view_count": "1.4万次观看",
"thumbnail": "https://i.ytimg.com/vi/Oe74BBZ63A0/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC0MRou6LZ5i-AiNJ7ZkN0RbEcb7g",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Oe74BBZ63A0/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLA6L9B9n_ab4MxBqws16MbI-eG6OQ",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/Oe74BBZ63A0/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC0MRou6LZ5i-AiNJ7ZkN0RbEcb7g",
"width": 720
}
],
"title": "take a little time for yourself tonight… (minecraft music & ambience)",
"url": "https://www.youtube.com/watch?v=Oe74BBZ63A0",
"video_id": "Oe74BBZ63A0",
"view_count": "1.4万次观看"
},
"… 27 more items in the full response"
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a page of videos for one YouTube channel, plus basic details about the channel. It needs a channel_id, which starts with UC.
view_count across a channel's videos to see which uploads draw the most views.is_live flag.curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-videos" \
-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 | Purpose: Channel ID |
continuation_token | string | No | Purpose: Pagination token for next page |
country_code | string | No | Purpose: Set region code |
language_code | string | No | Purpose: Set language preference |
need_format | boolean | No | Purpose: Whether to return cleaned simplified data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"channel": {
"avatar": "https://yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3dd…",
"description": "Minecraft ambience and cozy visuals for sleep, relaxing, studying, etc 🌿\n\nHi, I’…",
"handle_url": "http://www.youtube.com/@CozyCraftYT",
"id": "UCeu6U67OzJhV1KwBansH3Dg",
"is_family_safe": true,
"is_verified": true,
"keywords": "Minecraft Ambience Rain Thunderstorm \"Relaxing Music\" C418 ASMR Sleep Study Rela…",
"name": "CozyCraft",
"rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCeu6U67OzJhV1KwBansH3Dg",
"url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg"
},
"continuation_token": "4qmFsgLd…",
"videos": [
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "https://i.ytimg.com/an_webp/eZ6TL5dtCLE/mqdefault_6s.webp?du=3000&sqp=CLGPptcG&r…",
"playback_url": "https://rr5---sn-a5m7lnly.googlevideo.com/initplayback?source=youtube&oeis=1&c=W…",
"published_time": "19小时前",
"short_view_count": "3026次观看",
"thumbnail": "https://i.ytimg.com/vi/eZ6TL5dtCLE/hq720_custom_2.jpg?sqp=CPyhptcG-oaymwEcCNAFEJ…",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/eZ6TL5dtCLE/hq720_custom_2.jpg?sqp=CPyhptcG-oaymwEcCOgCEM…",
"width": 360
}
],
"title": "you deserve a good night's sleep… (minecraft music & rain ambience)"
}
]
}
| Field | Meaning |
|---|---|
videos[].video_id / videos[].url | The video's ID and its full watch URL on YouTube. |
videos[].title | The video title. |
videos[].duration / videos[].duration_accessibility | Video length as HH:MM:SS, and a spoken-style length label such as 11小时. |
videos[].view_count / videos[].short_view_count | View count as display text, such as 3026次观看 or 1.9万次观看. These are text strings, not numbers. |
videos[].published_time | Relative publish time as display text, such as 7天前. It is not an exact date. |
videos[].is_live | true if the video is a live stream, false otherwise. |
videos[].thumbnail / videos[].thumbnails[] | Main thumbnail URL, and a list of thumbnail URLs with width and height. |
videos[].playback_url | A playback URL for the video. |
channel.name / channel.id / channel.handle_url | The channel's name, its channel ID, and its @handle page URL. |
continuation_token | Token to pass in the next request to get the next page of videos. |
continuation_token as the continuation_token parameter to get the next page.view_count and published_time come back in the language set by language_code. The example uses the default, so it returns Chinese text.channel_id.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send the selected channel_id, choose country_code and language_code, and use need_format true for the simplified shape. Omit continuation_token on the first request. This schema has no numeric page, page-size or sort parameter; do not add those fields or infer a guaranteed newest-first order from the first result.
Read videos as a list and channel as the associated channel object. Check channel.id against the requested ID and keep each video's video_id and source URL with that channel. A present empty videos list is different from a missing or malformed list. The displayed page is a sample, not an archive of every upload, a Shorts inventory or a channel analytics report.
Views and published_time are localized display text. Preserve the raw value and observation time; an abbreviated view string is approximate and a relative date is not an exact publication timestamp. The length fields duration and duration_accessibility describe a video's length, not its age. Missing views do not mean zero, and is_live says nothing about private access or permission to download a playback URL.
For a separately selected next page, use this route's returned continuation_token with the same channel and locale. Do not reuse a Channel Description advanced-info token or another channel's token. No next-page call was made for this revision. Stop after the first page before opening video details, comments, captions or media URLs; those are separate requests with their own costs and data boundaries.
Need profile counts and identity context? Use Channel Description independently, and keep unavailable metrics unknown.
Provide one selected channel_id and choose a profile record or a page of uploads. If the project is not connected, share the setup Skill, Markdown quickstart, chosen endpoint and desired output. Keep SANDBASE_API_KEY locally; the API tab uses POST /v1/api/ with Bearer authentication. Save a first response before choosing another channel, advanced metadata or another video page.
Validate completed SandBase status and an object at outputs[0].data. The simplified references put profile fields or videos directly there. Reject malformed shapes instead of returning an empty successful object; do not prefer an undocumented top-level output fallback. These public reads do not grant private analytics, revenue, account management or subscriber identities.
Pricing checked on 2026-11-08: both endpoints list $0.001 per call and eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility is not remaining allowance. Check current pricing before running. This revision used current schema/README and dated saved examples, with no new business request. The YouTube Python channel guide distinguishes those references from its historical search-to-channel experiment.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/channel-videos" \
-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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
channel_idstringbắt buộc**Purpose**: Channel ID
continuation_tokenstring**Purpose**: Pagination token for next page
country_codestring**Purpose**: Set region code
Mặc định: "US"
language_codestring**Purpose**: Set language preference
Mặc định: "zh-CN"
need_formatboolean**Purpose**: Whether to return cleaned simplified data
Mặc định: true
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"channel": {
"avatar": "https://yt3.googleusercontent.com/jwfgqnpI22YpsFDz25QtgITBf5tX7mFHqXWVhHoWzbk3ddAz9FabBDIx-eFaLrXlrhcpo5G0qBI=s900-c-k-c0x00ffffff-no-rj",
"description": "Minecraft ambience and cozy visuals for sleep, relaxing, studying, etc 🌿\n\nHi, I’m glad you’re here! I create peaceful Minecraft ambience to help you slow down, breathe, and feel at home. From cozy cabins in the forest to rainy lakeside docks, cherry blossom villages, and underwater reefs, I build and explore with the goal of bringing you comfort.\n\nIf you love cozy Minecraft builds, gentle rain, crackling fireplaces, and relaxing soundscapes, you’ll feel right at home here.\nHope you enjoy! -Cozy",
"handle_url": "http://www.youtube.com/@CozyCraftYT",
"id": "UCeu6U67OzJhV1KwBansH3Dg",
"is_family_safe": true,
"is_verified": true,
"keywords": "Minecraft Ambience Rain Thunderstorm \"Relaxing Music\" C418 ASMR Sleep Study Relax Thunder 1.21.8 CozyCraft \"minecraft music\" \"minecraft longplay\" \"heavy rain\" \"sleep sounds\" \"white noise\" \"minecraft ambiance\" \"minecraft update\" ambient background \"minecraft soundtrack\" \"minecraft playlist\" \"8 hours\" \"white noise\" peaceful campfire \"minecraft build\" \"minecraft shaders\" \"music for studying\" \"study mix\" \"lena raine\" \"cozy house build\" \"minecraft sounds\" \"minecraft mods\" \"sleep music\" nostalgia cozy",
"name": "CozyCraft",
"rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCeu6U67OzJhV1KwBansH3Dg",
"url": "https://www.youtube.com/channel/UCeu6U67OzJhV1KwBansH3Dg"
},
"continuation_token": "4qmFsgLdCBIYVUNldTZVNjdPekpoVjFLd0JhbnNIM0RnGsAIOGdhbkJocWtCbnFoQmpxZUJnb2tObUU0WVRrek5XWXRNREF3TUMweU5tTXlMVGczTmpNdE0yTXlPRFprTkRabFpUbGxFdk1GUVZreFZ6RkpaMlZ6V21sRU1sb3hjVU5CTm1ZdGNXOUdXRXhPUkVwcVJsWjJXR1JsVkUxdFpWbGpXRFZtU0dKUU5rcDZiM1ZqY0VWTFltOVpkbTFKZVMxT1ZUTTRlVzFDTm10cVVIZFdZMWxGYzBrMWRHZGtUR2t0VjNKNmRXODNSMmx4YUZoMWJFOW9WazVaYWxweldFRmhMV1k0UXpWSE5Fc3hlSFJvVUVOaUxYcDVWMloyVlRWNlRrSllaRk5CUVVVM1QyaE9PWFUxV2pWMWVFeHVjMmhuVkdKalJVMVVlazlSZEV4NWFsbHRiM2d5VURKV1dVWk9SR3hZU2pKaE5tOU5jMEp5Y0ZVeVNFZHFhbk0wTm1kVVVrOWtjVEJGWW1SeFkyeFJaSEZ0ZEdST2NuSXhWMDFuYmt4bk9VRkpTSEZQY0hSRlRsZFlYM0JsV1VacU9I…",
"videos": [
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "https://i.ytimg.com/an_webp/Y30C0VjUT78/mqdefault_6s.webp?du=3000&sqp=CJnymtQG&rs=AOn4CLC0GkeQG0MV_K1qG7x4w-PIiVtrBA",
"playback_url": "https://rr1---sn-xnnv4pcg5-2v5e.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&olis=1&ofpcc=1&msp=1&odepv=1&id=637d02d158d44fbf&ip=45.6.210.203&initcwndbps=1653750&mt=1787218178&oweuc=",
"published_time": "2天前",
"short_view_count": "7265次观看",
"thumbnail": "https://i.ytimg.com/vi/Y30C0VjUT78/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDkcC1j4iYVOllZ4KHj1oA4o3EQDA",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Y30C0VjUT78/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDZghakNPsygGemuQSyp7uDU7Ymag",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/Y30C0VjUT78/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDkcC1j4iYVOllZ4KHj1oA4o3EQDA",
"width": 720
}
],
"title": "you don't have to worry tonight… (minecraft music & ambience)",
"url": "https://www.youtube.com/watch?v=Y30C0VjUT78",
"video_id": "Y30C0VjUT78",
"view_count": "7265次观看"
},
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "",
"playback_url": "https://rr1---sn-xnnv4pcg5-2v5e.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&olis=1&ofpcc=1&msp=1&odepv=1&id=79c4c1776ef574ac&ip=45.6.210.203&initcwndbps=1653750&mt=1787218178&oweuc=",
"published_time": "9天前",
"short_view_count": "1.2万次观看",
"thumbnail": "https://i.ytimg.com/vi/ecTBd271dKw/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC5wH6xR7HpFiFSEf2kxtv-En58Lg",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/ecTBd271dKw/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLDBhi5_HcMYjXhOBTjgdS4sw7HgkQ",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/ecTBd271dKw/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC5wH6xR7HpFiFSEf2kxtv-En58Lg",
"width": 720
}
],
"title": "you've done enough for today, just rest… (minecraft music & ambience)",
"url": "https://www.youtube.com/watch?v=ecTBd271dKw",
"video_id": "ecTBd271dKw",
"view_count": "1.2万次观看"
},
{
"description": "",
"duration": "11:00:00",
"duration_accessibility": "11小时",
"is_live": false,
"is_verified": true,
"moving_thumbnail": "",
"playback_url": "https://rr4---sn-xnnv4pcg5-2v5e.googlevideo.com/initplayback?source=youtube&oeis=1&c=WEB&oad=3200&ovd=3200&oaad=11000&oavd=11000&ocs=700&oewis=1&oputc=1&olis=1&ofpcc=1&msp=1&odepv=1&id=39eef804167adc0d&ip=45.6.210.203&initcwndbps=1653750&mt=1787218178&oweuc=",
"published_time": "2周前",
"short_view_count": "1.4万次观看",
"thumbnail": "https://i.ytimg.com/vi/Oe74BBZ63A0/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC0MRou6LZ5i-AiNJ7ZkN0RbEcb7g",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Oe74BBZ63A0/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLA6L9B9n_ab4MxBqws16MbI-eG6OQ",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/Oe74BBZ63A0/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLC0MRou6LZ5i-AiNJ7ZkN0RbEcb7g",
"width": 720
}
],
"title": "take a little time for yourself tonight… (minecraft music & ambience)",
"url": "https://www.youtube.com/watch?v=Oe74BBZ63A0",
"video_id": "Oe74BBZ63A0",
"view_count": "1.4万次观看"
},
"… 27 more items in the full response"
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
YouTube Channel VideosAPI này YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
YouTube | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/youtube/web-v2/channel-videos với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: channel_id (string). Tùy chọn: continuation_token (string), country_code (string), language_code (string) và need_format (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. YouTube Channel Videos chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của YouTube.
Sơ đồ được chọn khai báo channel_id, continuation_token, country_code, language_code và need_format; không có tham số page, page-size hay sort dạng số. Hãy kiểm tra danh sách videos được trả về thay vì giả định kích thước trang cố định hoặc thứ tự được đảm bảo.
Không có sự thay thế như vậy được tài liệu hóa. Channel Description dùng một token cho metadata nâng cao, còn Channel Videos trả về token phân trang riêng. Giữ nguyên route, channel và locale được chọn cùng với mỗi token; bản sửa này không thực thi request continuation.
Chúng là các giá trị hiển thị đã bản địa hóa trong các tham chiếu này. Giữ nguyên văn bản thô, số lượng ước lượng và thời điểm quan sát; thời gian xuất bản tương đối không phải dấu thời gian chính xác. Một trang trả về không phải toàn bộ kho lưu trữ của kênh, phân tích riêng tư hay báo cáo tăng trưởng lịch sử.