# youtube.channel

One YouTube channel from its address, handle or id: name, description, subscribers, video count, country, join date, total views, links, avatar and banner.

YouTube channel, one of the YouTube scrapers.

| | |
| --- | --- |
| Id | `youtube.channel` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/youtube.channel/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | string | yes | The channel: its address (youtube.com/@name, /channel/UC…, /c/name, /user/name), its handle (@name) or its id (UC…). Limit: at most 500 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string | The channel id (UC…). |
| `url` | string | The permanent address, youtube.com/channel/<id>. |
| `handle` | string or null | @name |
| `handle_url` | string or null | The channel's address by its handle, youtube.com/@name; null when it has no handle. |
| `title` | string or null | The channel's name. |
| `description` | string or null | The channel's description of itself, as text. |
| `subscriber_count_text` | string or null | As shown ("4.56M subscribers"). |
| `subscriber_count` | integer or null | As YouTube publishes it: rounded to three figures. |
| `video_count_text` | string or null | As shown ("442 videos"), when the page shows it. |
| `video_count` | integer or null | The number in `video_count_text`, when the text reads as one. |
| `country` | string or null | The country the channel states in its About panel, in English; null when it states none. |
| `joined_text` | string or null | When the channel joined YouTube, as its About panel shows it ("Joined Jun 3, 2008"). |
| `joined_date` | string (date) or null | That day as a date, when the text reads as one. |
| `view_count_text` | string or null | The channel's total views as its About panel shows them ("1,136,362,306 views"). |
| `view_count` | integer or null | The total views as a number. |
| `links` | array of string | The links the channel lists about itself. |
| `keywords` | array of string | The tags the channel's page declares. |
| `verified` | boolean or null | The channel shows YouTube's verified check. |
| `badges` | array of string | "verified", "official_artist". |
| `is_family_safe` | boolean or null | YouTube's own family-safe mark for the channel, as the page declares it. |
| `avatar` | array of object | The channel's picture, in the sizes the page lists, smallest first. |
| `avatar[].url` | string | The image's address. |
| `avatar[].width` | integer or null | Its width in pixels, when the page states it. |
| `avatar[].height` | integer or null | Its height in pixels, when the page states it. |
| `banner` | array of object | The banner across the top of the channel's page, in the sizes the page lists, smallest first; empty when it has none. |
| `banner[].url` | string | The image's address. |
| `banner[].width` | integer or null | Its width in pixels, when the page states it. |
| `banner[].height` | integer or null | Its height in pixels, when the page states it. |
| `rss_url` | string or null | The address of the channel's RSS feed, as the page declares it. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/youtube.channel/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"channel":"@NASA"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "youtube.channel",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "channel": "@NASA"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "id": "UCLA_DiR1FfKNvjuUpBHmylQ",
      "url": "https://www.youtube.com/channel/UCLA_DiR1FfKNvjuUpBHmylQ",
      "handle": "@NASA",
      "handle_url": "https://www.youtube.com/@NASA",
      "title": "NASA",
      "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics research.\r\n\r\nTo do that, we have worked around the world—and off it—for more than 60 years, searching for answers to fundamental questions … [truncated]",
      "subscriber_count_text": "15.1M subscribers",
      "subscriber_count": 15100000,
      "video_count_text": "6.2K videos",
      "video_count": 6200,
      "country": null,
      "joined_text": null,
      "joined_date": null,
      "view_count_text": null,
      "view_count": null,
      "links": [
        "https://www.nasa.gov",
        "https://x.com/nasa",
        "https://www.facebook.com/NASA"
      ],
      "keywords": [
        "nasa",
        "space",
        "iss"
      ],
      "verified": true,
      "badges": [
        "verified"
      ],
      "is_family_safe": true,
      "avatar": [
        {
          "url": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQg=s900-c-k-c0x00ffffff-no-rj",
          "width": 900,
          "height": 900
        }
      ],
      "banner": [
        {
          "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
          "width": 1060,
          "height": 175
        },
        {
          "url": "https://yt3.googleusercontent.com/y8Srh-oCcilLvBO8jAPI546m1bn0puA5DIvQiBZ1cSxc_rZfKxKSFlTCtoCQCtB6viUf1NGsaQ=w1138-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
          "width": 1138,
          "height": 188
        }
      ],
      "rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ",
      "fetched_at": "2026-11-19T18:07:42.785496Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `description`: 364 characters, the first 238 shown.
- Shortened: `links`: 6 items, the first 3 shown.
- Shortened: `keywords`: 21 items, the first 3 shown.
- Shortened: `banner`: 6 items, the first 2 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the YouTube scrapers](https://docs.enrichednow.com/results-and-statuses.md#youtube) are in their own section there.
