@maserokun/yandex-music-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Yandex.Music API (Unofficial) for Node

This is a Node.js wrapper for the Yandex.Music API that is used in mobile apps (iOS/Android).

Installation

npm install @maserokun/yandex-music-api

Usage

import { YMApi } from "@maserokun/yandex-music-apii";
const api = new YMApi();

(async () => {
  try {
    await api.init({ username: "example@yandex.ru", password: "password" });
    const result = await api.searchArtists("gorillaz");
    console.log({ result });
  } catch (e) {
    console.log(`api error ${e.message}`);
  }
})();

Available methods

This library provides following methods:

Plain API

Users

  • getAccountStatus
  • getFeed

Music

  • getGenres
  • search
  • searchArtists
  • searchTracks
  • searchAlbums
  • searchAll

Playlist

  • getPlaylist
  • getPlaylists
  • getUserPlaylists
  • createPlaylist
  • removePlaylist
  • renamePlaylist
  • addTracksToPlaylist
  • removeTracksFromPlaylist

Tracks

  • getTrack
  • getArtistTracks
  • getSingleTrack
  • getTrackSupplement
  • getTrackDownloadInfo
  • getTrackDirectLink

Album

  • getAlbums
  • getAlbum
  • getAlbumWithTracks

Artist

  • getArtist
  • getArtists

Wrapped API

Almost all methods of the wrapped api can be called with a entity id or url

Tracks

  • getConcreteDownloadInfo
  • getMp3DownloadInfo
  • getMp3DownloadUrl

Playlist

  • getPlaylist

Album

  • getAlbum
  • getAlbumWithTracks

Artist

  • getArtist

Package Sidebar

Install

npm i @maserokun/yandex-music-api

Weekly Downloads

1

Version

1.0.8

License

MIT

Unpacked Size

97.6 kB

Total Files

53

Last publish

Collaborators

  • maserokun