我怎么知道我剩余的 Soundcloud API 限制?

How can i know my remaining Soundcloud API Limit?

我在我的应用程序中使用 Sound-Cloud API 创建了一些 API。昨天运行良好,但现在显示

error: string(47) "The requested URL responded with HTTP code 429.

我查看了 Sound-Cloud 文档并找到了与 Too many request 相关的 HTTP 代码 429。

这里我关心的是我如何知道我的所有请求和 remaning 请求的数量。

自 7 月 1 日起,所有导致访问可播放流的请求都受到每 24 小时 15,000 个请求的限制 window。 Ref

注意

无法统计,还有多少请求剩余或已使用。

解决方案

  1. 你要检查一下,你在一个页面上有多少API请求?尽可能减少它们。

  2. 您可以创建多个API KEYS并随机使用。

  3. 您可以缓存您的查询。