Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API quota values #328

Open
sigma67 opened this issue Dec 12, 2022 · 5 comments
Open

API quota values #328

sigma67 opened this issue Dec 12, 2022 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@sigma67
Copy link
Owner

sigma67 commented Dec 12, 2022

Recently I've started running into a new error "quota exceeded" when running the tests. The quota limits seem to be hourly as they reset at the full hour.

I think it might be helpful to document the quota unit and limit values, if somebody can find documentation on it or wants to reverse-engineer the values.

@sigma67 sigma67 added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Dec 12, 2022
@sigma67
Copy link
Owner Author

sigma67 commented Apr 13, 2023

To reverse engineer, I would recommend the following procedure:

  • set up oauth authentication
  • repeatedly call the same endpoint until the quota is exhausted while counting calls (i.e. until an error is returned by the API)
  • wait until the full hour to receive quota
  • keep going until quota is exhausted for the day (if at all)

Repeat the procedure with all available endpoints. We're mostly interested in manipulation (creation, edit, delete operations), as read operations aren't usually expensive on the server. Although it could still be interesting to determine if there is a quota for search, for example. In my personal experience the quota for search is probably quite high, as you can do at least several hundreds of searches without issue.

@jahenner
Copy link

I am choosing this project for the open source course I'm taking for school. I'd love to help with this issue.

@sigma67
Copy link
Owner Author

sigma67 commented Apr 18, 2023

Sure, I think this is quite a good issue for new contributors. You can get started by writing a small script and testing some playlist manipulation functions with your account to see if you run into any limits.

@sigma67 sigma67 linked a pull request Jul 20, 2023 that will close this issue
@ranile
Copy link

ranile commented Mar 2, 2024

@jahenner did you find anything?

I'm intending to use this project to make 2700 requests (search and then rate song for 1340 songs to transfer my spotify library). I'm not sure how well that will play with the ratelimits to I want to confirm it before trying

@sigma67
Copy link
Owner Author

sigma67 commented Mar 2, 2024

@hamza1311 see linked PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants