Socket
Socket
Sign inDemoInstall

@moscowcity/ym-api

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @moscowcity/ym-api

Forked version of https://github.com/kontsevoye/ym-api with removed console.error


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Usage

import { YMApi } from "ym-api";
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

Acknowledgements

Keywords

FAQs

Last updated on 08 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc