• Stars
    star
    198
  • Rank 196,898 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

网易云音乐API,项目合并至 Meting

NeteaseCloudMusicApi

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

Function

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

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

<?php
# just download the NeteaseMusicAPI.php into directory, require it with the correct path.
# in weapi, you should also put BigInteger.php into same directory, but don't require it.
require_once 'NeteaseMusicAPI.php';

# Initialize
$api = new NeteaseMusicAPI();

# Get data
$result = $api->search('hello');
// or $result = $api->mini()->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
$data=json_decode($result);
header('Content-type: application/json; charset=UTF-8');
echo json_encode($data,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
{
    "result": {
        "songs": [
            {
                "rtUrls": [],
                "ar": [
                    {
                        "id": 46487,
                        "name": "Adele"
                    }
                ],
                "al": {
                    "id": 3377030,
                    "name": "Hello",
                    "pic_str": "3388694837506899",
                    "pic": 3388694837506899
                },
                "st": 0,
                "a": null,
                "m": {
                    "br": 160000,
                    "fid": 18575149440043431,
                    "size": 5911555,
                    "vd": -2.95
                },
                "l": {
                    "br": 96000,
                    "fid": 3401888991069698,
                    "size": 3546951,
                    "vd": -2.98
                },
                "rtUrl": null,
                "pst": 0,
                "dt": 295502,
                "alia": [],
                "pop": 100,
                "rt": null,
                "mst": 9,
                "cp": 390012,
                "crbt": null,
                "mv": 501053,
                "cf": "",
                "h": {
                    "br": 320000,
                    "fid": 3420580735976517,
                    "size": 11823064,
                    "vd": -3.39
                },
                "t": 0,
                "djId": 0,
                "fee": 0,
                "ftype": 0,
                "rtype": 0,
                "rurl": null,
                "v": 13,
                "cd": "",
                "no": 1,
                "name": "Hello",
                "id": 35847388,
                "privilege": {
                    "id": 35847388,
                    "fee": 0,
                    "payed": 0,
                    "st": 0,
                    "pl": 320000,
                    "dl": 320000,
                    "sp": 7,
                    "cp": 1,
                    "subp": 1,
                    "cs": false,
                    "maxbr": 999000,
                    "fl": 320000,
                    "toast": false,
                    "flag": 0
                }
            },
            ...
        ],
        "songCount": 9999
    },
    "code": 200
}

Link

License

NeteaseCloudMusicApi is under the MIT license.

More Repositories

1

vCards

📡️ vCards 中国黄页 - 优化 iOS/Android 来电、信息界面体验
JavaScript
4,324
star
2

Meting

🍰 Wow, such a powerful music API framework
PHP
1,704
star
3

MetingJS

🍰 A powerful plugin connect APlayer and Meting
JavaScript
1,127
star
4

BilibiliHelper

🌮 B 站自动领瓜子、直播挂机脚本,!!! 非 B 站后台源码 !!!
JavaScript
953
star
5

iplist

📖 IP CIDRs List / IP 地址列表
836
star
6

qqwry.ipdb

🐈️ 纯真数据库 IPIP.net 格式版,Make qqwry.ipdb Great Again!!!
JavaScript
331
star
7

JumpJumpHelper

用 PHP 玩微信跳一跳
PHP
299
star
8

qqwry.dat

纯真 IP 数据库同步仓库
JavaScript
123
star
9

script

some exciting script :P
PHP
117
star
10

docker-lemp

🐳 Docker 快速搭建 LEMP 开发环境
PHP
88
star
11

upimg-cli

🧀 Upload image to public CDN in terminal
JavaScript
81
star
12

mathematica-keygen

wolfram mathematica keygen
JavaScript
79
star
13

TencentMusicApi

QQ 音乐 API,PHP 版
PHP
69
star
14

rime-sogou

📇 聰明的輸入法配聰明的詞庫
JavaScript
38
star
15

smms-cli

Upload images to sm.ms
JavaScript
37
star
16

XiamiMusicAPI

虾米音乐 API,PHP 版
PHP
29
star
17

pipe-demo

从零开始写一个代理
JavaScript
24
star
18

ipdb-API

🎒 Open Source REST API for IP database, includes qqwry/ipipdotnet
JavaScript
24
star
19

hlsjs-upimg-wrapper

The upimg decoder module for hls.js
JavaScript
19
star
20

docker-nginx

🐳 Docker Image packaging for nginx
Dockerfile
19
star
21

ipdb-packer

JavaScript
16
star
22

wsdog

An encrypted proxy service program through websocket
JavaScript
16
star
23

Meting-API

🐳 Meting API 的容器化(WIP)
JavaScript
14
star
24

OneTLS

🐳 OneTLS - A docker compose of TLS-Proxy
Shell
13
star
25

logo.svg

常见站点 Logo 的 svg 资源整理
12
star
26

Surge

Surge Rules
6
star
27

pipe

从零开始写一个代理(生产版)
JavaScript
5
star
28

dev-server

🐳 开发环境容器
Dockerfile
5
star
29

ghost-smms-store

Ghost sm.ms storage module.
JavaScript
4
star
30

Yoga-700

Lenovo Yoga 700 for macOS High Sierra & Sierra
Shell
4
star
31

docker-php

🐳 Docker Image packaging for PHP
Dockerfile
3
star
32

qhimg-cli

JavaScript
3
star
33

ipdb-cli

Query IP address in the terminal
JavaScript
3
star
34

Agreement

软件许可及服务协议
3
star
35

Playground

ACM-ICPC / LeetCode / algorithm
C++
2
star
36

docker-version

A simple Docker tagging and publishing tool
JavaScript
1
star
37

docker-frp

Dockerfile
1
star
38

koa-router-semver

🍌 Semver Version Router middleware for Koa.
JavaScript
1
star