该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
返回结果要使用$data=json_decode($json,true);转换为php array变量
搜索歌曲:
http://mobilecdn.kugou.com/api/v3/search/song?format=json&keyword=想象之中&page=1&pagesize=30
返回实例:
Array
(
[status] => 1
[error] =>
[data] => Array
(
[timestamp] => 1446269049
[correctiontype] => 0
[info] => Array
(
[0] => Array
(
[filename] => 许嵩 - 想象之中
[extname] => mp3
[m4afilesize] => 1033024
[320hash] => 7605626f6c1334e8a38e34037e730ce5
[mvhash] => 2f905cd04e81bced18718a0712e220e5
[privilege] => 0
[filesize] => 3942737
[source] =>
[group] => Array
(
[0] => Array
(
[filename] => 许嵩 - 想象之中
[extname] => mp3
[m4afilesize] => 1033024
[320hash] => 7605626f6c1334e8a38e34037e730ce5
[mvhash] => 2f905cd04e81bced18718a0712e220e5
[privilege] => 0
[filesize] => 3942737
[source] =>
[bitrate] => 128
[ownercount] => 27155
[topic] =>
[320filesize] => 9827310
[isnew] => 0
[duration] => 246
[album_name] => 2011 动感101年度金曲
[singername] => 许嵩
[sqhash] => b23b84f357d32ca7f8de0927c1feda01
[320privilege] => 0
[sourceid] => 0
[hash] => 1d91a1a912458caa2c80ee4456c509de
[sqfilesize] => 24994744
[srctype] => 1
[Accompany] => 1
[sqprivilege] => 0
[album_id] => 511578
[feetype] => 0
)
)
[ownercount] => 27155
[topic] =>
[320filesize] => 9827310
[isnew] => 0
[duration] => 246
[album_name] => 苏格拉没有底
[sqhash] => b23b84f357d32ca7f8de0927c1feda01
[singername] => 许嵩
[album_id] => 500646
[320privilege] => 0
[sourceid] => 0
[sqfilesize] => 24994744
[srctype] => 1
[Accompany] => 1
[hash] => 1d91a1a912458caa2c80ee4456c509de
[sqprivilege] => 0
[bitrate] => 128
[feetype] => 0
)
[1] => Array
(
[filename] => 许嵩 - 想象之中 - Ktv版伴奏
[extname] => mp3
[m4afilesize] => 1027128
[320hash] => d336e44e4e682046e7528ac89b28dfdb
[mvhash] => 2f905cd04e81bced18718a0712e220e5
[privilege] => 0
[filesize] => 3910008
[source] =>
[group] => Array
(
)
[ownercount] => 360
[topic] =>
[320filesize] => 9865800
[isnew] => 0
[duration] => 244
[album_name] =>
[sqhash] =>
[singername] => 许嵩
[album_id] =>
[320privilege] => 0
[sourceid] => 0
[sqfilesize] => 0
[srctype] => 1
[Accompany] => 1
[hash] => bd2b556f7fad8f446fba6574a56f8b71
[sqprivilege] => 0
[bitrate] => 128
[feetype] => 0
)
[2] => Array
(
[filename] => 许崇 - 想象之中
[extname] => mp3
[m4afilesize] => 1018533
[320hash] =>
[mvhash] =>
[privilege] => 0
[filesize] => 987742
[source] => sc
[group] => Array
(
)
[ownercount] => 205
[topic] =>
[320filesize] => 0
[isnew] => 0
[duration] => 246
[album_name] =>
[sqhash] =>
[singername] => 许崇
[album_id] =>
[320privilege] => 0
[sourceid] => 1
[sqfilesize] => 0
[srctype] => 1
[Accompany] => 0
[hash] => b1a982b0209df1c6a81571e73c73c03b
[sqprivilege] => 0
[bitrate] => 32
[feetype] => 0
)