Skip to content

An unofficial API for JioSaavn built with fastapi python package with automatic API docs

License

Notifications You must be signed in to change notification settings

naveennamani/JioSaavnAPI

Repository files navigation

JioSaavnAPI

GitHub stars GitHub forks GitHub watchers GitHub repo size GitHub issues GitHub pull requests GitHub last commit made-with-python Open Source Love svg1


An opensource (unofficial) API for jiosaavn website build with python and FastAPI

Feaures:

  • Search songs using any query
  • Get song details from the jiosaavn song url
  • Get all songs from the jiosaavn album/playlist url
  • Song details include many useful fields such as image_url, album_id, artists details, lyrics (only if supported), jiotune preview link etc.
{
  "id": "Grohf5-o",
  "title": "Something Just Like This",
  "perma_url": "https://www.jiosaavn.com/song/something-just-like-this/NxoEWRIFGlw",
  "image": "https://c.saavncdn.com/168/Something-Just-Like-This-English-2017-500x500.jpg",
  "language": "english",
  "play_count": 50077552,
  "music": "Andrew Taggart, Christopher Martin, Will Champion, Guy Berryman, Jonny Buckland",
  "album": "Something Just Like This",
  "album_id": "10290258",
  "album_url": "https://www.jiosaavn.com/album/something-just-like-this/TMJs0WfIbJI_",
  "label": "Disruptor Records/Columbia",
  "origin": "none",
  "is_320kbps": true,
  "media_url": "https://aac.saavncdn.com/168/c3ff67fbe7ab6cac1e90d8e3499c51d5_320.mp3",
  "duration": 247,
  "has_lyrics": false,
  "starred": false,
  "copyright_text": "(P) 2017 Disruptor Records/Columbia Records",
  "artistMap": {
    "primary_artists": [
      {
        "id": 615629,
        "name": "The Chainsmokers",
        "role": "primary_artists",
        "image": "https://c.saavncdn.com/artists/The_Chainsmokers_500x500.jpg",
        "type": "artist",
        "perma_url": ""
      },
      ...
    ],
    "featured_artists": [],
    "artists": [
      {
        "id": 698794,
        "name": "Andrew Taggart",
        "role": "music",
        "image": "",
        "type": "artist",
        "perma_url": ""
      },
      ...
    ]
  },
  "release_date": "2017-02-22",
  "year": 2017,
  "vlink": "https://jiotunepreview.jio.com/content/Converted/010910140558508.mp3"
}

Installation:

Clone this repository using

$ git clone https://github.com/naveennamani/JioSaavnAPI

Install all the requirements using

$ cd JioSaavnAPI
$ pip3 install -r requirements.txt

And run the app using

$ python3 app.py
or 
$ uvicorn app:app --reload

Navigate to http://127.0.0.1:5000/docs to see the interactive documentation made with OpenAPI and check out the API endpoints.

API endpoints available:

/search?query=<any query> : Pass any query as the query parameter and get the details for all the songs matching the query

Note: song/album/playlist links shared from the jiosaavn website/app can also be passed as the query

/song/{song_id} : Pass song_id obtained from /search results /album/{album_id} : Pass album_id obtained from /search results /playlist/{playlist_id} : Pass playlist_id obtained from /search results

Fork the repo and deploy on Heroku now!

Deploy


This project is heavily inspired by the JioSaavnAPI project by @cyberboysumanjay.

About

An unofficial API for JioSaavn built with fastapi python package with automatic API docs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages