This is a Node.js wrapper for the Yandex.Music API that is used in mobile apps (iOS/Android).
npm install ym-api
import { YMApi } from "ym-api";
const api = new YMApi();
(async () => {
try {
await api.init({ username: "[email protected]", password: "password" });
const result = await api.searchArtists("gorillaz");
console.log({ result });
} catch (e) {
console.log(`api error ${e.message}`);
}
})();
This library provides following methods:
- getAccountStatus
- getFeed
- getGenres
- search
- searchArtists
- searchTracks
- searchAlbums
- searchAll
- getPlaylist
- getPlaylists
- getUserPlaylists
- createPlaylist
- removePlaylist
- renamePlaylist
- addTracksToPlaylist
- removeTracksFromPlaylist
- getTrack
- getArtistTracks
- getSingleTrack
- getTrackSupplement
- getTrackDownloadInfo
- getTrackDirectLink
- getAlbums
- getAlbum
- getAlbumWithTracks
- getArtist
- getArtists
Almost all methods of the wrapped api can be called with a entity id or url
- getConcreteDownloadInfo
- getMp3DownloadInfo
- getMp3DownloadUrl
- getPlaylist
- getAlbum
- getAlbumWithTracks
- getArtist