0
我知道如何從Spotify API查詢XX。正如下面的腳本中,我們只需設置keywords = XX
從Spotify API獲取隨機歌曲
url = 'https://api.spotify.com/v1/search?q='+ keywords +'&type=' + search_type +'&offset='+ off +'&limit=' + lim
j = requests.get(url).json()
但我想知道,如果我想查詢隨機歌曲,我該怎麼辦?只需查詢whitespace?或爲歌曲ID生成隨機數字?
謝謝!