katanakit-js / useGetChannelVideosRss
Function: useGetChannelVideosRss()
ts
function useGetChannelVideosRss(channelId?): 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: src/core/services/youtube.service.ts:426
Fetches the keyless channel RSS feed and parses it. Zero quota, limited to the latest ~15 videos with basic metadata.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
channelId | string | youtubeConfig.channelId | Channel id (defaults to the configured one). |
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; }[]>>
Safe Result with normalized videos.