Skip to content
DocumentationAPI Reference

Get Available Genre Seeds

Deprecated
RecommendationListAvailableGenreSeedsResponse recommendations().listAvailableGenreSeeds(RecommendationListAvailableGenreSeedsParamsparams = RecommendationListAvailableGenreSeedsParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/recommendations/available-genre-seeds

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

ParametersExpand Collapse
RecommendationListAvailableGenreSeedsParams params
ReturnsExpand Collapse
class RecommendationListAvailableGenreSeedsResponse:
List<String> genres

Get Available Genre Seeds

package dev.cjav.spotted.example;

import dev.cjav.spotted.client.SpottedClient;
import dev.cjav.spotted.client.okhttp.SpottedOkHttpClient;
import dev.cjav.spotted.models.recommendations.RecommendationListAvailableGenreSeedsParams;
import dev.cjav.spotted.models.recommendations.RecommendationListAvailableGenreSeedsResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        SpottedClient client = SpottedOkHttpClient.fromEnv();

        RecommendationListAvailableGenreSeedsResponse response = client.recommendations().listAvailableGenreSeeds();
    }
}
{
  "genres": [
    "alternative",
    "samba"
  ]
}
Returns Examples
{
  "genres": [
    "alternative",
    "samba"
  ]
}