youtubei
Namespaces
Classes
- Base
- BaseChannel
- BaseVideo
- Caption
- CaptionLanguage
- Channel
- ChannelLive
- ChannelPlaylists
- ChannelShorts
- ChannelVideos
- Chat
- Client
- Comment
- CommentReplies
- Continuable
- LiveVideo
- MixPlaylist
- OAuth
- Playlist
- PlaylistCompact
- PlaylistVideos
- Reply
- SearchResult
- Thumbnails
- Video
- VideoCaptions
- VideoComments
- VideoCompact
- VideoRelated
Interfaces
Type Aliases
ChannelShelf
Ƭ ChannelShelf: Shelf
<BaseChannel
[] | VideoCompact
[] | PlaylistCompact
[]> & { subtitle?
: string
}
Chapter
Ƭ Chapter: Object
Type declaration
Name | Type |
---|---|
start | number |
thumbnails | Thumbnails |
title | string |
ClientOptions
Ƭ ClientOptions: HTTPOptions
HTTPOptions
Ƭ HTTPOptions: Object
Type declaration
Name | Type |
---|---|
apiKey | string |
baseUrl | string |
clientName | string |
clientVersion | string |
fetchOptions? | Partial <RequestInit > |
initialCookie? | string |
oauth? | OAuthOptions |
pot? | PotOptions |
youtubeClientOptions? | Record <string , unknown > |
OAuthOptions
Ƭ OAuthOptions: Object
Type declaration
Name | Type |
---|---|
enabled | boolean |
refreshToken? | string |
OAuthProps
Ƭ OAuthProps: Object
Type declaration
Name | Type |
---|---|
expiresAt | Date | null |
refreshToken? | string |
token | string | null |
PotOptions
Ƭ PotOptions: Object
Type declaration
Name | Type |
---|---|
token | string |
visitorData | string |
SearchDuration
Ƭ SearchDuration: "all"
| "short"
| "medium"
| "long"
| Duration
SearchFeature
Ƭ SearchFeature: "live"
| "4k"
| "hd"
| "subtitles"
| "creativeCommons"
| "360"
| "vr180"
| "3d"
| "hdr"
| "location"
| Feature
SearchOptions
Ƭ SearchOptions: Object
Type declaration
Name | Type |
---|---|
duration? | SearchDuration |
features? | SearchFeature [] |
sortBy? | SearchSort |
type? | SearchType |
uploadDate? | SearchUploadDate |
SearchResultItem
Ƭ SearchResultItem<T
>: T
extends "video"
| VideoCompact
? VideoCompact
: T
extends "channel"
| BaseChannel
? BaseChannel
: T
extends "playlist"
| PlaylistCompact
? PlaylistCompact
: VideoCompact
| BaseChannel
| PlaylistCompact
Type parameters
Name | Type |
---|---|
T | "all" |
SearchSort
Ƭ SearchSort: "relevance"
| "rating"
| "date"
| "view"
| Sort
SearchType
Ƭ SearchType: "all"
| "video"
| "channel"
| "playlist"
| Type
SearchUploadDate
Ƭ SearchUploadDate: "all"
| "hour"
| "today"
| "week"
| "month"
| "year"
| UploadDate