搜尋百度mp3取得mp3及歌詞lrc下載地址
-
- http://mp3.baidu.com/dev/api/?tn=getinfo&ct=0&ie=utf-8&word=&format=
- 參數:
- word: "歌曲名稱", //歌曲名稱encodeURI
-
- format: "json", //傳回資料格式,xml | json,預設xml
-
- callback: "Pub.music.searchResult", //固定值,回傳jsonp格式
-
- 如xml格式:
- http://mp3.baidu.com/dev/api/?tn=getinfo&ct=0&word=流浪記&ie=utf-8&format=xml
-
- 回傳:
- ![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-
- 回傳:
-
- {
- "song": "u6d41u6d6au8bb0",
- "song_id": "38233821",
- "singer": "u6768u5b97768u "u6211u662fu6b4cu624b u7b2cu5341u4e00u671f",
- "singerPicSmall": "http://qukufile2.qianqian.com/data2/pic/36218344/362183qianqian.com/data2/pic/36218344/362183qianqian." qian. com/data2/pic/36218335/36218335.jpg",
- "albumPicLarge": "",
- "albumPicSmall": ""
- }
-
-
-
http://ting.baidu.com/data/music/links?songIds=GET 方式取得: 參數:
- GET 方式取得:
- 參數:
-
- GET 方式取得:
- 參數:
-
- songIds: "38233821" //歌曲id,從第1個列表中得到的歌曲id
-
- callback: "callback" //不為空時,返回jsonp格式資料
-
-
- 如:http://ting.baidu.com/data/music/links?songIds=38233821
-
- 回傳:
-
- {
- "errorCode": 22000,
- {
- "errorCode": 22000,
- {
- "errorCode": 22000,
- {
- "errorCode": 22000,"xcode": "808f67065a7ea25b17e77954bed13215",
- "songList": [{
- "queryId": "38233821","artistId": "8477",
- "artistName": "u6768u5b97u7eac",
- "albumId": 38233662,0bum b2cu5341u4e00u671f",
- "songPicSmall": "http://c.hiphotos.baidu.com/ting/pic/item/29381f30e924b899d068ee4b6f061d950a7Big669.jpg",
- "songPmmo.com ting/pic/item/2f738bd4b31c8701d1e22595267f9e2f0708ff69.jpg",
- "songPicRadio": "http://c.hiphotos.baidu.com/ting/pic/item/b e669.jpg",
- "lrcLink": " /data2/lrc/38238568/38238568.lrc",
- "version": "u73b0u573a",
- "copyType": 1,
- "time": 309,"
- "songLink": "http://zhangmenshiting.baidu.com/data2/music/38542270/382338211365422461.mp3",
- "showLink": "http://zhangmenshiting.bmus. /38542270/382338211365422461.mp3?xcode=808f67065a7ea25b17e77954bed13215",
- "format": "mp3",<141>
-
-
-
- 141>
|