Giter Site home page Giter Site logo

nuxtify-api's Introduction

Nuxtify API

Lightweight music API for client without third-party libraries.

⚠️ API from ZingMP3

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');

Related Videos

videoId: string

Nuxtify.chart.getRelatedVideos('ZWABOA0F');

Search

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');

nuxtify-api's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.