spotifywebapipython.models.recommendationseed

@export
class RecommendationSeed:

Spotify Web API Content RecommendationSeed object.

Contains information about recommended tracks.

RecommendationSeed(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
AfterFilteringSize: int

The number of tracks available after min_* and max_* filters have been applied.

AfterRelinkingSize: int

The number of tracks available after relinking for regional availability.

Href: str

A link to the full track or artist data for this seed.

For tracks this will be a link to a Track Object.
For artists a link to an Artist Object.
For genre seeds, this value will be null.

Id: str

The id used to select this seed.

This will be the same as the string used in the seedArtists, seedTracks or seedGenres parameter.

InitialPoolSize: int

The number of recommended tracks available for this seed.

Type: str

The entity type of this seed.

One of artist, track or genre.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.