---
id: "youtubevideoid"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["media"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/youtubevideoid"
---

# YouTube video ID (`youtubevideoid`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Eleven-character identifier of a YouTube video, as in youtube.com/watch?v=<id>, youtu.be/<id> and youtube.com/shorts/<id>: letters, digits, hyphens and underscores. Any eleven-character token of these characters matches the regexp, so the field name matters. Channel IDs (youtube_channel_id) have 24 characters and start with UC.

- Personal data (PII): no
- Categories: Media and entertainment (media)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[-_0-9A-Za-z]{11}$
```

## Examples

- `txqiwrbYGrs` — David After Dentist
- `YHoGXDYGkIw` — Levitate
- `uv_1AKKKJnk` — Levitate
- `-v3Zh43WOHw` — Example of the Wikidata property, starting with a hyphen
- `UCpDJl2EmP7Oh90Vylx0dZtA` (invalid example) — YouTube channel ID

## Mappings

- wikidata: `P1651`

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `youtubevideoidfield` (field, `common/media.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- ru: Идентификатор видео YouTube: Идентификатор видео YouTube из 11 символов (буквы, цифры, дефис и подчёркивание), как в адресе youtube.com/watch?v=<id>.

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P1651>
- doc: <https://developers.google.com/youtube/v3/docs/videos>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/youtubevideoid.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/media/youtubevideoid.yaml>
