Skip to content
DocumentationAPI Reference

Get Available Genre Seeds

Deprecated
client.Recommendations.ListAvailableGenreSeeds(ctx) (*RecommendationListAvailableGenreSeedsResponse, error)
GET/recommendations/available-genre-seeds

Retrieve a list of available genres seed parameter values for recommendations.

ReturnsExpand Collapse
type RecommendationListAvailableGenreSeedsResponse struct{…}
Genres []string

Get Available Genre Seeds

package main

import (
  "context"
  "fmt"

  "github.com/cjavdev/spotted-go"
  "github.com/cjavdev/spotted-go/option"
)

func main() {
  client := spotted.NewClient(
    option.WithAccessToken("My Access Token"),
  )
  response, err := client.Recommendations.ListAvailableGenreSeeds(context.TODO())
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Genres)
}
{
  "genres": [
    "alternative",
    "samba"
  ]
}
Returns Examples
{
  "genres": [
    "alternative",
    "samba"
  ]
}