channel_idstringbắt buộc
Channel ID
https://api.sandbase.ai/v1/api/youtube/web/search-channelSearches videos within a specific YouTube channel using a keyword query. Returns matching video details including title, view count, post date, and video ID.
[
{
"data": {
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"continuation_token": "4qmFsgJlEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaRDhnWXJHaW1hQVNZS0pEWmlPRGhrWWpVMUxUQXdNREF0TWpjMVppMWlNR0ZqTFRFMFl6RTBaV1kxTXpCak9BJTNEJTNEWgNBTUQ%3D",
"country": "US",
"lang": "en",
"number_of_videos": 28,
"query": "AMD",
"timezone": "America/New_York",
"videos": [
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "Thanks to AMD for sponsoring this series and sending us a couple of ROG Allys to give away! Check what the ROG Ally has to offer below:\nhttps://lmg.gg/AMD-ROG-ALLY\n\nCheck out the link below to enter to win one of the two ROG Allys that we’re giving away:\nhttps://gleam.io/d3Xsi/amd-asus-rog-a...\n\nWhat do you get when you cross Linus with HR? An AMD Tech Upgrade featuring cute bunnies, and hopefully not our Chief Vision Officer getting fired.\n\nDiscuss on the forum: https://linustechtips.com/topic/15411...\n\nCheck Out the Products from Ariana’s Ultimate Upgrade! Thanks AMD!\nhttps://lmg.gg/amdarian…",
"is_live_content": null,
"keywords": [],
"number_of_views": 3903233,
"published_time": "2 years ago",
"thumbnails": [
{
"height": 360,
"url": "https://i.ytimg.com/vi/oTYwd9OjFRk/hqdefault.jpg",
"width": 480
}
],
"title": "Don't Get in Trouble with HR Challenge (HARD) - AMD $5,000 Ultimate Tech Upgrade",
"type": "NORMAL",
"video_id": "oTYwd9OjFRk",
"video_length": "28 minutes"
},
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "Pick up the Massdrop X Sennheiser HD 6XX Headphones at https://dro.ps/ltt-bf\n\nGo to https://privacy.com/linus to get $5 off your first purchase!\n\nAfter the Ryzen 9 3950X wowed us, AMD’s dropping yet another beastly CPU: The 32-core Threadripper 3970X and 24-core 3960X. Let’s see just how well they rip threads…\n\nWatch our review of the Core i9 10980XE: https://www.youtube.com/watch?v=vuaiq...\n\nBuy a Threadripper 3970X:\nOn Amazon (PAID LINK): TBD\nOn Newegg (PAID LINK): https://lmg.gg/8KVT4\n\nBuy a Threadripper 3960X:\nOn Amazon (PAID LINK): TBD\nOn Newegg (PAID LINK): https://lmg.gg/8KVTZ\n\nBuy a T…",
"is_live_content": null,
"keywords": [],
"number_of_views": 2499740,
"published_time": "6 years ago",
"thumbnails": [
{
"height": 360,
"url": "https://i.ytimg.com/vi/a8apEJ5Zt2s/hqdefault.jpg",
"width": 480
}
],
"title": "AMD clearly isn’t tired of winning yet… - Threadripper 3970X/3960X Review",
"type": "NORMAL",
"video_id": "a8apEJ5Zt2s",
"video_length": "9 minutes, 46 seconds"
},
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "If you want to skip the hassle of researching, buying, and building a gaming PC for yourself, buy one from one of Jawa’s Verified Sellers! Visit https://jawa.link/LTTJan26 to get started.\n\nAMD is still king of the castle with their new Ryzen 7 9850X3D gaming CPU, but that doesn't always mean it's the right chip to buy. Now hurry up and release Zen 6.\n\nDiscuss on the forum: https://linustechtips.com/topic/16310...\n\nBuy an AMD Ryzen 7 9850X3D: https://geni.us/nzPT99d\nBuy an AMD Ryzen 7 9800X3D: https://geni.us/ARvg\n\nCheck out our Channel Partners:\nSecretlab - Grab a TITAN Evo ergonomic gaming ch…",
"is_live_content": null,
"keywords": [],
"number_of_views": 652937,
"published_time": "6 months ago",
"thumbnails": [
{
"height": 360,
"url": "https://i.ytimg.com/vi/4Ps-JDyimJw/hqdefault.jpg",
"width": 480
}
],
"title": "The Gaming King CPU - AMD Ryzen 7 9850X3D Review",
"type": "NORMAL",
"video_id": "4Ps-JDyimJw",
"video_length": "8 minutes, 37 seconds"
},
"… 25 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 videos from one YouTube channel that match a keyword. You send a channel_id and a search_query. Each result includes the title, view count, relative post time, length, and video_id.
video_id values from a channel search, then pass them to a video details API.curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/search-channel" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw", "search_query": "AMD"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel_id | string | Yes | Channel ID |
search_query | string | Yes | Search keyword. |
continuation_token | string | No | Token to continue fetching search results. Default is None. |
country_code | string | No | Country code, default is us. |
language_code | string | No | Language code, default is en. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"continuation_token": "4qmFsgJl…",
"country": "US",
"lang": "en",
"number_of_videos": 28,
"query": "AMD",
"timezone": "America/New_York",
"videos": [
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "Thanks to AMD for sponsoring this series and being a great partner! Check out th…",
"is_live_content": null,
"keywords": [],
"number_of_views": 2165933,
"published_time": "1 year ago",
"thumbnails": [
{
"height": 94,
"url": "https://i.ytimg.com/vi/GIqnvU1tgPg/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDgg…",
"width": 168
}
],
"title": "I made her Upgrade her Husband's PC - AMD $5000 Ultimate Tech Upgrade",
"type": "NORMAL",
"video_id": "GIqnvU1tgPg"
}
]
}
| Field | Meaning |
|---|---|
videos[].video_id | The YouTube ID of the matching video. |
videos[].title | Title of the video. |
videos[].number_of_views | View count as a number. |
videos[].published_time | Relative post time as text, such as 1 year ago. It is not an exact date. |
videos[].video_length | Video duration as text, such as 25:45. |
videos[].description | Start of the video description. Long text is cut off. |
videos[].thumbnails[].url / videos[].thumbnails[].width / videos[].thumbnails[].height | Thumbnail image links with their pixel sizes. Each video has several sizes. |
videos[].author / videos[].channel_id | Name and ID of the channel that posted the video. |
number_of_videos | Count of videos in this response. |
continuation_token | Token that fetches the next page of results for the same search. |
channel_id from YouTube Channel ID Lookup or YouTube Channel ID from URL (V2). The example ID starts with UC.continuation_token as continuation_token in the next request with the same other parameters.category, is_live_content and keywords were empty (null or []) in the example response.country_code defaults to us and language_code defaults to en. The response shows them as country and lang.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
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/search-channel" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"country_code": "us",
"search_query": "AMD",
"language_code": "en"
}'Đặ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ộcChannel ID
search_querystringbắt buộcSearch keyword.
continuation_tokenstringToken to continue fetching search results. Default is None.
country_codestringCountry code, default is us.
Mặc định: "us"
language_codestringLanguage code, default is en.
Mặc định: "en"
Đâ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_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"continuation_token": "4qmFsgJlEhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncaRDhnWXJHaW1hQVNZS0pEWmlPRGhrWWpVMUxUQXdNREF0TWpjMVppMWlNR0ZqTFRFMFl6RTBaV1kxTXpCak9BJTNEJTNEWgNBTUQ%3D",
"country": "US",
"lang": "en",
"number_of_videos": 28,
"query": "AMD",
"timezone": "America/New_York",
"videos": [
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "Thanks to AMD for sponsoring this series and sending us a couple of ROG Allys to give away! Check what the ROG Ally has to offer below:\nhttps://lmg.gg/AMD-ROG-ALLY\n\nCheck out the link below to enter to win one of the two ROG Allys that we’re giving away:\nhttps://gleam.io/d3Xsi/amd-asus-rog-a...\n\nWhat do you get when you cross Linus with HR? An AMD Tech Upgrade featuring cute bunnies, and hopefully not our Chief Vision Officer getting fired.\n\nDiscuss on the forum: https://linustechtips.com/topic/15411...\n\nCheck Out the Products from Ariana’s Ultimate Upgrade! Thanks AMD!\nhttps://lmg.gg/amdarian…",
"is_live_content": null,
"keywords": [],
"number_of_views": 3903233,
"published_time": "2 years ago",
"thumbnails": [
{
"height": 360,
"url": "https://i.ytimg.com/vi/oTYwd9OjFRk/hqdefault.jpg",
"width": 480
}
],
"title": "Don't Get in Trouble with HR Challenge (HARD) - AMD $5,000 Ultimate Tech Upgrade",
"type": "NORMAL",
"video_id": "oTYwd9OjFRk",
"video_length": "28 minutes"
},
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "Pick up the Massdrop X Sennheiser HD 6XX Headphones at https://dro.ps/ltt-bf\n\nGo to https://privacy.com/linus to get $5 off your first purchase!\n\nAfter the Ryzen 9 3950X wowed us, AMD’s dropping yet another beastly CPU: The 32-core Threadripper 3970X and 24-core 3960X. Let’s see just how well they rip threads…\n\nWatch our review of the Core i9 10980XE: https://www.youtube.com/watch?v=vuaiq...\n\nBuy a Threadripper 3970X:\nOn Amazon (PAID LINK): TBD\nOn Newegg (PAID LINK): https://lmg.gg/8KVT4\n\nBuy a Threadripper 3960X:\nOn Amazon (PAID LINK): TBD\nOn Newegg (PAID LINK): https://lmg.gg/8KVTZ\n\nBuy a T…",
"is_live_content": null,
"keywords": [],
"number_of_views": 2499740,
"published_time": "6 years ago",
"thumbnails": [
{
"height": 360,
"url": "https://i.ytimg.com/vi/a8apEJ5Zt2s/hqdefault.jpg",
"width": 480
}
],
"title": "AMD clearly isn’t tired of winning yet… - Threadripper 3970X/3960X Review",
"type": "NORMAL",
"video_id": "a8apEJ5Zt2s",
"video_length": "9 minutes, 46 seconds"
},
{
"author": "Linus Tech Tips",
"category": null,
"channel_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
"description": "If you want to skip the hassle of researching, buying, and building a gaming PC for yourself, buy one from one of Jawa’s Verified Sellers! Visit https://jawa.link/LTTJan26 to get started.\n\nAMD is still king of the castle with their new Ryzen 7 9850X3D gaming CPU, but that doesn't always mean it's the right chip to buy. Now hurry up and release Zen 6.\n\nDiscuss on the forum: https://linustechtips.com/topic/16310...\n\nBuy an AMD Ryzen 7 9850X3D: https://geni.us/nzPT99d\nBuy an AMD Ryzen 7 9800X3D: https://geni.us/ARvg\n\nCheck out our Channel Partners:\nSecretlab - Grab a TITAN Evo ergonomic gaming ch…",
"is_live_content": null,
"keywords": [],
"number_of_views": 652937,
"published_time": "6 months ago",
"thumbnails": [
{
"height": 360,
"url": "https://i.ytimg.com/vi/4Ps-JDyimJw/hqdefault.jpg",
"width": 480
}
],
"title": "The Gaming King CPU - AMD Ryzen 7 9850X3D Review",
"type": "NORMAL",
"video_id": "4Ps-JDyimJw",
"video_length": "8 minutes, 37 seconds"
},
"… 25 more items in the full response"
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
YouTube Channel Video SearchAPI 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/search-channel 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, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: channel_id (string) và search_query (string). Tùy chọn: continuation_token (string), country_code (string) và language_code (string). 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 Video Search 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.