Fast, filterable search for videos, channels, playlists & query-autocomplete.
Search videos, channels or playlists with one call.
Get query suggestions as users type.
Publish-date & duration let you narrow down results fast.
POST https://api.yeb.to/v1/youtube/search/autocomplete
Parameter | Type | Req. | Description |
---|---|---|---|
api_key |
string | yes | Your API key |
q |
string | yes | User query |
hl |
string | opt | Language (ISO-639-1, default en) |
curl -X POST https://api.yeb.to/v1/youtube/search/autocomplete \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_KEY",
"q": "minecraft survival",
"hl": "en"
}'
{
"query": "minecraft survival",
"lang": "en",
"suggestions": ["minecraft survival house","minecraft survival guide"],
"cnt_results": 2
}
{"error":"Missing \"q\" (query) parameter","code":400}
Code | Description |
---|---|
200 Success | Request processed OK. |
400 Bad Request | Input validation failed. |
401 Unauthorized | Missing / wrong API key. |
403 Forbidden | Key inactive or not allowed. |
429 Rate Limit | Too many requests. |
500 Server Error | Unexpected failure. |
POST https://api.yeb.to/v1/youtube/search/videos
Parameter | Type | Req. | Description |
---|---|---|---|
api_key |
string | yes | Your API key |
q |
string | yes | Search keywords |
limit |
int | opt | 1-50 (default 25) |
sort |
string | opt | relevance | date | rating | title | viewCount |
published_after |
date | opt | YYYY-MM-DD |
published_before |
date | opt | YYYY-MM-DD |
duration |
string | opt | any | short | medium | long |
curl -X POST https://api.yeb.to/v1/youtube/search/videos \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_KEY",
"q": "how to draw",
"limit": 10,
"sort": "date",
"published_after": "2025-01-01",
"duration": "short"
}'
{
"cnt_results": 1,
"videos":[
{
"id": "dQw4w9WgXcQ",
"title": "How to draw a cat",
"description": "Learn cat drawing…",
"publishedAt": "2025-06-05T14:00:01Z",
"channelId": "UCabc123",
"durationISO": "PT3M45S",
"views": 15230
}
]
}
{"error":"Missing \"q\" (query) parameter","code":400}
Code | Description |
---|---|
200 Success | Request processed OK. |
400 Bad Request | Input validation failed. |
401 Unauthorized | Missing / wrong API key. |
403 Forbidden | Key inactive or not allowed. |
429 Rate Limit | Too many requests. |
500 Server Error | Unexpected failure. |
POST https://api.yeb.to/v1/youtube/search/channels
Parameter | Type | Req. | Description |
---|---|---|---|
api_key |
string | yes | Your API key |
q |
string | yes | Search keywords |
limit |
int | opt | 1-50 (default 25) |
sort |
string | opt | relevance | date | rating | title | viewCount |
published_after |
date | opt | YYYY-MM-DD |
published_before |
date | opt | YYYY-MM-DD |
curl -X POST https://api.yeb.to/v1/youtube/search/channels \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_KEY",
"q": "technology reviews",
"limit": 5
}'
{
"cnt_results": 2,
"channels":[
{
"id": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
"title": "Google Developers",
"description": "The official Google Developers channel.",
"publishedAt": "2007-08-23T00:34:43Z",
"thumb": "https://yt3.ggpht.com/abc=s88-c-k-c0xffffffff-no-rj-mo"
}
]
}
{"error":"Missing \"q\" (query) parameter","code":400}
Code | Description |
---|---|
200 Success | Request processed OK. |
400 Bad Request | Input validation failed. |
401 Unauthorized | Missing / wrong API key. |
403 Forbidden | Key inactive or not allowed. |
429 Rate Limit | Too many requests. |
500 Server Error | Unexpected failure. |
POST https://api.yeb.to/v1/youtube/search/playlists
Parameter | Type | Req. | Description |
---|---|---|---|
api_key |
string | yes | Your API key |
q |
string | yes | Search keywords |
limit |
int | opt | 1-50 (default 25) |
sort |
string | opt | relevance | date | rating | title | viewCount |
published_after |
date | opt | YYYY-MM-DD |
published_before |
date | opt | YYYY-MM-DD |
curl -X POST https://api.yeb.to/v1/youtube/search/playlists \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_KEY",
"q": "lofi chill",
"limit": 8
}'
{
"cnt_results": 1,
"playlists":[
{
"id": "PL12345ABCDE",
"title": "Lo-Fi Chill Beats",
"description": "Relaxing music to study to.",
"publishedAt": "2024-11-17T10:00:00Z",
"channelId": "UCLofi123",
"items": 35
}
]
}
{"error":"Missing \"q\" (query) parameter","code":400}
Code | Description |
---|---|
200 Success | Request processed OK. |
400 Bad Request | Input validation failed. |
401 Unauthorized | Missing / wrong API key. |
403 Forbidden | Key inactive or not allowed. |
429 Rate Limit | Too many requests. |
500 Server Error | Unexpected failure. |