Search YouTube by keyword — videos, channels, playlists
scrapecreators.x.v1-youtube-searchSearches YouTube by keyword query and returns matching videos, channels, playlists, shorts, shelves, and live streams.
- Price
- $0.00188/call제공업체 원가
- Success rate
- 100%Last 30 days · 50,454 calls
- Latency p50
- 1.2 sp95 3.7 s
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search?sortBy=relevancePreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
type | 문자열 | 선택 | Type of content to search for. Plural forms: videos | shorts | channels | playlists (not video/channel). | videos |
query | 문자열 | 필수 | Search query | |
region | 문자열 | 선택 | 2 letter country code of the country to put the proxy in. | US |
sortBy | 문자열 | 선택 | Only relevance|popular work. view_count, upload_date, and rating are NOT accepted (HTTP 400). | relevance |
duration | 문자열 | 선택 | Duration of the video. Only applies to videos (not shorts). One of: under_3_min | between_3_and_20_min | over_20_min. | under_3_min |
uploadDate | 문자열 | 선택 | Filter by upload date. One of: today | this_week | this_month | this_year. | |
includeExtras | 문자열 | 선택 | This will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. *This will slow down the response slightly.* | false |
continuationToken | 문자열 | 선택 | Continuation token to get more videos. Get 'continuationToken' from previous response. | 4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB |
- 쿼리 파라미터
type문자열선택Type of content to search for. Plural forms: videos | shorts | channels | playlists (not video/channel).
예시:
videosquery문자열필수Search query
region문자열선택2 letter country code of the country to put the proxy in.
예시:
USsortBy문자열선택Only relevance|popular work. view_count, upload_date, and rating are NOT accepted (HTTP 400).
예시:
relevanceduration문자열선택Duration of the video. Only applies to videos (not shorts). One of: under_3_min | between_3_and_20_min | over_20_min.
예시:
under_3_minuploadDate문자열선택Filter by upload date. One of: today | this_week | this_month | this_year.
includeExtras문자열선택This will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. *This will slow down the response slightly.*
예시:
falsecontinuationToken문자열선택Continuation token to get more videos. Get 'continuationToken' from previous response.
예시:
4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search?sortBy=relevance' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search?sortBy=relevance",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-youtube-search?sortBy=relevance", {
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과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.00188/call이며 서비스 수수료가 포함되어 있습니다.