Short answer: POST a query to /youtube/search and you get YouTube search results as JSON without a Google Cloud project or quota — video ID, title, channel, duration, view count and publish age.
The official YouTube Data API works, but a search call costs 100 of the 10,000 quota units a project gets per day by default, which is about 100 searches. For keyword research or monitoring across many terms that runs out quickly. Reading the public results page has no such daily cap.
The request
curl -X POST 'https://api.serpbase.dev/youtube/search' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"q":"nextjs tutorial","gl":"us"}'
What comes back
We ran this on 24 November 2026: 13 videos in 2.6 seconds. One item from videos, trimmed:
{
"id": "xnOwOBYaA3w",
"title": "Learn NextJS in 7 Minutes",
"link": "https://www.youtube.com/watch?v=xnOwOBYaA3w",
"duration": "7:35",
"views_count": "319300",
"published_at": "1y ago",
"channel": {"id": "UC8S4rDRZn6Z_StJ-hh7ph8g", "title": "PedroTech", "verified": true},
"description": "If you know react, but don't know what NextJS is..."
}
Each video also has media (thumbnail URL) and badges such as 4K.
Getting more than one page
The response ends with pagination.next_cursor. Send it back as cursor to continue:
import requests
def search(q, pages=3):
body, out = {"q": q, "gl": "us"}, []
for _ in range(pages):
r = requests.post(
"https://api.serpbase.dev/youtube/search",
headers={"X-API-Key": "YOUR_API_KEY"},
json=body, timeout=30,
).json()
out += r.get("videos", [])
cursor = (r.get("pagination") or {}).get("next_cursor")
if not cursor:
break
body["cursor"] = cursor
return out
for v in search("nextjs tutorial"):
print(v["views_count"], v["duration"], v["title"], "—", v["channel"]["title"])
Things that trip people up
views_countis a string andpublished_atis relative ("1y ago"). Convert the first; treat the second as approximate.- Order is YouTube's relevance order for the country in
gl, not by date or views. Sort client-side if you need a different order.
Transcripts
Once you have video IDs, /youtube/transcripts returns the caption text for a video, which is what most summarisation and RAG pipelines actually need.
What people build with it
Topic research for creators (what already ranks, how long, how many views), brand and competitor monitoring, and video sources for AI assistants.
Cost and limits
Each request costs 1 credit. Requests that fail are not charged. The response is always HTTP 200 with a status field: 0 means success, anything else comes with an error string, so check status rather than the HTTP code. New accounts get 500 free credits without a card.
- Parameters and the full response: YouTube Search docs
- Try it in the browser: YouTube Search
- Credit packs: pricing