Skip to content

kotisoff/ym-api-meowed

 
 

Repository files navigation

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 ym-api-meowed

Usage

import { YMApi } from "ym-api-meowed";
const api = new YMApi();

(async () => {
  try {
    await api.init({ access_token: "EXAMPLE_TOKEN", uid: 0 });
    const result = await api.searchArtists("gorillaz");
    console.log({ result });
  } catch (e) {
    console.log(`api error ${e.message}`);
  }
})();

Get token from here and uid from here.

Available methods

This library provides following methods:

Plain API

Users

  • getAccountStatus
  • getFeed

Music

  • getChart
  • getNewReleases
  • getPodcasts
  • getGenres
  • search
  • searchArtists
  • searchTracks
  • searchAlbums
  • searchAll

Playlist

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

Tracks

  • getTrack
  • getArtistTracks
  • getSingleTrack
  • getTrackSupplement
  • getTrackDownloadInfo
  • getTrackDirectLink
  • getTrackShareLink
  • getSimilarTracks
  • getDislikedTracks
  • getLikedTracks

Album

  • getAlbums
  • getAlbum
  • getAlbumWithTracks

Artist

  • getArtist
  • getArtists

Station

  • getAllStationsList
  • getRecomendedStationsList
  • getStationTracks
  • getStationInfo

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

Etc

  • getShortenedLink

Acknowledgements

About

A Node.js wrapper for the Yandex.Music API (Unofficial) http://music.yandex.ru

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%