Search YouTube
search(query, options?): SearchResponse
Search videos, channels, playlists, or movies. Does not consume YouTube Data API quota.
Security
API Token
The preferred authorization scheme for the YouTube Transcript API. Create a key with transcripts:read in the developer dashboard.
Example: Authorization: Bearer YOUR_API_KEY
See Authentication for scopes and rate limits.
Accepted permissions (at least one required)
ParametersExpand Collapse
q:stringQuery param:
Search keyword or phrase.
limit?:numberQuery param:
Max results to return, from 1 to 50. Default 20.
type?:stringQuery param:
video, channel, playlist, or movie. Default video.
upload_date?:stringQuery param:
hour, today, week, month, or year.
sort_by?:stringQuery param:
relevance, date, view_count, or rating. Default relevance.
ReturnsExpand Collapse
query:stringEchoed search string.
total_results:numberNumber of items in this response.
results:SearchResult[]Hits with id, type, title, channel fields, duration, views, and thumbnail.