首頁 >後端開發 >php教程 >百度mp3介面 lrc介面(baidu mp3 api)

百度mp3介面 lrc介面(baidu mp3 api)

WBOY
WBOY原創
2016-07-25 08:49:551708瀏覽
搜尋百度mp3取得mp3及歌詞lrc下載地址
  1. http://mp3.baidu.com/dev/api/?tn=getinfo&ct=0&ie=utf-8&word=&format=
  2. 參數:
  3. word: "歌曲名稱", //歌曲名稱encodeURI
  4. format: "json", //傳回資料格式,xml | json,預設xml
  5. callback: "Pub.music.searchResult", //固定值,回傳jsonp格式
  6. 如xml格式:
  7. http://mp3.baidu.com/dev/api/?tn=getinfo&ct=0&word=流浪記&ie=utf-8&format=xml
  8. 回傳:
  9. ![CDATA[http://qukufile2.qianqian.com/data2/pic/36218344/36218344.jpg]]>
複製程式碼
    json格式:http://mp3.baidu.com/dev/api/?tn=getinfo&ct=0&word=流浪記&ie=utf-8&format=json
  1. 回傳:
  2. {
  3. "song": "u6d41u6d6au8bb0",
  4. "song_id": "38233821",
  5. "singer": "u6768u5b97768u "u6211u662fu6b4cu624b u7b2cu5341u4e00u671f",
  6. "singerPicSmall": "http://qukufile2.qianqian.com/data2/pic/36218344/362183qianqian.com/data2/pic/36218344/362183qianqian." qian. com/data2/pic/36218335/36218335.jpg",
  7. "albumPicLarge": "",
  8. "albumPicSmall": ""
  9. }
http://ting.baidu.com/data/music/links?songIds=
GET 方式取得:
參數:
  1. GET 方式取得:
  2. 參數:
  3. GET 方式取得:
  4. 參數:
  5. songIds: "38233821" //歌曲id,從第1個列表中得到的歌曲id
  6. callback: "callback" //不為空時,返回jsonp格式資料
  7. 如:http://ting.baidu.com/data/music/links?songIds=38233821
  8. 回傳:
  9. {
  10. "errorCode": 22000,
  11. {
  12. "errorCode": 22000,
  13. {
  14. "errorCode": 22000,
  15. {
  16. "errorCode": 22000,"xcode": "808f67065a7ea25b17e77954bed13215",
  17. "songList": [{
  18. "queryId": "38233821","artistId": "8477",
  19. "artistName": "u6768u5b97u7eac",
  20. "albumId": 38233662,0bum b2cu5341u4e00u671f",
  21. "songPicSmall": "http://c.hiphotos.baidu.com/ting/pic/item/29381f30e924b899d068ee4b6f061d950a7Big669.jpg",
  22. "songPmmo.com ting/pic/item/2f738bd4b31c8701d1e22595267f9e2f0708ff69.jpg",
  23. "songPicRadio": "http://c.hiphotos.baidu.com/ting/pic/item/b e669.jpg",
  24. "lrcLink": " /data2/lrc/38238568/38238568.lrc",
  25. "version": "u73b0u573a",
  26. "copyType": 1,
  27. "time": 309,"
  28. "songLink": "http://zhangmenshiting.baidu.com/data2/music/38542270/382338211365422461.mp3",
  29. "showLink": "http://zhangmenshiting.bmus. /38542270/382338211365422461.mp3?xcode=808f67065a7ea25b17e77954bed13215",
  30. "format": "mp3",<141>


陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn