Spotipyのソースを見ると、コメントでどれかを渡してね!って書いてあった
def search(self, q, limit=10, offset=0, type='track', market=None):
""" searches for an item
Parameters:
- q - the search query
- limit - the number of items to return
- offset - the index of the first item to return
- type - the type of item to return. One of 'artist', 'album',
'track' or 'playlist'
- market - An ISO 3166-1 alpha-2 country code or the string from_token.
"""
return self._get('search', q=q, limit=limit, offset=offset, type=type, market=market)これでいいのかなと思ってしまう。でも、ライブラリを使うっていうことはたぶんAPIリファレンスを見てるはずだから、渡してきた値がおかしかったらエラーになるからわかるか...
構造体みたいなのしらべてみよう