Documentation ¶
Index ¶
- Constants
- type Browse
- type Caption
- type Client
- type CompactVideoRenderer
- type Format
- type ItemSectionRendererItem
- type Next
- type Player
- type PlaylistRenderer
- type PlaylistVideoListRendererItem
- type PlaylistVideoRenderer
- type RichItemRenderer
- type RunsText
- type Search
- type SecondaryResultItem
- type SectionListRendererItem
- type ShowRenderer
- type TabRenderer
- type Text
- type Thumbnail
- type VideoRenderer
Constants ¶
View Source
const ( ApiUrl = "https://www.youtube.com/youtubei/v1" ApiKey = "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Browse ¶
type Browse struct { Contents struct { TwoColumnBrowseResultsRenderer struct { Tabs []struct { TabRenderer TabRenderer } } } Header struct { C4TabbedHeaderRenderer struct { Title string Avatar struct { Thumbnails []Thumbnail } Banner struct { Thumbnails []Thumbnail } ChannelHandleText RunsText SubscriberCountText Text VideosCountText RunsText } PlaylistHeaderRenderer struct { NumVideosText RunsText ViewCountText Text } } Metadata struct { ChannelMetadataRenderer struct { Title string Avatar struct { Thumbnails []Thumbnail } } PlaylistMetadataRenderer struct { Title string Description string } } Microformat struct { MicroformatDataRenderer struct { Thumbnail struct { Thumbnails []Thumbnail } } } }
type Client ¶
type Client struct { Key string UserAgent string AndroidSdkVersion int64 ClientName string ClientNameProto string ClientVersion string OsName string OsVersion string Platform string }
func NewAndroidClient ¶
func NewAndroidClient() *Client
func NewWebClient ¶
func NewWebClient() *Client
type CompactVideoRenderer ¶
type Format ¶
type Format struct { ITag int `json:"itag"` Url string MimeType string Bitrate int Width int Height int LastModified string ContentLength string Quality string FPS int QualityLabel string ProjectionType string AverageBitrate int ApproDurationsMs int AudioSampleRate string AudioChannels int SignatureCipher string InitRange struct { Start string End string } IndexRange struct { Start string End string } }
type ItemSectionRendererItem ¶
type ItemSectionRendererItem struct { VideoRenderer *VideoRenderer PlaylistRenderer *PlaylistRenderer ShowRenderer *ShowRenderer }
type Next ¶
type Next struct { Contents struct { TwoColumnWatchNextResults struct { SecondaryResults struct { SecondaryResults struct { Results []SecondaryResultItem } } } } }
type Player ¶
type Player struct { PlayabilityStatus struct { Status string PlayableInEmbed bool } StreamingData struct { ExpiresInSeconds string Formats []Format AdaptiveFormats []Format } Captions struct { PlayerCaptionsTracklistRenderer struct { CaptionTracks []Caption } } VideoDetails struct { VideoId string Title string LengthSeconds string Keywords []string ChannelId string IsOwnerViewing bool ShortDescription string IsCrawable bool Thumbnails []Thumbnail AllowRatings bool Author string IsPrivate bool IsUpluggedCorpus bool IsLiveContent bool } Microformat struct { PlayerMicroformatRenderer struct { LengthSeconds string OwnerProfileUrl string IsFamilySafe bool AvailableCountries []string IsUnlisted bool HasYpsMetadata bool ViewCount string Category string PublishDate string UploadDate string } } }
type PlaylistRenderer ¶
type PlaylistVideoListRendererItem ¶
type PlaylistVideoListRendererItem struct {
PlaylistVideoRenderer *PlaylistVideoRenderer
}
type PlaylistVideoRenderer ¶
type RichItemRenderer ¶
type RichItemRenderer struct { Content struct { VideoRenderer *VideoRenderer } }
type Search ¶
type Search struct { Contents struct { TwoColumnSearchResultsRenderer struct { PrimaryContents struct { SectionListRenderer struct { Contents []SectionListRendererItem } } } } }
type SecondaryResultItem ¶
type SecondaryResultItem struct {
CompactVideoRenderer *CompactVideoRenderer
}
type SectionListRendererItem ¶
type SectionListRendererItem struct { ItemSectionRenderer struct { Contents []ItemSectionRendererItem } }
type ShowRenderer ¶
type TabRenderer ¶
type TabRenderer struct { Title string Content struct { RichGridRenderer struct { Contents []struct { RichItemRenderer RichItemRenderer } } SectionListRenderer struct { Contents []struct { ItemSectionRenderer struct { Contents []struct { PlaylistVideoListRenderer struct { Contents []PlaylistVideoListRendererItem } } } } } } }
Click to show internal directories.
Click to hide internal directories.