Baidu Music API-PHP source code

Source: Internet
Author: User
Baidu Music API

1. [Code]Song Search API
Song Search API: https://www.php1.cn/ {0} & ie = UTF-8 & page = {1} {0} = songs or singers to be searched {1} = page number (the first page is 0, and the second page is 1) an html webpage is returned. you need to analyze the webpage to obtain the detailed API of the song ID, song name, artist, album, and other attribute songs: https://www.php1.cn/ {0} {0} = view the {"errorCode": 22000, "data": {"xcode ": "17173bd17da-d2c22a7250ec29f7e010", "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 \/247910912.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 \/241_1445.lrc"," version ": "\ u5f71 \ u89c6 \ u539f \ u58f0", "copyType": 0, "time": 192, "linkCode": 22000, "songLink": "http: \ // yinyueshiting.baidu.com \/data2 \/music \/247912201 \/2479109540000000128.mp3? Xcode = 17173bd17da-d2c221ec55f2ef944ac8 "," showLink ":" http: \/\/yinyueshiting.baidu.com \/data2 \/music \/247912201 \/2479426540000000128.mp3? Xcode = 17173bd17da-d2c221ec55f2ef944ac8 "," format ":" mp3 "," rate ": 128," size ": 3078749," relateStatus ":" 0 "," resourceType ": "0", "source": "web"}]} contains a song image, Song address, and lyrics address. https://www.php1.cn/ And https://www.php1.cn/ Then you need https://www.php1.cn/ Remove the lyrics: https://www.php1.cn/ + Obtained url

2. [Image]Qrcode_for_gh_6b7d4c098efc_258.jpg

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.