1.2.5 • Published 2 years ago

wasicapi v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 wasicapi

Usage

import { WasicApi } from "wasicapi";
const api = new WasicApi();

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

Available methods

This library provides following methods:

Plain API

Users

  • getMe
  • 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

Liked tracks

  • getLikedTracks
  • likeTrack
  • dislikeTrack

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

Acknowledgements

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago