Typing

Typed dictionaries for YouTube history data.

class youtube_unofficial.typing.history.HistoryVideoIDsEntry

History entry information.

description : str

Video description.

long_byline_text : str

Long byline text. Usually video description but may be different.

owner_text : str

Owner text. Usually the channel name.

short_byline_text : str

Short byline text. Often channel name but may be different.

short_view_count_text : str

Short view count text.

video_id : str

Video ID.

view_count_text : str

View count text.

Typed dictionaries for YouTube playlist data.

class youtube_unofficial.typing.playlist.HasKeyText

Inside RunsOrSimpleText and RunsOrText.

text : str

Text content.

class youtube_unofficial.typing.playlist.Icon

Icon data.

iconType : str

Icon type.

class youtube_unofficial.typing.playlist.NavigationEndpoint

Navigation endpoint data.

watchEndpoint : WatchEndpoint

Watch endpoint data.

class youtube_unofficial.typing.playlist.NextContinuation

Continuation data.

clickTrackingParams : str

Click tracking parameters.

continuation : str

Continuation token.

class youtube_unofficial.typing.playlist.PlaylistInfo

Playlist information.

continuationItemRenderer : dict[str, Any]

Continuation data.

playlistVideoRenderer : PlaylistVideoRenderer

Inner renderer data.

class youtube_unofficial.typing.playlist.PlaylistVideoIDsEntry

Playlist information.

owner : str | None

Playlist owner.

title : str | None

Playlist title.

video_id : str

Video ID.

watch_url : str

Watch URL.

class youtube_unofficial.typing.playlist.PlaylistVideoListRenderer

Playlist video list renderer dictionary.

contents : Sequence[PlaylistInfo]

Inner contents.

continuations : Sequence[PlaylistVideoListRendererContinuations]

Continuation data.

class youtube_unofficial.typing.playlist.PlaylistVideoListRendererContinuations

Continuation data.

nextContinuationData : NextContinuation

Continuation data.

class youtube_unofficial.typing.playlist.PlaylistVideoRenderer

Playlist video renderer dictionary.

menu : PlaylistVideoRendererMenu

Menu data.

navigationEndpoint : NavigationEndpoint

Navigation endpoint data.

shortBylineText : RunsOrText

Short byline text.

title : RunsOrSimpleText

Video title.

videoId : str

Video ID.

class youtube_unofficial.typing.playlist.PlaylistVideoRendererMenu

Menu data.

menuRenderer : PlaylistVideoRendererMenuRenderer

Menu renderer data.

class youtube_unofficial.typing.playlist.PlaylistVideoRendererMenuRenderer

Menu renderer.

class youtube_unofficial.typing.playlist.PlaylistVideoRendererMenuRendererItem

Menu renderer item.

menuServiceItemRenderer : PlaylistVideoRendererMenuRendererItemMenuServiceItemRenderer

Menu service item renderer.

class youtube_unofficial.typing.playlist.PlaylistVideoRendererMenuRendererItemMenuServiceItemRenderer

Menu renderer.

icon : Icon

Icon data.

serviceEndpoint : dict[str, Any]

Service endpoint data.

class youtube_unofficial.typing.playlist.RunsOrSimpleText

Inside PlaylistVideoRenderer.

runs : Sequence[HasKeyText]

Text runs.

simpleText : str

Text content.

class youtube_unofficial.typing.playlist.RunsOrText

Inside PlaylistVideoRenderer.

runs : Sequence[HasKeyText]

Text runs.

text : str

Text content.

class youtube_unofficial.typing.playlist.WatchEndpoint

Watch endpoint data.

videoId : str

Video ID.

Typed dictionary for YouTube configuration (ytcfg).

class youtube_unofficial.typing.ytcfg.YtcfgDict

Configuration dictionary for YouTube site.

DELEGATED_SESSION_ID : str

Delegated session ID for a brand account.

EVENT_ID : str

Unknown.

ID_TOKEN : str

Unknown.

INNERTUBE_API_KEY : str

API key.

INNERTUBE_CONTEXT_CLIENT_NAME : str

Client name.

INNERTUBE_CONTEXT_CLIENT_VERSION : str

Client version.

INNERTUBE_CONTEXT_GL : str

Geolocation.

INNERTUBE_CONTEXT_HL : str

Language code.

LOGGED_IN : str

Logged in status.

PAGE_CL : int

Unknown.

SESSION_INDEX : int

Session index.

USER_SESSION_ID : str

User session ID.

VARIANTS_CHECKSUM : str

Checksum for variants.

VISITOR_DATA : str

Visitor data.

XSRF_TOKEN : str

Cross-site request forgery token.