ytmusic_api_unofficial
Version:
A simple API to get music from YouTube Music
75 lines • 1.62 kB
TypeScript
import { Thumbnail } from "./Thumbnail";
import Artist from "./Artist";
import Music from "./Music";
export default class Playlist {
/**
* An array of available Artwork in different sizes
* @example
* ```json
* [
* {
* "url": "https://lh3.googleusercontent.com/...",
* "width": 60,
* "height": 60
* },
* ]
* ```
*/
thumbnails: Array<Thumbnail>;
/**
* The YTmusic id of the Playlist
* @example "dQw4w9WgXcQ"
*/
id: string;
/**
* Playlist name
* @example %
*/
name: string;
/**
* An array of Artist objects
* @TODO Not Implemented
* @example
* ```json
* [
* {
* "name": "Rick Astley",
* "id": "MPREb_5eN7fQq3J9_"
* }
* ]
* ```
*/
artists: Array<Artist>;
/**
* The type of the Playlist
* @example "song" | "video" | "album"... etc. (Check available types)
*/
resultType: string;
/**
* The browseId of the Album (NOT WORKING)
* @example "MPREb_5eN7fQq3J9_"
* @TODO Not Implemented
*/
browseId: string;
/**
* The year of the music if it's available
* @TODO Not Implemented
* @example 2024
*/
year?: number;
/**
* Music List of the Playlist
* @example
* ```JSON
* [{}, {}, {}]
* ```
*/
musics: Array<Music>;
/**
* Description of the Playlist
* @example "This is a playlist"
*/
description: string | null;
constructor(data: any);
}
//# sourceMappingURL=Playlist.d.ts.map