Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/LuanRT/YouTube.js
/ functions
Functions
1,594 in github.com/LuanRT/YouTube.js
⨍
Functions
1,594
◇
Types & classes
1,554
↓ 2 callers
Method
download
* Downloads a given video. If all you need the direct download link, see {@link getStreamingData}. * If you wish to retrieve the video info too, ha
src/Innertube.ts:471
↓ 2 callers
Function
escape
(text: string)
src/parser/classes/misc/Text.ts:20
↓ 2 callers
Function
escapeStringRegexp
(input: string)
src/utils/Utils.ts:90
↓ 2 callers
Function
escapeXMLString
(str: string)
src/utils/DashUtils.ts:29
↓ 2 callers
Function
generateRuntimeClass
(classname: string, classdata: unknown, logger: Parser.ParserErrorHandler)
src/parser/generator.ts:474
↓ 2 callers
Function
generateTypescriptClass
(classname: string, key_info: KeyInfo)
src/parser/generator.ts:495
↓ 2 callers
Method
getAbout
* Retrieves the about page. * Note that this does not return a new {@link Channel} object.
src/parser/youtube/Channel.ts:328
↓ 2 callers
Method
getAlbum
(album_id: string)
src/core/clients/Music.ts:186
↓ 2 callers
Method
getBasicInfo
(video_id: string, options?: GetVideoInfoOptions)
src/Innertube.ts:124
↓ 2 callers
Method
getClientID
()
src/core/OAuth2.ts:268
↓ 2 callers
Method
getCommunity
()
src/parser/youtube/Channel.ts:319
↓ 2 callers
Function
getDrmSystemId
(drm_family?: string)
src/utils/DashManifest.tsx:68
↓ 2 callers
Function
getParserByName
(classname: string)
src/parser/parser.ts:203
↓ 2 callers
Method
getPlaylists
* Retrieves the user's playlists.
src/Innertube.ts:411
↓ 2 callers
Function
getPostLiveDvrInfo
(transformed_url: string, actions: Actions)
src/utils/StreamingInfo.ts:285
↓ 2 callers
Function
getRandomUserAgent
(type: DeviceCategory)
src/utils/Utils.ts:100
↓ 2 callers
Method
getSearchSuggestions
(query: string, previous_query?: string)
src/Innertube.ts:277
↓ 2 callers
Function
getSegmentInfo
( format: Format, url_transformer: URLTransformer, actions?: Actions, player?: Player, cpn?: string,
src/utils/StreamingInfo.ts:325
↓ 2 callers
Method
getShortsVideoInfo
(video_id: string, client?: InnerTubeClient)
src/Innertube.ts:166
↓ 2 callers
Function
getStreamingInfo
( streaming_data?: IStreamingData, is_post_live_dvr = false, url_transformer: URLTransformer = (url) =>
src/utils/StreamingInfo.ts:821
↓ 2 callers
Method
getUpNextContinuation
* Retrieves up next continuation relative to current TrackInfo.
src/parser/ytmusic/TrackInfo.ts:107
↓ 2 callers
Method
getVideos
()
src/parser/youtube/Channel.ts:284
↓ 2 callers
Function
hasDataFromKeyPath
(root: any, key_path: string[])
src/parser/generator.ts:654
↓ 2 callers
Method
hasKey
* Check for a key without asserting the type. * @param key - The key to check * @returns Whether the node has the key
src/parser/helpers.ts:41
↓ 2 callers
Function
hasParser
(classname: string)
src/parser/parser.ts:215
↓ 2 callers
Function
hoistCodecsIfPossible
(formats: Format[], hoisted: string[])
src/utils/StreamingInfo.ts:203
↓ 2 callers
Function
hoistNumberAttributeIfPossible
( formats: Format[], property: 'audio_sample_rate' | 'fps', hoisted: string[] )
src/utils/StreamingInfo.ts:213
↓ 2 callers
Function
inferType
(key: string, value: unknown)
src/parser/generator.ts:92
↓ 2 callers
Function
introspect
(classdata: unknown)
src/parser/generator.ts:376
↓ 2 callers
Method
isHeatmap
* Checks if this MacroMarkersListEntity represents heatmap data. * Only heatmap markers can be converted to Heatmap objects.
src/parser/classes/MacroMarkersListEntity.ts:65
↓ 2 callers
Method
isInstanceof
* Check if the node is an instance of the given class. * @param type - The type to check. * @returns Whether the node is an instance of the give
src/parser/helpers.ts:301
↓ 2 callers
Function
isRenderer
(value: unknown)
src/parser/generator.ts:202
↓ 2 callers
Method
isSafeInitializer
* Determines if a given AST node is a safe initializer without side effects. * @param node - The AST node to evaluate. * @param mode - The side
src/utils/javascript/JsExtractor.ts:85
↓ 2 callers
Function
longToNumber
(int64: { toString(): string })
protos/generated/youtube/api/pfiinnertube/attestation_response_data.ts:173
↓ 2 callers
Function
mergeKeyInfo
(key_info: KeyInfo, new_key_info: KeyInfo)
src/parser/generator.ts:734
↓ 2 callers
Method
needsDependencyAnalysis
* Quick check if node type requires dependency analysis
src/utils/javascript/JsAnalyzer.ts:286
↓ 2 callers
Method
node
* Get the value as a YTNode. * @returns the value as a YTNode. * @throws If the value is not a YTNode.
src/parser/helpers.ts:203
↓ 2 callers
Method
off
(type: string, listener: (...args: any[]) => void)
src/utils/EventEmitterLike.ts:40
↓ 2 callers
Method
once
(type: string, listener: (...args: any[]) => void)
src/core/Session.ts:297
↓ 2 callers
Function
parse
(key: string, inference_type: InferenceType, data: unknown, key_path: string[] = [ 'data' ])
src/parser/generator.ts:681
↓ 2 callers
Function
parseFormats
(formats: RawNode[], this_response_nsig_cache: Map<string, string>)
src/parser/parser.ts:768
↓ 2 callers
Function
parseLC
(data: RawNode)
src/parser/parser.ts:722
↓ 2 callers
Function
parseObject
(key: string, data: unknown, key_path: string[], keys: KeyInfo, should_optional: boolean)
src/parser/generator.ts:664
↓ 2 callers
Method
refreshAccessToken
()
src/core/OAuth2.ts:197
↓ 2 callers
Method
refreshExtractionState
* Refreshes the readiness state of an extraction target based on its dependencies * and/or configuration. * @param state - State to refresh.
src/utils/javascript/JsAnalyzer.ts:362
↓ 2 callers
Method
resolveURL
* Resolves the given URL.
src/Innertube.ts:479
↓ 2 callers
Function
sanitizeClassName
(input: string)
src/parser/parser.ts:197
↓ 2 callers
Function
shouldIgnore
(classname: string)
src/parser/parser.ts:193
↓ 2 callers
Method
shouldRefreshToken
()
src/core/OAuth2.ts:313
↓ 2 callers
Method
shouldStopTraversal
* Determines whether traversal should stop based on extraction states and configuration.
src/utils/javascript/JsAnalyzer.ts:384
↓ 2 callers
Method
stats
* Makes calls to the playback tracking API. * @param url - The URL to call. * @param client - The client to use. * @param params - Call param
src/core/Actions.ts:59
↓ 2 callers
Function
toParser
(key: string, inference_type: InferenceType, key_path: string[] = [ 'data' ], indentation = 1)
src/parser/generator.ts:578
↓ 2 callers
Function
toParserObject
(indentation: number, keys: KeyInfo, key_path: string[], key: string)
src/parser/generator.ts:565
↓ 2 callers
Function
toParserValidTypes
(types: string[])
src/parser/generator.ts:639
↓ 2 callers
Function
toTypeDeclaration
(inference_type: InferenceType, indentation = 0)
src/parser/generator.ts:520
↓ 2 callers
Function
toTypeDeclarationObject
(indentation: number, keys: KeyInfo)
src/parser/generator.ts:510
↓ 2 callers
Method
toURL
()
src/parser/classes/NavigationEndpoint.ts:143
↓ 2 callers
Function
walkAst
(root: ESTree.Node, visitor: AstVisitor)
src/utils/javascript/helpers.ts:62
↓ 1 callers
Method
#adjustContext
(ctx: Context, client?: string)
src/utils/HTTPClient.ts:202
↓ 1 callers
Method
#buildContext
(args: ContextData)
src/core/Session.ts:601
↓ 1 callers
Method
#fetchInfoFromVideoId
(video_id: string, options?: GetVideoInfoOptions)
src/core/clients/Music.ts:58
↓ 1 callers
Method
#fetchSuggestions
()
src/parser/ytmusic/Playlist.ts:127
↓ 1 callers
Method
#getAll
(shelf: Shelf)
src/parser/youtube/Library.ts:35
↓ 1 callers
Method
#getInitialUploadData
()
src/core/clients/Studio.ts:163
↓ 1 callers
Method
#getSessionData
(options: SessionArgs, fetch: FetchFunction = Platform.shim.fetch)
src/core/Session.ts:537
↓ 1 callers
Method
#getVisitorID
(visitor_data: string)
src/core/Session.ts:656
↓ 1 callers
Method
#isBrowse
(response: IParsedResponse)
src/core/Actions.ts:186
↓ 1 callers
Method
#isParsed
(response: IParsedResponse | ApiResponse)
src/core/mixins/Feed.ts:72
↓ 1 callers
Method
#loadFromCache
()
src/core/OAuth2.ts:111
↓ 1 callers
Method
#needsLogin
(id: string)
src/core/Actions.ts:190
↓ 1 callers
Method
#parseAlbum
()
src/parser/classes/MusicResponsiveListItem.ts:287
↓ 1 callers
Method
#parseArtist
()
src/parser/classes/MusicResponsiveListItem.ts:264
↓ 1 callers
Method
#parseLibraryArtist
()
src/parser/classes/MusicResponsiveListItem.ts:271
↓ 1 callers
Method
#parseNonMusicTrack
(playlist_item_data: PlaylistItemData)
src/parser/classes/MusicResponsiveListItem.ts:277
↓ 1 callers
Method
#parsePlaylist
()
src/parser/classes/MusicResponsiveListItem.ts:310
↓ 1 callers
Method
#parsePodcastShow
()
src/parser/classes/MusicResponsiveListItem.ts:282
↓ 1 callers
Method
#parseSong
(playlist_item_data: PlaylistItemData)
src/parser/classes/MusicResponsiveListItem.ts:185
↓ 1 callers
Method
#parseVideo
(playlist_item_data: PlaylistItemData)
src/parser/classes/MusicResponsiveListItem.ts:232
↓ 1 callers
Method
#parseVideoOrSong
(playlist_item_data: PlaylistItemData)
src/parser/classes/MusicResponsiveListItem.ts:168
↓ 1 callers
Method
#pollMetadata
()
src/parser/youtube/LiveChat.ts:212
↓ 1 callers
Method
#processJsonPayload
(json_body: string, session: Session)
src/utils/HTTPClient.ts:156
↓ 1 callers
Method
#setVideoMetadata
(initial_data: InitialUploadData, upload_result: UploadResult, metadata: UploadedVideoMetadataOptions)
src/core/clients/Studio.ts:216
↓ 1 callers
Method
#setupCommonHeaders
(request_headers: Headers, session: Session, request_url: URL)
src/utils/HTTPClient.ts:185
↓ 1 callers
Method
#storeSession
(session_data: SessionData, cache?: ICache)
src/core/Session.ts:524
↓ 1 callers
Method
#uploadVideo
(upload_url: string, file: BodyInit)
src/core/clients/Studio.ts:198
↓ 1 callers
Function
_addToMemo
(classname: string, result: YTNode)
src/parser/parser.ts:176
↓ 1 callers
Method
analyzeAst
* Walks the AST to collect declarations and resolve initial targets.
src/utils/javascript/JsAnalyzer.ts:117
↓ 1 callers
Function
applyCommentsMutations
(memo: Memo, mutations: RawNode[])
src/parser/parser.ts:826
↓ 1 callers
Method
applyFilter
* Applies given filter to the list. * @param filter - The filter to apply
src/parser/youtube/Channel.ts:496
↓ 1 callers
Function
applyMutations
(memo: Memo, mutations: RawNode[])
src/parser/parser.ts:772
↓ 1 callers
Method
applyMutations
(comment?: RawNode, toolbar_state?: RawNode, toolbar_surface?: RawNode, comment_surface?: RawNode)
src/parser/classes/comments/CommentView.ts:85
↓ 1 callers
Method
areDependenciesResolved
* Checks if every dependency resolves to a declaration or built-in symbol. * @param dependencies - Dependencies to validate. * @param seen - Tra
src/utils/javascript/JsAnalyzer.ts:406
↓ 1 callers
Method
blockChannel
* Retrieves the list of supervised accounts that the signed-in user has * access to, and blocks the given channel for each of them. * @param cha
src/core/clients/Kids.ts:79
↓ 1 callers
Method
buildRequest
()
src/parser/types/CommandEndpoints.ts:3
↓ 1 callers
Method
buildScript
* Processes extracted matches from the analyzer, handles dependencies, predeclares * variables as needed, and generates an IIFE-wrapped output str
src/utils/javascript/JsExtractor.ts:329
↓ 1 callers
Method
cache
(cache?: ICache)
src/core/Player.ts:271
↓ 1 callers
Function
chooseFormat
(options: FormatOptions, streaming_data?: IStreamingData)
src/utils/FormatUtils.ts:138
↓ 1 callers
Method
chooseFormat
* Selects the format that best matches the given options. * @param options - Options
src/core/mixins/MediaInfo.ts:161
↓ 1 callers
Method
clear
()
src/parser/youtube/SmoothedQueue.ts:36
↓ 1 callers
Function
concatMemos
(...iterables: Array<Memo | undefined>)
src/utils/Utils.ts:154
← previous
next →
101–200 of 1,594, ranked by callers