Query Parameters
Response
Related search objects.
Example Response
Each search request costs 8 credits. Failed requests are not charged.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Search YouTube for videos, channels, playlists, or movies.
| Value | Description |
|---|---|
all | All result types (default) |
video | Videos only |
channel | Channels only |
playlist | Playlists only |
movie | Movies only |
| Value | Description |
|---|---|
relevance | Best match (default) |
date | Most recently uploaded |
views | Most viewed |
rating | Highest rated |
type).Show SearchResult object
{
"query": "lofi hip hop",
"results": [
{
"type": "video",
"position": 1,
"video_id": "jfKfPfyJRdk",
"title": "lofi hip hop radio - beats to relax/study to",
"url": "https://www.youtube.com/watch?v=jfKfPfyJRdk",
"thumbnail": "https://i.ytimg.com/vi/jfKfPfyJRdk/hqdefault.jpg",
"duration": null,
"view_count_text": "Live · 42K watching",
"published_time_text": "Streamed 2 years ago",
"channel_id": "UCSJ4gkVC6NrvII8umztf0Ow",
"channel_name": "Lofi Girl",
"channel_is_verified": true,
"is_live": true,
"is_short": false
}
],
"estimated_results": 1240000,
"chips": [
{ "title": "All", "is_selected": true, "continuation": null },
{ "title": "Videos", "is_selected": false, "continuation": "EgIQAQ..." }
],
"continuation": "EpcDEgxsb2ZpIGhpcCBob3A..."
}
