{"id":13694931,"url":"https://github.com/jsososo/QQMusicApi","last_synced_at":"2025-05-03T04:31:18.251Z","repository":{"id":39351313,"uuid":"209230778","full_name":"jsososo/QQMusicApi","owner":"jsososo","description":"基于 Express + Axios 的 QQ音乐接口 nodejs 版","archived":false,"fork":false,"pushed_at":"2024-06-25T14:55:18.000Z","size":490,"stargazers_count":1436,"open_issues_count":60,"forks_count":406,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-11T22:38:04.679Z","etag":null,"topics":["express","nodejs","qq-music","qq-music-api"],"latest_commit_sha":null,"homepage":"https://api.qq.jsososo.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsososo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-18T06:07:22.000Z","updated_at":"2025-04-11T19:51:00.000Z","dependencies_parsed_at":"2024-03-03T06:32:30.675Z","dependency_job_id":"eb8da0bd-1531-4706-96a6-86cccbc1055b","html_url":"https://github.com/jsososo/QQMusicApi","commit_stats":{"total_commits":87,"total_committers":12,"mean_commits":7.25,"dds":0.2183908045977011,"last_synced_commit":"13b08afd3180cc74d76fff208956b77a560abd22"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsososo%2FQQMusicApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsososo%2FQQMusicApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsososo%2FQQMusicApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsososo%2FQQMusicApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsososo","download_url":"https://codeload.github.com/jsososo/QQMusicApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252144558,"owners_count":21701434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","nodejs","qq-music","qq-music-api"],"created_at":"2024-08-02T17:01:50.256Z","updated_at":"2025-05-03T04:31:13.240Z","avatar_url":"https://github.com/jsososo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# QQMusicApi\n\n[![NPM](https://img.shields.io/npm/v/qq-music-api.svg)](https://www.npmjs.com/package/qq-music-api)\n[![github](https://img.shields.io/badge/github-QQMusicApi-brightgreen.svg)](https://github.com/jsososo/QQMusicApi)\n[![GitHub Pages Star](https://img.shields.io/github/stars/jsososo/QQMusicApi.svg)](https://github.com/jsososo/QQMusicApi)\n\n\n接口参考：\n\n[接口文档 Github](https://jsososo.github.io/QQMusicApi/#/)\n\n[接口文档 Vercel](https://qq-api-soso.vercel.app/)\n\n\n## 快速上手\n\n### Node 服务\n\n```shell script\ngit clone git@github.com:jsososo/QQMusicApi.git\n\nyarn\n\nyarn start\n```\n\n### Docker\n\n```shell script\nyarn build:docker\n\nyarn start:docker\n```\n\n\n### npm\n\n```shell script\nyarn add qq-music-api\n```\n\n#### 接口调用\n\n```javascript\nconst qqMusic = require('qq-music-api');\n\n// 部分接口依赖 cookie, 这里穿参可以使用字符串或对象\nqqMusic.setCookie('xxx=xxx; xxx=xxx;');\n// or\nqqMusic.setCookie({ a: 'xxx', b: 'xxx' });\n\nqqMusic.api('search', { key: '周杰伦' })\n    .then(res =\u003e console.log(res))\n    .catch(err =\u003e console.log('接口调用出错'))\n\nqqMusic.api('search', { key: '周杰伦' })\n    .then((res) =\u003e console.log('搜索周杰伦：', res))\n    .catch(err =\u003e console.log('接口调用出错'))\n\nqqMusic.api('search/hot')\n    .then((res) =\u003e console.log('热搜词：', res))\n    .catch(err =\u003e console.log('接口调用出错'))//\n\n// 刷新登陆\nqqMusic.api('user/refresh')\n```\n\n#### 获取当前cookie\n\n```javascript\nconst qqMusic = require('qq-music-api');\n\nconsole.log(qqMusic.cookie);\n```\n\n#### 获取当前 cookie 用户\n```javascript\nconst qqMusic = require('qq-music-api');\n\nconsole.log(qqMusic.uin);\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsososo%2FQQMusicApi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsososo%2FQQMusicApi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsososo%2FQQMusicApi/lists"}