LibSaavn 1.0.0

dotnet add package LibSaavn --version 1.0.0
NuGet\Install-Package LibSaavn -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LibSaavn" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibSaavn --version 1.0.0
#r "nuget: LibSaavn, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LibSaavn as a Cake Addin
#addin nuget:?package=LibSaavn&version=1.0.0

// Install LibSaavn as a Cake Tool
#tool nuget:?package=LibSaavn&version=1.0.0

LibSaavn

Unofficial wrapper for Saavn Music Streaming platform, written entirely in C#.

Features:

Extract anything Top Trending songs or custom Query a song , recieve everything about the song with easy to use API.

Usage

Install lib from nuget or dotnet CLI

dotnet add package LibSaavn 

Create Saavn Client

using Saavn;
using static System.Console;

SaavnClient client = new();
  1. Search
var searchresult = await client.SearchAsync("Dua Lipa Songs");
foreach (var s in searchresult.Songs.Data)
{
    WriteLine($"Id: {s.Id}");
    WriteLine($"Title: {s.Title}");
    WriteLine($"Singers: {s.MoreInfo.Singers}");
    //get more info
}

  1. Fetch info about Song
var songDetails = await client.GetSongInfoAsync("-5JOWX7I"); //parameter is song id
//playable stream url
WriteLine(songDetails.DecryptedMediaUrl);
WriteLine(songDetails.HasLyrics);
WriteLine(songDetails.LyricsSnippet);
//and more
  1. Top Trending Songs
var top = await client.GetTopChartsAsync();
foreach (var s in top.List)
{
    WriteLine($"Id: {s.Id}");
    WriteLine($"Title: {s.Title}");
    ForegroundColor = ConsoleColor.Cyan;
    WriteLine($"URL: {s.MoreInfo.DecryptedMediaUrl}");
}
  1. Get Lyrics
var lyrics = await client.GetLyricsAsync("-5JOWX7I"); //parameter is song id
WriteLine(lyrics.Lyrics);
  1. Get Album Details
var album = await client.GetAlbumAsync("22765589");
WriteLine(album.Title);
  1. Get Playlist

WriteLine(searchresult.Playlists.Data[0].Id);
//155225861 get playlist id
var playlist = await client.GetPlayListAsync("155225861");
WriteLine(playlist.Listname);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 189 8/29/2021