MarketsAPI

class minim.api.spotify.MarketsAPI(client: APIClient, /)[source]

Bases: SpotifyResourceAPI

Markets API endpoints for the Spotify Web API.

Important

This class is managed by SpotifyWebAPIClient and should not be instantiated directly.

Parameters:
clientminim.api._shared.APIClient

API client instance used to make HTTP requests.

Methods

available_markets

Markets where Spotify is available.

get_markets

Markets > Get Available Markets: Get markets where Spotify is available.

available_markets() set[str][source]

Markets where Spotify is available.

Note

Accessing this property may call get_markets() and make a request to the Spotify Web API.

get_markets() dict[str, list[str]][source]

Markets > Get Available Markets: Get markets where Spotify is available.

Returns:
marketsdict[str, list[str]]

Available markets.

Sample response: {"markets": ["BR", "CA", "IT"]}.