All Projects → metowolf → TencentMusicApi

metowolf / TencentMusicApi

Licence: MIT license
QQ 音乐 API,PHP 版

Programming Languages

PHP
23972 projects - #3 most used programming language

TencentMusicApi

QQ 音乐 API - PHP 版

基于 QQ 音乐 web 端接口改写的 PHP 版本, 建议 PHP 5.6 以上环境 本 API 为个人学习作品,请支持正版音乐,勿滥用

Function

  • 关键字搜索
  • 歌手热门单曲
  • 歌曲详细信息
  • 专辑解析
  • 歌单解析
  • 歌曲地址获取
  • 歌词解析
  • MV 解析

Get Started

# just download the TencentMusicAPI.php into directory, require it with the correct path.

require_once 'TencentMusicAPI.php';

# Initialize
$api = new TencentMusicAPI();

# Get data
$result = $api->search('hello');
// $result = $api->artist('003CoxJh1zFPpx');
// $result = $api->detail('001icUif3vTGcO');
// $result = $api->album('002rBshp4WPAut');
// $result = $api->playlist('801491460');
// $result = $api->url('001icUif3vTGcO');
// $result = $api->lyric('001icUif3vTGcO');

# return JSON, just use it
var_dump(json_decode($result));

Link

License

TencentMusicApi is under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].