ytmusic_api_unofficial
Version:
A simple API to get music from YouTube Music
64 lines • 1.35 kB
TypeScript
import { Thumbnail } from "./Thumbnail";
import Artist from "./Artist";
import Music from "./Music";
export default class Album {
/**
* 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 Album
* @example "dQw4w9WgXcQ"
*/
id: string;
/**
* The Album name
* @example %
*/
name: string;
/**
* An array of Artist objects
* @example
* ```json
* [
* {
* "name": "Rick Astley",
* "id": "MPREb_5eN7fQq3J9_"
* }
* ]
* ```
*/
artists: Array<Artist>;
/**
* The type of the Album
* @example "song" | "video" | "album"... etc. (Check available types)
*/
resultType: string;
/**
* The year of the music if it's available
* @example 2024
*/
year?: number;
/**
* If the music contains explicit content
* @example false
*/
isExplicit: boolean;
constructor(data: any);
/**
* Get the Album's songs
* @return Music[]
*/
getSongs(): Promise<Music[]>;
}
//# sourceMappingURL=Album.d.ts.map