Socket
Socket
Sign inDemoInstall

qq-music-api

Package Overview
Dependencies
122
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qq-music-api

[![NPM](https://img.shields.io/npm/v/qq-music-api.svg)](https://www.npmjs.com/package/qq-music-api) [![github](https://img.shields.io/badge/github-QQMusicApi-brightgreen.svg)](https://github.com/jsososo/QQMusicApi) [![GitHub Pages Star](https://img.shield


Version published
Weekly downloads
13
increased by8.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

QQMusicApi

NPM github GitHub Pages Star

接口参考:

接口文档 Github

接口文档 Vercel

快速上手

Node 服务

git clone git@github.com:jsososo/QQMusicApi.git

yarn

yarn start

Docker

yarn build:docker

yarn start:docker

npm

yarn add qq-music-api
接口调用
const qqMusic = require('qq-music-api');

// 部分接口依赖 cookie, 这里穿参可以使用字符串或对象
qqMusic.setCookie('xxx=xxx; xxx=xxx;');
// or
qqMusic.setCookie({ a: 'xxx', b: 'xxx' });

qqMusic.api('search', { key: '周杰伦' })
    .then(res => console.log(res))
    .catch(err => console.log('接口调用出错'))

qqMusic.api('search', { key: '周杰伦' })
    .then((res) => console.log('搜索周杰伦:', res))
    .catch(err => console.log('接口调用出错'))

qqMusic.api('search/hot')
    .then((res) => console.log('热搜词:', res))
    .catch(err => console.log('接口调用出错'))//

// 刷新登陆
qqMusic.api('user/refresh')
获取当前cookie
const qqMusic = require('qq-music-api');

console.log(qqMusic.cookie);
const qqMusic = require('qq-music-api');

console.log(qqMusic.uin);

FAQs

Last updated on 09 Jul 2022

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