soundcloud / api

A public repo for our Developer Community to engage about bugs and feature requests on our Public API
147 stars 23 forks source link

[Question] Rate limit clarification #182

Closed swamp-agr closed 2 years ago

swamp-agr commented 2 years ago

[Question] Rate limit clarification

Question found of: February 10th, 2022

Endpoint(s):

Scope(s):

Questions:

History

rahul-sc commented 2 years ago

Heya. There are 3 rate-limits in effect at the moment on the API.

  1. Rate-Limit for generating tokens using client_credentials grant
  2. Rate-Limit when using search endpoints i.e., /tracks /users /playlists
  3. Rate-Limit when using playback i.e., /streams or /stream

Related Resources https://developers.soundcloud.com/docs/api/rate-limits#global-limit https://github.com/soundcloud/api/releases/tag/2021-09-07 https://developers.soundcloud.com/docs/api/explorer/open-api#/search

swamp-agr commented 2 years ago

Hi @rahul-sc,

Thank you for information!

I read the content of these three links you provided. Right now it's clear that:

  1. there're three different limits.
  2. /oauth/token request is limited to 50 requests per 12h window.
  3. /streams or /stream are limited with 15K requests per 24h window.

And it's not clear what is the rate limit for /tracks, /users and /playlists requests.

Is it also 15K or something else?

rahul-sc commented 2 years ago

Ah! You're right. This is not documented!

For searching we limit it to 30K per 1h

swamp-agr commented 2 years ago

Thanks for providing that information. 👍 I am closing the issue since all questions have been solved. Thank you and a have nice rest of the day! 😃