Sptfy.Browse (Sptfy v0.1.3) View Source

https://developer.spotify.com/documentation/web-api/reference-beta/#category-browse

Link to this section Summary

Functions

GET /v1/browse/categories

GET /v1/browse/categories/:id

GET /v1/browse/categories/:id/playlists

GET /v1/browse/featured-playlists

GET /v1/recommendations/available-genre-seeds

GET /v1/browse/new-releases

Link to this section Functions

Link to this function

get_categories(token, params \\ %{})

View Source

Specs

get_categories(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Paging.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/browse/categories

Parameters

  • country
  • locale
  • timestamp
  • limit
  • offset
Link to this function

get_category(token, params \\ %{})

View Source

Specs

get_category(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Category.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/browse/categories/:id

Parameters

  • id: required
  • country
  • locale
Link to this function

get_category_playlists(token, params \\ %{})

View Source

Specs

get_category_playlists(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Paging.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/browse/categories/:id/playlists

Parameters

  • id: required
  • country
  • limit
  • offset
Link to this function

get_genres(token, params \\ %{})

View Source

Specs

get_genres(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, [String.t()]}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/recommendations/available-genre-seeds

Link to this function

get_new_releases(token, params \\ %{})

View Source

Specs

get_new_releases(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Paging.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/browse/new-releases

Parameters

  • country
  • limit
  • offset
Link to this function

get_recommendations(token, params \\ %{})

View Source

Specs

get_recommendations(token :: String.t(), params :: map() | Keyword.t()) ::
  {:ok, Sptfy.Object.Recommendation.t()}
  | {:error, Sptfy.Object.Error.t()}
  | {:error, Mint.Types.error()}

GET /v1/recommendations

Parameters

  • limit
  • market
  • seed_artists
  • seed_genres
  • seed_tracks
  • min_acousticness
  • max_acousticness
  • target_acousticness
  • min_danceability
  • max_danceability
  • target_danceability
  • min_duration_ms
  • max_duration_ms
  • target_duration_ms
  • min_energy
  • max_energy
  • target_energy
  • min_instrumentalness
  • max_instrumentalness
  • target_instrumentalness
  • min_key
  • max_key
  • target_key
  • min_liveness
  • max_liveness
  • target_liveness
  • min_loudness
  • max_loudness
  • target_loudness
  • min_mode
  • max_mode
  • target_mode
  • min_popularity
  • max_popularity
  • target_popularity
  • min_speechiness
  • max_speechiness
  • target_speechiness
  • min_tempo
  • max_tempo
  • target_tempo
  • min_time_signature
  • max_time_signature
  • target_time_signature
  • min_valence
  • max_valence
  • target_valence