UseGetVideoDetails
katanakit-js / useGetVideoDetails
Function: useGetVideoDetails()
Section titled “Function: useGetVideoDetails()”function useGetVideoDetails(ids): Promise< FetchResult< { channelTitle?: string; description: string; durationSeconds?: number; embedUrl: string; id: string; publishedAt: string; thumbnail: string; thumbnails: { default: string; high: string; medium: string; }; title: string; url: string; viewCount?: number; }[] >>;Defined in: core/services/youtube.service.ts:527
Enriches videos with duration and view count.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ids |
string[] |
Returns
Section titled “Returns”Promise<FetchResult<{
channelTitle?: string;
description: string;
durationSeconds?: number;
embedUrl: string;
id: string;
publishedAt: string;
thumbnail: string;
thumbnails: {
default: string;
high: string;
medium: string;
};
title: string;
url: string;
viewCount?: number;
}[]>>