Cross Platform .NET Spotify API Library
Install Package on Nuget
Install-Package Spotify.API.NetCore
or
dotnet add package Spotify.API.NetCore
Get Spotify catalog information about an album's tracks. Optional parameters can be used to limit the number of tracks returned.
Paramters
Name | Description | Example |
---|---|---|
id | The Spotify ID for the album. | "5O7V8l4SeXTymVp3IesT9C" |
[limit] | The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50. | 20 |
[offset] | The index of the first track to return. Default: 0 (the first object). | 0 |
[market] | An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking. | "TR" |
Returns a SimpleTrack wrapped inside a Paging-object
Usage
var tracks = _spotify.GetAlbumTracks("album-id");
tracks.Items.ForEach(item => Console.WriteLine(item.Name));
Get Spotify catalog information for a single album.
Paramters
Name | Description | Example |
---|---|---|
id | The Spotify ID for the album. | 5O7V8l4SeXTymVp3IesT9C |
[market] | An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking. | "TR" |
Returns a FullAlbum
Usage
var album = _spotify.GetAlbum("album-id");
Console.WriteLine(album.Name + "| Popularity: " + album.Popularity);
Coming soon...
- If you want to contribute to codes, create pull request
- If you find any bugs or error, create an issue
This project forked from Spotify-API-NET and changed architecture and made Cross Platform. And also previous project just helped for API Map
This project is licensed under the MIT License