Short answer: call POST /youtube/search with your topic and "sp":"EgIQAg==". That is YouTube's "Channels" filter, and the answer comes back as a channels array: 20 channels per page with name, handle, channel ID, subscriber count, verified badge and description. It costs 1 credit and needs no YouTube Data API quota.
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","sp":"EgIQAg=="}'
Send the sp value exactly as shown; do not URL-encode it.
What came back
We ran two topics on 30 November 2026:
| Query | Channels | Verified | Subscribers, smallest to largest |
|---|---|---|---|
| nextjs tutorial | 20 | 5 | 91 to 759,000 |
| home espresso | 20 | 1 | 2 to 1,270,000 (one channel showed no count) |
One channel from the first answer:
{
"title": "Code With Antonio",
"username": "codewithantonio",
"id": "UCW_4e6sUTMWHxlF06aErH9w",
"link": "https://www.youtube.com/channel/UCW_4e6sUTMWHxlF06aErH9w",
"subscribers_count": "419000",
"verified": true,
"description": "My name is Antonio and I am a software engineer with over 7 years of experience. ..."
}
The list mixes big and tiny channels in YouTube's relevance order: for "home espresso" the first four had 125, 28,400, 97 and 4,510 subscribers. Sort it yourself if you want the largest first.
Build a shortlist of channels
import requests
def channels(topic):
data = requests.post("https://api.serpbase.dev/youtube/search",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"q": topic, "sp": "EgIQAg=="}, timeout=60).json()
if data["status"] != 0:
raise RuntimeError(data.get("error"))
return data.get("channels", [])
rows = []
for c in channels("home espresso"):
subs = int(c.get("subscribers_count") or 0)
if subs >= 1000:
rows.append((subs, c["title"], "@" + c.get("username", ""), c["link"]))
for subs, name, handle, link in sorted(rows, reverse=True):
print(f"{subs:>10,} {name} {handle} {link}")
Typical uses: finding creators to sponsor or pitch, mapping who covers a niche, or collecting channel IDs before you look up their videos.
Things that trip people up
subscribers_countis a string and can be missing; convert with a default.verifiedonly appears when true. Treat a missing key as not verified.- Video fields are not here. Channel results have no
videos; search the channel's name withoutspto get its videos.
Related
Video search basics: YouTube search API without quota. Captions: YouTube transcript API.
Cost and docs
YouTube searches are 1 credit. Credits cost $0.25–$0.50 per 1,000 depending on the plan; new accounts get 500 free credits.
- Parameters and fields: YouTube search docs
- Credit packs: pricing