Skip to content

This package offers a variety of blocks by Spotify that do not require any authentication.

Notifications You must be signed in to change notification settings

RapidSoftwareSolutions/Marketplace-SpotifyPublicAPI-Package

Repository files navigation

SpotifyPublicAPI Package

This package offers a variety of blocks by Spotify that do not require any authentication.

  • Domain: spotify.com
  • Credentials: accessToken

How to get credentials:

  1. Go to Spotify Console
  2. Log in and generate accessToken
  3. Use your accessToken.

SpotifyPublicAPI.searchAlbums

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
query String The search query's keywords (and optional field filters and operators).
market String An ISO 3166-1 alpha-2 country code or the string from_token.
limit String The maximum number of results to return. Default: 20. Minimum: 1. Maximum: 50.
offset String The index of the first result to return. Default: 0 (i.e., the first result). Maximum offset: 100.000. Use with limit to get the next page of search results.

Request example

{	
  "query": "...",
	"market": "...",
	"limit": "...",
	"offset": "..."
}

SpotifyPublicAPI.searchArtists

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
query String The search query's keywords (and optional field filters and operators).
market String An ISO 3166-1 alpha-2 country code or the string from_token.
limit String The maximum number of results to return. Default: 20. Minimum: 1. Maximum: 50.
offset String The index of the first result to return. Default: 0 (i.e., the first result). Maximum offset: 100.000. Use with limit to get the next page of search results.

Request example

{	
  "query": "...",
	"market": "...",
	"limit": "...",
	"offset": "..."
}

SpotifyPublicAPI.searchPlaylists

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
query String The search query's keywords (and optional field filters and operators).
market String An ISO 3166-1 alpha-2 country code or the string from_token.
limit String The maximum number of results to return. Default: 20. Minimum: 1. Maximum: 50.
offset String The index of the first result to return. Default: 0 (i.e., the first result). Maximum offset: 100.000. Use with limit to get the next page of search results.

Request example

{	
  "query": "...",
	"market": "...",
	"limit": "...",
	"offset": "..."
}

SpotifyPublicAPI.searchTracks

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
query String The search query's keywords (and optional field filters and operators).
market String An ISO 3166-1 alpha-2 country code or the string from_token.
limit String The maximum number of results to return. Default: 20. Minimum: 1. Maximum: 50.
offset String The index of the first result to return. Default: 0 (i.e., the first result). Maximum offset: 100.000. Use with limit to get the next page of search results.

Request example

{	
  "query": "...",
	"market": "...",
	"limit": "...",
	"offset": "..."
}

SpotifyPublicAPI.getAlbum

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the album.

Request example

{	
  "id": "..."
}

SpotifyPublicAPI.getAlbumTracks

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the track.

Request example

{	
  "id": "..."
}

SpotifyPublicAPI.getArtist

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the artist.

Request example

{	
  "id": "..."
}

SpotifyPublicAPI.getArtistAlbums

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the artist.
album_type List A comma-separated list of keywords that will be used to filter the response. If not supplied, all album types will be returned. Valid values are:album, single, appears_on, compilation.
market String An ISO 3166-1 alpha-2 country code. Supply this parameter to limit the response to one particular geographical market.
limit String The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50.
offset String The index of the first album to return. Default: 0 (i.e., the first album). Use with limit to get the next set of albums.

Request example

{	
  "id": "...",
	"album_type": "...",
	"market": "...",
	"limit": "...",
	"offset": "..."
}

SpotifyPublicAPI.getArtistTopTracks

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the artist.
country String The country: an ISO 3166-1 alpha-2 country code.

Request example

{	
  "id": "...",
	"country": "..."
}

SpotifyPublicAPI.getArtistRelatedArtists

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the artist.

Request example

{	
  "id": "..."
}

SpotifyPublicAPI.getTrack

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the track.

Request example

{	
  "id": "..."
}

SpotifyPublicAPI.getUserProfile

Field Type Description
accessToken credentials The accessToken obtained from Spotify.
id String The Spotify ID for the user profile.

Request example

{	
  "id": "..."
}

About

This package offers a variety of blocks by Spotify that do not require any authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •