Discuss Scratch

-effortIess-
Scratcher
100+ posts

Do I have to wait ten seconds between every get request, or just between put requests?

In the title

Last edited by -effortIess- (Aug. 30, 2024 23:00:43)



Support the suggestion HERE by adding this button to your signature

BAN PI DAY!!! (joke)

100th post
IndexErrorException
Scratcher
500+ posts

Do I have to wait ten seconds between every get request, or just between put requests?

1 every 10 seconds is ridiculous. Scratch is quite tolerant to a wide range of requests. Certain APIs could be requested at a different rate. Getting project data could probably done once a second or even faster, but things like project uploads I wouldn't go that fast on.
-effortIess-
Scratcher
100+ posts

Do I have to wait ten seconds between every get request, or just between put requests?

IndexErrorException wrote:

1 every 10 seconds is ridiculous. Scratch is quite tolerant to a wide range of requests. Certain APIs could be requested at a different rate. Getting project data could probably done once a second or even faster, but things like project uploads I wouldn't go that fast on.
Ok thanks.


Support the suggestion HERE by adding this button to your signature

BAN PI DAY!!! (joke)

100th post
Maximouse
Scratcher
1000+ posts

Do I have to wait ten seconds between every get request, or just between put requests?

The rate limit is 10 requests per second according to this page, so the correct time to wait between requests is 0.1 seconds.


This is Maximouse's signature. Learn more about signatures.
-effortIess-
Scratcher
100+ posts

Do I have to wait ten seconds between every get request, or just between put requests?

Maximouse wrote:

The rate limit is 10 requests per second according to this page, so the correct time to wait between requests is 0.1 seconds.
OH lol ok yeah I remembered the wrong numbers. Thanks


Support the suggestion HERE by adding this button to your signature

BAN PI DAY!!! (joke)

100th post

Powered by DjangoBB