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.GetTrackIdByRating(string artistId)
KirMozor edited this page May 7, 2022
·
2 revisions
Sends the best tracks of the artist in the form of ID
Example:
using System;
using YandexMusicApi;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Artist.GetTrackIdByRating("675068")); // ArtistId: Imagine Dragons
}
}
}
Output:
{
"invocationInfo": {
"req-id": "q8u5f946g67-2587u7u456235u626ul34f63u46t13",
"hostname": "music-stable-back-sas-27.sas.yp-c.yandex.net",
"exec-duration-millis": 3
},
"result": {
"artist": {
"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/"
},
"ogImage": "avatars.yandex.net/get-music-content/5236179/b00cf194.p.675068/%%",
"genres": [
"rock"
],
"counts": {
"tracks": 123,
"directAlbums": 30,
"alsoAlbums": 46,
"alsoTracks": 23
},
"available": true,
"ratings": {
"week": 11,
"month": 12,
"day": 7
},
"links": [
{
"title": "imaginedragonsmusic.com",
"href": "http://www.imaginedragonsmusic.com/",
"type": "official"
},
{
"title": "@imaginedragons",
"href": "https://www.tiktok.com/@imaginedragons",
"type": "social",
"socialNetwork": "tiktok"
},
{
"title": "ImagineDragons",
"href": "https://www.facebook.com/ImagineDragons",
"type": "social",
"socialNetwork": "facebook"
},
{
"title": "imaginedragons",
"href": "https://twitter.com/imaginedragons",
"type": "social",
"socialNetwork": "twitter"
},
{
"title": "imaginedragons/",
"href": "https://www.instagram.com/imaginedragons/",
"type": "social",
"socialNetwork": "instagram"
},
{
"title": "user/ImagineDragonsVEVO",
"href": "http://www.youtube.com/user/ImagineDragonsVEVO",
"type": "social",
"socialNetwork": "youtube"
}
],
"ticketsAvailable": false
},
"tracks": [
"94074268",
"103218647",
"33311009",
"42197229",
"34976783",
"79177545"
]
}
}