QQ音乐 NodeJS 版 API

文档:https://jsososo.github.io/QQMusicApi/

Github:https://github.com/jsososo/QQMusicApi

浏览器插件:https://github.com/jsososo/qqmusic-cookie-porter

安装教程

$ git clone https://github.com/jsososo/QQMusicApi.git

$ npm install

$ npm start

1.服务器上存储 cookie 通过插件获取到Cookie

2.借助插件刷新 https://y.qq.com/?forceUpdateCookie=1

Post {“data”: “你的cookie”}

Post URL :

http://123.207.228.46:3000/user/setCookie

Body – Raw -Json

{"data": "pgv_pvid=6553672300; pgv_pvi=2739034112; RK=zMAoks2DW/; ptcz=56bbb43627599f0ba88f13fb5d5dfaa639405a1800c6674856a3f3afbfd278b2; tvfe_boss_uuid=e8a4ed8645e9e57a; o_cookie=309076; ts_uid=45979802; userAction=1; ts_refer=www.chuihai.com/2020/04/22/222.html; pgv_info=ssid=s6312908724; pgv_si=s8288778240; ct=11; cv=11; yqq_stat=0; ts_last=y.qq.com/; psrf_qqopenid=AC6B9CF39607C3445378B3E9080B017D; uin=309076; psrf_musickey_createtime=1587661033; psrf_qqrefresh_token=424335B1E9C9AADBE9B275D5FD3D93D1; psrf_qqunionid=8BF48080DB93C5FC3D846FF1D901F9BC; psrf_access_token_expiresAt=1595437033; qm_keyst=Q_H_L_2aEoXw50equDElhUdC8Y0qquulPIaLqcjwr_2WdmKaYnloZGFaGomNiyTREai2B; qqmusic_key=Q_H_L_2aEoXw50equDElhUdC8Y0qquulPIaLqcjwr_2WdmKaYnloZGFaGomNiyTREai2B; psrf_qqaccess_token=82F6EEA7549ED66BAC04A45131748DF3"}