Documentation
¶
Overview ¶
YouTube
Index ¶
Constants ¶
View Source
const (
PlayerAPI = "https://www.youtube.com/youtubei/v1/player"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Player ¶ added in v1.13.0
type Player struct {
StreamingData struct {
AdaptiveFormats []Format
}
Microformat struct {
PlayerMicroformatRenderer struct {
AvailableCountries []string
PublishDate string
}
}
VideoDetails struct {
Author string
ShortDescription string
Title string
ViewCount int `json:"viewCount,string"`
}
}
func (Player) Description ¶ added in v1.13.0
func (Player) PublishDate ¶ added in v1.13.0
type Search ¶ added in v1.11.2
type Search struct {
Contents struct {
TwoColumnSearchResultsRenderer struct {
PrimaryContents primaryContents
}
}
}
func (Search) VideoRenderers ¶ added in v1.11.2
func (s Search) VideoRenderers() []VideoRenderer
type VideoRenderer ¶ added in v1.11.2
type VideoRenderer struct {
VideoID string
}
Click to show internal directories.
Click to hide internal directories.