1.3.5 • Published 9 months ago

ym-api-meowed v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months 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 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

1.3.5

9 months ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago