YouTube: Search channels
One page of YouTube's search for channels, 20 channels in the order youtube.com shows them, each with its handle, subscribers, description and avatar.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "youtube", "operation": "channels/search", "options": { "query": "cooking recipes" } }'
An example answer. Run it on your own input.
{ "object": "run", "id": "run_r2ayvlbltw5wgyvgabbeluj7zm", "livemode": true, "source": "youtube", "operation": "channels/search", "version": "1.0.0", "schema_url": "https://api.lobstr.io/v2/catalog/youtube/channels/search", "options": { "query": "cooking recipes" }, "fields": null, "status": "succeeded", "count": 1, "has_more": false, "next": null, "cost": { "credits": 1 }, "results": [ { "object": "channel", "position": 1, "id": "UCk1t2c3h4e5n6r7e8c9i0pS", "ids": { "channel_id": "UCk1t2c3h4e5n6r7e8c9i0pS" }, "url": "https://www.youtube.com/@homecookingdaily", "title": "Home Cooking Daily", "handle": "@homecookingdaily", "description_snippet": "Easy recipes for every day of the week, from breakfast to dinner. New videos every Tuesday ...", "subscribers": 1240000, "subscribers_text": "1.24M subscribers", "is_verified": true, "is_artist": false, "thumbnails": [ { "url": "https://yt3.ggpht.com/home-cooking-daily=s88-c-k-c0x00ffffff-no-rj-mo", "width": 88, "height": 88 }, { "url": "https://yt3.ggpht.com/home-cooking-daily=s176-c-k-c0x00ffffff-no-rj-mo", "width": 176, "height": 176 } ], "source_url": "https://www.youtube.com/results?search_query=cooking+recipes&sp=EgIQAg%253D%253D", "observed_at": "2026-12-03T12:00:00Z" } ] }
15 fields per channel
Every call returns them for each record, in the results of its JSON answer.
Search channels
15 fields- object
- text
- channel
- position
- number
- The channel's rank in the search, across pages.
- 1
- id
- id
- The channel's id on YouTube (UC...).
UCk1t2c3h4e5n6r7e8c9i0pS- ids.channel_id
- id
UCk1t2c3h4e5n6r7e8c9i0pS
What it costs
Billed by the call: 1 credits, whatever the page holds (up to 20 channels). Pick how many calls a month.
1 credit a call
Calls a month
100
Built to run
Every call counts; a day is green at 95% successful.
- Successful calls
- 100.00%
- Median call
- 1.4 s
A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.
Frequently asked questions
What people ask before calling youtube/channels/search.
Search channels
When do I use it?
You need the YouTube channels that match some words, as the search filtered by "Channels" shows them to a visitor: their name, @handle, subscribers, the start of their description, their verified or artist badge and their avatar, to find creators on a subject or a brand's channel by its name. Ask in another language and country (language, country) for what YouTube shows there. A channel's position is its rank in the search, across pages. Follow next for the following page. For one channel whole (its videos, views, links, country), use youtube/channels/get; for videos, youtube/videos/search.
What do I give it?
query(required): Words to search for, as typed in YouTube's search box (a name, a subject, a brand).language: The language YouTube speaks to the visitor (en, fr, de, es, pt-BR, ja...):subscribers_textis written in it ("254K subscribers", "1,6 M d’abonnés"), andsubscribersread in it.country: The visitor's country, two letters (US, GB, FR, IN...), whose people YouTube searches for.
What does it return?
One page of YouTube's search for channels, 20 channels in the order youtube.com shows them, each with its handle, subscribers, description and avatar. Every record has the same fields, empty ones included: they are all listed above.
How do I get the next page?
Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 20 records at most.
Pricing
What does a call cost?
1 credit a call, one page of 20 channels. An empty page and a failed call are free.
When is a call free?
- an empty page (past the end, or nothing found)
- a call that fails
Errors
What can go wrong?
ip_blocked(503, retry): YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free.invalid_input(422): Pass the words to search for, and a language (en) and a country (US) when another one is needed.site_unavailable(503, retry): YouTube did not answer properly; retry later (not charged).unexpected_answer(424): YouTube answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?
30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.
API and agents
Can my AI agent run it?
Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs youtube/channels/search. Its page for agents, in Markdown: youtube/channels/search.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/youtube/channels/search: every option, every field, the price and the errors. This page is drawn from it.
Ready to call it?
An API key in a minute, then the call above, from your code or your agent.