# YouTube channel: `POST /v1/youtube/channel`

Cost: 2 credits (2 (an empty answer, an unknown channel and failed requests are free)). Docs: https://scrapercompany.com/docs/reference/youtube-channel

A channel's header and metadata plus its Videos tab, newest first,
one ~30-video page per call.

Pass an `@handle`, a channel URL or a `UC…` id. `channel` carries the
title, handle, `subscribers_text` and
`video_count_text` verbatim ("27.9M subscribers", "5.8K videos"), the
full description, keywords, RSS URL, avatar, banner and the header's
first link (`more_links_text` says how many more YouTube folds away).
`videos` rows carry views and the relative age verbatim as YouTube
prints them on the grid ("47K views", "16 hours ago"); a channel with
no Videos tab answers its metadata with no videos. With `page_token`
the answer is the next page of `videos` only (an empty page is not
charged). An unknown handle or id is a 404.

Request body (JSON):

- `channel` (string | null; optional; min length 3, max length 300): `@handle`, a `UC…` channel id (`channels[].channel_id` or `video.channel.id` from the other YouTube routes) or a channel URL (`/@name`, `/channel/UC…`, `/c/…`, `/user/…`). Required unless `page_token` is given.
- `page_token` (string | null; optional; max length 4000): `next_page_token` from a previous answer: the next page of videos only (`channel` is then null).
- `hl` (string; optional; default en; pattern ^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,4})?$): Interface language YouTube localizes texts in (`hl`): relative dates, view-count wording, caption track names. Counts parse to integers only for English-style numbers.
- `gl` (string; optional; default US; pattern ^[A-Za-z]{2}$): Content country (`gl`), two letters.

Base URL: `https://api.scrapercompany.com`. Auth: send your key in the `x-api-key` header. A failed request (4xx or 5xx) or an empty result costs 0 credits.

- [Full API reference as one Markdown file](https://scrapercompany.com/llms-full.txt)
- [OpenAPI spec](https://scrapercompany.com/openapi.json)
