Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Album.InformAlbum(string albumId)

KirMozor edited this page May 7, 2022 · 1 revision

Method for getting album information

Example:

using System;
using YandexMusicApi;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(Album.InformAlbum("17589377")); //AlbumId: Imagine Dragons
        }
    }
}

Output:

{
  "invocationInfo": {
    "hostname": "music-prestable-back-sas-4.sas.yp-c.yandex.net",
    "req-id": "-894u5604uhh7u45745u09-g4;p56y4",
    "exec-duration-millis": "0"
  },
  "result": {
    "id": 17589377,
    "title": "Imagine Dragons",
    "type": "single",
    "metaType": "music",
    "year": 2021,
    "releaseDate": "2021-08-18T03:00:00+06:00",
    "coverUri": "avatars.yandex.net/get-music-content/5234929/038ab016.a.17589377-1/%%",
    "ogImage": "avatars.yandex.net/get-music-content/5234929/038ab016.a.17589377-1/%%",
    "genre": "pop",
    "buy": [],
    "trackCount": 1,
    "likesCount": 6,
    "recent": false,
    "veryImportant": false,
    "artists": [
      {
        "id": 12921378,
        "name": "Ragged Insomnia",
        "various": false,
        "composer": false,
        "cover": {
          "type": "from-album-cover",
          "prefix": "038ab016.a.17589377-1",
          "uri": "avatars.yandex.net/get-music-content/5234929/038ab016.a.17589377-1/%%"
        },
        "genres": []
      }
    ],
    "labels": [
      {
        "id": 3644083,
        "name": "Ragged Insomnia"
      }
    ],
    "available": true,
    "availableForPremiumUsers": true,
    "availableForMobile": true,
    "availablePartially": false,
    "bests": []
  }
}

Clone this wiki locally