{"operation":"channels/search","version":"1.0.0","status":"pilot","title":"Search channels","summary":"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.","use_when":"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.","categories":["Social media"],"icon":"channel_lens","source":"youtube","input":{"type":"object","additionalProperties":false,"required":["query"],"properties":{"query":{"type":"string","minLength":1,"maxLength":500,"description":"Words to search for, as typed in YouTube's search box (a name, a subject, a brand).","examples":["n8n"]},"language":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,4})?$","default":"en","description":"The language YouTube speaks to the visitor (en, fr, de, es, pt-BR, ja...): `subscribers_text` is written in it (\"254K subscribers\", \"1,6 M d’abonnés\"), and `subscribers` read in it."},"country":{"type":"string","pattern":"^[A-Za-z]{2}$","default":"US","description":"The visitor's country, two letters (US, GB, FR, IN...), whose people YouTube searches for."},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,12000}$","description":"Where to go on, from `next` in an answer, as it is: opaque, and only for the search it was given with (otherwise `invalid_cursor`)."}}},"pagination":{"style":"cursor","page_size":20,"next":{"query":"<as it was written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","position","id","ids","url","title","handle","description_snippet","subscribers","subscribers_text","is_verified","is_artist","thumbnails","source_url","observed_at"],"properties":{"object":{"const":"channel"},"position":{"type":"integer","minimum":1,"description":"The channel's rank in the search, across pages."},"id":{"type":"string","description":"The channel's id on YouTube (UC...)."},"ids":{"type":"object","additionalProperties":false,"required":["channel_id"],"properties":{"channel_id":{"type":"string"}}},"url":{"type":"string","description":"Its page, at its @handle (or its id when it has none)."},"title":{"type":["string","null"],"description":"The channel's name."},"handle":{"type":["string","null"],"description":"Its @handle."},"description_snippet":{"type":["string","null"],"description":"The start of its description as the result shows it, cut by YouTube with \"...\"; null when it has none."},"subscribers":{"type":["integer","null"],"description":"Its subscribers, rounded as YouTube shows them (254K is 254000, \"1,6 M\" 1600000); null when the channel hides them."},"subscribers_text":{"type":["string","null"],"description":"As shown, in `language` (254K subscribers)."},"is_verified":{"type":"boolean","description":"YouTube's verified badge."},"is_artist":{"type":"boolean","description":"An official artist channel's badge."},"thumbnails":{"type":"array","description":"Its avatar in its sizes, the largest last.","items":{"type":"object","additionalProperties":false,"required":["url","width","height"],"properties":{"url":{"type":"string"},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]}}}},"source_url":{"type":"string","description":"The results page of youtube.com for this search, filtered by \"Channels\"."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit a call, one page of 20 channels. An empty page and a failed call are free.","free":["empty","failed"]},"deadline":{"default_s":30,"max_s":60},"errors":[{"code":"ip_blocked","status":503,"retryable":true,"retry_after":60,"message":"YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free."},{"code":"invalid_input","status":422,"detail":true,"message":"Pass the words to search for, and a language (en) and a country (US) when another one is needed."},{"code":"site_unavailable","status":503,"retryable":true,"message":"YouTube did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"YouTube answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"query":"cooking recipes"},"records":[{"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"}]},{"request":{"query":"cooking recipes","cursor":"gAAAAABpLmEXAMPLEcursorSealedByTheApiDoNotReadIt0000000000"}}],"health":{"canaries":[{"query":"n8n","min_records":15},{"query":"cooking recipes","min_records":15}],"required_fields":["id","url","title","handle","thumbnails"]},"changelog":[{"version":"1.0.0","date":"2026-12-03","notes":"First version: one page of YouTube's search for channels, signed out, by words, in a language and a country; each channel with its handle, subscribers, description, badges and avatar."}],"object":"operation","id":"youtube/channels/search","site":{"title":"YouTube","domain":"youtube.com","color":"#FF5A4E"}}