continuation_tokenany
Pagination token (from previous response)
https://api.sandbase.ai/v1/api/youtube/web-v2/shorts-search-v2Searches for YouTube Shorts matching a query keyword. Results can be filtered by upload date and sorted by relevance, upload date, view count, or rating.
[
{
"data": {
"continuation_token": "Eq0DEgZPcGVuQUkaogNTQlNDQVJoVlExaGFRMHBNWkVKRE1EbDRlRWRhTm1kalpISmpOa0dDQVFzM1ZFZGhiV3BSWVdoWGE0SUJDMkpmTkRSU1lUaHRjMnh6Z2dFTFMweDNNRUZaTFdKelZuT0NBUXM0V0ZOeFpVVjJNMTlPYTRJQkN6WldkMGxZYWtacU5sbFJnZ0VMVnkxSWFFMVZaVGxvVDJlQ0FRdFBaMEppT1dsNU9HOHhaNElCQzJGV1psWmZTMjloUmt4RmdnRUxSMmhKU25NMGVtSklNRy1DQVF0NlJIUjJjbTFsTFV3dE1JSUJDMDh4U2sxYWRtZEdlRXRGZ2dFTFYzRTBOWEoyVUVkT1NIT0NBUXRWWVdWWFNrdGZkbll0V1lJQkMxaDFjVTlyVVhKMFlsOUpnZ0VMTFV4dVNHd3hUR1I1VmppQ0FRczFUVmRVWDJSdmJ6WTRhNElCQzFJMFpIWTNVMjV3T0VaVmdnRUxTbEU1TjBkcFJIZFFlR09DQVF0T1RsYzJabmcxYjB4RWI3SUJCZ29FQ0JnUUF1b0JCQWdDRUJrJTNEGIHg6BgiC3NlYXJjaC1mZWVk",
"keyword": "OpenAI",
"shorts": [
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/mtK1nsXUqLs/oar2.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4qpAxMIARUAAAAAJQAAyEI9AICiQ3gB&rs=AOn4CLC-I2335wZotWaMq28SDrfkx5YTHA&usqp=CCk",
"width": 405
},
{
"height": 608,
"url": "https://i.ytimg.com/vi/mtK1nsXUqLs/oar2.jpg?sqp=-oaymwEnCJUDEOAESFqQAgHyq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gByAEB&rs=AOn4CLDj_dqXFpD1JDRe36rRBodpXcnrUw&usqp=CCk",
"width": 405
}
],
"title": "OpenAI and Anthropic's revenue race: Here's what to know",
"url": "https://www.youtube.com/shorts/mtK1nsXUqLs",
"video_id": "mtK1nsXUqLs",
"view_count": "2.7K views"
},
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/OK0YhF3NMpQ/hq720.jpg?sqp=-oaymwEkCJUDENAFSFryq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gB0AEB&rs=AOn4CLBtpyfp-E7K9Wq4RBygYTeqQpFV5Q",
"width": 405
}
],
"title": "OpenAI's CEO on What Kids Should Be Studying",
"url": "https://www.youtube.com/shorts/OK0YhF3NMpQ",
"video_id": "OK0YhF3NMpQ",
"view_count": "5.7M views"
},
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/8t3XY7ED6NY/oar2.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4qpAxMIARUAAAAAJQAAyEI9AICiQ3gB&rs=AOn4CLA6ZoqyNK8LCOLyQziAiFEnGS5Yjw&usqp=CCk",
"width": 405
},
{
"height": 608,
"url": "https://i.ytimg.com/vi/8t3XY7ED6NY/oar2.jpg?sqp=-oaymwEnCJUDEOAESFqQAgHyq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gByAEB&rs=AOn4CLCj8XiphYEmjCGwZxTAzjBhx9KooQ&usqp=CCk",
"width": 405
}
],
"title": "The OpenAI Model That Stunned This Researcher",
"url": "https://www.youtube.com/shorts/8t3XY7ED6NY",
"video_id": "8t3XY7ED6NY",
"view_count": "357 views"
},
"… 22 more items in the full response"
]
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Returns a list of YouTube Shorts that match a search keyword. Each result has a title, video ID, Shorts URL, view count text, and thumbnails. You can filter by upload date and sort the results.
upload_date filter.view_count or rating to see which ones perform best.curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/shorts-search-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "coding tips"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
continuation_token | string | No | Pagination token (from previous response) |
keyword | string | No | Search keyword (required for first request) |
sort_by | string | No | Sort by - relevance/upload_date/view_count/rating |
upload_date | string | No | Upload date filter - last_hour/today/this_week/this_month/this_year |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"continuation_token": "Eo4DEgtj…",
"keyword": "coding tips",
"shorts": [
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/NGlX-1jhYJE/oardefault.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4…",
"width": 405
}
],
"title": "How to Learn to Code",
"url": "https://www.youtube.com/shorts/NGlX-1jhYJE",
"video_id": "NGlX-1jhYJE",
"view_count": "9.3M views"
}
]
}
| Field | Meaning |
|---|---|
shorts[] | List of Shorts that match the keyword. |
shorts[].video_id | ID of the Short. It is also the last part of the url value. |
shorts[].title | Title of the Short. It can include hashtags. |
shorts[].url | Link to the Short on YouTube. |
shorts[].view_count | View count as display text, for example 9.3M views. It is a string, not a number. |
shorts[].thumbnails[] | Thumbnail images. Each one has a url, width, and height. |
shorts[].author / shorts[].channel_id / shorts[].published_time | Channel name, channel ID, and publish time. These were empty strings in this response. |
continuation_token | Token for the next page of results. |
keyword | The search keyword that the response was run for. |
keyword on the first request. For the next page, send the continuation_token from the previous response.sort_by accepts relevance, upload_date, view_count, or rating. upload_date accepts last_hour, today, this_week, this_month, or this_year.author, channel_id, and published_time can come back empty. Call YouTube Video Information (V2) with the video_id to get more details about a Short.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send keyword on the first request. The schema accepts optional sort_by choices relevance, upload_date, view_count or rating, and upload_date filters last_hour, today, this_week, this_month or this_year. Choose filters deliberately and omit continuation_token initially. There is no numeric page-size field. An empty filtered page is a result to record, not permission to silently broaden the query.
Read shorts as a list. Search references use video_id, url, title and view_count. The selected saved reference includes empty author, channel_id and published_time values, so a hit may not support channel attribution or a publication date. Preserve those unknown values instead of inferring a channel from a title, guessing age or launching detail requests for every hit.
View counts such as 9.3M views are display strings, not exact numbers. Preserve raw text and any explicitly labeled approximation. Sorting by displayed views finds high-view observations; it does not establish current growth, velocity, causation or a trend. Without comparable observation times and publication context, do not calculate an invented views-per-day score.
Keep keyword and filters with the returned continuation_token. The tutorial's October 25 historical test found that a token-only second request failed while keyword plus token succeeded. That dated observation is not a fresh test of today's route, but it is a reason to retain query context rather than discard it. Never copy the truncated README token or reuse a channel-Shorts token here. This first task stops after one page and does not enrich, score or summarize through another model automatically.
Already know the creator? Use Channel Shorts independently for a channel-scoped sample.
Choose one keyword or one known channel before running. A connected agent needs that input, the selected endpoint and the result you want. For a new project, share the setup Skill, Markdown quickstart and your task. Keep SANDBASE_API_KEY locally and use POST /v1/api/ with Bearer authentication. Review one response before starting more pages, enrichment or scheduled comparisons.
Check completed SandBase status and an object at outputs[0].data, then require a shorts list for the selected simplified reference. A present empty list is a valid observation; missing or malformed data is an error. Do not silently turn provider failure into an empty result or retry the same business request automatically. Search and channel responses use different field names, so keep the source route with each saved record.
Pricing checked on 2026-11-08: Shorts Search lists $0.002 per call and Channel Shorts $0.001 per call. Both show eligibility for 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility does not measure remaining allowance. Check current pricing before execution. No new business call was made for this revision. The YouTube Shorts Python guide retains its dated October experiment separately from current reference checks.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/shorts-search-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "OpenAI"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
continuation_tokenanyPagination token (from previous response)
keywordanySearch keyword (required for first request)
sort_byanySort by - relevance/upload_date/view_count/rating
upload_dateanyUpload date filter - last_hour/today/this_week/this_month/this_year
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"continuation_token": "Eq0DEgZPcGVuQUkaogNTQlNDQVJoVlExaGFRMHBNWkVKRE1EbDRlRWRhTm1kalpISmpOa0dDQVFzM1ZFZGhiV3BSWVdoWGE0SUJDMkpmTkRSU1lUaHRjMnh6Z2dFTFMweDNNRUZaTFdKelZuT0NBUXM0V0ZOeFpVVjJNMTlPYTRJQkN6WldkMGxZYWtacU5sbFJnZ0VMVnkxSWFFMVZaVGxvVDJlQ0FRdFBaMEppT1dsNU9HOHhaNElCQzJGV1psWmZTMjloUmt4RmdnRUxSMmhKU25NMGVtSklNRy1DQVF0NlJIUjJjbTFsTFV3dE1JSUJDMDh4U2sxYWRtZEdlRXRGZ2dFTFYzRTBOWEoyVUVkT1NIT0NBUXRWWVdWWFNrdGZkbll0V1lJQkMxaDFjVTlyVVhKMFlsOUpnZ0VMTFV4dVNHd3hUR1I1VmppQ0FRczFUVmRVWDJSdmJ6WTRhNElCQzFJMFpIWTNVMjV3T0VaVmdnRUxTbEU1TjBkcFJIZFFlR09DQVF0T1RsYzJabmcxYjB4RWI3SUJCZ29FQ0JnUUF1b0JCQWdDRUJrJTNEGIHg6BgiC3NlYXJjaC1mZWVk",
"keyword": "OpenAI",
"shorts": [
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/mtK1nsXUqLs/oar2.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4qpAxMIARUAAAAAJQAAyEI9AICiQ3gB&rs=AOn4CLC-I2335wZotWaMq28SDrfkx5YTHA&usqp=CCk",
"width": 405
},
{
"height": 608,
"url": "https://i.ytimg.com/vi/mtK1nsXUqLs/oar2.jpg?sqp=-oaymwEnCJUDEOAESFqQAgHyq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gByAEB&rs=AOn4CLDj_dqXFpD1JDRe36rRBodpXcnrUw&usqp=CCk",
"width": 405
}
],
"title": "OpenAI and Anthropic's revenue race: Here's what to know",
"url": "https://www.youtube.com/shorts/mtK1nsXUqLs",
"video_id": "mtK1nsXUqLs",
"view_count": "2.7K views"
},
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/OK0YhF3NMpQ/hq720.jpg?sqp=-oaymwEkCJUDENAFSFryq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gB0AEB&rs=AOn4CLBtpyfp-E7K9Wq4RBygYTeqQpFV5Q",
"width": 405
}
],
"title": "OpenAI's CEO on What Kids Should Be Studying",
"url": "https://www.youtube.com/shorts/OK0YhF3NMpQ",
"video_id": "OK0YhF3NMpQ",
"view_count": "5.7M views"
},
{
"author": "",
"channel_id": "",
"published_time": "",
"thumbnails": [
{
"height": 720,
"url": "https://i.ytimg.com/vi/8t3XY7ED6NY/oar2.jpg?sqp=-oaymwEkCJUDENAFSFqQAgHyq4qpAxMIARUAAAAAJQAAyEI9AICiQ3gB&rs=AOn4CLA6ZoqyNK8LCOLyQziAiFEnGS5Yjw&usqp=CCk",
"width": 405
},
{
"height": 608,
"url": "https://i.ytimg.com/vi/8t3XY7ED6NY/oar2.jpg?sqp=-oaymwEnCJUDEOAESFqQAgHyq4qpAxYIARUAAAAAJQAAyEI9AICiQ3gByAEB&rs=AOn4CLCj8XiphYEmjCGwZxTAzjBhx9KooQ&usqp=CCk",
"width": 405
}
],
"title": "The OpenAI Model That Stunned This Researcher",
"url": "https://www.youtube.com/shorts/8t3XY7ED6NY",
"video_id": "8t3XY7ED6NY",
"view_count": "357 views"
},
"… 22 more items in the full response"
]
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
YouTube | $0.002 / 호출 | 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/shorts-search-v2에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.002. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.
첫 Shorts 검색 요청에는 keyword를 보내고, 의도적으로 선택한 sort_by 및 upload_date 필터를 함께 사용하세요. 선택 사항인 스키마는 이후의 continuation_token 요청도 포함합니다. 첫 본문을 비워 두는 것은 검색 워크플로가 아닙니다. 별도로 선택한 continuation에도 keyword와 필터를 유지하세요.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. YouTube Shorts Search (V2)은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. YouTube API 액세스를 별도로 신청할 필요는 없습니다.
keyword와 의도적으로 선택한 sort_by 또는 upload_date filter를 보내고 continuation_token은 생략하세요. 스키마는 continuation request도 설명하므로, 선택 사항이라고 해서 첫 요청을 비워 두는 것이 유용해지지는 않습니다. 선택된 스키마에는 숫자 page-size field가 없습니다.
아니요. 참고 자료에는 둥글게 표시된 문자열이 포함되어 있어 작성자, 채널 ID, 게시 시각이 생략될 수 있습니다. 알 수 없는 값과 원시 개수는 그대로 보존하세요. 조회수 높은 샘플 하나로는 현재 성장, 속도, 플랫폼 전체 추세를 측정할 수 없습니다.
네. 반환된 토큰과 함께 키워드와 필터를 유지하세요. 튜토리얼에는 10월 25일의 토큰만 사용한 실패와 키워드+토큰 성공이 기록되어 있으며, 이번 수정에서는 그 비즈니스 테스트를 다시 실행하지 않았습니다. 잘린 예시 토큰이나 Channel Shorts의 토큰은 재사용하지 마세요.