ytmusic_api_unofficial
Version:
A simple API to get music from YouTube Music
54 lines • 1.2 kB
TypeScript
import { Thumbnail } from "./Thumbnail";
import Music from "./Music";
import Album from "./Album";
export default class Artist {
/**
* The artist name
* @example "Adele"
*/
name: string;
/**
* The YouTube Music artist id
* @example "UCRw0x9_EfawqmgDI2IgQLLg"
*/
id: number;
/**
* The artist's followers count
* @example 123456
*/
followers: number;
/**
* Thumbnails of the user
* @example
* ```json
* {
* "url": "https://lh3.googleusercontent.com/...",
* "width": 60,
* "height": 60
* }
* ```
*/
thumbnails: Array<Thumbnail>;
/**
* The artist's description
* @example "Adele Laurie Blue Adkins is an English singer and songwriter."
*/
description: string;
constructor(artist: any);
/**
* Get the artist's songs
* @return Music[]
*/
getSongs(): Promise<Music[]>;
/**
* Get the artist's albums
* @returns Album[]
*/
getAlbums(): Promise<Album[]>;
/**
* Get the artist's videos
* @returns Music[]
*/
getVideos(): Promise<Music[]>;
}
//# sourceMappingURL=Artist.d.ts.map