YTAPI.devDocs
Last updated Sep 13, 2026
||MarkdownView as Markdown|Agent setup

Search YouTube

search(query, options?): SearchResponse

GET/v1/search1 Credit

Search videos, channels, playlists, or movies. Does not consume YouTube Data API quota.

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.

transcripts:read
ParametersExpand Collapse
q:string

Query param:

Search keyword or phrase.

limit?:number

Query param:

Max results to return, from 1 to 50. Default 20.

type?:string

Query param:

video, channel, playlist, or movie. Default video.

upload_date?:string

Query param:

hour, today, week, month, or year.

sort_by?:string

Query param:

relevance, date, view_count, or rating. Default relevance.

ReturnsExpand Collapse
query:string

Echoed search string.

total_results:number

Number of items in this response.

results:SearchResult[]

Hits with id, type, title, channel fields, duration, views, and thumbnail.