This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Artist.GetDirectAlbums(string artistId, string page, string pageSize, string sortBy)
KirMozor edited this page May 8, 2022
·
1 revision
Allows you to get artist's albums by his ID
Example:
using System;
using YandexMusicApi;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Artist.GetDirectAlbums("675068")); //ArtistId: Imagine Dragons
}
}
}
Output:
{
"invocationInfo": {
"req-id": "1651922154346971-9970693490400643801",
"hostname": "music-stable-back-sas-27.sas.yp-c.yandex.net",
"exec-duration-millis": 7
},
"result": {
"pager": {
"page": 0,
"perPage": 20,
"total": 30
},
"albums": [
{
"id": 21002416,
"title": "Mercury - Act 1",
"metaType": "music",
"version": "Additional Track Version",
"year": 2021,
"releaseDate": "2021-09-03T03:00:00+06:00",
"coverUri": "avatars.yandex.net/get-music-content/5531900/c62fdddc.a.21002416-1/%%",
"ogImage": "avatars.yandex.net/get-music-content/5531900/c62fdddc.a.21002416-1/%%",
"genre": "rock",
"buy": [],
"trackCount": 14,
"likesCount": 702,
"recent": false,
"veryImportant": false,
"artists": [
{
"id": 675068,
"name": "Imagine Dragons",
"various": false,
"composer": false,
"cover": {
"type": "from-artist-photos",
"uri": "avatars.yandex.net/get-music-content/5236179/b00cf194.p.675068/%%",
"prefix": "b00cf194.p.675068/"
},
"genres": []
}
],
"labels": [
{
"id": 449526,
"name": "KIDinaKORNER"
},
{
"id": 2004,
"name": "Interscope"
}
],
"available": true,
"availableForPremiumUsers": true,
"availableForMobile": true,
"availablePartially": false,
"bests": [
79177545,
94074268,
86416030
]
},
{
"id": 5568718,
"title": "Evolve",
"metaType": "music",
"year": 2017,
"releaseDate": "2017-06-23T03:00:00+06:00",
"coverUri": "avatars.yandex.net/get-music-content/98892/a6be0789.a.5568718-1/%%",
"ogImage": "avatars.yandex.net/get-music-content/98892/a6be0789.a.5568718-1/%%",
"genre": "rock",
"buy": [],
"trackCount": 12,
"likesCount": 518,
"recent": false,
"veryImportant": false,
"artists": [
{
"id": 675068,
"name": "Imagine Dragons",
"various": false,
"composer": false,
"cover": {
"type": "from-artist-photos",
"uri": "avatars.yandex.net/get-music-content/5236179/b00cf194.p.675068/%%",
"prefix": "b00cf194.p.675068/"
},
"genres": []
}
],
"labels": [
{
"id": 449526,
"name": "KIDinaKORNER"
},
{
"id": 2004,
"name": "Interscope"
}
],
"available": true,
"availableForPremiumUsers": true,
"availableForMobile": true,
"availablePartially": false,
"bests": [
35170143,
34976783,
33311009
]
},
{
"id": 6017186,
"title": "Origins",
"metaType": "music",
"version": "Deluxe",
"year": 2018,
"releaseDate": "2018-11-09T03:00:00+06:00",
"coverUri": "avatars.yandex.net/get-music-content/117546/b5c6945b.a.6017186-1/%%",
"ogImage": "avatars.yandex.net/get-music-content/117546/b5c6945b.a.6017186-1/%%",
"genre": "rock",
"buy": [],
"trackCount": 15,
"likesCount": 363,
"recent": false,
"veryImportant": false,
"artists": [
{
"id": 675068,
"name": "Imagine Dragons",
"various": false,
"composer": false,
"cover": {
"type": "from-artist-photos",
"uri": "avatars.yandex.net/get-music-content/5236179/b00cf194.p.675068/%%",
"prefix": "b00cf194.p.675068/"
},
"genres": []
}
],
"labels": [
{
"id": 449526,
"name": "KIDinaKORNER"
},
{
"id": 2004,
"name": "Interscope"
}
],
"available": true,
"availableForPremiumUsers": true,
"availableForMobile": true,
"availablePartially": false,
"bests": [
44463745,
44781873,
42197229
],
A lot of text