JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q49944F
  • License ISC

Lightweight music API for client without third-party libraries.

Package Exports

  • nuxtify-api
  • nuxtify-api/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nuxtify-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Nuxtify API

Lightweight music API for client without third-party libraries.

Installation

npm i nuxtify-api
#or
yarn add nuxtify-api
import Nuxtify from "nuxtify-api"
#or
const Nuxtify = require("nuxtify-api")

Usage

Home

Nuxtify.getHome();

Top 100

Nuxtify.getTop100();

Genres

Nuxtify.getGenres();

Artist

alias: string

Nuxtify.getArtist('Alan-Walker');

Song

Lyrics

songId: string

Nuxtify.song.getLyrics('Z6709W0Z');

Song URL

songId: string

Nuxtify.song.getSongUrl('Z6709W0Z');

Song Detail

songId: string

Nuxtify.song.getSongDetail('Z6709W0Z');

Playlist

playlistId: string

Nuxtify.song.getPlaylist('6B8E67CU');

New Release Song

Nuxtify.song.getNewReleaseSongs();

Chart

Home Chart

Nuxtify.chart.getHomeChart();

New Release Chart

Nuxtify.chart.getNewReleaseChart();

Week Chart

nationalKey: 'vn' | 'kr' | 'us'
week: number (option)
year: number (option)

Nuxtify.chart.getWeekChart('vn');

Video

Video Detail

videoId: string

Nuxtify.chart.getVideoDetail('ZWABOA0F');

videoId: string

Nuxtify.chart.getRelatedVideos('ZWABOA0F');

All Result

q: string

Nuxtify.search.getResult('faded');

Result by type

q: string
type: 'video' | 'song' | 'artist' | 'playlist'
page: number (option)

Nuxtify.search.getResultByType('faded', 'song');

Suggestion

Nuxtify.search.getSuggestion('faded');

Recommend Keyword

Nuxtify.search.getRecommendKeyword();

Podcast

Podcast

Nuxtify.search.getPodcast();

Newest podcast

Nuxtify.search.getNewestPodcast();

Top podcast

Nuxtify.search.getTopPodcast();

Podcast URL

podcastId: string

Nuxtify.search.getPodcastUrl('Z6AFI0IZ');

Podcast Playlist

podcastPlaylistId: string

Nuxtify.search.getPodcastPlaylist('Z6AFI0IZ');

Podcast Info

podcastId: string

Nuxtify.search.getPodcastInfo('6AFEIFOA');

Podcast Detail

podcastId: string

Nuxtify.search.getPodcastDetail('Z6AFI0IZ');

Podcast Categories

Nuxtify.search.getPodcastCategories();

Podcast By Genres

genreId: string

Nuxtify.search.getPodcastByGenre('IWZ980AI');