search_querystring필수
Search keyword.
https://api.sandbase.ai/v1/api/youtube/web/search-videoSearch YouTube videos by keyword and get video ID, title, channel, views, length and publish time, with country, language and upload-date filters and continuation-token pagination.
[
{
"data": {
"continuation_token": "EpsFEglBSSBhZ2VudHMajANFZ1FJQkJBQlNCU0NBUXRrY2xONWRHbEpaVFpLWjRJQkMxUk1PRlkwTVVWaE5tOU5nZ0VMUW0wNE5FSkJkRTltVVhlQ0FRdEZlbEZCWjI1cVZIRXlhNElCQ3pWd0xYTnhPSFl6VDFoM2dnRUxXblpFYTBwelMwVTRNR3VDQVF0TlRrNW1ZWFJmVVZBd1JZSUJDelpaYmt4Q01GaGlWRzVKZ2dFTGJqZEhiRFJNT1hCZmJtLUNBUXQyU2tWNU0yNVFNbDlET0lJQkMxRlVZMXBRU1Mxbk4ybHpnZ0VMU0ZGWWFUUnpibEF6TmttQ0FRczFYMDQ0TkhReGNsVlZNSUlCQzFGNE1HWkRjWEJyUW5WemdnRUxNRU0yZUZsMlVXaHFkMUdDQVF0eFdVNXpPREJHUzBsV1k0SUJDMnhsY3pKNFJuWlpOVlkwZ2dFTE1YcFhObFYxTWpGUk5EQ0NBUXRRZGtkeU4zUnRNRWhsYzRJQkMwZDNYMmh1UkRkdE1EQk5zZ0VHQ2dRSUZCQUOSAv0BL3NlYXJjaD9vcT1BSSBhZ2VudHMmZ3NfbD15b3V0dWJl…",
"country": "US",
"estimated_results": 1228716,
"lang": "en",
"number_of_videos": 20,
"query": "AI agents",
"timezone": "America/New_York",
"videos": [
{
"author": "Jake One Page",
"category": null,
"channel_id": "UCyNtWXc9TcDYnDkFj-OTwyg",
"description": "Claim your FREE $499 Masterclass: Build & Sell Apps, AI Agents & Websites with AI https://mikeyno-code.com/Skool-base44 ...",
"is_live_content": null,
"keywords": [],
"number_of_views": 4532,
"published_time": "12 hours ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/drSytiIe6Jg/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLCJT2vUgFOF89IEpK7utza4oAO-Qw",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/drSytiIe6Jg/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLBTmIo89x5xD5WVAEGsRtWEWbiE6g",
"width": 720
}
],
"title": "The 6 Claude AI Agents to Get You Ahead of 99% of People",
"type": "NORMAL",
"video_id": "drSytiIe6Jg",
"video_length": "40:37"
},
{
"author": "Sandeep Swadia",
"category": null,
"channel_id": "UC4ZVkG3RQPzvZk7alIVjcCg",
"description": "Join my free newsletter: https://sandeepswadia.beehiiv.com/ Take us on your morning run or commute, follow us on Spotify: ...",
"is_live_content": null,
"keywords": [],
"number_of_views": 676977,
"published_time": "2 weeks ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/TL8V41Ea6oM/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLDnbcj85JpzOWNho3jln9Ny2swnTg",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/TL8V41Ea6oM/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLDdsq1yD_GsWFVG_3O3vX7Xmnugvg",
"width": 720
}
],
"title": "4 AI Agents To Automate 99% Of Your Life",
"type": "NORMAL",
"video_id": "TL8V41Ea6oM",
"video_length": "20:47"
},
{
"author": "Dan Martell",
"category": null,
"channel_id": "UCA-mWX9CvCTVFWRMb9bKc9w",
"description": "Get Your FREE AI Company Operating System here: https://go.danmartell.com/3SXCfgk Are you building an AI software ...",
"is_live_content": null,
"keywords": [],
"number_of_views": 332053,
"published_time": "4 weeks ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Bm84BAtOfQw/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLAyqa09AO7JqxVrlhAvyH4UHYbfJQ",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/Bm84BAtOfQw/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLB4GmM2ueLj9-ZKhotvmrdcXJbtzw",
"width": 720
}
],
"title": "You’re Not Behind (Yet): How to Build Your First AI Agent (Full Guide)",
"type": "NORMAL",
"video_id": "Bm84BAtOfQw",
"video_length": "22:25"
},
"… 17 more items in the full response"
]
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
This API searches YouTube videos by keyword. It returns a list of matching videos with ID, title, channel, view count, length and publish time. You only need search_query; country, language and time filters are optional.
order_by set to today or last_hour.channel_id values from search results to find creators who cover a subject, for sponsorship research.curl -X POST "https://api.sandbase.ai/v1/api/youtube/web/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"search_query": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
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. |
order_by | string | No | Order by, default is this_month, optional values are this_week, this_month, this_year, last_hour, today. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"continuation_token": "EpUFEgZP…",
"country": "US",
"estimated_results": 3200682,
"lang": "en",
"number_of_videos": 20,
"query": "OpenAI",
"timezone": "America/New_York",
"videos": [
{
"author": "Theo - t3․gg",
"category": null,
"channel_id": "UCbRP3c757lWg9M-U7TyEkXA",
"description": "Just a month after their reduction, OpenAI is doubling the limits of their plans…",
"is_live_content": null,
"keywords": [],
"number_of_views": 19914,
"published_time": "2 hours ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Hq2c7pww1Ds/hq720_custom_3.jpg?sqp=CPyhptcG-oaymwEcCOgCEM…",
"width": 360
}
],
"title": "OpenAI is getting desperate",
"type": "NORMAL",
"video_id": "Hq2c7pww1Ds"
}
]
}
| Field | Meaning |
|---|---|
videos[].video_id | The YouTube video ID. Use it to build a watch link or to call other video APIs. |
videos[].title | The video title as shown in search results. |
videos[].author / videos[].channel_id | The channel name and the channel ID that published the video. |
videos[].number_of_views | The view count of the video as a number. |
videos[].published_time | Relative publish time as text, such as 2 hours ago or 3 days ago. It is not a timestamp. |
videos[].video_length | The video length as text, such as 15:50. |
videos[].description | A short description snippet of the video. It can be an empty string. |
videos[].thumbnails[].url | Thumbnail image URL. Each entry also has width and height. |
estimated_results | The estimated total number of results for the query. |
continuation_token | Token that you pass back in the next request to get the next page of results. |
order_by to one of last_hour, today, this_week, this_month (default) or this_year.continuation_token value from the last response.category, is_live_content and keywords came back as null or empty in this response, so do not rely on them.channel_id from the results to YouTube Channel Information to get details about the channel.$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/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_by": "this_month",
"country_code": "us",
"search_query": "AI agents",
"language_code": "en"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
search_querystring필수Search keyword.
continuation_tokenstringToken to continue fetching search results. Default is None.
country_codestringCountry code, default is us.
기본값: "us"
language_codestringLanguage code, default is en.
기본값: "en"
order_bystringOrder by, default is this_month, optional values are this_week, this_month, this_year, last_hour, today.
기본값: "this_month"
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"continuation_token": "EpsFEglBSSBhZ2VudHMajANFZ1FJQkJBQlNCU0NBUXRrY2xONWRHbEpaVFpLWjRJQkMxUk1PRlkwTVVWaE5tOU5nZ0VMUW0wNE5FSkJkRTltVVhlQ0FRdEZlbEZCWjI1cVZIRXlhNElCQ3pWd0xYTnhPSFl6VDFoM2dnRUxXblpFYTBwelMwVTRNR3VDQVF0TlRrNW1ZWFJmVVZBd1JZSUJDelpaYmt4Q01GaGlWRzVKZ2dFTGJqZEhiRFJNT1hCZmJtLUNBUXQyU2tWNU0yNVFNbDlET0lJQkMxRlVZMXBRU1Mxbk4ybHpnZ0VMU0ZGWWFUUnpibEF6TmttQ0FRczFYMDQ0TkhReGNsVlZNSUlCQzFGNE1HWkRjWEJyUW5WemdnRUxNRU0yZUZsMlVXaHFkMUdDQVF0eFdVNXpPREJHUzBsV1k0SUJDMnhsY3pKNFJuWlpOVlkwZ2dFTE1YcFhObFYxTWpGUk5EQ0NBUXRRZGtkeU4zUnRNRWhsYzRJQkMwZDNYMmh1UkRkdE1EQk5zZ0VHQ2dRSUZCQUOSAv0BL3NlYXJjaD9vcT1BSSBhZ2VudHMmZ3NfbD15b3V0dWJl…",
"country": "US",
"estimated_results": 1228716,
"lang": "en",
"number_of_videos": 20,
"query": "AI agents",
"timezone": "America/New_York",
"videos": [
{
"author": "Jake One Page",
"category": null,
"channel_id": "UCyNtWXc9TcDYnDkFj-OTwyg",
"description": "Claim your FREE $499 Masterclass: Build & Sell Apps, AI Agents & Websites with AI https://mikeyno-code.com/Skool-base44 ...",
"is_live_content": null,
"keywords": [],
"number_of_views": 4532,
"published_time": "12 hours ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/drSytiIe6Jg/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLCJT2vUgFOF89IEpK7utza4oAO-Qw",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/drSytiIe6Jg/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLBTmIo89x5xD5WVAEGsRtWEWbiE6g",
"width": 720
}
],
"title": "The 6 Claude AI Agents to Get You Ahead of 99% of People",
"type": "NORMAL",
"video_id": "drSytiIe6Jg",
"video_length": "40:37"
},
{
"author": "Sandeep Swadia",
"category": null,
"channel_id": "UC4ZVkG3RQPzvZk7alIVjcCg",
"description": "Join my free newsletter: https://sandeepswadia.beehiiv.com/ Take us on your morning run or commute, follow us on Spotify: ...",
"is_live_content": null,
"keywords": [],
"number_of_views": 676977,
"published_time": "2 weeks ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/TL8V41Ea6oM/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLDnbcj85JpzOWNho3jln9Ny2swnTg",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/TL8V41Ea6oM/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLDdsq1yD_GsWFVG_3O3vX7Xmnugvg",
"width": 720
}
],
"title": "4 AI Agents To Automate 99% Of Your Life",
"type": "NORMAL",
"video_id": "TL8V41Ea6oM",
"video_length": "20:47"
},
{
"author": "Dan Martell",
"category": null,
"channel_id": "UCA-mWX9CvCTVFWRMb9bKc9w",
"description": "Get Your FREE AI Company Operating System here: https://go.danmartell.com/3SXCfgk Are you building an AI software ...",
"is_live_content": null,
"keywords": [],
"number_of_views": 332053,
"published_time": "4 weeks ago",
"thumbnails": [
{
"height": 202,
"url": "https://i.ytimg.com/vi/Bm84BAtOfQw/hq720.jpg?sqp=-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLAyqa09AO7JqxVrlhAvyH4UHYbfJQ",
"width": 360
},
{
"height": 404,
"url": "https://i.ytimg.com/vi/Bm84BAtOfQw/hq720.jpg?sqp=-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC8xg=&rs=AOn4CLB4GmM2ueLj9-ZKhotvmrdcXJbtzw",
"width": 720
}
],
"title": "You’re Not Behind (Yet): How to Build Your First AI Agent (Full Guide)",
"type": "NORMAL",
"video_id": "Bm84BAtOfQw",
"video_length": "22:25"
},
"… 17 more items in the full response"
]
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
YouTube Video Search이 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/search-video에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.
필수: search_query (string). 선택: continuation_token (string), country_code (string), language_code (string) 및 order_by (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. YouTube Video Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. YouTube API 액세스를 별도로 신청할 필요는 없습니다.