yt library

The YouTube Live Streaming API reference explains how to schedule live broadcasts and video streams on YouTube using the YouTube Live Streaming API.

The YouTube Data API lets you incorporate functions normally executed on the YouTube website into your own website or application.

Classes

AuthorChannelId
This object encapsulates information about the comment author's YouTube channel, if available.
Broadcast
A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
ChannelItem
A channel resource contains information about a YouTube channel.
ChannelResponse
A channel resource contains information about a YouTube channel.
Channels
Chat
A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.
Chatbot
Comment
CommentListResponse
A comment resource contains information about a single YouTube comment. A comment resource can represent a comment about either a video or a channel. In addition, the comment could be a top-level comment or a reply to a top-level comment.
Comments
CommentThread
CommentThreadListResponse
A comment resource contains information about a single YouTube comment. A comment resource can represent a comment about either a video or a channel. In addition, the comment could be a top-level comment or a reply to a top-level comment.
CommentThreads
Dialog
DialogLoader
EmojiFormatter
JwtCredentials
Keyword
LiveBroadcastItem
LiveBroadcastItem Resource
LiveBroadcastResponse
LiveBroadcastResponse
LiveChatMessage
A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.
LiveChatMessageListResponse
A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.
LiveStream
A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that will be broadcast to YouTube users. Once created, a LiveStreamItem resource can be bound to one or more LiveBroadcastItem resources.
LiveStreamItem
A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that will be broadcast to YouTube users. Once created, a liveStream resource can be bound to one or more liveBroadcast resources.
LiveStreamListResponse
LoggingInterceptors
Dio instance may have one or more interceptors by which you can intercept requests/responses/errors before they are handled by then or catchError.
OAuthCredentials
PhraseMatch
Playlist
A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. By default, playlists are publicly visible to other users, but playlists can be public or private.
PlaylistItem
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.
PlaylistItemListResponse
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. Try it now.
PlaylistItems
PlaylistResponse
Playlists
A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. By default, playlists are publicly visible to other users, but playlists can be public or private.
Position
The position object encapsulates information about the spatial position within the video where the watermark image will display.
Rating
ReportAbuse
Reports a video for containing abusive content.
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.
SearchListResponse
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.
SearchResult
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.
Status
The status object contains information about the event's status.
Subscription
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.
SubscriptionListResponse
Returns subscription resources that match the API request criteria.
Subscriptions
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.
Thumbnail
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.
Thumbnails
A Thumbnail resource identifies different thumbnail image sizes associated with a resource. Please note the following characteristics of thumbnail images:
ThumbnailsSetResponse
TimeStore
Timing
The timing object encapsulates information about the time during a video playback when a channel's watermark image will display.
Token
VideoCategories
Returns a list of VideoItems that match the API request parameters.
VideoCategoryListResponse
VideoGetRatingResponse
VideoItem
A video resource represents a YouTube video.
VideoListResponse
Retrieves the ratings that the authorized user gave to a list of specified videos.
Videos
Returns a list of VideoItems that match the API request parameters.
Watermarks
A Watermarks resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.
WatermarksResource
A watermark resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.
YoutubeAnswerChatCommand
YoutubeAuthorizeCommand
Generate a refresh token used to authenticate the command line API requests
YoutubeBindBroadcastCommand
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, though a video stream may be bound to more than one broadcast.
YoutubeBroadcastCommand
A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
YoutubeChannelsCommand
A channel resource contains information about a YouTube channel.
YoutubeChatCommand
A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.
YoutubeCommentsCommand
A comment resource contains information about a single YouTube comment.
YoutubeCommentThreadsCommand
A commentThread resource contains information about a YouTube comment thread, which comprises a top-level comment and replies, if any exist, to that comment. A commentThread resource can represent comments about either a video or a channel.
YoutubeDeleteBroadcastCommand
Deletes a broadcast.
YoutubeDeleteChatCommand
Deletes a chat message. The API request must be authorized by the channel owner or a moderator of the live chat associated with the ban.
YoutubeDeletePlaylistsCommand
Deletes a playlist.
YoutubeDeleteStreamCommand
Deletes a video stream.
YoutubeDeleteSubscriptionsCommand
Deletes a subscription.
YoutubeDeleteVideosCommand
Deletes a YouTube video.
YoutubeGetRatingVideosCommand
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, though a video stream may be bound to more than one broadcast.
YoutubeInsertBroadcastCommand
Creates a broadcast.
YoutubeInsertChatCommand
Adds a message to a live chat. The API currently supports the ability to insert text messages only.
YoutubeInsertPlaylistsCommand
Creates a broadcast.
YoutubeInsertStreamCommand
Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.
YoutubeInsertSubscriptionsCommand
Adds a subscription for the authenticated user's channel.
YoutubeInsertVideosCommand
Uploads a video to YouTube and optionally sets the video's metadata.
YoutubeListBroadcastCommand
Returns a list of YouTube broadcasts that match the API request parameters.
YoutubeListChannelsCommand
Returns a collection of zero or more channel resources that match the request criteria.
YoutubeListChatCommand
Lists live chat messages for a specific chat.
YoutubeListCommentsCommand
Returns a list of comments that match the API request parameters.
YoutubeListCommentThreadsCommand
Returns a list of comment threads that match the API request parameters.
YoutubeListPlaylistsCommand
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.
YoutubeListSearchCommand
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.
YoutubeListStreamCommand
Returns a list of video streams that match the API request parameters.
YoutubeListSubscriptionsCommand
Returns subscription resources that match the API request criteria.
YoutubeListVideoCategoriesCommand
Returns a list of categories that can be associated with YouTube videos.
YoutubeListVideosCommand
Returns a list of videos that match the API request parameters.
YoutubePlaylistsCommand
A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. By default, playlists are publicly visible to other users, but playlists can be public or private.
YoutubeRateVideosCommand
Add a like or dislike rating to a video or remove a rating from a video.
YoutubeSearchCommand
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.
YoutubeSetThumbnailsCommand
Uploads a custom video thumbnail to YouTube and sets it for a video.
YoutubeSetWatermarksCommand
Uploads a custom video thumbnail to YouTube and sets it for a video.
YoutubeStreamCommand
A liveStream resource contains information about the video stream that you are transmitting to YouTube. The stream provides the content that will be broadcast to YouTube users. Once created, a liveStream resource can be bound to one or more liveBroadcast resources.
YoutubeSubscriptionsCommand
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.
YoutubeThumbnailsCommand
A thumbnail resource identifies different thumbnail image sizes associated with a resource. Please note the following characteristics of thumbnail images:
YoutubeTransitionBroadcastCommand
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.
YoutubeUnsetWatermarksCommand
Deletes a channel's watermark image.
YoutubeUpdateBroadcastCommand
Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.
YoutubeUpdateChannelsCommand
Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings, invideoPromotion, and localizations objects and their child properties.
YoutubeUpdatePlaylistsCommand
Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.
YoutubeUpdateStreamCommand
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.
YoutubeUpdateVideosCommand
Updates a video's metadata.
YoutubeVersionCommand
YoutubeVideoCategoriesCommand
A video resource represents a YouTube video.
YoutubeVideosCommand
A video resource represents a YouTube video.
YoutubeWatermarksCommand
A Watermarks resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.
Yt
YtHelperCommand

Extensions

UsageExtension on DioException

Exceptions / Errors

AuthorizationException