UNPKG

ytmusic_api_unofficial

Version:

A simple API to get music from YouTube Music

58 lines 1.35 kB
import { Thumbnail } from "./Thumbnail"; import Album from "./Album"; import { followerFormat } from "../utils/default"; import Playlist from "./Playlist"; 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 { * "followers": 1000000 * "followersText": "1 M" * } */ followers: followerFormat; /** * Thumbnails of the user * @example * ```json * { * "url": "https://lh3.googleusercontent.com/...", * "width": 60, * "height": 60 * } * ``` */ thumbnails: Array<Thumbnail>; /** * Used to get the artist's songs and albums (Ignore this) * @private */ private readonly browseIds; /** * 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 * @returns Playlist */ getSongs(): Promise<Playlist>; /** * Get the artist's albums * @returns Album[] */ getAlbums(): Promise<Album[]>; } //# sourceMappingURL=Artist.d.ts.map