NOTE: You need to have Gaana link of the song in order to fetch the song details, search feature may be implemented in future if requested.
- Album Name
- Artist Name
- Bitrate Fetched
- Duration of song
- Song Language
- Playable m3u8 Link
- Release Date
- Album Art Link (Max Resolution)
- Song Title
- Lyrics
{
"album":"Alone",
"artist":"Alan Walker",
"bitrate":"96",
"duration":"2min 39sec",
"gaana_url":"https://gaana.com/song/alone-1435",
"language":"English",
"link":"https://vodhls-vh.akamaihd.net/i/songs/54/1854954/21232014/21232014_96.mp4/master.m3u8?set-akamai-hls-revision=5&hdnts=st=1562082331~exp=1562100331~acl=/i/songs/54/1854954/21232014/21232014_96.mp4/*~hmac=1dac0568ef4d53a5aadc314fba45f5b587dc1e098cd7dddb76fe1f1d2b4a24a1",
"released":"Dec 02, 2016",
"thumb":"https://a10.gaanacdn.com/images/albums/54/1854954/crop_640x640_1854954.jpg",
"title":"Alone"
}
Clone this repository using
$ git clone https://github.com/cyberboysumanjay/GaanaAPI
Enter the directory and install all the requirements using
$ pip3 install -r requirements.txt
Run the app using
$ python3 app.py
Navigate to 127.0.0.1:5000 to see the Homepage
Lyrics fetching is optional and is triggered only when &lyrics=true
is added with the url
http://127.0.0.1:5000/result/?url=<insert-gaana-link-here>&lyrics=true
Example: Navigate to http://127.0.0.1:5000/result/?url=https://gaana.com/song/alone-1435&lyrics=true to get a json response of song data in return.
Note: Heroku gives US/Europe servers which won't be able to fetch all songs flawlessly. Use any Indian VPS for fetching accurate results.