Skip to content
DocumentationAPI Reference

Get Available Markets

markets.list() -> MarketListResponse
GET/markets

Get the list of markets where Spotify is available.

ReturnsExpand Collapse
class MarketListResponse:
markets: Optional[List[str]]

Get Available Markets

import os
from spotted import Spotted

client = Spotted(
    access_token=os.environ.get("SPOTIFY_ACCESS_TOKEN"),  # This is the default and can be omitted
)
markets = client.markets.list()
print(markets.markets)
{
  "markets": [
    "CA",
    "BR",
    "IT"
  ]
}
Returns Examples
{
  "markets": [
    "CA",
    "BR",
    "IT"
  ]
}