# youtube.video

One YouTube video from its address or id: title, description, channel, dates, length, views, likes, tags and caption languages.

YouTube video, one of the YouTube scrapers.

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

Start it with `POST /v1/scrapers/youtube.video/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 |
| --- | --- | --- | --- |
| `url` | string | no | The video's address: a youtube.com/watch, youtu.be, /shorts/, /live/ or /embed/ link. Limit: at most 500 characters. |
| `video_id` | string | no | The video's 11-character id. Limit: at most 500 characters. |

- Give exactly one of `url` and `video_id`. Both, or neither, is refused with `invalid_input`.
- A video that exists and cannot be played — age-restricted, for rent, members-only, a premiere not yet started — is still one record when YouTube sends its details: `playable` is `false`, and `playability_status` and `playability_reason` are YouTube's own words.
- A private video ends the run `failed` with `private_video`, a removed one with `not_found`; an age-restricted video YouTube sends no details of ends it `unsupported` with `age_restricted`. None of them is charged.
- `like_count` is `null` when the channel hides likes, and `duration_seconds` is `null` for a stream that is live or upcoming.
- `caption_tracks` lists the caption languages a video has; [`youtube.transcript`](https://docs.enrichednow.com/scrapers/youtube.transcript.md) returns the captions themselves. It is `null` when YouTube did not say, and an empty list when the video has none.
- `comment_count_text` is the figure the page shows beside the comments ("2.4M"), rounded by YouTube; `chapters` and `hashtags` are empty lists when the video has none.

## 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 video id: the `v` of its address. |
| `url` | string | The video's address: youtube.com/watch?v=<id>. |
| `title` | string or null | The video's title. |
| `description` | string or null | The full description, as text. |
| `channel_name` | string or null | The name of the channel that published it. |
| `channel_id` | string or null | That channel's id (UC…). |
| `channel_url` | string or null | That channel's permanent address, youtube.com/channel/<id>; its address by handle when the page gave no id. |
| `channel_handle` | string or null | @name, when the page links the channel by its handle. |
| `channel_verified` | boolean or null | The channel shows a verified or official-artist badge under the video; null when the page did not carry the channel's block. |
| `channel_subscriber_count_text` | string or null | The channel's subscribers as shown under the video ("4.56M subscribers"): a figure YouTube rounds, kept as text. |
| `published_at` | string (date-time) or null | When it was made public. |
| `uploaded_at` | string (date-time) or null | The upload time the page declares (its `uploadDate`). |
| `published_text` | string or null | The date as shown under the video ("Oct 24, 2009"). |
| `duration_seconds` | integer or null | Null for a stream that is still live. |
| `view_count` | integer or null | The number of views, in full: the watch page carries the exact count. |
| `like_count` | integer or null | Null when the channel hides likes. |
| `keywords` | array of string | The tags the channel gave the video. |
| `category` | string or null | YouTube's category for the video, in English, e.g. "Music". |
| `is_live` | boolean or null | On air now. |
| `is_live_content` | boolean or null | A live stream, on air or ended. |
| `is_upcoming` | boolean or null | A premiere or stream that has not started. |
| `live_started_at` | string (date-time) or null | For a live stream or premiere: the start time the page gives; null for any other video. |
| `live_ended_at` | string (date-time) or null | For a live stream or premiere that is over: the end time the page gives. |
| `is_unlisted` | boolean or null | YouTube marks the video as unlisted: it opens by its address and is not listed in search or on the channel. |
| `is_family_safe` | boolean or null | YouTube's own family-safe mark for the video, as the page declares it. |
| `age_restricted` | boolean or null | YouTube plays it only for a signed-in adult. |
| `playable` | boolean or null | A logged-out visitor can play it here and now. |
| `playability_status` | string or null | YouTube's own word: OK, LOGIN_REQUIRED, UNPLAYABLE, LIVE_STREAM_OFFLINE. |
| `playability_reason` | string or null | What the player shows when it will not play. |
| `embeddable` | boolean or null | Whether the page says the video may be played embedded in other sites; null when it does not say. |
| `thumbnails` | array of object | The video's thumbnail, in the sizes the page lists, smallest first. |
| `thumbnails[].url` | string | The image's address. |
| `thumbnails[].width` | integer or null | Its width in pixels, when the page states it. |
| `thumbnails[].height` | integer or null | Its height in pixels, when the page states it. |
| `caption_tracks` | array of object or null | The caption tracks offered; an empty list when the video has none; null when the page did not say (a video that does not play logged out). |
| `caption_tracks[].language_code` | string | The track's language code, as YouTube gives it, e.g. en. |
| `caption_tracks[].name` | string or null | As shown ("English (auto-generated)"). |
| `caption_tracks[].auto_generated` | boolean | Made by speech recognition, not uploaded by the channel. |
| `caption_tracks[].translatable` | boolean or null | Whether YouTube offers the track translated into other languages; null when the page does not say. |
| `caption_languages` | array of string or null | The tracks' language codes, without repeats. |
| `hashtags` | array of string | The hashtags shown above the title ("#OfficialMusicVideo"). |
| `comment_count_text` | string or null | The number of comments as the page shows it beside the comments ("2.4M"); null when comments are off or the page shows none. |
| `comment_count` | integer or null | That figure as a number: rounded by YouTube above a thousand. |
| `chapters` | array of object | The video's chapters, in order, when it has them. |
| `chapters[].title` | string | The chapter's title. |
| `chapters[].start_seconds` | integer | Where the chapter starts, in seconds from the start of the video. |
| `chapters[].start_text` | string or null | The start as shown ("1:02:03"). |
| `available_countries` | array of string | The two-letter codes of the countries where the page says the video can be watched. |
| `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.video/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}}'
```

## 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.video",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  },
  "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": "dQw4w9WgXcQ",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
      "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“Never … [truncated]",
      "channel_name": "Rick Astley",
      "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
      "channel_url": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
      "channel_handle": "@RickAstleyYT",
      "channel_verified": true,
      "channel_subscriber_count_text": "4.56M subscribers",
      "published_at": "2009-10-24T23:57:33-07:00",
      "uploaded_at": "2009-10-24T23:57:33-07:00",
      "published_text": "Oct 24, 2009",
      "duration_seconds": 213,
      "view_count": 1837923431,
      "like_count": 19508123,
      "keywords": [
        "rick astley",
        "Never Gonna Give You Up",
        "nggyu"
      ],
      "category": "Music",
      "is_live": false,
      "is_live_content": false,
      "is_upcoming": false,
      "live_started_at": null,
      "live_ended_at": null,
      "is_unlisted": false,
      "is_family_safe": true,
      "age_restricted": false,
      "playable": true,
      "playability_status": "OK",
      "playability_reason": null,
      "embeddable": true,
      "thumbnails": [
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEfCKgBEF5IVfKriqkDEggBFQAAiEIYAXABwAEGuALzGA==&rs=AOn4CLAy5pvOfmmlRtbC9v1ptqnWgPympA",
          "width": 168,
          "height": 94
        },
        {
          "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg?sqp=-oaymwEfCMQBEG5IVfKriqkDEggBFQAAiEIYAXABwAEGuALzGA==&rs=AOn4CLDnaw1sg9xedLybAaLCts8m3KNOlQ",
          "width": 196,
          "height": 110
        }
      ],
      "caption_tracks": [
        {
          "language_code": "en",
          "name": "English",
          "auto_generated": false,
          "translatable": true
        },
        {
          "language_code": "en",
          "name": "English (auto-generated)",
          "auto_generated": true,
          "translatable": true
        }
      ],
      "caption_languages": [
        "en",
        "de-DE",
        "ja"
      ],
      "hashtags": [
        "#OfficialMusicVideo",
        "#NeverGonnaGiveYouUp",
        "#RickAstleyNever"
      ],
      "comment_count_text": null,
      "comment_count": null,
      "chapters": [],
      "available_countries": [],
      "fetched_at": "2026-11-19T18:07:42.965142Z"
    }
  ],
  "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`: 2,375 characters, the first 237 shown.
- Shortened: `keywords`: 27 items, the first 3 shown.
- Shortened: `thumbnails`: 5 items, the first 2 shown.
- Shortened: `caption_tracks`: 6 items, the first 2 shown.
- Shortened: `caption_languages`: 5 items, the first 3 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.
