# YouTube: Search channels

`youtube/channels/search` · version 1.0.0 · pilot · 1 credits a call

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.

Categories: Social media

## When to use

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.

## Call

```bash
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": "n8n"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 20, "has_more": true, "next": {"source": "youtube", "operation": "channels/search", "options": {...}},
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path: inside an object with a dot (`ids.channel_id`), in each item of a list with `[]` (`thumbnails[].url`, or with a dot: `thumbnails.url`); `object`, `id` and `position` always come. Left out: every field. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `query` | string | yes |  | Words to search for, as typed in YouTube's search box (a name, a subject, a brand). |
| `language` | string |  | `"en"` | 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` | string |  | `"US"` | The visitor's country, two letters (US, GB, FR, IN...), whose people YouTube searches for. |
| `cursor` | string |  |  | 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`). |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"channel"` |  |
| `position` | integer | The channel's rank in the search, across pages. |
| `id` | string | The channel's id on YouTube (UC...). |
| `ids` | object |  |
| `ids.channel_id` | string |  |
| `url` | string | Its page, at its @handle (or its id when it has none). |
| `title` | string | null | The channel's name. |
| `handle` | string | null | Its @handle. |
| `description_snippet` | string | null | The start of its description as the result shows it, cut by YouTube with "..."; null when it has none. |
| `subscribers` | integer | null | Its subscribers, rounded as YouTube shows them (254K is 254000, "1,6 M" 1600000); null when the channel hides them. |
| `subscribers_text` | string | null | As shown, in `language` (254K subscribers). |
| `is_verified` | boolean | YouTube's verified badge. |
| `is_artist` | boolean | An official artist channel's badge. |
| `thumbnails` | array | Its avatar in its sizes, the largest last. |
| `thumbnails[].url` | string |  |
| `thumbnails[].width` | integer | null |  |
| `thumbnails[].height` | integer | null |  |
| `source_url` | string | The results page of youtube.com for this search, filtered by "Channels". |
| `observed_at` | string (date-time) |  |

Example:

```json
{
  "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"
}
```

## Price

1 credit a call, one page of 20 channels. An empty page and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `ip_blocked` | 503 | yes | YouTube slowed down the IPs the call tried (429). Retry in a minute; failed calls are free. |
| `invalid_input` | 422 | no | Pass the words to search for, and a language (en) and a country (US) when another one is needed. |
| `site_unavailable` | 503 | yes | YouTube did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | YouTube answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.0.0** (2026-12-03): 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.

Schema: https://api.lobstr.io/v2/catalog/youtube/channels/search · All operations: https://api.lobstr.io/v2/catalog.md
