Skip to content

wrisin/NeteaseCloudMusicApi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeteaseCloudMusicApi

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

Function

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

Thanks

Name License Author Link
Math_BigInteger MIT Jim Wigginton PHP
Algorithm - stkevintan Blog
NetEase-MusicBox MIT darknessomi Github
NeteaseCloudMusicApi MIT axhello Github
NeteaseCloud Music - Netease Inc. LINK

Get Started

# just download the MusicAPI.php into directory, require it with the correct path.
# in version 2, you should also put BigInteger.php into same directory, but don't require it.
require_once 'MusicAPI.php';

# Initialize
$api = new MusicAPI();

# Get data
$result = $api->search('hello');
// $result = $api->artist('46487');
// $result = $api->detail('35847388');
// $result = $api->album('3377030');
// $result = $api->playlist('124394335');
// $result = $api->url('35847388'); # v2 only
// $result = $api->lyric('35847388');
// $result = $api->mv('501053');

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

Link

License

NeteaseCloudMusicApi is under the MIT license.

About

网易云音乐 API,PHP 版

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%