Skip to main content

Class: SearchResult<T>

Represents search result, usually returned from client.search();.

SearchResult is a helper class to manage search result

Example

const result = await youtube.search("Keyword");

console.log(result.items); // search result from first page

let nextSearchResult = await result.next();
console.log(nextSearchResult); // search result from second page

nextSearchResult = await result.next();
console.log(nextSearchResult); // search result from third page

console.log(result.items); // search result from first, second, and third page.

Type parameters

NameType
Textends SearchType | undefined = "all"

Hierarchy

Properties

estimatedResults

estimatedResults: number

The estimated search result count