【问题标题】:while pulling the albums of an artist in spotify, how to increase the default limit 20在Spotify中拉艺术家的专辑时,如何增加默认限制20
【发布时间】:2020-07-10 01:04:07
【问题描述】:

在使用 spotify api 在 spotify 中拉取艺术家的专辑时,如何增加默认限制 20 。我希望显示该艺术家的所有歌曲或至少前 1000 首歌曲。

【问题讨论】:

    标签: spotify


    【解决方案1】:

    使用Get an Artist's Albums 时,您一次最多可以获取 50 个项目,但即便如此,结果仍会作为分页对象返回,因此您可以继续请求艺术家的专辑并增加偏移 50 以获取下一组记录,直到获得所有记录为止,例如对于只有 20 个请求的艺术家的 1,000 个专辑。

    【讨论】:

      猜你喜欢
      • 2015-01-30
      • 1970-01-01
      • 2012-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-15
      • 1970-01-01
      • 2012-02-15
      相关资源
      最近更新 更多