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
Name | Type |
---|---|
T | extends SearchType | undefined = "all" |
Hierarchy
Continuable
<SearchResultItem
<T
>>↳
SearchResult
Properties
estimatedResults
• estimatedResults: number
The estimated search result count