spotifywebapipython.models.category
@export
class
Category:
Spotify Web API Category object.
Category(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.
Id: str
The Spotify category ID of the category.
Some ID's are read-able text, while most are a unique id format.
Example: toplists
Example: 0JQ5DAqbMKFDXXwE9BDJAr (e.g. unique id for Rock)
Icons: list[spotifywebapipython.models.imageobject.ImageObject]
The category icon in various sizes, widest first.
Type: str
A simulated Spotify type value for the category.
This is a helper property - no value with this name is returned from the Spotify Web API.