Search YouTube videos by keyword
youtube.youtube.search.videosSearch YouTube videos by keyword
- Price
- free제공업체 원가
- Success rate
- 100%Last 30 days · 2,373 calls
- Latency p50
- 332 msp95 596 ms
- Last verified
- 2026. 7. 28.Verified working
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.search.videos?q=design+tutorial&part=snippet&type=video&maxResults=2Preview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
search results carry NO statistics — pass the returned video ids to youtube.video.detail for view/like counts
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
q | 문자열 | 필수 | coffee | |
part | 문자열 | 필수 | snippet | |
type | 문자열 | 선택 | video | channel | playlist; omit to mix all three | video |
order | 문자열 | 선택 | relevance (default) | date | viewCount | rating | title | |
maxResults | 정수 | 선택 | 1–50, default 5 | 10 |
regionCode | 문자열 | 선택 | ISO 3166-1 alpha-2 | US |
publishedAfter | 문자열 | 선택 | RFC 3339 timestamp | 2026-01-01T00:00:00Z |
- 쿼리 파라미터
q문자열필수예시:
coffeepart문자열필수예시:
snippettype문자열선택video | channel | playlist; omit to mix all three
예시:
videoorder문자열선택relevance (default) | date | viewCount | rating | title
maxResults정수선택1–50, default 5
예시:
10regionCode문자열선택ISO 3166-1 alpha-2
예시:
USpublishedAfter문자열선택RFC 3339 timestamp
예시:
2026-01-01T00:00:00Z
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.youtube.search.videos?q=design+tutorial&part=snippet&type=video&maxResults=2' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/youtube.youtube.search.videos?q=design+tutorial&part=snippet&type=video&maxResults=2",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/youtube.youtube.search.videos?q=design+tutorial&part=snippet&type=video&maxResults=2", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 free이며 서비스 수수료가 포함되어 있습니다.