@ernestoyoofi/yt.loader-to
Version:
An unofficial, promise-based API wrapper for `loader.to` to fetch YouTube video information and generate download links. Written in TypeScript, it's fully typed and easy to use in any Node.js project.
19 lines (18 loc) • 470 B
TypeScript
import { AxiosRequestConfig } from "axios";
interface ChannelInfo {
pp: string;
name: string;
url_ch: string;
}
export interface GetInfoYoutubeContents {
image: string;
title: string;
description: string;
view?: number;
like?: number;
id: string;
yt_url: string;
channel: ChannelInfo;
}
export default function GetInfoYoutubeContent(url: string, axios_config?: AxiosRequestConfig): Promise<GetInfoYoutubeContents>;
export {};