本PHP代码可解析网易云音乐vip歌曲url,需要cookie版本 支持解析输出320mp3音乐文件、无损FLAC文件!(站长亲测2年多稳定)
PHP代码:
使用方法:
1.下载源码或复制代码新建文件上传到服务器
2.访问“http(s)//你的域名/wyurl.php”
3.调用:“http(s)//你的域名/wyurl.php?rid=网易云音乐链接ID”
4.参数说明:
level=播放音质等级 (standard => 标准,higher => 较高, exhigh=>极高, lossless=>无损, hires=>Hi-Res, jyeffect => 高清环绕声, sky => 沉浸环绕声, jymaster => 超清母带)
type=输出格式(text、json、url)
如:http://bolgg.ilingku.com/wyurl.php?id=5234479&level=jymaster&type=json
json返回结果:
{
"url": {
"m4a": {
"name": "普通播放",
"charge": "免费歌曲",
"type": "m4a",
"url": "http://m7.music.126.net/20240519122736/14ce0576ad7ef7440e4f342a775a3964/yyaac/obj/wonDkMOGw6XDiTHCmMOi/3179123422/68f7/36a5/3597/7f83ee293dae3b7bc127786f41f40843.m4a"
},
"mp3": {
"name": "标准音质",
"charge": "免费歌曲",
"type": "mp3",
"url": "http://m7.music.126.net/20240519122737/7dc3cf18d24f4ec3c8175a0d0d28ec22/ymusic/obj/w5zDlMODwrDDiGjCn8Ky/3179122585/a5f6/40f1/51af/c3812759e0c7853dfa0b38dd72cc5d39.mp3"
},
"higher": {
"name": "较高音质",
"charge": "免费歌曲",
"type": "mp3",
"url": "http://m7.music.126.net/20240519122737/65adf5b2d594f2941cffa1f68ecba79b/ymusic/obj/w5zDlMODwrDDiGjCn8Ky/3179120618/f28e/268d/2a2e/ad588f7e85aa5648f72b289e51d8f785.mp3"
},
"exhigh": {
"name": "极高音质",
"charge": "免费歌曲",
"type": "mp3",
"url": "http://m8.music.126.net/20240519122737/37ec6e64f65a1ea9021216a7881711c7/ymusic/obj/w5zDlMODwrDDiGjCn8Ky/3179118634/7c80/24bd/3a4e/2fd0070df8ef5ff51f17685293082f7b.mp3"
},
"lossless": {
"name": "无损音质",
"charge": "免费歌曲",
"type": "flac",
"url": "http://m7.music.126.net/20240519122737/fff8bed84276e29478092a94598fde90/ymusic/obj/w5zDlMODwrDDiGjCn8Ky/3179116894/f950/dd2c/9608/c6766dbd45b5a708b159d7b593e17354.flac"
},
"hires": {
"name": "Hi-Res音质",
"charge": "免费歌曲",
"type": "flac",
"url": "http://m8.music.126.net/20240519122737/fff8bed84276e29478092a94598fde90/ymusic/obj/w5zDlMODwrDDiGjCn8Ky/3179116894/f950/dd2c/9608/c6766dbd45b5a708b159d7b593e17354.flac"
},
"jyeffect": {
"name": "高清环绕声",
"charge": "免费歌曲",
"type": "flac",
"url": "http://m801.music.126.net/20240519122738/029d6dca955e179e2a104710edcab5b0/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/26272773209/1a01/9ee1/822a/738380042b06a5ef61bd278df757e3c5.flac"
},
"sky": {
"name": "沉浸环绕声",
"charge": "免费歌曲",
"type": "flac",
"url": "http://m801.music.126.net/20240519122738/029d6dca955e179e2a104710edcab5b0/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/26272773209/1a01/9ee1/822a/738380042b06a5ef61bd278df757e3c5.flac"
},
"jymaster": {
"name": "臻品母带2.0",
"charge": "免费歌曲",
"type": "flac",
"url": "http://m801.music.126.net/20240519122738/39e8b198230f0e55a5f3eec4f04c0875/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/26272782141/00fe/7410/1e52/79cc35b816cb16648e219add9247b095.flac"
}
}
}
部分代码:
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)