REST Resource: videos

Resource: Video

A video resource represents a YouTube video.

JSON representation
{
  "kind": string,
  "etag": string,
  "id": string,
  "snippet": {
    "publishedAt": string,
    "channelId": string,
    "title": string,
    "description": string,
    "thumbnails": {
      object (ThumbnailDetails)
    },
    "channelTitle": string,
    "tags": [
      string
    ],
    "categoryId": string,
    "liveBroadcastContent": enum,
    "defaultLanguage": string,
    "localized": {
      "title": string,
      "description": string
    },
    "defaultAudioLanguage": string
  },
  "contentDetails": {
    "duration": string,
    "dimension": string,
    "definition": enum,
    "caption": enum,
    "licensedContent": boolean,
    "regionRestriction": {
      "allowed": [
        string
      ],
      "blocked": [
        string
      ]
    },
    "contentRating": {
      "mpaaRating": enum,
      "mpaatRating": enum,
      "tvpgRating": enum,
      "bbfcRating": enum,
      "chvrsRating": enum,
      "eirinRating": enum,
      "cbfcRating": enum,
      "fmocRating": enum,
      "icaaRating": enum,
      "acbRating": enum,
      "oflcRating": enum,
      "fskRating": enum,
      "kmrbRating": enum,
      "djctqRating": enum,
      "djctqRatingReasons": [
        enum
      ],
      "russiaRating": enum,
      "rtcRating": enum,
      "ytRating": enum,
      "mibacRating": enum,
      "catvRating": enum,
      "catvfrRating": enum,
      "ifcoRating": enum,
      "incaaRating": enum,
      "bmukkRating": enum,
      "cicfRating": enum,
      "nfrcRating": enum,
      "anatelRating": enum,
      "cccRating": enum,
      "mocRating": enum,
      "czfilmRating": enum,
      "mccypRating": enum,
      "egfilmRating": enum,
      "eefilmRating": enum,
      "mekuRating": enum,
      "csaRating": enum,
      "grfilmRating": enum,
      "fcoRating": enum,
      "rcnofRating": enum,
      "smaisRating": enum,
      "lsfRating": enum,
      "rteRating": enum,
      "ilfilmRating": enum,
      "agcomRating": enum,
      "kfcbRating": enum,
      "nkclvRating": enum,
      "cscfRating": enum,
      "fcbmRating": enum,
      "nbcRating": enum,
      "mccaaRating": enum,
      "kijkwijzerRating": enum,
      "nfvcbRating": enum,
      "medietilsynetRating": enum,
      "pefilmRating": enum,
      "mtrcbRating": enum,
      "nbcplRating": enum,
      "cceRating": enum,
      "cnaRating": enum,
      "mdaRating": enum,
      "skfilmRating": enum,
      "fpbRating": enum,
      "fpbRatingReasons": [
        enum
      ],
      "smsaRating": enum,
      "chfilmRating": enum,
      "moctwRating": enum,
      "bfvcRating": enum,
      "resorteviolenciaRating": enum,
      "cncRating": enum,
      "ecbmctRating": enum,
      "mcstRating": enum,
      "menaMpaaRating": enum,
      "nmcRating": enum
    },
    "projection": enum,
    "hasCustomThumbnail": boolean
  },
  "status": {
    "uploadStatus": enum,
    "failureReason": enum,
    "rejectionReason": enum,
    "privacyStatus": enum,
    "publishAt": string,
    "license": enum,
    "embeddable": boolean,
    "publicStatsViewable": boolean,
    "madeForKids": boolean,
    "selfDeclaredMadeForKids": boolean,
    "containsSyntheticMedia": boolean
  },
  "statistics": {
    "viewCount": string,
    "likeCount": string,
    "dislikeCount": string,
    "favoriteCount": string,
    "commentCount": string
  },
  "player": {
    "embedHtml": string,
    "embedHeight": string,
    "embedWidth": string
  },
  "topicDetails": {
    "topicIds": [
      string
    ],
    "relevantTopicIds": [
      string
    ],
    "topicCategories": [
      string
    ]
  },
  "recordingDetails": {
    "locationDescription": string,
    "location": {
      "latitude": number,
      "longitude": number,
      "altitude": number
    },
    "recordingDate": string
  },
  "fileDetails": {
    "fileName": string,
    "fileSize": string,
    "fileType": enum,
    "container": string,
    "videoStreams": [
      {
        "widthPixels": integer,
        "heightPixels": integer,
        "frameRateFps": number,
        "aspectRatio": number,
        "codec": string,
        "bitrateBps": string,
        "rotation": enum,
        "vendor": string
      }
    ],
    "audioStreams": [
      {
        "channelCount": integer,
        "codec": string,
        "bitrateBps": string,
        "vendor": string
      }
    ],
    "durationMs": string,
    "bitrateBps": string,
    "creationTime": string
  },
  "processingDetails": {
    "processingStatus": enum,
    "processingProgress": {
      "partsTotal": string,
      "partsProcessed": string,
      "timeLeftMs": string
    },
    "processingFailureReason": enum,
    "fileDetailsAvailability": string,
    "processingIssuesAvailability": string,
    "tagSuggestionsAvailability": string,
    "editorSuggestionsAvailability": string,
    "thumbnailsAvailability": string
  },
  "suggestions": {
    "processingErrors": [
      enum
    ],
    "processingWarnings": [
      enum
    ],
    "processingHints": [
      enum
    ],
    "tagSuggestions": [
      {
        "tag": string,
        "categoryRestricts": [
          string
        ]
      }
    ],
    "editorSuggestions": [
      enum
    ]
  },
  "liveStreamingDetails": {
    "actualStartTime": string,
    "actualEndTime": string,
    "scheduledStartTime": string,
    "scheduledEndTime": string,
    "concurrentViewers": string,
    "activeLiveChatId": string
  },
  "localizations": {
    string: {
      "title": string,
      "description": string
    },
    ...
  },
  "paidProductPlacementDetails": {
    "hasPaidProductPlacement": boolean
  },
  "brandPartner": {
    "channelId": string,
    "channelHandle": string
  }
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string "youtube#video".

etag

string

Etag of this resource.

id

string

The ID that YouTube uses to uniquely identify the video.

snippet

object

The snippet object contains basic details about the video, such as its title, description, and category.

snippet.publishedAt

string

Output only. The date and time that the video was published. The value is specified in ISO 8601 format.

If a video has never been published (for example, private, unlisted, or members-only uploads), this value reflects the creation or upload time.

snippet.channelId

string

Output only. The ID that YouTube uses to uniquely identify the channel that the video was uploaded to. This value can change over time, such as when a video is reassigned to a different channel (for example, a topic channel or artist channel).

snippet.title

string

The video's title. The value has a maximum length of 100 characters and can contain any valid UTF-8 characters except < and >.

You must set a value for this property if you call videos.update and are updating the snippet part of a video resource.

snippet.description

string

The video's description. The value has a maximum length of 5,000 characters and can contain any valid UTF-8 characters except < and >.

For URLs in the description to render as clickable links in YouTube UIs, the channel must meet platform-level requirements, such as channel verification or having Advanced Features enabled. You can create video chapters by including formatted timestamps (starting at 00:00) in the description text.

snippet.thumbnails

object (ThumbnailDetails)

Output only. A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.

snippet.channelTitle

string

Output only. Channel title for the channel that the video belongs to.

snippet.tags[]

string

A list of keyword tags associated with the video. Tags can contain spaces. The value has a maximum total length of 500 characters, checked before filtering (each single-space separator between tags counts toward the limit, and tags containing spaces count as wrapped in quotation marks, adding 2 characters). Within the 500-character total limit, tags longer than 100 characters, single-character ASCII or Latin-1 tags, and duplicates are silently dropped without returning an error.

snippet.categoryId

string

The YouTube video category associated with the video.

You must set a value for this property if you call videos.update and are updating the snippet part of a video resource.

snippet.liveBroadcastContent

enum

Output only. Indicates if the video is an upcoming or active live broadcast, or none if the video is not an upcoming or active live broadcast. For video resources, valid returned values are live, none, and upcoming (completed is not returned).

Valid values of this enum field are:

  • none
  • upcoming
  • live
  • completed
snippet.defaultLanguage

string

The language of the text in the video resource's snippet.title and snippet.description properties. This property is required when setting localizations on insert, or on update if the video doesn't already have a default language.

snippet.localized

object

Output only. Localized snippet selected with the hl parameter, containing either a localized title and description or the default-language metadata.

Localized text is returned if the videos.list request specifies a supported hl value and localization is available in that language. Otherwise, default-language metadata is returned. Use the localizations object to add, update, or delete localized metadata.

snippet.localized.title

string

Localized version of the video's title.

snippet.localized.description

string

Localized version of the video's description.

snippet.defaultAudioLanguage

string

The language spoken in the video's default audio track.

contentDetails

object

The contentDetails object contains information about the video content, including the length of the video and an indication of whether captions are available for the video.

contentDetails.duration

string

The length of the video. The value is an ISO 8601 duration.

For a video at least one minute long and less than one hour long, the duration is formatted as PT#M#S (PT indicates a period of time, and M and S specify minutes and seconds; for example, PT15M51S). For videos at least one hour long, the format is PT#H#M#S. For videos at least one day long, the format is P#DT#H#M#S (or P#D for exact whole days). Live broadcasts with zero duration return P0D, and upcoming or active live premieres omit this property.

The returned duration might differ slightly (for example, by 1 second) from the actual playback duration due to transcoding and encoding differences.

contentDetails.dimension

string

Indicates whether the video is available in 3D or in 2D. Valid values are 2d and 3d.

contentDetails.definition

enum

Indicates whether the video is available in high definition (hd) or only in standard definition (sd).

Valid values of this enum field are:

  • sd
  • hd
contentDetails.caption

enum

Indicates whether captions are available for the video.

Valid values of this enum field are:

  • true
  • false
contentDetails.licensedContent

boolean

Indicates whether the video represents licensed content, meaning that the content was uploaded to a channel linked to a YouTube content partner and then claimed by that partner.

contentDetails.regionRestriction

object

The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object contains either contentDetails.regionRestriction.allowed or contentDetails.regionRestriction.blocked.

contentDetails.regionRestriction.allowed[]

string

A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.

contentDetails.regionRestriction.blocked[]

string

A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.

contentDetails.contentRating

object

Specifies the ratings that the video received under various rating schemes.

contentDetails.contentRating.mpaaRating

enum

The video's Motion Picture Association of America (MPAA) rating.

Valid values of this enum field are:

  • mpaaG
  • mpaaPg
  • mpaaPg13
  • mpaaR
  • mpaaNc17
  • mpaaX
  • mpaaUnrated
contentDetails.contentRating.mpaatRating

enum

The rating system for trailer, DVD, and Ad in the US. See US MPAAT Ratings.

Valid values of this enum field are:

  • mpaatGb
  • mpaatRb
contentDetails.contentRating.tvpgRating

enum

The video's TV Parental Guidelines (TVPG) rating.

Valid values of this enum field are:

  • tvpgY
  • tvpgY7
  • tvpgY7Fv
  • tvpgG
  • tvpgPg
  • pg14
  • tvpgMa
  • tvpgUnrated
contentDetails.contentRating.bbfcRating

enum

The video's British Board of Film Classification (BBFC) rating.

Valid values of this enum field are:

  • bbfcU
  • bbfcPg
  • bbfc12a
  • bbfc12
  • bbfc15
  • bbfc18
  • bbfcR18
  • bbfcUnrated
contentDetails.contentRating.chvrsRating

enum

The video's Canadian Home Video Rating System (CHVRS) rating.

Valid values of this enum field are:

  • chvrsG
  • chvrsPg
  • chvrs14a
  • chvrs18a
  • chvrsR
  • chvrsE
  • chvrsUnrated
contentDetails.contentRating.eirinRating

enum

The video's Eirin (映倫) rating. Eirin is the Japanese rating system.

Valid values of this enum field are:

  • eirinG
  • eirinPg12
  • eirinR15plus
  • eirinR18plus
  • eirinUnrated
contentDetails.contentRating.cbfcRating

enum

The video's Central Board of Film Certification (CBFC - India) rating.

Valid values of this enum field are:

  • cbfcU
  • cbfcUA
  • cbfcUA7plus
  • cbfcUA13plus
  • cbfcUA16plus
  • cbfcA
  • cbfcS
  • cbfcUnrated
contentDetails.contentRating.fmocRating
(deprecated)

enum

Deprecated: As of November 4, 2015, use contentDetails.contentRating.cncRating instead.

The video's Centre national du cinéma et de l'image animée (French Ministry of Culture) rating.

Valid values of this enum field are:

  • fmocU
  • fmoc10
  • fmoc12
  • fmoc16
  • fmoc18
  • fmocE
  • fmocUnrated
contentDetails.contentRating.icaaRating

enum

The video's Instituto de la Cinematografía y de las Artes Audiovisuales (ICAA - Spain) rating.

Valid values of this enum field are:

  • icaaApta
  • icaa7
  • icaa12
  • icaa13
  • icaa16
  • icaa18
  • icaaX
  • icaaUnrated
contentDetails.contentRating.acbRating

enum

The video's Australian Classification Board (ACB) or Australian Communications and Media Authority (ACMA) rating. ACMA ratings are used to classify children's television programming.

Valid values of this enum field are:

  • acbE
  • acbP
  • acbC
  • acbG
  • acbPg
  • acbM
  • acbMa15plus
  • acbR18plus
  • acbUnrated
contentDetails.contentRating.oflcRating

enum

The video's Office of Film and Literature Classification (OFLC - New Zealand) rating.

Valid values of this enum field are:

  • oflcG
  • oflcPg
  • oflcM
  • oflcR13
  • oflcR15
  • oflcR16
  • oflcR18
  • oflcUnrated
  • oflcRp13
  • oflcRp16
  • oflcRp18
contentDetails.contentRating.fskRating

enum

The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) rating.

Valid values of this enum field are:

  • fsk0
  • fsk6
  • fsk12
  • fsk16
  • fsk18
  • fskUnrated
contentDetails.contentRating.kmrbRating

enum

The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates videos in South Korea.

Valid values of this enum field are:

  • kmrbAll
  • kmrb12plus
  • kmrb15plus
  • kmrbTeenr
  • kmrbR
  • kmrbUnrated
contentDetails.contentRating.djctqRating

enum

The video's Departamento de Justiça, Classificação, Qualificação e Títulos (DJCTQ - Brazil) rating.

Valid values of this enum field are:

  • djctqL
  • djctq10
  • djctq12
  • djctq14
  • djctq16
  • djctq18
  • djctqEr
  • djctqL10
  • djctqL12
  • djctqL14
  • djctqL16
  • djctqL18
  • djctq1012
  • djctq1014
  • djctq1016
  • djctq1018
  • djctq1214
  • djctq1216
  • djctq1218
  • djctq1416
  • djctq1418
  • djctq1618
  • djctqUnrated
contentDetails.contentRating.djctqRatingReasons[]

enum

Reasons that explain why the video received its DJCTQ (Brazil) rating.

Valid values of this enum field are:

  • djctqViolence
  • djctqExtremeViolence
  • djctqSexualContent
  • djctqNudity
  • djctqSex
  • djctqExplicitSex
  • djctqDrugs
  • djctqLegalDrugs
  • djctqIllegalDrugs
  • djctqInappropriateLanguage
  • djctqCriminalActs
  • djctqImpactingContent
  • djctqFear
  • djctqMedicalProcedures
  • djctqSensitiveTopics
  • djctqFantasyViolence
contentDetails.contentRating.russiaRating

enum

The video's National Film Registry of the Russian Federation (MKRF - Russia) rating.

Valid values of this enum field are:

  • russia0
  • russia6
  • russia12
  • russia16
  • russia18
  • russiaUnrated
contentDetails.contentRating.rtcRating

enum

The video's General Directorate of Radio, Television and Cinematography (Mexico) rating.

Valid values of this enum field are:

  • rtcAa
  • rtcA
  • rtcB
  • rtcB15
  • rtcC
  • rtcD
  • rtcUnrated
contentDetails.contentRating.ytRating

enum

A rating that YouTube uses to identify age-restricted content.

This enum field has the one valid value:

  • ytAgeRestricted
contentDetails.contentRating.mibacRating

enum

The video's rating from the Ministero dei Beni e delle Attività Culturali e del Turismo (Italy).

Valid values of this enum field are:

  • mibacT
  • mibacVap
  • mibacVm6
  • mibacVm12
  • mibacVm14
  • mibacVm16
  • mibacVm18
  • mibacUnrated
contentDetails.contentRating.catvRating

enum

The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian English-language broadcasts. For more information, see the Canadian Broadcast Standards Council website.

Valid values of this enum field are:

  • catvC
  • catvC8
  • catvG
  • catvPg
  • catv14plus
  • catv18plus
  • catvUnrated
  • catvE
contentDetails.contentRating.catvfrRating

enum

The video's rating from the Canadian Radio-Television and Telecommunications Commission (CRTC) for Canadian French-language broadcasts. For more information, see the Canadian Broadcast Standards Council website.

Valid values of this enum field are:

  • catvfrG
  • catvfr8plus
  • catvfr13plus
  • catvfr16plus
  • catvfr18plus
  • catvfrUnrated
  • catvfrE
contentDetails.contentRating.ifcoRating

enum

The video's Irish Film Classification Office (IFCO - Ireland) rating. See the IFCO website for more information.

Valid values of this enum field are:

  • ifcoG
  • ifcoPg
  • ifco12
  • ifco12a
  • ifco15
  • ifco15a
  • ifco16
  • ifco18
  • ifcoUnrated
contentDetails.contentRating.incaaRating

enum

The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - Argentina) rating.

Valid values of this enum field are:

  • incaaAtp
  • incaaSam13
  • incaaSam16
  • incaaSam18
  • incaaC
  • incaaUnrated
contentDetails.contentRating.bmukkRating

enum

The video's rating from the Austrian Board of Media Classification (Bundesministerium für Unterricht, Kunst und Kultur).

Valid values of this enum field are:

  • bmukkAa
  • bmukk6
  • bmukk8
  • bmukk10
  • bmukk12
  • bmukk14
  • bmukk16
  • bmukkUnrated
contentDetails.contentRating.cicfRating

enum

The video's rating from the Commission de Contrôle des Films (Belgium).

Valid values of this enum field are:

  • cicfE
  • cicfKtEa
  • cicfKntEna
  • cicfUnrated
contentDetails.contentRating.nfrcRating

enum

The video's rating from the Bulgarian National Film Center.

Valid values of this enum field are:

  • nfrcA
  • nfrcB
  • nfrcC
  • nfrcD
  • nfrcX
  • nfrcUnrated
contentDetails.contentRating.anatelRating

enum

The video's Anatel (Asociación Nacional de Televisión) rating for Chilean television.

Valid values of this enum field are:

  • anatelF
  • anatelI
  • anatelI7
  • anatelI10
  • anatelI12
  • anatelR
  • anatelA
  • anatelUnrated
contentDetails.contentRating.cccRating

enum

The video's Consejo de Calificación Cinematográfica (Chile) rating.

Valid values of this enum field are:

  • cccTe
  • ccc6
  • ccc14
  • ccc18
  • ccc18v
  • ccc18s
  • cccUnrated
contentDetails.contentRating.mocRating

enum

The video's Ministerio de Cultura (Colombia) rating.

Valid values of this enum field are:

  • mocE
  • mocT
  • moc7
  • moc12
  • moc15
  • moc18
  • mocX
  • mocBanned
  • mocUnrated
contentDetails.contentRating.czfilmRating

enum

The video's rating in the Czech Republic.

Valid values of this enum field are:

  • czfilmU
  • czfilm12
  • czfilm14
  • czfilm18
  • czfilmUnrated
contentDetails.contentRating.mccypRating

enum

The video's rating from the Danish Film Institute's (Det Danske Filminstitut) Media Council for Children and Young People.

Valid values of this enum field are:

  • mccypA
  • mccyp7
  • mccyp11
  • mccyp15
  • mccypUnrated
contentDetails.contentRating.egfilmRating

enum

The video's rating in Egypt.

Valid values of this enum field are:

  • egfilmGn
  • egfilm18
  • egfilmBn
  • egfilmUnrated
contentDetails.contentRating.eefilmRating

enum

The video's rating in Estonia.

Valid values of this enum field are:

  • eefilmPere
  • eefilmL
  • eefilmMs6
  • eefilmK6
  • eefilmMs12
  • eefilmK12
  • eefilmK14
  • eefilmK16
  • eefilmUnrated
contentDetails.contentRating.mekuRating

enum

The video's rating from Finland's Kansallinen Audiovisuaalinen Instituutti (National Audiovisual Institute).

Valid values of this enum field are:

  • mekuS
  • meku7
  • meku12
  • meku16
  • meku18
  • mekuUnrated
contentDetails.contentRating.csaRating

enum

The video's rating from France's Conseil supérieur de l'audiovisuel, which rates broadcast content.

Valid values of this enum field are:

  • csaT
  • csa10
  • csa12
  • csa16
  • csa18
  • csaInterdiction
  • csaUnrated
contentDetails.contentRating.grfilmRating

enum

The video's rating in Greece.

Valid values of this enum field are:

  • grfilmK
  • grfilmE
  • grfilmK12
  • grfilmK13
  • grfilmK15
  • grfilmK17
  • grfilmK18
  • grfilmUnrated
contentDetails.contentRating.fcoRating

enum

The video's rating from Hong Kong's Office for Film, Newspaper and Article Administration.

Valid values of this enum field are:

  • fcoI
  • fcoIia
  • fcoIib
  • fcoIi
  • fcoIii
  • fcoUnrated
contentDetails.contentRating.rcnofRating

enum

The video's rating from the Hungarian Nemzeti Filmiroda, the Rating Committee of the National Office of Film.

Valid values of this enum field are:

  • rcnofI
  • rcnofIi
  • rcnofIii
  • rcnofIv
  • rcnofV
  • rcnofVi
  • rcnofUnrated
contentDetails.contentRating.smaisRating

enum

The video's rating in Iceland.

Valid values of this enum field are:

  • smaisL
  • smais7
  • smais12
  • smais14
  • smais16
  • smais18
  • smaisUnrated
contentDetails.contentRating.lsfRating

enum

The video's rating from Indonesia's Lembaga Sensor Film.

Valid values of this enum field are:

  • lsfSu
  • lsfA
  • lsfBo
  • lsf13
  • lsfR
  • lsf17
  • lsfD
  • lsf21
  • lsfUnrated
contentDetails.contentRating.rteRating

enum

The video's rating from Ireland's Raidió Teilifís Éireann.

Valid values of this enum field are:

  • rteGa
  • rteCh
  • rtePs
  • rteMa
  • rteUnrated
contentDetails.contentRating.ilfilmRating

enum

The video's rating in Israel.

Valid values of this enum field are:

  • ilfilmAa
  • ilfilm12
  • ilfilm14
  • ilfilm16
  • ilfilm18
  • ilfilmUnrated
contentDetails.contentRating.agcomRating

enum

The video's rating from Italy's Autorità per le Garanzie nelle Comunicazioni (AGCOM).

Valid values of this enum field are:

  • agcomT
  • agcomVm14
  • agcomVm18
  • agcomUnrated
contentDetails.contentRating.kfcbRating

enum

The video's rating from the Kenya Film Classification Board.

Valid values of this enum field are:

  • kfcbG
  • kfcbPg
  • kfcb16plus
  • kfcbR
  • kfcbUnrated
contentDetails.contentRating.nkclvRating

enum

The video's rating from the Nacionālais Kino centrs (National Film Centre of Latvia).

Valid values of this enum field are:

  • nkclvU
  • nkclv7plus
  • nkclv12plus
  • nkclv16plus
  • nkclv18plus
  • nkclvUnrated
contentDetails.contentRating.cscfRating

enum

The video's rating from Luxembourg's Commission de surveillance de la classification des films (CSCF).

Valid values of this enum field are:

  • cscfAl
  • cscfA
  • cscf6
  • cscf9
  • cscf12
  • cscf16
  • cscf18
  • cscfUnrated
contentDetails.contentRating.fcbmRating

enum

The video's rating from Malaysia's Film Censorship Board.

Valid values of this enum field are:

  • fcbmU
  • fcbmPg13
  • fcbmP13
  • fcbm18
  • fcbm18sx
  • fcbm18pa
  • fcbm18sg
  • fcbm18pl
  • fcbmUnrated
contentDetails.contentRating.nbcRating

enum

The video's rating from the Maldives National Bureau of Classification.

Valid values of this enum field are:

  • nbcG
  • nbcPg
  • nbc12plus
  • nbc15plus
  • nbc18plus
  • nbc18plusr
  • nbcPu
  • nbcUnrated
contentDetails.contentRating.mccaaRating

enum

The video's rating from Malta's Film Age-Classification Board.

Valid values of this enum field are:

  • mccaaU
  • mccaaPg
  • mccaa12a
  • mccaa12
  • mccaa14
  • mccaa15
  • mccaa16
  • mccaa18
  • mccaaUnrated
contentDetails.contentRating.kijkwijzerRating

enum

The video's NICAM/Kijkwijzer rating from the Nederlands Instituut voor de Classificatie van Audiovisuele Media (Netherlands).

Valid values of this enum field are:

  • kijkwijzerAl
  • kijkwijzer6
  • kijkwijzer9
  • kijkwijzer12
  • kijkwijzer16
  • kijkwijzer18
  • kijkwijzerUnrated
contentDetails.contentRating.nfvcbRating

enum

The video's rating from Nigeria's National Film and Video Censors Board.

Valid values of this enum field are:

  • nfvcbG
  • nfvcbPg
  • nfvcb12
  • nfvcb12a
  • nfvcb15
  • nfvcb18
  • nfvcbRe
  • nfvcbUnrated
contentDetails.contentRating.medietilsynetRating

enum

The video's rating from Medietilsynet, the Norwegian Media Authority.

Valid values of this enum field are:

  • medietilsynetA
  • medietilsynet6
  • medietilsynet7
  • medietilsynet9
  • medietilsynet11
  • medietilsynet12
  • medietilsynet15
  • medietilsynet18
  • medietilsynetUnrated
contentDetails.contentRating.pefilmRating

enum

The video's rating in Peru.

Valid values of this enum field are:

  • pefilmPt
  • pefilmPg
  • pefilm14
  • pefilm18
  • pefilmUnrated
contentDetails.contentRating.mtrcbRating

enum

The video's rating from the Movie and Television Review and Classification Board (Philippines).

Valid values of this enum field are:

  • mtrcbG
  • mtrcbPg
  • mtrcbR13
  • mtrcbR16
  • mtrcbR18
  • mtrcbX
  • mtrcbUnrated
contentDetails.contentRating.nbcplRating

enum

The video's rating in Poland.

Valid values of this enum field are:

  • nbcplI
  • nbcplIi
  • nbcplIii
  • nbcplIv
  • nbcpl18plus
  • nbcplUnrated
contentDetails.contentRating.cceRating

enum

The video's rating from Portugal's Comissão de Classificação de Espectáculos.

Valid values of this enum field are:

  • cceM4
  • cceM6
  • cceM12
  • cceM16
  • cceM18
  • cceUnrated
  • cceM14
contentDetails.contentRating.cnaRating

enum

The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI (CNA).

Valid values of this enum field are:

  • cnaAp
  • cna12
  • cna15
  • cna18
  • cna18plus
  • cnaUnrated
contentDetails.contentRating.mdaRating

enum

The video's rating from Singapore's Media Development Authority (MDA) and, specifically, its Board of Film Censors (BFC).

Valid values of this enum field are:

  • mdaG
  • mdaPg
  • mdaPg13
  • mdaNc16
  • mdaM18
  • mdaR21
  • mdaUnrated
contentDetails.contentRating.skfilmRating

enum

The video's rating in Slovakia.

Valid values of this enum field are:

  • skfilmG
  • skfilmP2
  • skfilmP5
  • skfilmP8
  • skfilmUnrated
contentDetails.contentRating.fpbRating

enum

The video's rating from South Africa's Film and Publication Board.

Valid values of this enum field are:

  • fpbA
  • fpbPg
  • fpb79Pg
  • fpb1012Pg
  • fpb13
  • fpb16
  • fpb18
  • fpbX18
  • fpbXx
  • fpbUnrated
  • fpb10
contentDetails.contentRating.fpbRatingReasons[]

enum

Reasons that explain why the video received its FPB (South Africa) rating.

Valid values of this enum field are:

  • fpbBlasphemy
  • fpbLanguage
  • fpbNudity
  • fpbPrejudice
  • fpbSex
  • fpbViolence
  • fpbDrugs
  • fpbSexualViolence
  • fpbHorror
  • fpbCriminalTechniques
  • fpbImitativeActsTechniques
contentDetails.contentRating.smsaRating

enum

The video's rating from Statens medieråd (Sweden's National Media Council).

Valid values of this enum field are:

  • smsaA
  • smsa7
  • smsa11
  • smsa15
  • smsaUnrated
contentDetails.contentRating.chfilmRating

enum

The video's rating in Switzerland.

Valid values of this enum field are:

  • chfilm0
  • chfilm6
  • chfilm12
  • chfilm16
  • chfilm18
  • chfilmUnrated
contentDetails.contentRating.moctwRating

enum

The video's rating from Taiwan's Ministry of Culture (文化部).

Valid values of this enum field are:

  • moctwG
  • moctwP
  • moctwPg
  • moctwR
  • moctwUnrated
  • moctwR12
  • moctwR15
contentDetails.contentRating.bfvcRating

enum

The video's rating from Thailand's Board of Film and Video Censors.

Valid values of this enum field are:

  • bfvcG
  • bfvcE
  • bfvc13
  • bfvc15
  • bfvc18
  • bfvc20
  • bfvcB
  • bfvcUnrated
contentDetails.contentRating.resorteviolenciaRating

enum

The video's rating in Venezuela.

Valid values of this enum field are:

  • resorteviolenciaA
  • resorteviolenciaB
  • resorteviolenciaC
  • resorteviolenciaD
  • resorteviolenciaE
  • resorteviolenciaUnrated
contentDetails.contentRating.cncRating

enum

Rating system in France - Commission de classification cinématographique.

Valid values of this enum field are:

  • cncT
  • cnc10
  • cnc12
  • cnc16
  • cnc18
  • cncE
  • cncInterdiction
  • cncUnrated
contentDetails.contentRating.ecbmctRating

enum

Rating system in Turkey - Evaluation and Classification Board of the Ministry of Culture and Tourism.

Valid values of this enum field are:

  • ecbmctG
  • ecbmct7a
  • ecbmct7plus
  • ecbmct13a
  • ecbmct13plus
  • ecbmct15a
  • ecbmct15plus
  • ecbmct18plus
  • ecbmctUnrated
contentDetails.contentRating.mcstRating

enum

The video's rating system for Vietnam - MCST.

Valid values of this enum field are:

  • mcstP
  • mcst0
  • mcstC13
  • mcstC16
  • mcst16plus
  • mcstC18
  • mcstGPg
  • mcstUnrated
contentDetails.contentRating.menaMpaaRating

enum

The rating system for MENA countries, a clone of MPAA.

Valid values of this enum field are:

  • menaMpaaG
  • menaMpaaPg
  • menaMpaaPg13
  • menaMpaaR
  • menaMpaaUnrated
contentDetails.contentRating.nmcRating

enum

The National Media Council ratings system for United Arab Emirates.

Valid values of this enum field are:

  • nmcG
  • nmcPg
  • nmcPg13
  • nmcPg15
  • nmc15plus
  • nmc18plus
  • nmc18tc
  • nmcUnrated
contentDetails.projection

enum

Specifies the projection format of the video.

Valid values of this enum field are:

  • rectangular
  • 360
contentDetails.hasCustomThumbnail

boolean

Indicates whether the video uploader has provided a custom thumbnail image for the video. This property is only visible to the video uploader.

status

object

The status object contains information about the video's uploading, processing, and privacy statuses.

status.uploadStatus

enum

Output only. The status of the uploaded video.

Valid values of this enum field are:

  • uploaded
  • processed
  • failed
  • rejected
  • deleted
status.failureReason

enum

Output only. This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.

Valid values of this enum field are:

  • conversion
  • invalidFile
  • emptyFile
  • tooSmall
  • codec
  • uploadAborted
status.rejectionReason

enum

Output only. This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.

Valid values of this enum field are:

  • copyright
  • inappropriate
  • duplicate
  • termsOfUse
  • uploaderAccountSuspended
  • length
  • claim
  • uploaderAccountClosed
  • trademark
  • legal
status.privacyStatus

enum

The video's privacy status. In a videos.insert request, if you don't specify a value for this property, the uploaded video's privacy status defaults to public. Videos uploaded from unverified API projects are not restricted to private viewing mode.

Valid values of this enum field are:

  • public
  • unlisted
  • private
status.publishAt

string

The date and time when the video is scheduled to publish, specified in ISO 8601 format. It can be set only if the video's privacy status is private and the video has never been published.

When calling videos.update to set status.publishAt, you must also set status.privacyStatus to private, even if the video is already private. Scheduling a time in the past publishes the video immediately.

status.license

enum

The video's license.

Valid values of this enum field are:

  • youtube
  • creativeCommon
status.embeddable

boolean

Indicates if the video can be embedded on another website. Defaults to true on upload; if omitted in a videos.update request with part including status, resets to false.

Even if uploader settings allow embedding, videos can still be blocked from playback in embedded players due to platform policies or third-party claims (such as Content ID).

status.publicStatsViewable

boolean

Indicates if the extended video statistics on the watch page can be viewed by everyone. Defaults to true on upload; if omitted in a videos.update request with part including status, resets to false. Statistics such as view counts and ratings remain publicly visible even if this property is set to false.

status.madeForKids

boolean

Output only. Indicates whether the video is designated as child-directed ("made for kids"). For example, this status can reflect selfDeclaredMadeForKids. See the YouTube Help Center for details on setting audience designations.

status.selfDeclaredMadeForKids

boolean

In a videos.insert or videos.update request, allows the channel owner to designate the video as child-directed. In a videos.list request, this property is returned only if the channel owner authorized the request.

status.containsSyntheticMedia

boolean

In a videos.insert or videos.update request, allows the channel owner to disclose that a video contains realistic Altered or Synthetic (A/S) content (echoed in write responses, not returned by videos.list). Learn more about YouTube policies related to A/S content.

Examples of A/S content include videos that:

  • Make a real person appear to say or do something they didn't actually say or do
  • Alter footage of a real event or place
  • Generate a realistic-looking scene that did not actually occur
statistics

object

The statistics object contains statistics about the video.

statistics.viewCount

string

The number of times the video has been viewed.

For all video formats (long-form, Live, and Shorts), viewCount counts views the moment a video begins to play (includes autoplay, hold the pointer over, and click/tap to play).

For all video formats (long-form, Live, and Shorts), viewCount includes co-views when multiple people watch together on a television screen.

statistics.likeCount

string

The number of users who have indicated that they liked the video by giving it a positive rating.

statistics.dislikeCount

string

The number of users who have indicated that they disliked the video by giving it a negative rating.

The statistics.dislikeCount property was made private as of December 13, 2021. This property is included in an API response only if the API request is authenticated by the video owner. See the revision history for details.

statistics.favoriteCount
(deprecated)

string

Deprecated: Effective August 28, 2015, the property value is always 0.

statistics.commentCount

string

The number of comments for the video.

player

object

The player object contains information that you would use to play the video in an embedded player.

player.embedHtml

string

An <iframe> tag that embeds a player that plays the video.

  • If the request specifies maxHeight or maxWidth in videos.list, the embedded player scales proportionally to fit within those dimensions.
  • If the video's aspect ratio is unknown, the embedded player defaults to a 4:3 format.
player.embedHeight

string (int64 format)

The height of the embedded player returned in player.embedHtml. Returned only if the request specifies maxHeight or maxWidth in videos.list and the video's aspect ratio is known.

player.embedWidth

string (int64 format)

The width of the embedded player returned in player.embedHtml. Returned only if the request specifies maxHeight or maxWidth in videos.list and the video's aspect ratio is known.

topicDetails

object

The topicDetails object encapsulates information about topics associated with the video.

topicDetails.topicIds[]
(deprecated)

string

Deprecated: Announced November 10, 2016; the API stopped returning values for this property after February 10, 2017. Use topicDetails.topicCategories instead.

topicDetails.relevantTopicIds[]
(deprecated)

string

Deprecated: Announced November 10, 2016, and supported until November 10, 2017. The API no longer returns values for this property; use topicDetails.topicCategories instead.

topicDetails.topicCategories[]

string

A list of Wikipedia URLs that provide a high-level description of the video's content.

recordingDetails

object

The recordingDetails object encapsulates information about the location, date, and address where the video was recorded.

recordingDetails.locationDescription

string

Deprecated: Effective June 1, 2017. See the deprecation announcement for details. This field is cleared on videos.insert and videos.update requests, though legacy values can still appear in videos.list responses.

The text description of the location where the video was recorded.

recordingDetails.location

object

Deprecated: Effective June 1, 2017 (latitude and longitude) and July 9, 2018 (altitude). See the June 1, 2017 and July 9, 2018 deprecation announcements for details. This field is cleared on videos.insert and videos.update requests, though legacy coordinates (with altitude set to 0) can still appear in videos.list responses.

The geolocation information associated with the video.

recordingDetails.location.latitude

number

Latitude in degrees.

recordingDetails.location.longitude

number

Longitude in degrees.

recordingDetails.location.altitude

number

Altitude above the reference ellipsoid, in meters.

recordingDetails.recordingDate

string

The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.

fileDetails

object

The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.

Full file details are returned only when processingDetails.fileDetailsAvailability is available (basic fields such as fileName and fileSize can still appear from upload metadata).

fileDetails.fileName

string

The uploaded file's name. This field is present whether a video file or another type of file was uploaded.

fileDetails.fileSize

string

The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.

fileDetails.fileType

enum

The uploaded file's type as detected by YouTube's video processing engine. YouTube only processes video files, though this field is present whether a video file or another type of file was uploaded.

Valid values of this enum field are:

  • video
  • audio
  • image
  • archive
  • document
  • project
  • other
fileDetails.container

string

The uploaded video file's container format.

fileDetails.videoStreams[]

object

A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.

fileDetails.videoStreams[].widthPixels

integer (uint32 format)

The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as widthPixels / heightPixels.

fileDetails.videoStreams[].heightPixels

integer (uint32 format)

The encoded video content's height in pixels.

fileDetails.videoStreams[].frameRateFps

number

The video stream's frame rate, in frames per second.

fileDetails.videoStreams[].aspectRatio

number

The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.

fileDetails.videoStreams[].codec

string

The video codec that the stream uses.

fileDetails.videoStreams[].bitrateBps

string

The video stream's bitrate, in bits per second.

fileDetails.videoStreams[].rotation

enum

The amount that YouTube needs to rotate the original source content to properly display the video.

Valid values of this enum field are:

  • none
  • clockwise
  • upsideDown
  • counterClockwise
  • other
fileDetails.videoStreams[].vendor

string

A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.

fileDetails.audioStreams[]

object

A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.

fileDetails.audioStreams[].channelCount

integer (uint32 format)

The number of audio channels that the stream contains.

fileDetails.audioStreams[].codec

string

The audio codec that the stream uses.

fileDetails.audioStreams[].bitrateBps

string

The audio stream's bitrate, in bits per second.

fileDetails.audioStreams[].vendor

string

A value that uniquely identifies an audio vendor. Typically, the value is a four-letter vendor code.

fileDetails.durationMs

string

The length of the uploaded video in milliseconds.

fileDetails.bitrateBps

string

The uploaded video file's combined (video and audio) bitrate in bits per second.

fileDetails.creationTime

string

The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. The following ISO 8601 formats are supported:

  • Date only: YYYY-MM-DD
  • Naive time: YYYY-MM-DDTHH:MM:SS
  • Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
processingDetails

object

The processingDetails object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.

The processingProgress object is designed to be polled so that the video uploader can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.

processingDetails.processingStatus

enum

The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.

Valid values of this enum field are:

  • processing
  • succeeded
  • failed
  • terminated
processingDetails.processingProgress

object

The processingProgress object contains information about the progress YouTube has made in processing the video. The values are relevant only if the video's processing status is processing.

processingDetails.processingProgress.partsTotal

string

An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.

processingDetails.processingProgress.partsProcessed

string

The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating 100 * partsProcessed / partsTotal.

Since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, the calculated progress could periodically decrease while YouTube processes a video.

processingDetails.processingProgress.timeLeftMs

string

An estimate of the amount of time, in milliseconds, that YouTube needs to finish processing the video.

processingDetails.processingFailureReason

enum

The reason that YouTube failed to process the video. This property has a value only if the processingStatus property's value is failed.

Valid values of this enum field are:

  • uploadFailed
  • transcodeFailed
  • streamingFailed
  • other
processingDetails.fileDetailsAvailability

string

Indicates whether file details are available for the uploaded video. Valid values are available and inProgress (omitted if processingStatus is terminated). You can retrieve a video's file details by requesting the fileDetails part in your videos.list request.

processingDetails.processingIssuesAvailability

string

Indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the video, warnings that explain video processing problems, or errors that cause video processing problems. Valid values are available and inProgress (omitted if processingStatus is terminated). You can retrieve these suggestions by requesting the suggestions part in your videos.list request.

processingDetails.tagSuggestionsAvailability

string

Indicates whether keyword (tag) suggestions are available for the video. Valid values are available and inProgress (omitted if processingStatus is terminated). Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list request.

processingDetails.editorSuggestionsAvailability

string

Indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. Valid values are available and inProgress (omitted if processingStatus is terminated). You can retrieve these suggestions by requesting the suggestions part in your videos.list request.

processingDetails.thumbnailsAvailability

string

Indicates whether thumbnail images have been generated for the video. Valid values are available, inProgress, and notAvailable.

suggestions

object

The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.

The suggestions object is returned when processing issues, tag suggestions, or editor suggestions are available (processingDetails.processingIssuesAvailability, processingDetails.tagSuggestionsAvailability, or processingDetails.editorSuggestionsAvailability is available).

suggestions.processingErrors[]

enum

A list of errors that will prevent YouTube from successfully processing the uploaded video. These errors indicate that, regardless of the video's processingDetails.processingStatus value, that status will almost certainly become failed.

Valid values of this enum field are:

  • audioFile
  • imageFile
  • projectFile
  • notAVideoFile
  • docFile
  • archiveFile
  • unsupportedSpatialAudioLayout
suggestions.processingWarnings[]

enum

A list of reasons why YouTube might have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube processes the uploaded video file, and identify issues that don't necessarily indicate that video processing will fail, though they might cause problems such as sync issues, video artifacts, or a missing audio track.

Valid values of this enum field are:

  • unknownContainer
  • unknownVideoCodec
  • unknownAudioCodec
  • inconsistentResolution
  • hasEditlist
  • problematicVideoCodec
  • problematicAudioCodec
  • unsupportedVrStereoMode
  • unsupportedSphericalProjectionType
  • unsupportedHdrPixelFormat
  • unsupportedHdrColorMetadata
  • problematicHdrLookupTable
suggestions.processingHints[]

enum

A list of suggestions that may improve YouTube's ability to process the video.

Valid values of this enum field are:

  • nonStreamableMov
  • sendBestQualityVideo
  • sphericalVideo
  • spatialAudio
  • vrVideo
  • hdrVideo
suggestions.tagSuggestions[]

object

A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube.

suggestions.tagSuggestions[].tag

string

The keyword tag suggested for the video.

suggestions.tagSuggestions[].categoryRestricts[]

string

A set of category name strings (such as MUSIC or GAMING) for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword.

suggestions.editorSuggestions[]

enum

A list of video editing operations that might improve the video quality or playback experience of the uploaded video.

Valid values of this enum field are:

  • videoAutoLevels
  • videoStabilize
  • videoCrop
  • audioQuietAudioSwap
liveStreamingDetails

object

The liveStreamingDetails object contains metadata about a live video broadcast. The object is only present in a video resource if the video is an upcoming, live, or completed live broadcast.

liveStreamingDetails.actualStartTime

string

The time that the broadcast actually started, specified in ISO 8601 format. This value isn't available until the broadcast begins.

liveStreamingDetails.actualEndTime

string

The time that the broadcast actually ended, specified in ISO 8601 format. This value isn't available until the broadcast ends.

liveStreamingDetails.scheduledStartTime

string

The time that the broadcast is scheduled to begin, specified in ISO 8601 format.

liveStreamingDetails.scheduledEndTime

string

The time that the broadcast is scheduled to end, specified in ISO 8601 format. If the value is empty or the property isn't present, the broadcast is scheduled to continue indefinitely.

liveStreamingDetails.concurrentViewers

string

The number of viewers watching the broadcast at the time of the request. This count includes co-viewers when multiple people watch together on a television screen. The property and its value are present if the broadcast has active viewers and the broadcast owner hasn't hidden the viewcount for the video. YouTube stops tracking concurrent viewers when a broadcast ends, so this property isn't present for archived videos of completed broadcasts.

The concurrent viewer counts that the YouTube Data API returns might differ from the processed, despammed concurrent viewer counts available through YouTube Analytics. Learn more about live streaming metrics in the YouTube Help Center.

liveStreamingDetails.activeLiveChatId

string

The ID of the active live chat attached to this video. This field is populated only if the video is an active live broadcast with live chat enabled. Once the broadcast transitions to complete, this field is removed and the live chat closes. For persistent broadcasts, the live chat ID is no longer tied to this video, and instead moves to the new video displayed on the persistent page.

localizations[]

map (key: string, value: object)

The localizations object contains localized versions of the basic details about the video, such as its title and description.

Each key is a BCP-47 language code, and its value contains localized title and description properties. Setting non-empty localizations requires snippet.defaultLanguage (or an existing default language on update). On update, a non-empty localizations map replaces existing non-default localizations.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

localizations[].title

string

Localized version of the video's title.

localizations[].description

string

Localized version of the video's description.

paidProductPlacementDetails

object

The paidProductPlacementDetails object contains information about paid product placement in the video.

paidProductPlacementDetails.hasPaidProductPlacement

boolean

Set to true if the content uses paid product placement. Set to false if the content doesn't use paid product placement.

Omitting the paidProductPlacementDetails object leaves the declaration unset on videos.insert and unchanged on videos.update; sending paidProductPlacementDetails without this property sets the declaration to false. Linking a brandPartner on insert or update automatically sets this property to true.

brandPartner

object

The brandPartner object contains details about the brand partner linked to the video for Creator Initiated Brand Partner Access (CI BPA). Linking a brand partner automatically sets paidProductPlacementDetails.hasPaidProductPlacement to true.

brandPartner.channelId

string

Optional. External channel ID (must begin with "UC").

Set either channelId or channelHandle when linking a brand partner (only channelId is returned in responses). Omitting both (or omitting the brandPartner object from the request body) when updating the brandPartner part removes an existing link.

brandPartner.channelHandle

string

Optional. Input only. Channel handle (must begin with "@").

Set either channelId or channelHandle when linking a brand partner. This field is accepted on write requests only; responses return channelId.

Methods

batchGetStats

Retrieves a batch of video statistics for the specified video IDs.

delete

Deletes a YouTube video.

getRating

Retrieves the ratings that the authorized user gave to a list of specified videos.

insert

Uploads a video to YouTube and optionally sets the video's metadata.

list

Returns a list of videos that match the API request parameters.

rate

Adds a like or dislike rating to a video or removes a rating from a video.

reportAbuse

Reports a video for containing abusive content.

update

Updates a video's metadata.