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.