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

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

One video's metadata, counts and chapters.

Exact `views`, `length_seconds` and `likes` (falling back to the like
button's own text when YouTube hides the exact count);
`published_date`/`upload_date`
are YouTube's ISO timestamps; `date_text` and `relative_date_text` the
watch page's own wording. The full description, keywords, category,
hashtags, live flags (`is_live`, `live_broadcast`), `is_family_safe`,
thumbnails and chapters (`source` says whether the creator or YouTube
made them) complete it. Accepts an id or any video URL. A removed,
private or never-existing video is a 404; an age-gated video answers
its metadata with `age_restricted: true`.

Request body (JSON):

- `video_id` (string; required; min length 11, max length 300): The 11-character video id (`8jPQjjsBbIc`) or any YouTube video URL: `watch?v=`, `youtu.be/`, `/shorts/`, `/embed/`, `/live/`. Ids come from `POST /v1/youtube/search` (`videos[].video_id`).
- `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)
