14 KiB
youtubei.js / YTKids / Search
Class: Search
Extends
Constructors
new Search()
new Search(
actions,data):Search
Parameters
• actions: Actions
• data: ApiResponse | ISearchResponse
Returns
Overrides
Defined in
src/parser/ytkids/Search.ts:13
Properties
contents
contents:
null|ObservedArray<YTNode>
Defined in
src/parser/ytkids/Search.ts:11
estimated_results?
optionalestimated_results:number
Defined in
src/parser/ytkids/Search.ts:10
Accessors
actions
getactions():Actions
Returns
Inherited from
Defined in
channels
getchannels():ObservedArray<Channel|GridChannel>
Get all the channels in the feed
Returns
ObservedArray<Channel | GridChannel>
Inherited from
Defined in
has_continuation
gethas_continuation():boolean
Checks if the feed has continuation.
Returns
boolean
Inherited from
Defined in
memo
getmemo():Memo
Returns
Inherited from
Defined in
page
getpage():T
Get the original page data
Returns
T
Inherited from
Defined in
page_contents
getpage_contents():SectionList|MusicQueue|RichGrid|ReloadContinuationItemsCommand
Returns contents from the page.
Returns
SectionList | MusicQueue | RichGrid | ReloadContinuationItemsCommand
Inherited from
Defined in
playlists
getplaylists():ObservedArray<GridPlaylist|LockupView|Playlist>
Get all playlists in the feed
Returns
ObservedArray<GridPlaylist | LockupView | Playlist>
Inherited from
Defined in
posts
getposts():ObservedArray<BackstagePost|Post|SharedPost>
Get all the community posts in the feed
Returns
ObservedArray<BackstagePost | Post | SharedPost>
Inherited from
Defined in
secondary_contents
getsecondary_contents():null|SectionList|BrowseFeedActions|ProfileColumn|SecondarySearchContainer
Returns secondary contents from the page.
Returns
null | SectionList | BrowseFeedActions | ProfileColumn | SecondarySearchContainer
Inherited from
Defined in
shelves
getshelves():ObservedArray<ReelShelf|RichShelf|Shelf>
Returns all segments/sections from the page.
Returns
ObservedArray<ReelShelf | RichShelf | Shelf>
Inherited from
Defined in
videos
getvideos():ObservedArray<CompactVideo|GridVideo|PlaylistPanelVideo|PlaylistVideo|ReelItem|ShortsLockupView|Video|WatchCardCompactVideo>
Get all the videos in the feed
Returns
ObservedArray<CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | Video | WatchCardCompactVideo>
Inherited from
Defined in
Methods
getContinuation()
getContinuation():
Promise<Feed<ISearchResponse>>
Retrieves next batch of contents and returns a new Feed object.
Returns
Promise<Feed<ISearchResponse>>
Inherited from
Defined in
getContinuationData()
getContinuationData():
Promise<undefined|ISearchResponse>
Retrieves continuation data as it is.
Returns
Promise<undefined | ISearchResponse>
Inherited from
Defined in
getShelf()
Finds shelf by title.
Parameters
• title: string
Returns
undefined | ReelShelf | RichShelf | Shelf
Inherited from
Defined in
getPlaylistsFromMemo()
staticgetPlaylistsFromMemo(memo):ObservedArray<GridPlaylist|LockupView|Playlist>
Get all playlists on a given page via memo
Parameters
• memo: Memo
Returns
ObservedArray<GridPlaylist | LockupView | Playlist>
Inherited from
Defined in
getVideosFromMemo()
staticgetVideosFromMemo(memo):ObservedArray<CompactVideo|GridVideo|PlaylistPanelVideo|PlaylistVideo|ReelItem|ShortsLockupView|Video|WatchCardCompactVideo>
Get all videos on a given page via memo
Parameters
• memo: Memo
Returns
ObservedArray<CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | Video | WatchCardCompactVideo>