Baidu Music API

Source: Internet
Author: User

今天分享的是的是百度音乐API 搜索歌曲API:http: //musicmini.baidu.com/app/search/searchList.php?qword={0}&ie=utf-8&page={1} {0}=需要搜索的歌曲或歌手 {1}=页码数(第一页就是0,第二页是1) 返回的是一个html网页,需要分析网页,得到歌曲ID,歌曲名,歌手,专辑等 属性 歌曲详细API:http: //ting.baidu.com/data/music/links?songIds={0} {0}=从上面的结果的中分析的歌曲的ID 返回结果 看下面
{"ErrorCode": 22000, "data": {"Xcode": "17173bd17415d2c22a7250ec29f7e010", "songList": [{"Queryid": "247911654", " SongID ": 247911654," Songname ":" \u590f\u6d1b\u7279\u70e6\u607c "," ArtistID ":" 5913 "," Artistname ":" \u91d1\u5fd7\ u6587 "," albumID ": 247911669," Albumname ":" \u590f\u6d1b\u7279\u70e6\u607c "," Songpicsmall ":" http:\/\/ Musicdata.baidu.com\/data2\/pic\/247910612\/247910612.jpg "," Songpicbig ":" http:\/\/musicdata.baidu.com\/data2\/ Pic\/247910608\/247910608.jpg "," Songpicradio ":" http:\/\/musicdata.baidu.com\/data2\/pic\/247910603\/247910603. JPG "," Lrclink ":" \/DATA2\/LRC\/248241445\/248241445.LRC "," Version ":" \u5f71\u89c6\u539f\u58f0 "," Copytype ": 0," Time ": 192," Linkcode ": 22000," Songlink ":" http:\/\/yinyueshiting.baidu.com\/data2\/music\/247912201\/ 247911654108000128.mp3?xcode=17173bd17415d2c221ec55f2ef944ac8 "," ShowLink ":" http:\/\/yinyueshiting.baidu.com\/ Data2\/music\/247912201\/247911654108000128.mp3?xcode=17173bd17415d2c221ec55f2ef944ac8 "," Format ":" MP3 "," rate " : +, "size": 3078749, "relatestatus": "0", "RESOURCEType ":" 0 "," source ":" Web "}]}}  
里面有歌曲图片,歌曲地址,歌词地址 歌曲地址里如果有http: //qukufile2.qianqian.com/data2/pic/和http://c.hiphotos.baidu.com/ting/pic/item/ 那就需要将http://c.hiphotos.baidu.com/ting/pic/item/给去掉 歌词地址:http: //qukufile2.qianqian.com+获取到的urlYou can use this interface to make a song like the Micro-song: Vdiange such a public number

We can add a micro-song: Vdiange

Test the Music interface effect.

Baidu Music API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.