youtubei.js / YT / Search
Class: Search
Defined in: src/parser/youtube/Search.ts:19
Extends
Constructors
Constructor
new Search(
actions
,data
,already_parsed
):Search
Defined in: src/parser/youtube/Search.ts:28
Parameters
actions
data
already_parsed
boolean
= false
Returns
Search
Overrides
Properties
estimated_results
estimated_results:
number
Defined in: src/parser/youtube/Search.ts:23
header?
optional
header:SearchHeader
Defined in: src/parser/youtube/Search.ts:20
refinement_cards?
optional
refinement_cards:HorizontalCardList
|null
Defined in: src/parser/youtube/Search.ts:26
refinements
refinements:
string
[]
Defined in: src/parser/youtube/Search.ts:22
results
results:
ObservedArray
<YTNode
>
Defined in: src/parser/youtube/Search.ts:21
sub_menu?
optional
sub_menu:SearchSubMenu
Defined in: src/parser/youtube/Search.ts:24
watch_card?
optional
watch_card:UniversalWatchCard
Defined in: src/parser/youtube/Search.ts:25
Accessors
actions
Get Signature
get actions():
Actions
Defined in: src/core/mixins/Feed.ts:181
Returns
Inherited from
channels
Get Signature
get channels():
ObservedArray
<Channel
|GridChannel
>
Defined in: src/core/mixins/Feed.ts:126
Get all the channels in the feed
Returns
ObservedArray
<Channel
| GridChannel
>
Inherited from
has_continuation
Get Signature
get has_continuation():
boolean
Defined in: src/core/mixins/Feed.ts:195
Checks if the feed has continuation.
Returns
boolean
Inherited from
memo
Get Signature
get memo():
Memo
Defined in: src/core/mixins/Feed.ts:137
Returns
Inherited from
page
Get Signature
get page():
T
Defined in: src/core/mixins/Feed.ts:188
Get the original page data
Returns
T
Inherited from
page_contents
Get Signature
get page_contents():
SectionList
|MusicQueue
|RichGrid
|ReloadContinuationItemsCommand
Defined in: src/core/mixins/Feed.ts:144
Returns contents from the page.
Returns
SectionList
| MusicQueue
| RichGrid
| ReloadContinuationItemsCommand
Inherited from
playlists
Get Signature
get playlists():
ObservedArray
<GridPlaylist
|LockupView
|Playlist
>
Defined in: src/core/mixins/Feed.ts:133
Get all playlists in the feed
Returns
ObservedArray
<GridPlaylist
| LockupView
| Playlist
>
Inherited from
posts
Get Signature
get posts():
ObservedArray
<BackstagePost
|Post
|SharedPost
>
Defined in: src/core/mixins/Feed.ts:119
Get all the community posts in the feed
Returns
ObservedArray
<BackstagePost
| Post
| SharedPost
>
Inherited from
refinement_card_queries
Get Signature
get refinement_card_queries():
string
[]
Defined in: src/parser/youtube/Search.ts:81
Returns a list of refinement card queries.
Returns
string
[]
secondary_contents
Get Signature
get secondary_contents():
SectionList
|BrowseFeedActions
|ProfileColumn
|SecondarySearchContainer
|null
Defined in: src/core/mixins/Feed.ts:169
Returns secondary contents from the page.
Returns
SectionList
| BrowseFeedActions
| ProfileColumn
| SecondarySearchContainer
| null
Inherited from
shelves
Get Signature
get shelves():
ObservedArray
<ReelShelf
|RichShelf
|Shelf
>
Defined in: src/core/mixins/Feed.ts:155
Returns all segments/sections from the page.
Returns
ObservedArray
<ReelShelf
| RichShelf
| Shelf
>
Inherited from
videos
Get Signature
get videos():
ObservedArray
<CompactVideo
|GridVideo
|PlaylistPanelVideo
|PlaylistVideo
|ReelItem
|ShortsLockupView
|Video
|WatchCardCompactVideo
>
Defined in: src/core/mixins/Feed.ts:112
Get all the videos in the feed
Returns
ObservedArray
<CompactVideo
| GridVideo
| PlaylistPanelVideo
| PlaylistVideo
| ReelItem
| ShortsLockupView
| Video
| WatchCardCompactVideo
>
Inherited from
Methods
getContinuation()
getContinuation():
Promise
<Search
>
Defined in: src/parser/youtube/Search.ts:88
Retrieves next batch of search results.
Returns
Promise
<Search
>
Overrides
getContinuationData()
getContinuationData():
Promise
<ISearchResponse
|undefined
>
Defined in: src/core/mixins/Feed.ts:202
Retrieves continuation data as it is.
Returns
Promise
<ISearchResponse
| undefined
>
Inherited from
getShelf()
Defined in: src/core/mixins/Feed.ts:162
Finds shelf by title.
Parameters
title
string
Returns
ReelShelf
| RichShelf
| Shelf
| undefined
Inherited from
selectRefinementCard()
selectRefinementCard(
card
):Promise
<Search
>
Defined in: src/parser/youtube/Search.ts:57
Applies given refinement card and returns a new Search object. Use refinement_card_queries to get a list of available refinement cards.
Parameters
card
string
| SearchRefinementCard
Returns
Promise
<Search
>
getPlaylistsFromMemo()
static
getPlaylistsFromMemo(memo
):ObservedArray
<GridPlaylist
|LockupView
|Playlist
>
Defined in: src/core/mixins/Feed.ts:94
Get all playlists on a given page via memo
Parameters
memo
Returns
ObservedArray
<GridPlaylist
| LockupView
| Playlist
>
Inherited from
getVideosFromMemo()
static
getVideosFromMemo(memo
):ObservedArray
<CompactVideo
|GridVideo
|PlaylistPanelVideo
|PlaylistVideo
|ReelItem
|ShortsLockupView
|Video
|WatchCardCompactVideo
>
Defined in: src/core/mixins/Feed.ts:78
Get all videos on a given page via memo
Parameters
memo
Returns
ObservedArray
<CompactVideo
| GridVideo
| PlaylistPanelVideo
| PlaylistVideo
| ReelItem
| ShortsLockupView
| Video
| WatchCardCompactVideo
>