Giter VIP home page Giter VIP logo

gaanaapi's Introduction

Gaana API [Unofficial]

Show some ❤️ and ⭐ the repo to support the project

GitHub stars GitHub followers made-with-python Open Source Love svg1 Telegram Channel

Gaana API written in Python using Flask


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.

Features:

Currently the API can get the following details for a specific song in JSON format:
  • 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"
}

Installation:

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

Usage:

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.

You can fork the repo and deploy on VPS or deploy it on Heroku :)

Deploy Note: Heroku gives US/Europe servers which won't be able to fetch all songs flawlessly. Use any Indian VPS for fetching accurate results.

Made using this API ❤️

@songdl_bot - Song Downloader Bot on Telegram

Star the Repo in case you liked it :)

Made with ❤️ in India

gaanaapi's People

Contributors

cyberboysumanjay avatar yadavgulshan avatar sbsstudio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.