YouTube Search
Search YouTube videos, Shorts, and creator channels with query and region parameters.
- Endpoint
- POST https://api.serpbase.dev/youtube/search
- Price
- 1 credit
- Authentication
- X-API-Key
You pay for successful requests only. Each endpoint has a fixed price in credits — most cost 1 or 2 — and a request that fails gives its credits back automatically. Billing →
Need the whole Google results page instead? The Google SERP API returns organic results, AI Overviews and People Also Ask as JSON.
Example
curl -X POST 'https://api.serpbase.dev/youtube/search' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"gl":"us","q":"nextjs tutorial"}'{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "youtube_search",
"query": "nextjs tutorial",
"action": "search",
"pagination": {
"has_more": true,
"next_cursor": "EpkEEg9uZXh0anMgdHV0b3JpYWwaggRTQlNDQVF0NGJrOTNUMEpaWVVFemQ0SUJDMU5yYkdOZlpsRkNiV056Z2dFTFdsWnVhazlR…"
},
"source": "youtube",
"url": "https://www.youtube.com/results?gl=US&search_query=nextjs+tutorial",
"videos": [
{
"badges": [
"4K"
],
"channel": {
"id": "UC8S4rDRZn6Z_StJ-hh7ph8g",
"image_url": "https://yt3.ggpht.com/Qizn_VAgeCADuMk0RhVQ11j_9TWKrtQ1ifDGo5Yomj4Kjx29OgnHuZc6dQds5jztNlk3LAt6NA=s68…",
"link": "https://www.youtube.com/channel/UC8S4rDRZn6Z_StJ-hh7ph8g",
"title": "PedroTech",
"url": "https://www.youtube.com/channel/UC8S4rDRZn6Z_StJ-hh7ph8g",
"verified": true
},
"description": "If you know react, but don't know what NextJS is, this is the video for you. NextJS offers a variety…",
"duration": "7:35",
"id": "xnOwOBYaA3w",
"link": "https://www.youtube.com/watch?v=xnOwOBYaA3w",
"media": [
{
"type": "thumbnail",
"url": "https://i.ytimg.com/vi/xnOwOBYaA3w/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs…"
}
],
"published_at": "1y ago",
"title": "Learn NextJS in 7 Minutes",
"url": "https://www.youtube.com/watch?v=xnOwOBYaA3w",
"views_count": "301453"
},
{
"badges": [
"4K"
],
"channel": {
"id": "UCsBjURrPoezykLs9EqgamOA",
"image_url": "https://yt3.ggpht.com/3fPNbkf_xPyCleq77ZhcxyeorY97NtMHVNUbaAON_RBDH9ydL4hJkjxC8x_4mpuopkB8oI7Ct6Y=s6…",
"link": "https://www.youtube.com/channel/UCsBjURrPoezykLs9EqgamOA",
"title": "Fireship",
"url": "https://www.youtube.com/channel/UCsBjURrPoezykLs9EqgamOA",
"verified": true
},
"description": "Learn the basics of Next.js in 100 Seconds! Then build your first server-rendered react app with a f…",
"duration": "11:52",
"id": "Sklc_fQBmcs",
"link": "https://www.youtube.com/watch?v=Sklc_fQBmcs",
"media": [
{
"type": "thumbnail",
"url": "https://i.ytimg.com/vi/Sklc_fQBmcs/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs…"
}
],
"published_at": "5y ago",
"title": "Next.js in 100 Seconds // Plus Full Beginner's Tutorial",
"url": "https://www.youtube.com/watch?v=Sklc_fQBmcs",
"views_count": "1541058"
}
]
}Frequently asked questions
How much does the YouTube Search API cost?
Each request costs 1 credit. Credits come from prepaid packs or the monthly plan, and new accounts start with free credits.
How do I call the YouTube Search API?
Send a POST request to https://api.serpbase.dev/youtube/search with your API key in the X-API-Key header. The response is JSON; check status (0 means success).
Which devices does it support?
Supported devices: desktop. The default is desktop.
Is the YouTube Search API available now?
Yes. Any active API key can call it.