This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/vendor/google.golang.org/api/youtube/v3/youtube-api.json
2016-04-08 11:56:29 -07:00

7587 lines
286 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"kind": "discovery#restDescription",
"etag": "\"l66ggWbucbkBw9Lpos72oziyefE/AH-IEbavfgCCcxMvonELgSqtbcY\"",
"discoveryVersion": "v1",
"id": "youtube:v3",
"name": "youtube",
"canonicalName": "YouTube",
"version": "v3",
"revision": "20140930",
"title": "YouTube Data API",
"description": "Programmatic access to YouTube features.",
"ownerDomain": "google.com",
"ownerName": "Google",
"icons": {
"x16": "https://www.google.com/images/icons/product/youtube-16.png",
"x32": "https://www.google.com/images/icons/product/youtube-32.png"
},
"documentationLink": "https://developers.google.com/youtube/v3",
"protocol": "rest",
"baseUrl": "https://www.googleapis.com/youtube/v3/",
"basePath": "/youtube/v3/",
"rootUrl": "https://www.googleapis.com/",
"servicePath": "youtube/v3/",
"batchPath": "batch",
"parameters": {
"alt": {
"type": "string",
"description": "Data format for the response.",
"default": "json",
"enum": [
"json"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
],
"location": "query"
},
"fields": {
"type": "string",
"description": "Selector specifying which fields to include in a partial response.",
"location": "query"
},
"key": {
"type": "string",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query"
},
"oauth_token": {
"type": "string",
"description": "OAuth 2.0 token for the current user.",
"location": "query"
},
"prettyPrint": {
"type": "boolean",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"location": "query"
},
"quotaUser": {
"type": "string",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location": "query"
},
"userIp": {
"type": "string",
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location": "query"
}
},
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/youtube": {
"description": "Manage your YouTube account"
},
"https://www.googleapis.com/auth/youtube.readonly": {
"description": "View your YouTube account"
},
"https://www.googleapis.com/auth/youtube.upload": {
"description": "Manage your YouTube videos"
},
"https://www.googleapis.com/auth/youtubepartner": {
"description": "View and manage your assets and associated content on YouTube"
},
"https://www.googleapis.com/auth/youtubepartner-channel-audit": {
"description": "View private information of your YouTube channel relevant during the audit process with a YouTube partner"
}
}
}
},
"schemas": {
"AccessPolicy": {
"id": "AccessPolicy",
"type": "object",
"description": "Rights management policy for YouTube resources.",
"properties": {
"allowed": {
"type": "boolean",
"description": "The value of allowed indicates whether the access to the policy is allowed or denied by default."
},
"exception": {
"type": "array",
"description": "A list of region codes that identify countries where the default policy do not apply.",
"items": {
"type": "string"
}
}
}
},
"Activity": {
"id": "Activity",
"type": "object",
"description": "An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.",
"properties": {
"contentDetails": {
"$ref": "ActivityContentDetails",
"description": "The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the activity."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#activity\".",
"default": "youtube#activity"
},
"snippet": {
"$ref": "ActivitySnippet",
"description": "The snippet object contains basic details about the activity, including the activity's type and group ID."
}
}
},
"ActivityContentDetails": {
"id": "ActivityContentDetails",
"type": "object",
"description": "Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc.",
"properties": {
"bulletin": {
"$ref": "ActivityContentDetailsBulletin",
"description": "The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin."
},
"channelItem": {
"$ref": "ActivityContentDetailsChannelItem",
"description": "The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem."
},
"comment": {
"$ref": "ActivityContentDetailsComment",
"description": "The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment."
},
"favorite": {
"$ref": "ActivityContentDetailsFavorite",
"description": "The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite."
},
"like": {
"$ref": "ActivityContentDetailsLike",
"description": "The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like."
},
"playlistItem": {
"$ref": "ActivityContentDetailsPlaylistItem",
"description": "The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem."
},
"promotedItem": {
"$ref": "ActivityContentDetailsPromotedItem",
"description": "The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem."
},
"recommendation": {
"$ref": "ActivityContentDetailsRecommendation",
"description": "The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation."
},
"social": {
"$ref": "ActivityContentDetailsSocial",
"description": "The social object contains details about a social network post. This property is only present if the snippet.type is social."
},
"subscription": {
"$ref": "ActivityContentDetailsSubscription",
"description": "The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription."
},
"upload": {
"$ref": "ActivityContentDetailsUpload",
"description": "The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload."
}
}
},
"ActivityContentDetailsBulletin": {
"id": "ActivityContentDetailsBulletin",
"type": "object",
"description": "Details about a channel bulletin post.",
"properties": {
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the resource associated with a bulletin post."
}
}
},
"ActivityContentDetailsChannelItem": {
"id": "ActivityContentDetailsChannelItem",
"type": "object",
"description": "Details about a resource which was added to a channel.",
"properties": {
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the resource that was added to the channel."
}
}
},
"ActivityContentDetailsComment": {
"id": "ActivityContentDetailsComment",
"type": "object",
"description": "Information about a resource that received a comment.",
"properties": {
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the resource associated with the comment."
}
}
},
"ActivityContentDetailsFavorite": {
"id": "ActivityContentDetailsFavorite",
"type": "object",
"description": "Information about a video that was marked as a favorite video.",
"properties": {
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the resource that was marked as a favorite."
}
}
},
"ActivityContentDetailsLike": {
"id": "ActivityContentDetailsLike",
"type": "object",
"description": "Information about a resource that received a positive (like) rating.",
"properties": {
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the rated resource."
}
}
},
"ActivityContentDetailsPlaylistItem": {
"id": "ActivityContentDetailsPlaylistItem",
"type": "object",
"description": "Information about a new playlist item.",
"properties": {
"playlistId": {
"type": "string",
"description": "The value that YouTube uses to uniquely identify the playlist."
},
"playlistItemId": {
"type": "string",
"description": "ID of the item within the playlist."
},
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information about the resource that was added to the playlist."
}
}
},
"ActivityContentDetailsPromotedItem": {
"id": "ActivityContentDetailsPromotedItem",
"type": "object",
"description": "Details about a resource which is being promoted.",
"properties": {
"adTag": {
"type": "string",
"description": "The URL the client should fetch to request a promoted item."
},
"clickTrackingUrl": {
"type": "string",
"description": "The URL the client should ping to indicate that the user clicked through on this promoted item."
},
"creativeViewUrl": {
"type": "string",
"description": "The URL the client should ping to indicate that the user was shown this promoted item."
},
"ctaType": {
"type": "string",
"description": "The type of call-to-action, a message to the user indicating action that can be taken.",
"enum": [
"unspecified",
"visitAdvertiserSite"
],
"enumDescriptions": [
"",
""
]
},
"customCtaButtonText": {
"type": "string",
"description": "The custom call-to-action button text. If specified, it will override the default button text for the cta_type."
},
"descriptionText": {
"type": "string",
"description": "The text description to accompany the promoted item."
},
"destinationUrl": {
"type": "string",
"description": "The URL the client should direct the user to, if the user chooses to visit the advertiser's website."
},
"forecastingUrl": {
"type": "array",
"description": "The list of forecasting URLs. The client should ping all of these URLs when a promoted item is not available, to indicate that a promoted item could have been shown.",
"items": {
"type": "string"
}
},
"impressionUrl": {
"type": "array",
"description": "The list of impression URLs. The client should ping all of these URLs to indicate that the user was shown this promoted item.",
"items": {
"type": "string"
}
},
"videoId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the promoted video."
}
}
},
"ActivityContentDetailsRecommendation": {
"id": "ActivityContentDetailsRecommendation",
"type": "object",
"description": "Information that identifies the recommended resource.",
"properties": {
"reason": {
"type": "string",
"description": "The reason that the resource is recommended to the user.",
"enum": [
"unspecified",
"videoFavorited",
"videoLiked",
"videoWatched"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the recommended resource."
},
"seedResourceId": {
"$ref": "ResourceId",
"description": "The seedResourceId object contains information about the resource that caused the recommendation."
}
}
},
"ActivityContentDetailsSocial": {
"id": "ActivityContentDetailsSocial",
"type": "object",
"description": "Details about a social network post.",
"properties": {
"author": {
"type": "string",
"description": "The author of the social network post."
},
"imageUrl": {
"type": "string",
"description": "An image of the post's author."
},
"referenceUrl": {
"type": "string",
"description": "The URL of the social network post."
},
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object encapsulates information that identifies the resource associated with a social network post."
},
"type": {
"type": "string",
"description": "The name of the social network.",
"enum": [
"facebook",
"googlePlus",
"twitter",
"unspecified"
],
"enumDescriptions": [
"",
"",
"",
""
]
}
}
},
"ActivityContentDetailsSubscription": {
"id": "ActivityContentDetailsSubscription",
"type": "object",
"description": "Information about a channel that a user subscribed to.",
"properties": {
"resourceId": {
"$ref": "ResourceId",
"description": "The resourceId object contains information that identifies the resource that the user subscribed to."
}
}
},
"ActivityContentDetailsUpload": {
"id": "ActivityContentDetailsUpload",
"type": "object",
"description": "Information about the uploaded video.",
"properties": {
"videoId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the uploaded video."
}
}
},
"ActivityListResponse": {
"id": "ActivityListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of activities, or events, that match the request criteria.",
"items": {
"$ref": "Activity"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#activityListResponse\".",
"default": "youtube#activityListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"ActivitySnippet": {
"id": "ActivitySnippet",
"type": "object",
"description": "Basic details about an activity, including title, description, thumbnails, activity type and group.",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel associated with the activity."
},
"channelTitle": {
"type": "string",
"description": "Channel title for the channel responsible for this activity"
},
"description": {
"type": "string",
"description": "The description of the resource primarily associated with the activity.",
"annotations": {
"required": [
"youtube.activities.insert"
]
}
},
"groupId": {
"type": "string",
"description": "The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value."
},
"publishedAt": {
"type": "string",
"description": "The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "A map of thumbnail images associated with the resource that is primarily associated with the activity. 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."
},
"title": {
"type": "string",
"description": "The title of the resource primarily associated with the activity."
},
"type": {
"type": "string",
"description": "The type of activity that the resource describes.",
"enum": [
"bulletin",
"channelItem",
"comment",
"favorite",
"like",
"playlistItem",
"promotedItem",
"recommendation",
"social",
"subscription",
"upload"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
]
}
}
},
"CdnSettings": {
"id": "CdnSettings",
"type": "object",
"description": "Brief description of the live stream cdn settings.",
"properties": {
"format": {
"type": "string",
"description": "The format of the video stream that you are sending to Youtube.",
"annotations": {
"required": [
"youtube.liveStreams.insert",
"youtube.liveStreams.update"
]
}
},
"ingestionInfo": {
"$ref": "IngestionInfo",
"description": "The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube."
},
"ingestionType": {
"type": "string",
"description": "The method or protocol used to transmit the video stream.",
"enum": [
"rtmp"
],
"enumDescriptions": [
""
],
"annotations": {
"required": [
"youtube.liveStreams.insert",
"youtube.liveStreams.update"
]
}
}
}
},
"Channel": {
"id": "Channel",
"type": "object",
"description": "A channel resource contains information about a YouTube channel.",
"properties": {
"auditDetails": {
"$ref": "ChannelAuditDetails",
"description": "The auditionDetails object encapsulates channel data that is relevant for YouTube Partners during the audition process."
},
"brandingSettings": {
"$ref": "ChannelBrandingSettings",
"description": "The brandingSettings object encapsulates information about the branding of the channel."
},
"contentDetails": {
"$ref": "ChannelContentDetails",
"description": "The contentDetails object encapsulates information about the channel's content."
},
"contentOwnerDetails": {
"$ref": "ChannelContentOwnerDetails",
"description": "The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel."
},
"conversionPings": {
"$ref": "ChannelConversionPings",
"description": "The conversionPings object encapsulates information about conversion pings that need to be respected by the channel."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel."
},
"invideoPromotion": {
"$ref": "InvideoPromotion",
"description": "The invideoPromotion object encapsulates information about promotion campaign associated with the channel."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#channel\".",
"default": "youtube#channel"
},
"snippet": {
"$ref": "ChannelSnippet",
"description": "The snippet object contains basic details about the channel, such as its title, description, and thumbnail images."
},
"statistics": {
"$ref": "ChannelStatistics",
"description": "The statistics object encapsulates statistics for the channel."
},
"status": {
"$ref": "ChannelStatus",
"description": "The status object encapsulates information about the privacy status of the channel."
},
"topicDetails": {
"$ref": "ChannelTopicDetails",
"description": "The topicDetails object encapsulates information about Freebase topics associated with the channel."
}
}
},
"ChannelAuditDetails": {
"id": "ChannelAuditDetails",
"type": "object",
"description": "The auditDetails object encapsulates channel data that is relevant for YouTube Partners during the audit process.",
"properties": {
"communityGuidelinesGoodStanding": {
"type": "boolean",
"description": "Whether or not the channel respects the community guidelines."
},
"contentIdClaimsGoodStanding": {
"type": "boolean",
"description": "Whether or not the channel has any unresolved claims."
},
"copyrightStrikesGoodStanding": {
"type": "boolean",
"description": "Whether or not the channel has any copyright strikes."
},
"overallGoodStanding": {
"type": "boolean",
"description": "Describes the general state of the channel. This field will always show if there are any issues whatsoever with the channel. Currently this field represents the result of the logical and operation over the community guidelines good standing, the copyright strikes good standing and the content ID claims good standing, but this may change in the future."
}
}
},
"ChannelBannerResource": {
"id": "ChannelBannerResource",
"type": "object",
"description": "A channel banner returned as the response to a channel_banner.insert call.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#channelBannerResource\".",
"default": "youtube#channelBannerResource"
},
"url": {
"type": "string",
"description": "The URL of this banner image."
}
}
},
"ChannelBrandingSettings": {
"id": "ChannelBrandingSettings",
"type": "object",
"description": "Branding properties of a YouTube channel.",
"properties": {
"channel": {
"$ref": "ChannelSettings",
"description": "Branding properties for the channel view."
},
"hints": {
"type": "array",
"description": "Additional experimental branding properties.",
"items": {
"$ref": "PropertyValue"
}
},
"image": {
"$ref": "ImageSettings",
"description": "Branding properties for branding images."
},
"watch": {
"$ref": "WatchSettings",
"description": "Branding properties for the watch page."
}
}
},
"ChannelContentDetails": {
"id": "ChannelContentDetails",
"type": "object",
"description": "Details about the content of a channel.",
"properties": {
"googlePlusUserId": {
"type": "string",
"description": "The googlePlusUserId object identifies the Google+ profile ID associated with this channel."
},
"relatedPlaylists": {
"type": "object",
"properties": {
"favorites": {
"type": "string",
"description": "The ID of the playlist that contains the channel\"s favorite videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list."
},
"likes": {
"type": "string",
"description": "The ID of the playlist that contains the channel\"s liked videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list."
},
"uploads": {
"type": "string",
"description": "The ID of the playlist that contains the channel\"s uploaded videos. Use the videos.insert method to upload new videos and the videos.delete method to delete previously uploaded videos."
},
"watchHistory": {
"type": "string",
"description": "The ID of the playlist that contains the channel\"s watch history. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list."
},
"watchLater": {
"type": "string",
"description": "The ID of the playlist that contains the channel\"s watch later playlist. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list."
}
}
}
}
},
"ChannelContentOwnerDetails": {
"id": "ChannelContentOwnerDetails",
"type": "object",
"description": "The contentOwnerDetails object encapsulates channel data that is relevant for YouTube Partners linked with the channel.",
"properties": {
"contentOwner": {
"type": "string",
"description": "The ID of the content owner linked to the channel."
},
"timeLinked": {
"type": "string",
"description": "The date and time of when the channel was linked to the content owner. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
}
}
},
"ChannelConversionPing": {
"id": "ChannelConversionPing",
"type": "object",
"description": "Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.",
"properties": {
"context": {
"type": "string",
"description": "Defines the context of the ping.",
"enum": [
"cview",
"subscribe",
"unsubscribe"
],
"enumDescriptions": [
"",
"",
""
]
},
"conversionUrl": {
"type": "string",
"description": "The url (without the schema) that the player shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping."
}
}
},
"ChannelConversionPings": {
"id": "ChannelConversionPings",
"type": "object",
"description": "The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.",
"properties": {
"pings": {
"type": "array",
"description": "Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.",
"items": {
"$ref": "ChannelConversionPing"
}
}
}
},
"ChannelListResponse": {
"id": "ChannelListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of channels that match the request criteria.",
"items": {
"$ref": "Channel"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#channelListResponse\".",
"default": "youtube#channelListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"ChannelSection": {
"id": "ChannelSection",
"type": "object",
"description": "TODO(lxz) follow up with adiamondstein@ to fullfill the doc before deploying",
"properties": {
"contentDetails": {
"$ref": "ChannelSectionContentDetails",
"description": "The contentDetails object contains details about the ChannelSection content, such as playlists and channels."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the ChannelSection."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#channelSection\".",
"default": "youtube#channelSection"
},
"snippet": {
"$ref": "ChannelSectionSnippet",
"description": "The snippet object contains basic details about the ChannelSection, such as its type, style and title."
}
}
},
"ChannelSectionContentDetails": {
"id": "ChannelSectionContentDetails",
"type": "object",
"description": "Details about a channelsection, including playlists and channels.",
"properties": {
"channels": {
"type": "array",
"description": "The channel ids for type multiple_channels.",
"items": {
"type": "string"
}
},
"playlists": {
"type": "array",
"description": "The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed.",
"items": {
"type": "string"
}
}
}
},
"ChannelSectionListResponse": {
"id": "ChannelSectionListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of ChannelSections that match the request criteria.",
"items": {
"$ref": "ChannelSection"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#channelSectionListResponse\".",
"default": "youtube#channelSectionListResponse"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"ChannelSectionSnippet": {
"id": "ChannelSectionSnippet",
"type": "object",
"description": "Basic details about a channelsection, including title, style and position.",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel that published the channelSection."
},
"position": {
"type": "integer",
"description": "The position of the channelSection in the channel.",
"format": "uint32"
},
"style": {
"type": "string",
"description": "The style of the channelSection.",
"enum": [
"channelsectionStyleUndefined",
"horizontalRow",
"verticalList"
],
"enumDescriptions": [
"",
"",
""
]
},
"title": {
"type": "string",
"description": "The channelSection's title for multiple_playlists and multiple_channels."
},
"type": {
"type": "string",
"description": "The type of the channelSection.",
"enum": [
"allPlaylists",
"channelsectionTypeUndefined",
"completedEvents",
"likedPlaylists",
"likes",
"liveEvents",
"multipleChannels",
"multiplePlaylists",
"popularUploads",
"postedPlaylists",
"postedVideos",
"recentActivity",
"recentPosts",
"recentUploads",
"singlePlaylist",
"subscriptions",
"upcomingEvents"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
]
}
}
},
"ChannelSettings": {
"id": "ChannelSettings",
"type": "object",
"description": "Branding properties for the channel view.",
"properties": {
"defaultTab": {
"type": "string",
"description": "Which content tab users should see when viewing the channel."
},
"description": {
"type": "string",
"description": "Specifies the channel description."
},
"featuredChannelsTitle": {
"type": "string",
"description": "Title for the featured channels tab."
},
"featuredChannelsUrls": {
"type": "array",
"description": "The list of featured channels.",
"items": {
"type": "string"
}
},
"keywords": {
"type": "string",
"description": "Lists keywords associated with the channel, comma-separated."
},
"moderateComments": {
"type": "boolean",
"description": "Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible."
},
"profileColor": {
"type": "string",
"description": "A prominent color that can be rendered on this channel page."
},
"showBrowseView": {
"type": "boolean",
"description": "Whether the tab to browse the videos should be displayed."
},
"showRelatedChannels": {
"type": "boolean",
"description": "Whether related channels should be proposed."
},
"title": {
"type": "string",
"description": "Specifies the channel title."
},
"trackingAnalyticsAccountId": {
"type": "string",
"description": "The ID for a Google Analytics account to track and measure traffic to the channels."
},
"unsubscribedTrailer": {
"type": "string",
"description": "The trailer of the channel, for users that are not subscribers."
}
}
},
"ChannelSnippet": {
"id": "ChannelSnippet",
"type": "object",
"description": "Basic details about a channel, including title, description and thumbnails.",
"properties": {
"description": {
"type": "string",
"description": "The description of the channel."
},
"publishedAt": {
"type": "string",
"description": "The date and time that the channel was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "A map of thumbnail images associated with the channel. 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."
},
"title": {
"type": "string",
"description": "The channel's title."
}
}
},
"ChannelStatistics": {
"id": "ChannelStatistics",
"type": "object",
"description": "Statistics about a channel: number of subscribers, number of videos in the channel, etc.",
"properties": {
"commentCount": {
"type": "string",
"description": "The number of comments for the channel.",
"format": "uint64"
},
"hiddenSubscriberCount": {
"type": "boolean",
"description": "Whether or not the number of subscribers is shown for this user."
},
"subscriberCount": {
"type": "string",
"description": "The number of subscribers that the channel has.",
"format": "uint64"
},
"videoCount": {
"type": "string",
"description": "The number of videos uploaded to the channel.",
"format": "uint64"
},
"viewCount": {
"type": "string",
"description": "The number of times the channel has been viewed.",
"format": "uint64"
}
}
},
"ChannelStatus": {
"id": "ChannelStatus",
"type": "object",
"description": "JSON template for the status part of a channel.",
"properties": {
"isLinked": {
"type": "boolean",
"description": "If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity."
},
"longUploadsStatus": {
"type": "string",
"description": "The long uploads status of this channel. See",
"enum": [
"allowed",
"disallowed",
"eligible",
"longUploadsUnspecified"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"privacyStatus": {
"type": "string",
"description": "Privacy status of the channel.",
"enum": [
"private",
"public",
"unlisted"
],
"enumDescriptions": [
"",
"",
""
]
}
}
},
"ChannelTopicDetails": {
"id": "ChannelTopicDetails",
"type": "object",
"description": "Freebase topic information related to the channel.",
"properties": {
"topicIds": {
"type": "array",
"description": "A list of Freebase topic IDs associated with the channel. You can retrieve information about each topic using the Freebase Topic API.",
"items": {
"type": "string"
}
}
}
},
"ContentRating": {
"id": "ContentRating",
"type": "object",
"description": "Ratings schemes. The country-specific ratings are mostly for movies and shows.",
"properties": {
"acbRating": {
"type": "string",
"description": "Rating system in Australia - Australian Classification Board",
"enum": [
"acbC",
"acbE",
"acbG",
"acbM",
"acbMa15plus",
"acbP",
"acbPg",
"acbR18plus",
"acbUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"agcomRating": {
"type": "string",
"description": "Rating system for Italy - Autorit<69> per le Garanzie nelle Comunicazioni",
"enum": [
"agcomT",
"agcomUnrated",
"agcomVm14",
"agcomVm18"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"anatelRating": {
"type": "string",
"description": "Rating system for Chile - Asociaci<63>n Nacional de Televisi<73>n",
"enum": [
"anatelA",
"anatelF",
"anatelI",
"anatelI10",
"anatelI12",
"anatelI7",
"anatelR",
"anatelUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"bbfcRating": {
"type": "string",
"description": "British Board of Film Classification",
"enum": [
"bbfc12",
"bbfc12a",
"bbfc15",
"bbfc18",
"bbfcPg",
"bbfcR18",
"bbfcU",
"bbfcUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"bfvcRating": {
"type": "string",
"description": "Rating system for Thailand - Board of Filmand Video Censors",
"enum": [
"bfvc13",
"bfvc15",
"bfvc18",
"bfvc20",
"bfvcB",
"bfvcE",
"bfvcG",
"bfvcUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"bmukkRating": {
"type": "string",
"description": "Rating system for Austria - Bundesministeriums f<>r Unterricht, Kunst und Kultur!",
"enum": [
"bmukk10",
"bmukk12",
"bmukk14",
"bmukk16",
"bmukk6",
"bmukk8",
"bmukkAa",
"bmukkUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"catvRating": {
"type": "string",
"description": "Rating system for Canadian TV - Canadian TV Classification System",
"enum": [
"catv14plus",
"catv18plus",
"catvC",
"catvC8",
"catvG",
"catvPg",
"catvUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"catvfrRating": {
"type": "string",
"description": "Rating system for French Canadian TV - Regie du cinema",
"enum": [
"catvfr13plus",
"catvfr16plus",
"catvfr18plus",
"catvfr8plus",
"catvfrG",
"catvfrUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"cbfcRating": {
"type": "string",
"description": "Rating system in India - Central Board of Film Certification",
"enum": [
"cbfcA",
"cbfcS",
"cbfcU",
"cbfcUA",
"cbfcUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"cccRating": {
"type": "string",
"description": "Rating system for Chile - Consejo de Calificaci<63>n Cinematogr<67>fica",
"enum": [
"ccc14",
"ccc18",
"ccc18s",
"ccc18v",
"ccc6",
"cccTe",
"cccUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"cceRating": {
"type": "string",
"description": "Rating system for Portugal - Comiss<73>o de Classifica<63><61>o de Espect<63>culos",
"enum": [
"cceM12",
"cceM16",
"cceM18",
"cceM4",
"cceM6",
"cceUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"chfilmRating": {
"type": "string",
"description": "Rating system for Switzerland - Switzerland Rating System",
"enum": [
"chfilm0",
"chfilm12",
"chfilm16",
"chfilm18",
"chfilm6",
"chfilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"chvrsRating": {
"type": "string",
"description": "Canadian Home Video Rating System",
"enum": [
"chvrs14a",
"chvrs18a",
"chvrsE",
"chvrsG",
"chvrsPg",
"chvrsR",
"chvrsUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"cicfRating": {
"type": "string",
"description": "Rating system for Belgium - Belgium Rating System",
"enum": [
"cicfE",
"cicfKntEna",
"cicfKtEa",
"cicfUnrated"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"cnaRating": {
"type": "string",
"description": "Rating system for Romania - CONSILIUL NATIONAL AL AUDIOVIZUALULUI - CNA",
"enum": [
"cna12",
"cna15",
"cna18",
"cna18plus",
"cnaAp",
"cnaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"csaRating": {
"type": "string",
"description": "Rating system for France - Conseil sup<75>rieur de l?audiovisuel",
"enum": [
"csa10",
"csa12",
"csa16",
"csa18",
"csaInterdiction",
"csaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"cscfRating": {
"type": "string",
"description": "Rating system for Luxembourg - Commission de surveillance de la classification des films",
"enum": [
"cscf12",
"cscf16",
"cscf18",
"cscf6",
"cscfA",
"cscfUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"czfilmRating": {
"type": "string",
"description": "Rating system for Czech republic - Czech republic Rating System",
"enum": [
"czfilm12",
"czfilm14",
"czfilm18",
"czfilmU",
"czfilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"djctqRating": {
"type": "string",
"description": "Rating system in Brazil - Department of Justice, Rating, Titles and Qualification",
"enum": [
"djctq10",
"djctq12",
"djctq14",
"djctq16",
"djctq18",
"djctqL",
"djctqUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"eefilmRating": {
"type": "string",
"description": "Rating system for Estonia - Estonia Rating System",
"enum": [
"eefilmK12",
"eefilmK14",
"eefilmK16",
"eefilmK6",
"eefilmL",
"eefilmMs12",
"eefilmMs6",
"eefilmPere",
"eefilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"egfilmRating": {
"type": "string",
"description": "Rating system for Egypt - Egypt Rating System",
"enum": [
"egfilm18",
"egfilmBn",
"egfilmGn",
"egfilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"eirinRating": {
"type": "string",
"description": "Rating system in Japan - Eiga Rinri Kanri Iinkai",
"enum": [
"eirinG",
"eirinPg12",
"eirinR15plus",
"eirinR18plus",
"eirinUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"fcbmRating": {
"type": "string",
"description": "Rating system for Malaysia - Film Censorship Board of Malaysia",
"enum": [
"fcbm18",
"fcbm18pa",
"fcbm18pl",
"fcbm18sg",
"fcbm18sx",
"fcbmP13",
"fcbmU",
"fcbmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"fcoRating": {
"type": "string",
"description": "Rating system for Hong kong - Office for Film, Newspaper and Article Administration",
"enum": [
"fcoI",
"fcoIia",
"fcoIib",
"fcoIii",
"fcoUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"fmocRating": {
"type": "string",
"description": "Rating system in France - French Minister of Culture",
"enum": [
"fmoc10",
"fmoc12",
"fmoc16",
"fmoc18",
"fmocE",
"fmocU",
"fmocUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"fpbRating": {
"type": "string",
"description": "Rating system for South africa - Film & Publication Board",
"enum": [
"fpb1012Pg",
"fpb13",
"fpb16",
"fpb18",
"fpb79Pg",
"fpbA",
"fpbPg",
"fpbUnrated",
"fpbX18",
"fpbXx"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"fskRating": {
"type": "string",
"description": "Rating system in Germany - Voluntary Self Regulation of the Movie Industry",
"enum": [
"fsk0",
"fsk12",
"fsk16",
"fsk18",
"fsk6",
"fskUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"grfilmRating": {
"type": "string",
"description": "Rating system for Greece - Greece Rating System",
"enum": [
"grfilmE",
"grfilmK",
"grfilmK13",
"grfilmK17",
"grfilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"icaaRating": {
"type": "string",
"description": "Rating system in Spain - Instituto de Cinematografia y de las Artes Audiovisuales",
"enum": [
"icaa12",
"icaa13",
"icaa16",
"icaa18",
"icaa7",
"icaaApta",
"icaaUnrated",
"icaaX"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"ifcoRating": {
"type": "string",
"description": "Rating system in Ireland - Irish Film Classification Office",
"enum": [
"ifco12",
"ifco15",
"ifco18",
"ifcoG",
"ifcoPg",
"ifcoUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"ilfilmRating": {
"type": "string",
"description": "Rating system for Israel - Israel Rating System",
"enum": [
"ilfilm12",
"ilfilm16",
"ilfilm18",
"ilfilmAa",
"ilfilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"incaaRating": {
"type": "string",
"description": "Rating system for Argentina - Instituto Nacional de Cine y Artes Audiovisuales",
"enum": [
"incaaAtp",
"incaaC",
"incaaSam13",
"incaaSam16",
"incaaSam18",
"incaaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"kfcbRating": {
"type": "string",
"description": "Rating system for Kenya - Kenya Film Classification Board",
"enum": [
"kfcb16plus",
"kfcbG",
"kfcbPg",
"kfcbR",
"kfcbUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"kijkwijzerRating": {
"type": "string",
"description": "Rating system for Netherlands - Nederlands Instituut voor de Classificatie van Audiovisuele Media",
"enum": [
"kijkwijzer12",
"kijkwijzer16",
"kijkwijzer6",
"kijkwijzer9",
"kijkwijzerAl",
"kijkwijzerUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"kmrbRating": {
"type": "string",
"description": "Rating system in South Korea - Korea Media Rating Board",
"enum": [
"kmrb12plus",
"kmrb15plus",
"kmrbAll",
"kmrbR",
"kmrbTeenr",
"kmrbUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"lsfRating": {
"type": "string",
"description": "Rating system for Indonesia - Lembaga Sensor Film",
"enum": [
"lsfA",
"lsfBo",
"lsfD",
"lsfR",
"lsfSu",
"lsfUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"mccaaRating": {
"type": "string",
"description": "Rating system for Malta - Film Age-Classification Board",
"enum": [
"mccaa12",
"mccaa12a",
"mccaa14",
"mccaa15",
"mccaa16",
"mccaa18",
"mccaaPg",
"mccaaU",
"mccaaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"mccypRating": {
"type": "string",
"description": "Rating system for Denmark - The Media Council for Children and Young People",
"enum": [
"mccyp11",
"mccyp15",
"mccyp7",
"mccypA",
"mccypUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"mdaRating": {
"type": "string",
"description": "Rating system for Singapore - Media Development Authority",
"enum": [
"mdaG",
"mdaM18",
"mdaNc16",
"mdaPg",
"mdaPg13",
"mdaR21",
"mdaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"medietilsynetRating": {
"type": "string",
"description": "Rating system for Norway - Medietilsynet",
"enum": [
"medietilsynet11",
"medietilsynet15",
"medietilsynet18",
"medietilsynet7",
"medietilsynetA",
"medietilsynetUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"mekuRating": {
"type": "string",
"description": "Rating system for Finland - Finnish Centre for Media Education and Audiovisual Media",
"enum": [
"meku12",
"meku16",
"meku18",
"meku7",
"mekuS",
"mekuUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"mibacRating": {
"type": "string",
"description": "Rating system in Italy - Ministero dei Beni e delle Attivita Culturali e del Turismo",
"enum": [
"mibacT",
"mibacUnrated",
"mibacVap",
"mibacVm12",
"mibacVm14",
"mibacVm18"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"mocRating": {
"type": "string",
"description": "Rating system for Colombia - MoC",
"enum": [
"moc12",
"moc15",
"moc18",
"moc7",
"mocBanned",
"mocE",
"mocT",
"mocUnrated",
"mocX"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"moctwRating": {
"type": "string",
"description": "Rating system for Taiwan - Ministry of Culture - Tawan",
"enum": [
"moctwG",
"moctwP",
"moctwPg",
"moctwR",
"moctwUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"mpaaRating": {
"type": "string",
"description": "Motion Picture Association of America rating for the content.",
"enum": [
"mpaaG",
"mpaaNc17",
"mpaaPg",
"mpaaPg13",
"mpaaR",
"mpaaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"mtrcbRating": {
"type": "string",
"description": "Rating system for Philippines - MOVIE AND TELEVISION REVIEW AND CLASSIFICATION BOARD",
"enum": [
"mtrcbG",
"mtrcbPg",
"mtrcbR13",
"mtrcbR16",
"mtrcbR18",
"mtrcbUnrated",
"mtrcbX"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"nbcRating": {
"type": "string",
"description": "Rating system for Maldives - National Bureau of Classification",
"enum": [
"nbc12plus",
"nbc15plus",
"nbc18plus",
"nbc18plusr",
"nbcG",
"nbcPg",
"nbcPu",
"nbcUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"nbcplRating": {
"type": "string",
"description": "Rating system for Poland - National Broadcasting Council",
"enum": [
"nbcpl18plus",
"nbcplI",
"nbcplIi",
"nbcplIii",
"nbcplIv",
"nbcplUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"nfrcRating": {
"type": "string",
"description": "Rating system for Bulgaria - National Film Centre",
"enum": [
"nfrcA",
"nfrcB",
"nfrcC",
"nfrcD",
"nfrcUnrated",
"nfrcX"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"nfvcbRating": {
"type": "string",
"description": "Rating system for Nigeria - National Film and Video Censors Board",
"enum": [
"nfvcb12",
"nfvcb12a",
"nfvcb15",
"nfvcb18",
"nfvcbG",
"nfvcbPg",
"nfvcbRe",
"nfvcbUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"nkclvRating": {
"type": "string",
"description": "Rating system for Latvia - National Film Center of Latvia",
"enum": [
"nkclv12plus",
"nkclv18plus",
"nkclv7plus",
"nkclvU",
"nkclvUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"oflcRating": {
"type": "string",
"description": "Rating system in New Zealand - Office of Film and Literature Classification",
"enum": [
"oflcG",
"oflcM",
"oflcPg",
"oflcR13",
"oflcR15",
"oflcR16",
"oflcR18",
"oflcRp13",
"oflcRp16",
"oflcUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"pefilmRating": {
"type": "string",
"description": "Rating system for Peru - Peru Rating System",
"enum": [
"pefilm14",
"pefilm18",
"pefilmPg",
"pefilmPt",
"pefilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"rcnofRating": {
"type": "string",
"description": "Rating system for Hungary - Rating Committee of the National Office of Film",
"enum": [
"rcnofI",
"rcnofIi",
"rcnofIii",
"rcnofIv",
"rcnofUnrated",
"rcnofV",
"rcnofVi"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"resorteviolenciaRating": {
"type": "string",
"description": "Rating system for Venezuela - SiBCI",
"enum": [
"resorteviolenciaA",
"resorteviolenciaB",
"resorteviolenciaC",
"resorteviolenciaD",
"resorteviolenciaE",
"resorteviolenciaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"rtcRating": {
"type": "string",
"description": "Rating system in Mexico - General Directorate of Radio, Television and Cinematography",
"enum": [
"rtcA",
"rtcAa",
"rtcB",
"rtcB15",
"rtcC",
"rtcD",
"rtcUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"rteRating": {
"type": "string",
"description": "Rating system for Ireland - Raidi<64> Teilif<69>s <20>ireann",
"enum": [
"rteCh",
"rteGa",
"rteMa",
"rtePs",
"rteUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"russiaRating": {
"type": "string",
"description": "Rating system in Russia",
"enum": [
"russia0",
"russia12",
"russia16",
"russia18",
"russia6",
"russiaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"skfilmRating": {
"type": "string",
"description": "Rating system for Slovakia - Slovakia Rating System",
"enum": [
"skfilmG",
"skfilmP2",
"skfilmP5",
"skfilmP8",
"skfilmUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"smaisRating": {
"type": "string",
"description": "Rating system for Iceland - SMAIS",
"enum": [
"smais12",
"smais14",
"smais16",
"smais18",
"smais7",
"smaisL",
"smaisUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"smsaRating": {
"type": "string",
"description": "Rating system for Sweden - Statens medier<65>d (National Media Council)",
"enum": [
"smsa11",
"smsa15",
"smsa7",
"smsaA",
"smsaUnrated"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"tvpgRating": {
"type": "string",
"description": "TV Parental Guidelines rating of the content.",
"enum": [
"pg14",
"tvpgG",
"tvpgMa",
"tvpgPg",
"tvpgUnrated",
"tvpgY",
"tvpgY7",
"tvpgY7Fv"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
""
]
},
"ytRating": {
"type": "string",
"description": "Internal YouTube rating.",
"enum": [
"ytAgeRestricted"
],
"enumDescriptions": [
""
]
}
}
},
"GeoPoint": {
"id": "GeoPoint",
"type": "object",
"description": "Geographical coordinates of a point, in WGS84.",
"properties": {
"altitude": {
"type": "number",
"description": "Altitude above the reference ellipsoid, in meters.",
"format": "double"
},
"latitude": {
"type": "number",
"description": "Latitude in degrees.",
"format": "double"
},
"longitude": {
"type": "number",
"description": "Longitude in degrees.",
"format": "double"
}
}
},
"GuideCategory": {
"id": "GuideCategory",
"type": "object",
"description": "A guideCategory resource identifies a category that YouTube algorithmically assigns based on a channel's content or other indicators, such as the channel's popularity. The list is similar to video categories, with the difference being that a video's uploader can assign a video category but only YouTube can assign a channel category.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the guide category."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#guideCategory\".",
"default": "youtube#guideCategory"
},
"snippet": {
"$ref": "GuideCategorySnippet",
"description": "The snippet object contains basic details about the category, such as its title."
}
}
},
"GuideCategoryListResponse": {
"id": "GuideCategoryListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of categories that can be associated with YouTube channels. In this map, the category ID is the map key, and its value is the corresponding guideCategory resource.",
"items": {
"$ref": "GuideCategory"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#guideCategoryListResponse\".",
"default": "youtube#guideCategoryListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"GuideCategorySnippet": {
"id": "GuideCategorySnippet",
"type": "object",
"description": "Basic details about a guide category.",
"properties": {
"channelId": {
"type": "string",
"default": "UCBR8-60-B28hp2BmDPdntcQ"
},
"title": {
"type": "string",
"description": "Description of the guide category."
}
}
},
"I18nLanguage": {
"id": "I18nLanguage",
"type": "object",
"description": "An i18nLanguage resource identifies a UI language currently supported by YouTube.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the i18n language."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#i18nLanguage\".",
"default": "youtube#i18nLanguage"
},
"snippet": {
"$ref": "I18nLanguageSnippet",
"description": "The snippet object contains basic details about the i18n language, such as language code and human-readable name."
}
}
},
"I18nLanguageListResponse": {
"id": "I18nLanguageListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of supported i18n languages. In this map, the i18n language ID is the map key, and its value is the corresponding i18nLanguage resource.",
"items": {
"$ref": "I18nLanguage"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#i18nLanguageListResponse\".",
"default": "youtube#i18nLanguageListResponse"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"I18nLanguageSnippet": {
"id": "I18nLanguageSnippet",
"type": "object",
"description": "Basic details about an i18n language, such as language code and human-readable name.",
"properties": {
"hl": {
"type": "string",
"description": "A short BCP-47 code that uniquely identifies a language."
},
"name": {
"type": "string",
"description": "The human-readable name of the language in the language itself."
}
}
},
"I18nRegion": {
"id": "I18nRegion",
"type": "object",
"description": "A i18nRegion resource identifies a region where YouTube is available.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the i18n region."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#i18nRegion\".",
"default": "youtube#i18nRegion"
},
"snippet": {
"$ref": "I18nRegionSnippet",
"description": "The snippet object contains basic details about the i18n region, such as region code and human-readable name."
}
}
},
"I18nRegionListResponse": {
"id": "I18nRegionListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of regions where YouTube is available. In this map, the i18n region ID is the map key, and its value is the corresponding i18nRegion resource.",
"items": {
"$ref": "I18nRegion"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#i18nRegionListResponse\".",
"default": "youtube#i18nRegionListResponse"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"I18nRegionSnippet": {
"id": "I18nRegionSnippet",
"type": "object",
"description": "Basic details about an i18n region, such as region code and human-readable name.",
"properties": {
"gl": {
"type": "string",
"description": "The region code as a 2-letter ISO country code."
},
"name": {
"type": "string",
"description": "The human-readable name of the region."
}
}
},
"ImageSettings": {
"id": "ImageSettings",
"type": "object",
"description": "Branding properties for images associated with the channel.",
"properties": {
"backgroundImageUrl": {
"$ref": "LocalizedProperty",
"description": "The URL for the background image shown on the video watch page. The image should be 1200px by 615px, with a maximum file size of 128k."
},
"bannerExternalUrl": {
"type": "string",
"description": "This is used only in update requests; if it's set, we use this URL to generate all of the above banner URLs."
},
"bannerImageUrl": {
"type": "string",
"description": "Banner image. Desktop size (1060x175)."
},
"bannerMobileExtraHdImageUrl": {
"type": "string",
"description": "Banner image. Mobile size high resolution (1440x395)."
},
"bannerMobileHdImageUrl": {
"type": "string",
"description": "Banner image. Mobile size high resolution (1280x360)."
},
"bannerMobileImageUrl": {
"type": "string",
"description": "Banner image. Mobile size (640x175)."
},
"bannerMobileLowImageUrl": {
"type": "string",
"description": "Banner image. Mobile size low resolution (320x88)."
},
"bannerMobileMediumHdImageUrl": {
"type": "string",
"description": "Banner image. Mobile size medium/high resolution (960x263)."
},
"bannerTabletExtraHdImageUrl": {
"type": "string",
"description": "Banner image. Tablet size extra high resolution (2560x424)."
},
"bannerTabletHdImageUrl": {
"type": "string",
"description": "Banner image. Tablet size high resolution (2276x377)."
},
"bannerTabletImageUrl": {
"type": "string",
"description": "Banner image. Tablet size (1707x283)."
},
"bannerTabletLowImageUrl": {
"type": "string",
"description": "Banner image. Tablet size low resolution (1138x188)."
},
"bannerTvHighImageUrl": {
"type": "string",
"description": "Banner image. TV size high resolution (1920x1080)."
},
"bannerTvImageUrl": {
"type": "string",
"description": "Banner image. TV size extra high resolution (2120x1192)."
},
"bannerTvLowImageUrl": {
"type": "string",
"description": "Banner image. TV size low resolution (854x480)."
},
"bannerTvMediumImageUrl": {
"type": "string",
"description": "Banner image. TV size medium resolution (1280x720)."
},
"largeBrandedBannerImageImapScript": {
"$ref": "LocalizedProperty",
"description": "The image map script for the large banner image."
},
"largeBrandedBannerImageUrl": {
"$ref": "LocalizedProperty",
"description": "The URL for the 854px by 70px image that appears below the video player in the expanded video view of the video watch page."
},
"smallBrandedBannerImageImapScript": {
"$ref": "LocalizedProperty",
"description": "The image map script for the small banner image."
},
"smallBrandedBannerImageUrl": {
"$ref": "LocalizedProperty",
"description": "The URL for the 640px by 70px banner image that appears below the video player in the default view of the video watch page."
},
"trackingImageUrl": {
"type": "string",
"description": "The URL for a 1px by 1px tracking pixel that can be used to collect statistics for views of the channel or video pages."
},
"watchIconImageUrl": {
"type": "string",
"description": "The URL for the image that appears above the top-left corner of the video player. This is a 25-pixel-high image with a flexible width that cannot exceed 170 pixels."
}
}
},
"IngestionInfo": {
"id": "IngestionInfo",
"type": "object",
"description": "Describes information necessary for ingesting an RTMP or an HTTP stream.",
"properties": {
"backupIngestionAddress": {
"type": "string",
"description": "The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL."
},
"ingestionAddress": {
"type": "string",
"description": "The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.\n\nDepending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format:\n\nSTREAM_URL/STREAM_NAME"
},
"streamName": {
"type": "string",
"description": "The HTTP or RTMP stream name that YouTube assigns to the video stream."
}
}
},
"InvideoBranding": {
"id": "InvideoBranding",
"type": "object",
"properties": {
"imageBytes": {
"type": "string",
"format": "byte"
},
"imageUrl": {
"type": "string"
},
"position": {
"$ref": "InvideoPosition"
},
"targetChannelId": {
"type": "string"
},
"timing": {
"$ref": "InvideoTiming"
}
}
},
"InvideoPosition": {
"id": "InvideoPosition",
"type": "object",
"description": "Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one.",
"properties": {
"cornerPosition": {
"type": "string",
"description": "Describes in which corner of the video the visual widget will appear.",
"enum": [
"bottomLeft",
"bottomRight",
"topLeft",
"topRight"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"type": {
"type": "string",
"description": "Defines the position type.",
"enum": [
"corner"
],
"enumDescriptions": [
""
]
}
}
},
"InvideoPromotion": {
"id": "InvideoPromotion",
"type": "object",
"description": "Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id.",
"properties": {
"defaultTiming": {
"$ref": "InvideoTiming",
"description": "The default temporal position within the video where the promoted item will be displayed. Can be overriden by more specific timing in the item."
},
"items": {
"type": "array",
"description": "List of promoted items in decreasing priority.",
"items": {
"$ref": "PromotedItem"
}
},
"position": {
"$ref": "InvideoPosition",
"description": "The spatial position within the video where the promoted item will be displayed."
},
"useSmartTiming": {
"type": "boolean",
"description": "Indicates whether the channel's promotional campaign uses \"smart timing.\" This feature attempts to show promotions at a point in the video when they are more likely to be clicked and less likely to disrupt the viewing experience. This feature also picks up a single promotion to show on each video."
}
}
},
"InvideoTiming": {
"id": "InvideoTiming",
"type": "object",
"description": "Describes a temporal position of a visual widget inside a video.",
"properties": {
"durationMs": {
"type": "string",
"description": "Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.",
"format": "uint64"
},
"offsetMs": {
"type": "string",
"description": "Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.",
"format": "uint64"
},
"type": {
"type": "string",
"description": "Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.",
"enum": [
"offsetFromEnd",
"offsetFromStart"
],
"enumDescriptions": [
"",
""
]
}
}
},
"LiveBroadcast": {
"id": "LiveBroadcast",
"type": "object",
"description": "A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.",
"properties": {
"contentDetails": {
"$ref": "LiveBroadcastContentDetails",
"description": "The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube assigns to uniquely identify the broadcast.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#liveBroadcast\".",
"default": "youtube#liveBroadcast"
},
"snippet": {
"$ref": "LiveBroadcastSnippet",
"description": "The snippet object contains basic details about the event, including its title, description, start time, and end time."
},
"status": {
"$ref": "LiveBroadcastStatus",
"description": "The status object contains information about the event's status."
}
}
},
"LiveBroadcastContentDetails": {
"id": "LiveBroadcastContentDetails",
"type": "object",
"description": "Detailed settings of a broadcast.",
"properties": {
"boundStreamId": {
"type": "string",
"description": "This value uniquely identifies the live stream bound to the broadcast."
},
"enableClosedCaptions": {
"type": "boolean",
"description": "This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API."
},
"enableContentEncryption": {
"type": "boolean",
"description": "This setting indicates whether YouTube should enable content encryption for the broadcast.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
},
"enableDvr": {
"type": "boolean",
"description": "This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.\n\n\n\nImportant: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
},
"enableEmbed": {
"type": "boolean",
"description": "This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
},
"monitorStream": {
"$ref": "MonitorStreamInfo",
"description": "The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly."
},
"recordFromStart": {
"type": "boolean",
"description": "Automatically start recording after the event goes live. The default value for this property is true.\n\n\n\nImportant: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
},
"startWithSlate": {
"type": "boolean",
"description": "This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
}
}
},
"LiveBroadcastListResponse": {
"id": "LiveBroadcastListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of broadcasts that match the request criteria.",
"items": {
"$ref": "LiveBroadcast"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#liveBroadcastListResponse\".",
"default": "youtube#liveBroadcastListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"LiveBroadcastSnippet": {
"id": "LiveBroadcastSnippet",
"type": "object",
"properties": {
"actualEndTime": {
"type": "string",
"description": "The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"actualStartTime": {
"type": "string",
"description": "The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast."
},
"description": {
"type": "string",
"description": "The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource."
},
"publishedAt": {
"type": "string",
"description": "The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"scheduledEndTime": {
"type": "string",
"description": "The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time",
"annotations": {
"required": [
"youtube.liveBroadcasts.insert",
"youtube.liveBroadcasts.update"
]
}
},
"scheduledStartTime": {
"type": "string",
"description": "The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time",
"annotations": {
"required": [
"youtube.liveBroadcasts.insert",
"youtube.liveBroadcasts.update"
]
}
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail."
},
"title": {
"type": "string",
"description": "The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.",
"annotations": {
"required": [
"youtube.liveBroadcasts.insert",
"youtube.liveBroadcasts.update"
]
}
}
}
},
"LiveBroadcastStatus": {
"id": "LiveBroadcastStatus",
"type": "object",
"properties": {
"lifeCycleStatus": {
"type": "string",
"description": "The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.",
"enum": [
"abandoned",
"complete",
"completeStarting",
"created",
"live",
"liveStarting",
"ready",
"reclaimed",
"revoked",
"testStarting",
"testing"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"liveBroadcastPriority": {
"type": "string",
"description": "Priority of the live broadcast event (internal state).",
"enum": [
"high",
"low",
"normal"
],
"enumDescriptions": [
"",
"",
""
]
},
"privacyStatus": {
"type": "string",
"description": "The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.",
"enum": [
"private",
"public",
"unlisted"
],
"enumDescriptions": [
"",
"",
""
],
"annotations": {
"required": [
"youtube.liveBroadcasts.insert",
"youtube.liveBroadcasts.update"
]
}
},
"recordingStatus": {
"type": "string",
"description": "The broadcast's recording status.",
"enum": [
"notRecording",
"recorded",
"recording"
],
"enumDescriptions": [
"",
"",
""
]
}
}
},
"LiveStream": {
"id": "LiveStream",
"type": "object",
"description": "A live stream describes a live ingestion point.",
"properties": {
"cdn": {
"$ref": "CdnSettings",
"description": "The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube."
},
"contentDetails": {
"$ref": "LiveStreamContentDetails",
"description": "The content_details object contains information about the stream, including the closed captions ingestion URL."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube assigns to uniquely identify the stream.",
"annotations": {
"required": [
"youtube.liveStreams.update"
]
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#liveStream\".",
"default": "youtube#liveStream"
},
"snippet": {
"$ref": "LiveStreamSnippet",
"description": "The snippet object contains basic details about the stream, including its channel, title, and description."
},
"status": {
"$ref": "LiveStreamStatus",
"description": "The status object contains information about live stream's status."
}
}
},
"LiveStreamContentDetails": {
"id": "LiveStreamContentDetails",
"type": "object",
"description": "Detailed settings of a stream.",
"properties": {
"closedCaptionsIngestionUrl": {
"type": "string",
"description": "The ingestion URL where the closed captions of this stream are sent."
},
"isReusable": {
"type": "boolean",
"description": "Indicates whether the stream is reusable, which means that it can be bound to multiple broadcasts. It is common for broadcasters to reuse the same stream for many different broadcasts if those broadcasts occur at different times.\n\nIf you set this value to false, then the stream will not be reusable, which means that it can only be bound to one broadcast. Non-reusable streams differ from reusable streams in the following ways: \n- A non-reusable stream can only be bound to one broadcast. \n- A non-reusable stream might be deleted by an automated process after the broadcast ends. \n- The liveStreams.list method does not list non-reusable streams if you call the method and set the mine parameter to true. The only way to use that method to retrieve the resource for a non-reusable stream is to use the id parameter to identify the stream."
}
}
},
"LiveStreamListResponse": {
"id": "LiveStreamListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of live streams that match the request criteria.",
"items": {
"$ref": "LiveStream"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#liveStreamListResponse\".",
"default": "youtube#liveStreamListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"LiveStreamSnippet": {
"id": "LiveStreamSnippet",
"type": "object",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel that is transmitting the stream."
},
"description": {
"type": "string",
"description": "The stream's description. The value cannot be longer than 10000 characters."
},
"publishedAt": {
"type": "string",
"description": "The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"title": {
"type": "string",
"description": "The stream's title. The value must be between 1 and 128 characters long.",
"annotations": {
"required": [
"youtube.liveStreams.insert",
"youtube.liveStreams.update"
]
}
}
}
},
"LiveStreamStatus": {
"id": "LiveStreamStatus",
"type": "object",
"description": "Brief description of the live stream status.",
"properties": {
"streamStatus": {
"type": "string",
"enum": [
"active",
"created",
"error",
"inactive",
"ready"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
}
}
},
"LocalizedProperty": {
"id": "LocalizedProperty",
"type": "object",
"description": "Represent a property available in different languages.",
"properties": {
"default": {
"type": "string",
"description": "Default value for the localized property."
},
"localized": {
"type": "array",
"description": "The localized values.",
"items": {
"$ref": "LocalizedString"
}
}
}
},
"LocalizedString": {
"id": "LocalizedString",
"type": "object",
"description": "A localized string.",
"properties": {
"language": {
"type": "string",
"description": "Language associated to this value."
},
"value": {
"type": "string",
"description": "Value of the property."
}
}
},
"MonitorStreamInfo": {
"id": "MonitorStreamInfo",
"type": "object",
"description": "Settings and Info of the monitor stream",
"properties": {
"broadcastStreamDelayMs": {
"type": "integer",
"description": "If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.",
"format": "uint32",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
},
"embedHtml": {
"type": "string",
"description": "HTML code that embeds a player that plays the monitor stream."
},
"enableMonitorStream": {
"type": "boolean",
"description": "This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.\n\nYou need to set this value to true if you intend to have a broadcast delay for your event.\n\nNote: This property cannot be updated once the broadcast is in the testing or live state.",
"annotations": {
"required": [
"youtube.liveBroadcasts.update"
]
}
}
}
},
"PageInfo": {
"id": "PageInfo",
"type": "object",
"description": "Paging details for lists of resources, including total number of items available and number of resources returned in a single page.",
"properties": {
"resultsPerPage": {
"type": "integer",
"description": "The number of results included in the API response.",
"format": "int32"
},
"totalResults": {
"type": "integer",
"description": "The total number of results in the result set.",
"format": "int32"
}
}
},
"Playlist": {
"id": "Playlist",
"type": "object",
"description": "A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.\n\nYouTube also uses playlists to identify special collections of videos for a channel, such as: \n- uploaded videos \n- favorite videos \n- positively rated (liked) videos \n- watch history \n- watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel.\n\nYou can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.",
"properties": {
"contentDetails": {
"$ref": "PlaylistContentDetails",
"description": "The contentDetails object contains information like video count."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the playlist."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlist\".",
"default": "youtube#playlist"
},
"player": {
"$ref": "PlaylistPlayer",
"description": "The player object contains information that you would use to play the playlist in an embedded player."
},
"snippet": {
"$ref": "PlaylistSnippet",
"description": "The snippet object contains basic details about the playlist, such as its title and description."
},
"status": {
"$ref": "PlaylistStatus",
"description": "The status object contains status information for the playlist."
}
}
},
"PlaylistContentDetails": {
"id": "PlaylistContentDetails",
"type": "object",
"properties": {
"itemCount": {
"type": "integer",
"description": "The number of videos in the playlist.",
"format": "uint32"
}
}
},
"PlaylistItem": {
"id": "PlaylistItem",
"type": "object",
"description": "A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.\n\nYouTube uses playlists to identify special collections of videos for a channel, such as: \n- uploaded videos \n- favorite videos \n- positively rated (liked) videos \n- watch history \n- watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information.\n\nYou can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.",
"properties": {
"contentDetails": {
"$ref": "PlaylistItemContentDetails",
"description": "The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the playlist item."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistItem\".",
"default": "youtube#playlistItem"
},
"snippet": {
"$ref": "PlaylistItemSnippet",
"description": "The snippet object contains basic details about the playlist item, such as its title and position in the playlist."
},
"status": {
"$ref": "PlaylistItemStatus",
"description": "The status object contains information about the playlist item's privacy status."
}
}
},
"PlaylistItemContentDetails": {
"id": "PlaylistItemContentDetails",
"type": "object",
"properties": {
"endAt": {
"type": "string",
"description": "The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video."
},
"note": {
"type": "string",
"description": "A user-generated note for this item."
},
"startAt": {
"type": "string",
"description": "The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0."
},
"videoId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request."
}
}
},
"PlaylistItemListResponse": {
"id": "PlaylistItemListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of playlist items that match the request criteria.",
"items": {
"$ref": "PlaylistItem"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistItemListResponse\".",
"default": "youtube#playlistItemListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"PlaylistItemSnippet": {
"id": "PlaylistItemSnippet",
"type": "object",
"description": "Basic details about a playlist, including title, description and thumbnails.",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the user that added the item to the playlist."
},
"channelTitle": {
"type": "string",
"description": "Channel title for the channel that the playlist item belongs to."
},
"description": {
"type": "string",
"description": "The item's description."
},
"playlistId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.",
"annotations": {
"required": [
"youtube.playlistItems.insert",
"youtube.playlistItems.update"
]
}
},
"position": {
"type": "integer",
"description": "The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.",
"format": "uint32"
},
"publishedAt": {
"type": "string",
"description": "The date and time that the item was added to the playlist. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"resourceId": {
"$ref": "ResourceId",
"description": "The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.",
"annotations": {
"required": [
"youtube.playlistItems.insert",
"youtube.playlistItems.update"
]
}
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "A map of thumbnail images associated with the playlist item. 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."
},
"title": {
"type": "string",
"description": "The item's title."
}
}
},
"PlaylistItemStatus": {
"id": "PlaylistItemStatus",
"type": "object",
"description": "Information about the playlist item's privacy status.",
"properties": {
"privacyStatus": {
"type": "string",
"description": "This resource's privacy status.",
"enum": [
"private",
"public",
"unlisted"
],
"enumDescriptions": [
"",
"",
""
]
}
}
},
"PlaylistListResponse": {
"id": "PlaylistListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of playlists that match the request criteria.",
"items": {
"$ref": "Playlist"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#playlistListResponse\".",
"default": "youtube#playlistListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"PlaylistPlayer": {
"id": "PlaylistPlayer",
"type": "object",
"properties": {
"embedHtml": {
"type": "string",
"description": "An \u003ciframe\u003e tag that embeds a player that will play the playlist."
}
}
},
"PlaylistSnippet": {
"id": "PlaylistSnippet",
"type": "object",
"description": "Basic details about a playlist, including title, description and thumbnails.",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel that published the playlist."
},
"channelTitle": {
"type": "string",
"description": "The channel title of the channel that the video belongs to."
},
"description": {
"type": "string",
"description": "The playlist's description."
},
"publishedAt": {
"type": "string",
"description": "The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"tags": {
"type": "array",
"description": "Keyword tags associated with the playlist.",
"items": {
"type": "string"
}
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "A map of thumbnail images associated with the playlist. 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."
},
"title": {
"type": "string",
"description": "The playlist's title.",
"annotations": {
"required": [
"youtube.playlists.insert",
"youtube.playlists.update"
]
}
}
}
},
"PlaylistStatus": {
"id": "PlaylistStatus",
"type": "object",
"properties": {
"privacyStatus": {
"type": "string",
"description": "The playlist's privacy status.",
"enum": [
"private",
"public",
"unlisted"
],
"enumDescriptions": [
"",
"",
""
]
}
}
},
"PromotedItem": {
"id": "PromotedItem",
"type": "object",
"description": "Describes a single promoted item.",
"properties": {
"customMessage": {
"type": "string",
"description": "A custom message to display for this promotion. This field is currently ignored unless the promoted item is a website."
},
"id": {
"$ref": "PromotedItemId",
"description": "Identifies the promoted item."
},
"promotedByContentOwner": {
"type": "boolean",
"description": "If true, the content owner's name will be used when displaying the promotion. This field can only be set when the update is made on behalf of the content owner."
},
"timing": {
"$ref": "InvideoTiming",
"description": "The temporal position within the video where the promoted item will be displayed. If present, it overrides the default timing."
}
}
},
"PromotedItemId": {
"id": "PromotedItemId",
"type": "object",
"description": "Describes a single promoted item id. It is a union of various possible types.",
"properties": {
"recentlyUploadedBy": {
"type": "string",
"description": "If type is recentUpload, this field identifies the channel from which to take the recent upload. If missing, the channel is assumed to be the same channel for which the invideoPromotion is set."
},
"type": {
"type": "string",
"description": "Describes the type of the promoted item.",
"enum": [
"recentUpload",
"video",
"website"
],
"enumDescriptions": [
"",
"",
""
]
},
"videoId": {
"type": "string",
"description": "If the promoted item represents a video, this field represents the unique YouTube ID identifying it. This field will be present only if type has the value video."
},
"websiteUrl": {
"type": "string",
"description": "If the promoted item represents a website, this field represents the url pointing to the website. This field will be present only if type has the value website."
}
}
},
"PropertyValue": {
"id": "PropertyValue",
"type": "object",
"description": "A pair Property / Value.",
"properties": {
"property": {
"type": "string",
"description": "A property."
},
"value": {
"type": "string",
"description": "The property's value."
}
}
},
"ResourceId": {
"id": "ResourceId",
"type": "object",
"description": "A resource id is a generic reference that points to another YouTube resource.",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel."
},
"kind": {
"type": "string",
"description": "The type of the API resource."
},
"playlistId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist."
},
"videoId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video."
}
}
},
"SearchListResponse": {
"id": "SearchListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of results that match the search criteria.",
"items": {
"$ref": "SearchResult"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#searchListResponse\".",
"default": "youtube#searchListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"SearchResult": {
"id": "SearchResult",
"type": "object",
"description": "A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request. While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"$ref": "ResourceId",
"description": "The id object contains information that can be used to uniquely identify the resource that matches the search request."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#searchResult\".",
"default": "youtube#searchResult"
},
"snippet": {
"$ref": "SearchResultSnippet",
"description": "The snippet object contains basic details about a search result, such as its title or description. For example, if the search result is a video, then the title will be the video's title and the description will be the video's description."
}
}
},
"SearchResultSnippet": {
"id": "SearchResultSnippet",
"type": "object",
"description": "Basic details about a search result, including title, description and thumbnails of the item referenced by the search result.",
"properties": {
"channelId": {
"type": "string",
"description": "The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies."
},
"channelTitle": {
"type": "string",
"description": "The title of the channel that published the resource that the search result identifies."
},
"description": {
"type": "string",
"description": "A description of the search result."
},
"liveBroadcastContent": {
"type": "string",
"description": "It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's \"none\" if there is not any upcoming/active live broadcasts.",
"enum": [
"live",
"none",
"upcoming"
],
"enumDescriptions": [
"",
"",
""
]
},
"publishedAt": {
"type": "string",
"description": "The creation date and time of the resource that the search result identifies. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "A map of thumbnail images associated with the search result. 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."
},
"title": {
"type": "string",
"description": "The title of the search result."
}
}
},
"Subscription": {
"id": "Subscription",
"type": "object",
"description": "A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.",
"properties": {
"contentDetails": {
"$ref": "SubscriptionContentDetails",
"description": "The contentDetails object contains basic statistics about the subscription."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the subscription."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#subscription\".",
"default": "youtube#subscription"
},
"snippet": {
"$ref": "SubscriptionSnippet",
"description": "The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to."
},
"subscriberSnippet": {
"$ref": "SubscriptionSubscriberSnippet",
"description": "The subscriberSnippet object contains basic details about the sbuscriber."
}
}
},
"SubscriptionContentDetails": {
"id": "SubscriptionContentDetails",
"type": "object",
"description": "Details about the content to witch a subscription refers.",
"properties": {
"activityType": {
"type": "string",
"description": "The type of activity this subscription is for (only uploads, everything).",
"enum": [
"all",
"uploads"
],
"enumDescriptions": [
"",
""
]
},
"newItemCount": {
"type": "integer",
"description": "The number of new items in the subscription since its content was last read.",
"format": "uint32"
},
"totalItemCount": {
"type": "integer",
"description": "The approximate number of items that the subscription points to.",
"format": "uint32"
}
}
},
"SubscriptionListResponse": {
"id": "SubscriptionListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of subscriptions that match the request criteria.",
"items": {
"$ref": "Subscription"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#subscriptionListResponse\".",
"default": "youtube#subscriptionListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"SubscriptionSnippet": {
"id": "SubscriptionSnippet",
"type": "object",
"description": "Basic details about a subscription, including title, description and thumbnails of the subscribed item.",
"properties": {
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the subscriber's channel."
},
"channelTitle": {
"type": "string",
"description": "Channel title for the channel that the subscription belongs to."
},
"description": {
"type": "string",
"description": "The subscription's details."
},
"publishedAt": {
"type": "string",
"description": "The date and time that the subscription was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"resourceId": {
"$ref": "ResourceId",
"description": "The id object contains information about the channel that the user subscribed to.",
"annotations": {
"required": [
"youtube.subscriptions.insert"
]
}
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "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."
},
"title": {
"type": "string",
"description": "The subscription's title."
}
}
},
"SubscriptionSubscriberSnippet": {
"id": "SubscriptionSubscriberSnippet",
"type": "object",
"description": "Basic details about a subscription's subscriber including title, description, channel ID and thumbnails.",
"properties": {
"channelId": {
"type": "string",
"description": "The channel ID of the subscriber."
},
"description": {
"type": "string",
"description": "The description of the subscriber."
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "Thumbnails for this subscriber."
},
"title": {
"type": "string",
"description": "The title of the subscriber."
}
}
},
"Thumbnail": {
"id": "Thumbnail",
"type": "object",
"description": "A thumbnail is an image representing a YouTube resource.",
"properties": {
"height": {
"type": "integer",
"description": "(Optional) Height of the thumbnail image.",
"format": "uint32"
},
"url": {
"type": "string",
"description": "The thumbnail image's URL."
},
"width": {
"type": "integer",
"description": "(Optional) Width of the thumbnail image.",
"format": "uint32"
}
}
},
"ThumbnailDetails": {
"id": "ThumbnailDetails",
"type": "object",
"description": "Internal representation of thumbnails for a YouTube resource.",
"properties": {
"default": {
"$ref": "Thumbnail",
"description": "The default image for this resource."
},
"high": {
"$ref": "Thumbnail",
"description": "The high quality image for this resource."
},
"maxres": {
"$ref": "Thumbnail",
"description": "The maximum resolution quality image for this resource."
},
"medium": {
"$ref": "Thumbnail",
"description": "The medium quality image for this resource."
},
"standard": {
"$ref": "Thumbnail",
"description": "The standard quality image for this resource."
}
}
},
"ThumbnailSetResponse": {
"id": "ThumbnailSetResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of thumbnails.",
"items": {
"$ref": "ThumbnailDetails"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#thumbnailSetResponse\".",
"default": "youtube#thumbnailSetResponse"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"TokenPagination": {
"id": "TokenPagination",
"type": "object",
"description": "Stub token pagination template to suppress results."
},
"Video": {
"id": "Video",
"type": "object",
"description": "A video resource represents a YouTube video.",
"properties": {
"ageGating": {
"$ref": "VideoAgeGating",
"description": "Age restriction details related to a video."
},
"contentDetails": {
"$ref": "VideoContentDetails",
"description": "The contentDetails object contains information about the video content, including the length of the video and its aspect ratio."
},
"conversionPings": {
"$ref": "VideoConversionPings",
"description": "The conversionPings object encapsulates information about url pings that need to be respected by the App in different video contexts."
},
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"fileDetails": {
"$ref": "VideoFileDetails",
"description": "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."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the video.",
"annotations": {
"required": [
"youtube.videos.update"
]
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#video\".",
"default": "youtube#video"
},
"liveStreamingDetails": {
"$ref": "VideoLiveStreamingDetails",
"description": "The liveStreamingDetails object contains metadata about a live video broadcast. The object will only be present in a video resource if the video is an upcoming, live, or completed live broadcast."
},
"monetizationDetails": {
"$ref": "VideoMonetizationDetails",
"description": "The monetizationDetails object encapsulates information about the monetization status of the video."
},
"player": {
"$ref": "VideoPlayer",
"description": "The player object contains information that you would use to play the video in an embedded player."
},
"processingDetails": {
"$ref": "VideoProcessingDetails",
"description": "The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current 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.\n\nThe processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner."
},
"projectDetails": {
"$ref": "VideoProjectDetails",
"description": "The projectDetails object contains information about the project specific video metadata."
},
"recordingDetails": {
"$ref": "VideoRecordingDetails",
"description": "The recordingDetails object encapsulates information about the location, date and address where the video was recorded."
},
"snippet": {
"$ref": "VideoSnippet",
"description": "The snippet object contains basic details about the video, such as its title, description, and category."
},
"statistics": {
"$ref": "VideoStatistics",
"description": "The statistics object contains statistics about the video."
},
"status": {
"$ref": "VideoStatus",
"description": "The status object contains information about the video's uploading, processing, and privacy statuses."
},
"suggestions": {
"$ref": "VideoSuggestions",
"description": "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."
},
"topicDetails": {
"$ref": "VideoTopicDetails",
"description": "The topicDetails object encapsulates information about Freebase topics associated with the video."
}
}
},
"VideoAgeGating": {
"id": "VideoAgeGating",
"type": "object",
"properties": {
"alcoholContent": {
"type": "boolean",
"description": "Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content."
},
"restricted": {
"type": "boolean",
"description": "Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present."
},
"videoGameRating": {
"type": "string",
"description": "Video game rating, if any.",
"enum": [
"anyone",
"m15Plus",
"m16Plus",
"m17Plus"
],
"enumDescriptions": [
"",
"",
"",
""
]
}
}
},
"VideoCategory": {
"id": "VideoCategory",
"type": "object",
"description": "A videoCategory resource identifies a category that has been or could be associated with uploaded videos.",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"id": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the video category."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#videoCategory\".",
"default": "youtube#videoCategory"
},
"snippet": {
"$ref": "VideoCategorySnippet",
"description": "The snippet object contains basic details about the video category, including its title."
}
}
},
"VideoCategoryListResponse": {
"id": "VideoCategoryListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of video categories that can be associated with YouTube videos. In this map, the video category ID is the map key, and its value is the corresponding videoCategory resource.",
"items": {
"$ref": "VideoCategory"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#videoCategoryListResponse\".",
"default": "youtube#videoCategoryListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"VideoCategorySnippet": {
"id": "VideoCategorySnippet",
"type": "object",
"description": "Basic details about a video category, such as its localized title.",
"properties": {
"assignable": {
"type": "boolean"
},
"channelId": {
"type": "string",
"description": "The YouTube channel that created the video category.",
"default": "UCBR8-60-B28hp2BmDPdntcQ"
},
"title": {
"type": "string",
"description": "The video category's title."
}
}
},
"VideoContentDetails": {
"id": "VideoContentDetails",
"type": "object",
"description": "Details about the content of a YouTube Video.",
"properties": {
"caption": {
"type": "string",
"description": "The value of captions indicates whether the video has captions or not.",
"enum": [
"false",
"true"
],
"enumDescriptions": [
"",
""
]
},
"contentRating": {
"$ref": "ContentRating",
"description": "Specifies the ratings that the video received under various rating schemes."
},
"countryRestriction": {
"$ref": "AccessPolicy",
"description": "The countryRestriction object contains information about the countries where a video is (or is not) viewable."
},
"definition": {
"type": "string",
"description": "The value of definition indicates whether the video is available in high definition or only in standard definition.",
"enum": [
"hd",
"sd"
],
"enumDescriptions": [
"",
""
]
},
"dimension": {
"type": "string",
"description": "The value of dimension indicates whether the video is available in 3D or in 2D."
},
"duration": {
"type": "string",
"description": "The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long."
},
"licensedContent": {
"type": "boolean",
"description": "The value of is_license_content indicates whether the video is licensed content."
},
"regionRestriction": {
"$ref": "VideoContentDetailsRegionRestriction",
"description": "The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property."
}
}
},
"VideoContentDetailsRegionRestriction": {
"id": "VideoContentDetailsRegionRestriction",
"type": "object",
"description": "DEPRECATED Region restriction of the video.",
"properties": {
"allowed": {
"type": "array",
"description": "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.",
"items": {
"type": "string"
}
},
"blocked": {
"type": "array",
"description": "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.",
"items": {
"type": "string"
}
}
}
},
"VideoConversionPing": {
"id": "VideoConversionPing",
"type": "object",
"properties": {
"context": {
"type": "string",
"description": "Defines the context of the ping.",
"enum": [
"comment",
"dislike",
"like",
"share"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"conversionUrl": {
"type": "string",
"description": "The url (without the schema) that the app shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping."
}
}
},
"VideoConversionPings": {
"id": "VideoConversionPings",
"type": "object",
"properties": {
"pings": {
"type": "array",
"description": "Pings that the app shall fire for a video (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.",
"items": {
"$ref": "VideoConversionPing"
}
}
}
},
"VideoFileDetails": {
"id": "VideoFileDetails",
"type": "object",
"description": "Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information.",
"properties": {
"audioStreams": {
"type": "array",
"description": "A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.",
"items": {
"$ref": "VideoFileDetailsAudioStream"
}
},
"bitrateBps": {
"type": "string",
"description": "The uploaded video file's combined (video and audio) bitrate in bits per second.",
"format": "uint64"
},
"container": {
"type": "string",
"description": "The uploaded video file's container format."
},
"creationTime": {
"type": "string",
"description": "The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported: \n- Date only: YYYY-MM-DD \n- Naive time: YYYY-MM-DDTHH:MM:SS \n- Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM"
},
"durationMs": {
"type": "string",
"description": "The length of the uploaded video in milliseconds.",
"format": "uint64"
},
"fileName": {
"type": "string",
"description": "The uploaded file's name. This field is present whether a video file or another type of file was uploaded."
},
"fileSize": {
"type": "string",
"description": "The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.",
"format": "uint64"
},
"fileType": {
"type": "string",
"description": "The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.",
"enum": [
"archive",
"audio",
"document",
"image",
"other",
"project",
"video"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
},
"recordingLocation": {
"$ref": "GeoPoint",
"description": "Geographic coordinates that identify the place where the uploaded video was recorded. Coordinates are defined using WGS 84."
},
"videoStreams": {
"type": "array",
"description": "A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.",
"items": {
"$ref": "VideoFileDetailsVideoStream"
}
}
}
},
"VideoFileDetailsAudioStream": {
"id": "VideoFileDetailsAudioStream",
"type": "object",
"description": "Information about an audio stream.",
"properties": {
"bitrateBps": {
"type": "string",
"description": "The audio stream's bitrate, in bits per second.",
"format": "uint64"
},
"channelCount": {
"type": "integer",
"description": "The number of audio channels that the stream contains.",
"format": "uint32"
},
"codec": {
"type": "string",
"description": "The audio codec that the stream uses."
},
"vendor": {
"type": "string",
"description": "A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code."
}
}
},
"VideoFileDetailsVideoStream": {
"id": "VideoFileDetailsVideoStream",
"type": "object",
"description": "Information about a video stream.",
"properties": {
"aspectRatio": {
"type": "number",
"description": "The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.",
"format": "double"
},
"bitrateBps": {
"type": "string",
"description": "The video stream's bitrate, in bits per second.",
"format": "uint64"
},
"codec": {
"type": "string",
"description": "The video codec that the stream uses."
},
"frameRateFps": {
"type": "number",
"description": "The video stream's frame rate, in frames per second.",
"format": "double"
},
"heightPixels": {
"type": "integer",
"description": "The encoded video content's height in pixels.",
"format": "uint32"
},
"rotation": {
"type": "string",
"description": "The amount that YouTube needs to rotate the original source content to properly display the video.",
"enum": [
"clockwise",
"counterClockwise",
"none",
"other",
"upsideDown"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
},
"vendor": {
"type": "string",
"description": "A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code."
},
"widthPixels": {
"type": "integer",
"description": "The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels.",
"format": "uint32"
}
}
},
"VideoGetRatingResponse": {
"id": "VideoGetRatingResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"items": {
"type": "array",
"description": "A list of ratings that match the request criteria.",
"items": {
"$ref": "VideoRating"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#videoGetRatingResponse\".",
"default": "youtube#videoGetRatingResponse"
}
}
},
"VideoListResponse": {
"id": "VideoListResponse",
"type": "object",
"properties": {
"etag": {
"type": "string",
"description": "Etag of this resource."
},
"eventId": {
"type": "string",
"description": "Serialized EventId of the request which produced this response."
},
"items": {
"type": "array",
"description": "A list of videos that match the request criteria.",
"items": {
"$ref": "Video"
}
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#videoListResponse\".",
"default": "youtube#videoListResponse"
},
"nextPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set."
},
"pageInfo": {
"$ref": "PageInfo"
},
"prevPageToken": {
"type": "string",
"description": "The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set."
},
"tokenPagination": {
"$ref": "TokenPagination"
},
"visitorId": {
"type": "string",
"description": "The visitorId identifies the visitor."
}
}
},
"VideoLiveStreamingDetails": {
"id": "VideoLiveStreamingDetails",
"type": "object",
"description": "Details about the live streaming metadata.",
"properties": {
"actualEndTime": {
"type": "string",
"description": "The time that the broadcast actually ended. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available until the broadcast is over.",
"format": "date-time"
},
"actualStartTime": {
"type": "string",
"description": "The time that the broadcast actually started. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available until the broadcast begins.",
"format": "date-time"
},
"concurrentViewers": {
"type": "string",
"description": "The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.",
"format": "uint64"
},
"scheduledEndTime": {
"type": "string",
"description": "The time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. If the value is empty or the property is not present, then the broadcast is scheduled to continue indefinitely.",
"format": "date-time"
},
"scheduledStartTime": {
"type": "string",
"description": "The time that the broadcast is scheduled to begin. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
}
}
},
"VideoMonetizationDetails": {
"id": "VideoMonetizationDetails",
"type": "object",
"description": "Details about monetization of a YouTube Video.",
"properties": {
"access": {
"$ref": "AccessPolicy",
"description": "The value of access indicates whether the video can be monetized or not."
}
}
},
"VideoPlayer": {
"id": "VideoPlayer",
"type": "object",
"description": "Player to be used for a video playback.",
"properties": {
"embedHtml": {
"type": "string",
"description": "An \u003ciframe\u003e tag that embeds a player that will play the video."
}
}
},
"VideoProcessingDetails": {
"id": "VideoProcessingDetails",
"type": "object",
"description": "Describes processing status and progress and availability of some other Video resource parts.",
"properties": {
"editorSuggestionsAvailability": {
"type": "string",
"description": "This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request."
},
"fileDetailsAvailability": {
"type": "string",
"description": "This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request."
},
"processingFailureReason": {
"type": "string",
"description": "The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.",
"enum": [
"other",
"streamingFailed",
"transcodeFailed",
"uploadFailed"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"processingIssuesAvailability": {
"type": "string",
"description": "This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request."
},
"processingProgress": {
"$ref": "VideoProcessingDetailsProcessingProgress",
"description": "The processingProgress object contains information about the progress YouTube has made in processing the video. The values are really only relevant if the video's processing status is processing."
},
"processingStatus": {
"type": "string",
"description": "The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.",
"enum": [
"failed",
"processing",
"succeeded",
"terminated"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"tagSuggestionsAvailability": {
"type": "string",
"description": "This value indicates whether keyword (tag) suggestions are available for the video. 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."
},
"thumbnailsAvailability": {
"type": "string",
"description": "This value indicates whether thumbnail images have been generated for the video."
}
}
},
"VideoProcessingDetailsProcessingProgress": {
"id": "VideoProcessingDetailsProcessingProgress",
"type": "object",
"description": "Video processing progress and completion time estimate.",
"properties": {
"partsProcessed": {
"type": "string",
"description": "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:\n100 * parts_processed / parts_total\n\nNote that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.",
"format": "uint64"
},
"partsTotal": {
"type": "string",
"description": "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.",
"format": "uint64"
},
"timeLeftMs": {
"type": "string",
"description": "An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.",
"format": "uint64"
}
}
},
"VideoProjectDetails": {
"id": "VideoProjectDetails",
"type": "object",
"description": "Project specific details about the content of a YouTube Video.",
"properties": {
"tags": {
"type": "array",
"description": "A list of project tags associated with the video during the upload.",
"items": {
"type": "string"
}
}
}
},
"VideoRating": {
"id": "VideoRating",
"type": "object",
"properties": {
"rating": {
"type": "string",
"enum": [
"dislike",
"like",
"none",
"unspecified"
],
"enumDescriptions": [
"",
"",
"",
""
]
},
"videoId": {
"type": "string"
}
}
},
"VideoRecordingDetails": {
"id": "VideoRecordingDetails",
"type": "object",
"description": "Recording information associated with the video.",
"properties": {
"location": {
"$ref": "GeoPoint",
"description": "The geolocation information associated with the video."
},
"locationDescription": {
"type": "string",
"description": "The text description of the location where the video was recorded."
},
"recordingDate": {
"type": "string",
"description": "The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.",
"format": "date-time"
}
}
},
"VideoSnippet": {
"id": "VideoSnippet",
"type": "object",
"description": "Basic details about a video, including title, description, uploader, thumbnails and category.",
"properties": {
"categoryId": {
"type": "string",
"description": "The YouTube video category associated with the video."
},
"channelId": {
"type": "string",
"description": "The ID that YouTube uses to uniquely identify the channel that the video was uploaded to."
},
"channelTitle": {
"type": "string",
"description": "Channel title for the channel that the video belongs to."
},
"description": {
"type": "string",
"description": "The video's description."
},
"liveBroadcastContent": {
"type": "string",
"description": "Indicates if the video is an upcoming/active live broadcast. Or it's \"none\" if the video is not an upcoming/active live broadcast.",
"enum": [
"live",
"none",
"upcoming"
],
"enumDescriptions": [
"",
"",
""
]
},
"publishedAt": {
"type": "string",
"description": "The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"tags": {
"type": "array",
"description": "A list of keyword tags associated with the video. Tags may contain spaces. This field is only visible to the video's uploader.",
"items": {
"type": "string"
}
},
"thumbnails": {
"$ref": "ThumbnailDetails",
"description": "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."
},
"title": {
"type": "string",
"description": "The video's title."
}
}
},
"VideoStatistics": {
"id": "VideoStatistics",
"type": "object",
"description": "Statistics about the video, such as the number of times the video was viewed or liked.",
"properties": {
"commentCount": {
"type": "string",
"description": "The number of comments for the video.",
"format": "uint64"
},
"dislikeCount": {
"type": "string",
"description": "The number of users who have indicated that they disliked the video by giving it a negative rating.",
"format": "uint64"
},
"favoriteCount": {
"type": "string",
"description": "The number of users who currently have the video marked as a favorite video.",
"format": "uint64"
},
"likeCount": {
"type": "string",
"description": "The number of users who have indicated that they liked the video by giving it a positive rating.",
"format": "uint64"
},
"viewCount": {
"type": "string",
"description": "The number of times the video has been viewed.",
"format": "uint64"
}
}
},
"VideoStatus": {
"id": "VideoStatus",
"type": "object",
"description": "Basic details about a video category, such as its localized title.",
"properties": {
"embeddable": {
"type": "boolean",
"description": "This value indicates if the video can be embedded on another website."
},
"failureReason": {
"type": "string",
"description": "This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.",
"enum": [
"codec",
"conversion",
"emptyFile",
"invalidFile",
"tooSmall",
"uploadAborted"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
},
"license": {
"type": "string",
"description": "The video's license.",
"enum": [
"creativeCommon",
"youtube"
],
"enumDescriptions": [
"",
""
]
},
"privacyStatus": {
"type": "string",
"description": "The video's privacy status.",
"enum": [
"private",
"public",
"unlisted"
],
"enumDescriptions": [
"",
"",
""
]
},
"publicStatsViewable": {
"type": "boolean",
"description": "This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled."
},
"publishAt": {
"type": "string",
"description": "The date and time when the video is scheduled to publish. It can be set only if the privacy status of the video is private. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time"
},
"rejectionReason": {
"type": "string",
"description": "This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.",
"enum": [
"claim",
"copyright",
"duplicate",
"inappropriate",
"length",
"termsOfUse",
"trademark",
"uploaderAccountClosed",
"uploaderAccountSuspended"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"uploadStatus": {
"type": "string",
"description": "The status of the uploaded video.",
"enum": [
"deleted",
"failed",
"processed",
"rejected",
"uploaded"
],
"enumDescriptions": [
"",
"",
"",
"",
""
]
}
}
},
"VideoSuggestions": {
"id": "VideoSuggestions",
"type": "object",
"description": "Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions.",
"properties": {
"editorSuggestions": {
"type": "array",
"description": "A list of video editing operations that might improve the video quality or playback experience of the uploaded video.",
"items": {
"type": "string",
"enum": [
"audioQuietAudioSwap",
"videoAutoLevels",
"videoCrop",
"videoStabilize"
],
"enumDescriptions": [
"",
"",
"",
""
]
}
},
"processingErrors": {
"type": "array",
"description": "A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.",
"items": {
"type": "string",
"enum": [
"archiveFile",
"audioFile",
"docFile",
"imageFile",
"notAVideoFile",
"projectFile"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
""
]
}
},
"processingHints": {
"type": "array",
"description": "A list of suggestions that may improve YouTube's ability to process the video.",
"items": {
"type": "string",
"enum": [
"nonStreamableMov",
"sendBestQualityVideo"
],
"enumDescriptions": [
"",
""
]
}
},
"processingWarnings": {
"type": "array",
"description": "A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.",
"items": {
"type": "string",
"enum": [
"hasEditlist",
"inconsistentResolution",
"problematicAudioCodec",
"problematicVideoCodec",
"unknownAudioCodec",
"unknownContainer",
"unknownVideoCodec"
],
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
""
]
}
},
"tagSuggestions": {
"type": "array",
"description": "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.",
"items": {
"$ref": "VideoSuggestionsTagSuggestion"
}
}
}
},
"VideoSuggestionsTagSuggestion": {
"id": "VideoSuggestionsTagSuggestion",
"type": "object",
"description": "A single tag suggestion with it's relevance information.",
"properties": {
"categoryRestricts": {
"type": "array",
"description": "A set of video categories 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.",
"items": {
"type": "string"
}
},
"tag": {
"type": "string",
"description": "The keyword tag suggested for the video."
}
}
},
"VideoTopicDetails": {
"id": "VideoTopicDetails",
"type": "object",
"description": "Freebase topic information related to the video.",
"properties": {
"relevantTopicIds": {
"type": "array",
"description": "Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.",
"items": {
"type": "string"
}
},
"topicIds": {
"type": "array",
"description": "A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the Freebase Topic API.",
"items": {
"type": "string"
}
}
}
},
"WatchSettings": {
"id": "WatchSettings",
"type": "object",
"description": "Branding properties for the watch.",
"properties": {
"backgroundColor": {
"type": "string",
"description": "The text color for the video watch page's branded area."
},
"featuredPlaylistId": {
"type": "string",
"description": "An ID that uniquely identifies a playlist that displays next to the video player."
},
"textColor": {
"type": "string",
"description": "The background color for the video watch page's branded area."
}
}
}
},
"resources": {
"activities": {
"methods": {
"insert": {
"id": "youtube.activities.insert",
"path": "activities",
"httpMethod": "POST",
"description": "Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.)\n\nNote: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.",
"parameters": {
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet and contentDetails.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Activity"
},
"response": {
"$ref": "Activity"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"list": {
"id": "youtube.activities.list",
"path": "activities",
"httpMethod": "GET",
"description": "Returns a list of channel activity events that match the request criteria. For example, you can retrieve events associated with a particular channel, events associated with the user's subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each user.",
"parameters": {
"channelId": {
"type": "string",
"description": "The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel's activities.",
"location": "query"
},
"home": {
"type": "boolean",
"description": "Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home page for the currently authenticated user.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "Set this parameter's value to true to retrieve a feed of the authenticated user's activities.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set part=snippet, the API response will also contain all of those nested properties.",
"required": true,
"location": "query"
},
"publishedAfter": {
"type": "string",
"description": "The publishedAfter parameter specifies the earliest date and time that an activity could have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be included in the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time",
"location": "query"
},
"publishedBefore": {
"type": "string",
"description": "The publishedBefore parameter specifies the date and time before which an activity must have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be excluded from the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
"format": "date-time",
"location": "query"
},
"regionCode": {
"type": "string",
"description": "The regionCode parameter instructs the API to return results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the authorized user's previous activity on YouTube does not provide enough information to generate the activity feed.",
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "ActivityListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly"
]
}
}
},
"channelBanners": {
"methods": {
"insert": {
"id": "youtube.channelBanners.insert",
"path": "channelBanners/insert",
"httpMethod": "POST",
"description": "Uploads a channel banner image to YouTube. This method represents the first two steps in a three-step process to update the banner image for a channel:\n\n- Call the channelBanners.insert method to upload the binary image data to YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 pixels.\n- Extract the url property's value from the response that the API returns for step 1.\n- Call the channels.update method to update the channel's branding settings. Set the brandingSettings.image.bannerExternalUrl property's value to the URL obtained in step 2.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
}
},
"request": {
"$ref": "ChannelBannerResource"
},
"response": {
"$ref": "ChannelBannerResource"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.upload"
],
"supportsMediaUpload": true,
"mediaUpload": {
"accept": [
"application/octet-stream",
"image/jpeg",
"image/png"
],
"maxSize": "6MB",
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/youtube/v3/channelBanners/insert"
},
"resumable": {
"multipart": true,
"path": "/resumable/upload/youtube/v3/channelBanners/insert"
}
}
}
}
}
},
"channelSections": {
"methods": {
"delete": {
"id": "youtube.channelSections.delete",
"path": "channelSections",
"httpMethod": "DELETE",
"description": "Deletes a channelSection.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. In a channelSection resource, the id property specifies the YouTube channelSection ID.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"insert": {
"id": "youtube.channelSections.insert",
"path": "channelSections",
"httpMethod": "POST",
"description": "Adds a channelSection for the authenticated user's channel.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet and contentDetails.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "ChannelSection"
},
"response": {
"$ref": "ChannelSection"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"list": {
"id": "youtube.channelSections.list",
"path": "channelSections",
"httpMethod": "GET",
"description": "Returns channelSection resources that match the API request criteria.",
"parameters": {
"channelId": {
"type": "string",
"description": "The channelId parameter specifies a YouTube channel ID. The API will only return that channel's channelSections.",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube channelSection ID(s) for the resource(s) that are being retrieved. In a channelSection resource, the id property specifies the YouTube channelSection ID.",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "Set this parameter's value to true to retrieve a feed of the authenticated user's channelSections.",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set part=snippet, the API response will also contain all of those nested properties.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "ChannelSectionListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"update": {
"id": "youtube.channelSections.update",
"path": "channelSections",
"httpMethod": "PUT",
"description": "Update a channelSection.",
"parameters": {
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet and contentDetails.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "ChannelSection"
},
"response": {
"$ref": "ChannelSection"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"channels": {
"methods": {
"list": {
"id": "youtube.channels.list",
"path": "channels",
"httpMethod": "GET",
"description": "Returns a collection of zero or more channel resources that match the request criteria.",
"parameters": {
"categoryId": {
"type": "string",
"description": "The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category.",
"location": "query"
},
"forUsername": {
"type": "string",
"description": "The forUsername parameter specifies a YouTube username, thereby requesting the channel associated with that username.",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the id property specifies the channel's YouTube channel ID.",
"location": "query"
},
"managedByMe": {
"type": "boolean",
"description": "Set this parameter's value to true to instruct the API to only return channels managed by the content owner that the onBehalfOfContentOwner parameter specifies. The user must be authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner must be provided.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "Set this parameter's value to true to instruct the API to only return channels owned by the authenticated user.",
"location": "query"
},
"mySubscribers": {
"type": "boolean",
"description": "Set this parameter's value to true to retrieve a list of channels that subscribed to the authenticated user's channel.",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "ChannelListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner",
"https://www.googleapis.com/auth/youtubepartner-channel-audit"
]
},
"update": {
"id": "youtube.channels.update",
"path": "channels",
"httpMethod": "PUT",
"description": "Updates a channel's metadata.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are id and invideoPromotion.\n\nNote that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Channel"
},
"response": {
"$ref": "Channel"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"guideCategories": {
"methods": {
"list": {
"id": "youtube.guideCategories.list",
"path": "guideCategories",
"httpMethod": "GET",
"description": "Returns a list of categories that can be associated with YouTube channels.",
"parameters": {
"hl": {
"type": "string",
"description": "The hl parameter specifies the language that will be used for text values in the API response.",
"default": "en-US",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the YouTube channel category ID.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more guideCategory resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a guideCategory resource, the snippet property contains other properties, such as the category's title. If you set part=snippet, the API response will also contain all of those nested properties.",
"required": true,
"location": "query"
},
"regionCode": {
"type": "string",
"description": "The regionCode parameter instructs the API to return the list of guide categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.",
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "GuideCategoryListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"i18nLanguages": {
"methods": {
"list": {
"id": "youtube.i18nLanguages.list",
"path": "i18nLanguages",
"httpMethod": "GET",
"description": "Returns a list of supported languages.",
"parameters": {
"hl": {
"type": "string",
"description": "The hl parameter specifies the language that should be used for text values in the API response.",
"default": "en_US",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more i18nLanguage resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "I18nLanguageListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"i18nRegions": {
"methods": {
"list": {
"id": "youtube.i18nRegions.list",
"path": "i18nRegions",
"httpMethod": "GET",
"description": "Returns a list of supported regions.",
"parameters": {
"hl": {
"type": "string",
"description": "The hl parameter specifies the language that should be used for text values in the API response.",
"default": "en_US",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more i18nRegion resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "I18nRegionListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"liveBroadcasts": {
"methods": {
"bind": {
"id": "youtube.liveBroadcasts.bind",
"path": "liveBroadcasts/bind",
"httpMethod": "POST",
"description": "Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the unique ID of the broadcast that is being bound to a video stream.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.",
"required": true,
"location": "query"
},
"streamId": {
"type": "string",
"description": "The streamId parameter specifies the unique ID of the video stream that is being bound to a broadcast. If this parameter is omitted, the API will remove any existing binding between the broadcast and a video stream.",
"location": "query"
}
},
"parameterOrder": [
"id",
"part"
],
"response": {
"$ref": "LiveBroadcast"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"control": {
"id": "youtube.liveBroadcasts.control",
"path": "liveBroadcasts/control",
"httpMethod": "POST",
"description": "Controls the settings for a slate that can be displayed in the broadcast stream.",
"parameters": {
"displaySlate": {
"type": "boolean",
"description": "The displaySlate parameter specifies whether the slate is being enabled or disabled.",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast in which the slate is being updated.",
"required": true,
"location": "query"
},
"offsetTimeMs": {
"type": "string",
"description": "The offsetTimeMs parameter specifies a positive time offset when the specified slate change will occur. The value is measured in milliseconds from the beginning of the broadcast's monitor stream, which is the time that the testing phase for the broadcast began. Even though it is specified in milliseconds, the value is actually an approximation, and YouTube completes the requested action as closely as possible to that time.\n\nIf you do not specify a value for this parameter, then YouTube performs the action as soon as possible. See the Getting started guide for more details.\n\nImportant: You should only specify a value for this parameter if your broadcast stream is delayed.",
"format": "uint64",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.",
"required": true,
"location": "query"
},
"walltime": {
"type": "string",
"description": "The walltime parameter specifies the wall clock time at which the specified slate change will occur. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.",
"format": "date-time",
"location": "query"
}
},
"parameterOrder": [
"id",
"part"
],
"response": {
"$ref": "LiveBroadcast"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"delete": {
"id": "youtube.liveBroadcasts.delete",
"path": "liveBroadcasts",
"httpMethod": "DELETE",
"description": "Deletes a broadcast.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"insert": {
"id": "youtube.liveBroadcasts.insert",
"path": "liveBroadcasts",
"httpMethod": "POST",
"description": "Creates a broadcast.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part properties that you can include in the parameter value are id, snippet, contentDetails, and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "LiveBroadcast"
},
"response": {
"$ref": "LiveBroadcast"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"list": {
"id": "youtube.liveBroadcasts.list",
"path": "liveBroadcasts",
"httpMethod": "GET",
"description": "Returns a list of YouTube broadcasts that match the API request parameters.",
"parameters": {
"broadcastStatus": {
"type": "string",
"description": "The broadcastStatus parameter filters the API response to only include broadcasts with the specified status.",
"enum": [
"active",
"all",
"completed",
"upcoming"
],
"enumDescriptions": [
"Return current live broadcasts.",
"Return all broadcasts.",
"Return broadcasts that have already ended.",
"Return broadcasts that have not yet started."
],
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the broadcast's ID.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "The mine parameter can be used to instruct the API to only return broadcasts owned by the authenticated user. Set the parameter value to true to only retrieve your own broadcasts.",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "LiveBroadcastListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly"
]
},
"transition": {
"id": "youtube.liveBroadcasts.transition",
"path": "liveBroadcasts/transition",
"httpMethod": "POST",
"description": "Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream. Before calling this method, you should confirm that the value of the status.streamStatus property for the stream bound to your broadcast is active.",
"parameters": {
"broadcastStatus": {
"type": "string",
"description": "The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that to transition a broadcast to either the testing or live state, the status.streamStatus must be active for the stream that the broadcast is bound to.",
"required": true,
"enum": [
"complete",
"live",
"testing"
],
"enumDescriptions": [
"The broadcast is over. YouTube stops transmitting video.",
"The broadcast is visible to its audience. YouTube transmits video to the broadcast's monitor stream and its broadcast stream.",
"Start testing the broadcast. YouTube transmits video to the broadcast's monitor stream. Note that you can only transition a broadcast to the testing state if its contentDetails.monitorStream.enableMonitorStream property is set to true."
],
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies the unique ID of the broadcast that is transitioning to another status.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"broadcastStatus",
"id",
"part"
],
"response": {
"$ref": "LiveBroadcast"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"update": {
"id": "youtube.liveBroadcasts.update",
"path": "liveBroadcasts",
"httpMethod": "PUT",
"description": "Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part properties that you can include in the parameter value are id, snippet, contentDetails, and status.\n\nNote that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "LiveBroadcast"
},
"response": {
"$ref": "LiveBroadcast"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
}
}
},
"liveStreams": {
"methods": {
"delete": {
"id": "youtube.liveStreams.delete",
"path": "liveStreams",
"httpMethod": "DELETE",
"description": "Deletes a video stream.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube live stream ID for the resource that is being deleted.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"insert": {
"id": "youtube.liveStreams.insert",
"path": "liveStreams",
"httpMethod": "POST",
"description": "Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part properties that you can include in the parameter value are id, snippet, cdn, and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "LiveStream"
},
"response": {
"$ref": "LiveStream"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
},
"list": {
"id": "youtube.liveStreams.list",
"path": "liveStreams",
"httpMethod": "GET",
"description": "Returns a list of video streams that match the API request parameters.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of YouTube stream IDs that identify the streams being retrieved. In a liveStream resource, the id property specifies the stream's ID.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "The mine parameter can be used to instruct the API to only return streams owned by the authenticated user. Set the parameter value to true to only retrieve your own streams.",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "LiveStreamListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly"
]
},
"update": {
"id": "youtube.liveStreams.update",
"path": "liveStreams",
"httpMethod": "PUT",
"description": "Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part properties that you can include in the parameter value are id, snippet, cdn, and status.\n\nNote that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "LiveStream"
},
"response": {
"$ref": "LiveStream"
},
"scopes": [
"https://www.googleapis.com/auth/youtube"
]
}
}
},
"playlistItems": {
"methods": {
"delete": {
"id": "youtube.playlistItems.delete",
"path": "playlistItems",
"httpMethod": "DELETE",
"description": "Deletes a playlist item.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube playlist item ID for the playlist item that is being deleted. In a playlistItem resource, the id property specifies the playlist item's ID.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"insert": {
"id": "youtube.playlistItems.insert",
"path": "playlistItems",
"httpMethod": "POST",
"description": "Adds a resource to a playlist.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet, contentDetails, and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "PlaylistItem"
},
"response": {
"$ref": "PlaylistItem"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"list": {
"id": "youtube.playlistItems.list",
"path": "playlistItems",
"httpMethod": "GET",
"description": "Returns a collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in a specified playlist or retrieve one or more playlist items by their unique IDs.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of one or more unique playlist item IDs.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set part=snippet, the API response will contain all of those properties.",
"required": true,
"location": "query"
},
"playlistId": {
"type": "string",
"description": "The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve playlist items. Note that even though this is an optional parameter, every request to retrieve playlist items must specify a value for either the id parameter or the playlistId parameter.",
"location": "query"
},
"videoId": {
"type": "string",
"description": "The videoId parameter specifies that the request should return only the playlist items that contain the specified video.",
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "PlaylistItemListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
],
"supportsSubscription": true
},
"update": {
"id": "youtube.playlistItems.update",
"path": "playlistItems",
"httpMethod": "PUT",
"description": "Modifies a playlist item. For example, you could update the item's position in the playlist.",
"parameters": {
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet, contentDetails, and status.\n\nNote that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "PlaylistItem"
},
"response": {
"$ref": "PlaylistItem"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"playlists": {
"methods": {
"delete": {
"id": "youtube.playlists.delete",
"path": "playlists",
"httpMethod": "DELETE",
"description": "Deletes a playlist.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a playlist resource, the id property specifies the playlist's ID.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"insert": {
"id": "youtube.playlists.insert",
"path": "playlists",
"httpMethod": "POST",
"description": "Creates a playlist.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet and status.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Playlist"
},
"response": {
"$ref": "Playlist"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"list": {
"id": "youtube.playlists.list",
"path": "playlists",
"httpMethod": "GET",
"description": "Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.",
"parameters": {
"channelId": {
"type": "string",
"description": "This value indicates that the API should only return the specified channel's playlists.",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the resource(s) that are being retrieved. In a playlist resource, the id property specifies the playlist's YouTube playlist ID.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "Set this parameter's value to true to instruct the API to only return playlists owned by the authenticated user.",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, status, and contentDetails.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set part=snippet, the API response will contain all of those properties.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "PlaylistListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"update": {
"id": "youtube.playlists.update",
"path": "playlists",
"httpMethod": "PUT",
"description": "Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet and status.\n\nNote that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist's privacy setting is contained in the status part. As such, if your request is updating a private playlist, and the request's part parameter value includes the status part, the playlist's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the playlist will revert to the default privacy setting.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Playlist"
},
"response": {
"$ref": "Playlist"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"search": {
"methods": {
"list": {
"id": "youtube.search.list",
"path": "search",
"httpMethod": "GET",
"description": "Returns a collection of search results that match the query parameters specified in the API request. By default, a search result set identifies matching video, channel, and playlist resources, but you can also configure queries to only retrieve a specific type of resource.",
"parameters": {
"channelId": {
"type": "string",
"description": "The channelId parameter indicates that the API response should only contain resources created by the channel",
"location": "query"
},
"channelType": {
"type": "string",
"description": "The channelType parameter lets you restrict a search to a particular type of channel.",
"enum": [
"any",
"show"
],
"enumDescriptions": [
"Return all channels.",
"Only retrieve shows."
],
"location": "query"
},
"eventType": {
"type": "string",
"description": "The eventType parameter restricts a search to broadcast events.",
"enum": [
"completed",
"live",
"upcoming"
],
"enumDescriptions": [
"Only include completed broadcasts.",
"Only include active broadcasts.",
"Only include upcoming broadcasts."
],
"location": "query"
},
"forContentOwner": {
"type": "boolean",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe forContentOwner parameter restricts the search to only retrieve resources owned by the content owner specified by the onBehalfOfContentOwner parameter. The user must be authenticated using a CMS account linked to the specified content owner and onBehalfOfContentOwner must be provided.",
"location": "query"
},
"forMine": {
"type": "boolean",
"description": "The forMine parameter restricts the search to only retrieve videos owned by the authenticated user. If you set this parameter to true, then the type parameter's value must also be set to video.",
"location": "query"
},
"location": {
"type": "string",
"description": "The location parameter restricts a search to videos that have a geographical location specified in their metadata. The value is a string that specifies geographic latitude/longitude coordinates e.g. (37.42307,-122.08427)",
"location": "query"
},
"locationRadius": {
"type": "string",
"description": "The locationRadius, in conjunction with the location parameter, defines a geographic area. If the geographic coordinates associated with a video fall within that area, then the video may be included in search results. This parameter value must be a floating point number followed by a measurement unit. Valid measurement units are m, km, ft, and mi. For example, valid parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not support locationRadius parameter values larger than 1000 kilometers.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"order": {
"type": "string",
"description": "The order parameter specifies the method that will be used to order resources in the API response.",
"default": "SEARCH_SORT_RELEVANCE",
"enum": [
"date",
"rating",
"relevance",
"title",
"videoCount",
"viewCount"
],
"enumDescriptions": [
"Resources are sorted in reverse chronological order based on the date they were created.",
"Resources are sorted from highest to lowest rating.",
"Resources are sorted based on their relevance to the search query. This is the default value for this parameter.",
"Resources are sorted alphabetically by title.",
"Channels are sorted in descending order of their number of uploaded videos.",
"Resources are sorted from highest to lowest number of views."
],
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more search resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a search result, the snippet property contains other properties that identify the result's title, description, and so forth. If you set part=snippet, the API response will also contain all of those nested properties.",
"required": true,
"location": "query"
},
"publishedAfter": {
"type": "string",
"description": "The publishedAfter parameter indicates that the API response should only contain resources created after the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).",
"format": "date-time",
"location": "query"
},
"publishedBefore": {
"type": "string",
"description": "The publishedBefore parameter indicates that the API response should only contain resources created before the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).",
"format": "date-time",
"location": "query"
},
"q": {
"type": "string",
"description": "The q parameter specifies the query term to search for.",
"location": "query"
},
"regionCode": {
"type": "string",
"description": "The regionCode parameter instructs the API to return search results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.",
"location": "query"
},
"relatedToVideoId": {
"type": "string",
"description": "The relatedToVideoId parameter retrieves a list of videos that are related to the video that the parameter value identifies. The parameter value must be set to a YouTube video ID and, if you are using this parameter, the type parameter must be set to video.",
"location": "query"
},
"safeSearch": {
"type": "string",
"description": "The safeSearch parameter indicates whether the search results should include restricted content as well as standard content.",
"enum": [
"moderate",
"none",
"strict"
],
"enumDescriptions": [
"YouTube will filter some content from search results and, at the least, will filter content that is restricted in your locale. Based on their content, search results could be removed from search results or demoted in search results. This is the default parameter value.",
"YouTube will not filter the search result set.",
"YouTube will try to exclude all restricted content from the search result set. Based on their content, search results could be removed from search results or demoted in search results."
],
"location": "query"
},
"topicId": {
"type": "string",
"description": "The topicId parameter indicates that the API response should only contain resources associated with the specified topic. The value identifies a Freebase topic ID.",
"location": "query"
},
"type": {
"type": "string",
"description": "The type parameter restricts a search query to only retrieve a particular type of resource. The value is a comma-separated list of resource types.",
"default": "video,channel,playlist",
"location": "query"
},
"videoCaption": {
"type": "string",
"description": "The videoCaption parameter indicates whether the API should filter video search results based on whether they have captions.",
"enum": [
"any",
"closedCaption",
"none"
],
"enumDescriptions": [
"Do not filter results based on caption availability.",
"Only include videos that have captions.",
"Only include videos that do not have captions."
],
"location": "query"
},
"videoCategoryId": {
"type": "string",
"description": "The videoCategoryId parameter filters video search results based on their category.",
"location": "query"
},
"videoDefinition": {
"type": "string",
"description": "The videoDefinition parameter lets you restrict a search to only include either high definition (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p, though higher resolutions, like 1080p, might also be available.",
"enum": [
"any",
"high",
"standard"
],
"enumDescriptions": [
"Return all videos, regardless of their resolution.",
"Only retrieve HD videos.",
"Only retrieve videos in standard definition."
],
"location": "query"
},
"videoDimension": {
"type": "string",
"description": "The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.",
"enum": [
"2d",
"3d",
"any"
],
"enumDescriptions": [
"Restrict search results to exclude 3D videos.",
"Restrict search results to only include 3D videos.",
"Include both 3D and non-3D videos in returned results. This is the default value."
],
"location": "query"
},
"videoDuration": {
"type": "string",
"description": "The videoDuration parameter filters video search results based on their duration.",
"enum": [
"any",
"long",
"medium",
"short"
],
"enumDescriptions": [
"Do not filter video search results based on their duration. This is the default value.",
"Only include videos longer than 20 minutes.",
"Only include videos that are between four and 20 minutes long (inclusive).",
"Only include videos that are less than four minutes long."
],
"location": "query"
},
"videoEmbeddable": {
"type": "string",
"description": "The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded into a webpage.",
"enum": [
"any",
"true"
],
"enumDescriptions": [
"Return all videos, embeddable or not.",
"Only retrieve embeddable videos."
],
"location": "query"
},
"videoLicense": {
"type": "string",
"description": "The videoLicense parameter filters search results to only include videos with a particular license. YouTube lets video uploaders choose to attach either the Creative Commons license or the standard YouTube license to each of their videos.",
"enum": [
"any",
"creativeCommon",
"youtube"
],
"enumDescriptions": [
"Return all videos, regardless of which license they have, that match the query parameters.",
"Only return videos that have a Creative Commons license. Users can reuse videos with this license in other videos that they create. Learn more.",
"Only return videos that have the standard YouTube license."
],
"location": "query"
},
"videoSyndicated": {
"type": "string",
"description": "The videoSyndicated parameter lets you to restrict a search to only videos that can be played outside youtube.com.",
"enum": [
"any",
"true"
],
"enumDescriptions": [
"Return all videos, syndicated or not.",
"Only retrieve syndicated videos."
],
"location": "query"
},
"videoType": {
"type": "string",
"description": "The videoType parameter lets you restrict a search to a particular type of videos.",
"enum": [
"any",
"episode",
"movie"
],
"enumDescriptions": [
"Return all videos.",
"Only retrieve episodes of shows.",
"Only retrieve movies."
],
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "SearchListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"subscriptions": {
"methods": {
"delete": {
"id": "youtube.subscriptions.delete",
"path": "subscriptions",
"httpMethod": "DELETE",
"description": "Deletes a subscription.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube subscription ID for the resource that is being deleted. In a subscription resource, the id property specifies the YouTube subscription ID.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"insert": {
"id": "youtube.subscriptions.insert",
"path": "subscriptions",
"httpMethod": "POST",
"description": "Adds a subscription for the authenticated user's channel.",
"parameters": {
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet and contentDetails.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Subscription"
},
"response": {
"$ref": "Subscription"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"list": {
"id": "youtube.subscriptions.list",
"path": "subscriptions",
"httpMethod": "GET",
"description": "Returns subscription resources that match the API request criteria.",
"parameters": {
"channelId": {
"type": "string",
"description": "The channelId parameter specifies a YouTube channel ID. The API will only return that channel's subscriptions.",
"location": "query"
},
"forChannelId": {
"type": "string",
"description": "The forChannelId parameter specifies a comma-separated list of channel IDs. The API response will then only contain subscriptions matching those channels.",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the resource(s) that are being retrieved. In a subscription resource, the id property specifies the YouTube subscription ID.",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
"default": "5",
"format": "uint32",
"minimum": "0",
"maximum": "50",
"location": "query"
},
"mine": {
"type": "boolean",
"description": "Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.",
"location": "query"
},
"mySubscribers": {
"type": "boolean",
"description": "Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated user.",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"order": {
"type": "string",
"description": "The order parameter specifies the method that will be used to sort resources in the API response.",
"default": "SUBSCRIPTION_ORDER_RELEVANCE",
"enum": [
"alphabetical",
"relevance",
"unread"
],
"enumDescriptions": [
"Sort alphabetically.",
"Sort by relevance.",
"Sort by order of activity."
],
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set part=snippet, the API response will also contain all of those nested properties.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "SubscriptionListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"thumbnails": {
"methods": {
"set": {
"id": "youtube.thumbnails.set",
"path": "thumbnails/set",
"httpMethod": "POST",
"description": "Uploads a custom video thumbnail to YouTube and sets it for a video.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.",
"location": "query"
},
"videoId": {
"type": "string",
"description": "The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"videoId"
],
"response": {
"$ref": "ThumbnailSetResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.upload",
"https://www.googleapis.com/auth/youtubepartner"
],
"supportsMediaUpload": true,
"mediaUpload": {
"accept": [
"application/octet-stream",
"image/jpeg",
"image/png"
],
"maxSize": "2MB",
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/youtube/v3/thumbnails/set"
},
"resumable": {
"multipart": true,
"path": "/resumable/upload/youtube/v3/thumbnails/set"
}
}
}
}
}
},
"videoCategories": {
"methods": {
"list": {
"id": "youtube.videoCategories.list",
"path": "videoCategories",
"httpMethod": "GET",
"description": "Returns a list of categories that can be associated with YouTube videos.",
"parameters": {
"hl": {
"type": "string",
"description": "The hl parameter specifies the language that should be used for text values in the API response.",
"default": "en_US",
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of video category IDs for the resources that you are retrieving.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet.",
"required": true,
"location": "query"
},
"regionCode": {
"type": "string",
"description": "The regionCode parameter instructs the API to return the list of video categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.",
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "VideoCategoryListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"videos": {
"methods": {
"delete": {
"id": "youtube.videos.delete",
"path": "videos",
"httpMethod": "DELETE",
"description": "Deletes a YouTube video.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube video ID for the resource that is being deleted. In a video resource, the id property specifies the video's ID.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"getRating": {
"id": "youtube.videos.getRating",
"path": "videos/getRating",
"httpMethod": "GET",
"description": "Retrieves the ratings that the authorized user gave to a list of specified videos.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) for which you are retrieving rating data. In a video resource, the id property specifies the video's ID.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
}
},
"parameterOrder": [
"id"
],
"response": {
"$ref": "VideoGetRatingResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"insert": {
"id": "youtube.videos.insert",
"path": "videos",
"httpMethod": "POST",
"description": "Uploads a video to YouTube and optionally sets the video's metadata.",
"parameters": {
"autoLevels": {
"type": "boolean",
"description": "The autoLevels parameter indicates whether YouTube should automatically enhance the video's lighting and color.",
"location": "query"
},
"notifySubscribers": {
"type": "boolean",
"description": "The notifySubscribers parameter indicates whether YouTube should send notification to subscribers about the inserted video.",
"default": "true",
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"onBehalfOfContentOwnerChannel": {
"type": "string",
"description": "This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.\n\nThis parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, suggestions, and topicDetails. However, not all of those parts contain properties that can be set when setting or updating a video's metadata. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.",
"required": true,
"location": "query"
},
"stabilize": {
"type": "boolean",
"description": "The stabilize parameter indicates whether YouTube should adjust the video to remove shaky camera motions.",
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Video"
},
"response": {
"$ref": "Video"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.upload",
"https://www.googleapis.com/auth/youtubepartner"
],
"supportsMediaUpload": true,
"mediaUpload": {
"accept": [
"application/octet-stream",
"video/*"
],
"maxSize": "64GB",
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/youtube/v3/videos"
},
"resumable": {
"multipart": true,
"path": "/resumable/upload/youtube/v3/videos"
}
}
}
},
"list": {
"id": "youtube.videos.list",
"path": "videos",
"httpMethod": "GET",
"description": "Returns a list of videos that match the API request parameters.",
"parameters": {
"chart": {
"type": "string",
"description": "The chart parameter identifies the chart that you want to retrieve.",
"enum": [
"mostPopular"
],
"enumDescriptions": [
"Return the most popular videos for the specified content region and video category."
],
"location": "query"
},
"id": {
"type": "string",
"description": "The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID.",
"location": "query"
},
"locale": {
"type": "string",
"description": "DEPRECATED",
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.\n\nNote: This parameter is supported for use in conjunction with the myRating parameter, but it is not supported for use in conjunction with the id parameter.",
"default": "5",
"format": "uint32",
"minimum": "1",
"maximum": "50",
"location": "query"
},
"myRating": {
"type": "string",
"description": "Set this parameter's value to like or dislike to instruct the API to only return videos liked or disliked by the authenticated user.",
"enum": [
"dislike",
"like"
],
"enumDescriptions": [
"Returns only videos disliked by the authenticated user.",
"Returns only video liked by the authenticated user."
],
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.\n\nNote: This parameter is supported for use in conjunction with the myRating parameter, but it is not supported for use in conjunction with the id parameter.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter specifies a comma-separated list of one or more video resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, suggestions, and topicDetails.\n\nIf the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set part=snippet, the API response will contain all of those properties.",
"required": true,
"location": "query"
},
"regionCode": {
"type": "string",
"description": "The regionCode parameter instructs the API to select a video chart available in the specified region. This parameter can only be used in conjunction with the chart parameter. The parameter value is an ISO 3166-1 alpha-2 country code.",
"location": "query"
},
"videoCategoryId": {
"type": "string",
"description": "The videoCategoryId parameter identifies the video category for which the chart should be retrieved. This parameter can only be used in conjunction with the chart parameter. By default, charts are not restricted to a particular category.",
"default": "0",
"location": "query"
}
},
"parameterOrder": [
"part"
],
"response": {
"$ref": "VideoListResponse"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"rate": {
"id": "youtube.videos.rate",
"path": "videos/rate",
"httpMethod": "POST",
"description": "Add a like or dislike rating to a video or remove a rating from a video.",
"parameters": {
"id": {
"type": "string",
"description": "The id parameter specifies the YouTube video ID of the video that is being rated or having its rating removed.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"rating": {
"type": "string",
"description": "Specifies the rating to record.",
"required": true,
"enum": [
"dislike",
"like",
"none"
],
"enumDescriptions": [
"Records that the authenticated user disliked the video.",
"Records that the authenticated user liked the video.",
"Removes any rating that the authenticated user had previously set for the video."
],
"location": "query"
}
},
"parameterOrder": [
"id",
"rating"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
},
"update": {
"id": "youtube.videos.update",
"path": "videos",
"httpMethod": "PUT",
"description": "Updates a video's metadata.",
"parameters": {
"onBehalfOfContentOwner": {
"type": "string",
"description": "Note: This parameter is intended exclusively for YouTube content partners.\n\nThe onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with must be linked to the specified YouTube content owner.",
"location": "query"
},
"part": {
"type": "string",
"description": "The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.\n\nThe part names that you can include in the parameter value are snippet, contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, recordingDetails, statistics, status, suggestions, and topicDetails.\n\nNote that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting.\n\nIn addition, not all of those parts contain properties that can be set when setting or updating a video's metadata. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"part"
],
"request": {
"$ref": "Video"
},
"response": {
"$ref": "Video"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
},
"watermarks": {
"methods": {
"set": {
"id": "youtube.watermarks.set",
"path": "watermarks/set",
"httpMethod": "POST",
"description": "Uploads a watermark image to YouTube and sets it for a channel.",
"parameters": {
"channelId": {
"type": "string",
"description": "The channelId parameter specifies a YouTube channel ID for which the watermark is being provided.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.",
"location": "query"
}
},
"parameterOrder": [
"channelId"
],
"request": {
"$ref": "InvideoBranding"
},
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.upload",
"https://www.googleapis.com/auth/youtubepartner"
],
"supportsMediaUpload": true,
"mediaUpload": {
"accept": [
"application/octet-stream",
"image/jpeg",
"image/png"
],
"maxSize": "10MB",
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/youtube/v3/watermarks/set"
},
"resumable": {
"multipart": true,
"path": "/resumable/upload/youtube/v3/watermarks/set"
}
}
}
},
"unset": {
"id": "youtube.watermarks.unset",
"path": "watermarks/unset",
"httpMethod": "POST",
"description": "Deletes a watermark.",
"parameters": {
"channelId": {
"type": "string",
"description": "The channelId parameter specifies a YouTube channel ID for which the watermark is being unset.",
"required": true,
"location": "query"
},
"onBehalfOfContentOwner": {
"type": "string",
"description": "The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.",
"location": "query"
}
},
"parameterOrder": [
"channelId"
],
"scopes": [
"https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtubepartner"
]
}
}
}
}
}