Apologies for the inconvenience here. We had made some adjustments to the rate limits which should be fixed now. Feel free to reply in this thread if you are still experiencing this.
Sorry about that. Are you able to try using the .download_files() method?
If you continue to see the error, try to add some time time between your API hits to avoid reaching the limit. Here is the underlying library GitHub to try it with GitHub - amplifydata/amplifydata-public. All of your same credentials will work.
Thanks, @jake. I am using the deweydatar package in R. My solution is to build in 15 min pause every time I get the 429 error. I added %>% req_retry(max_tries=10, backoff=~1000) to line 461 here:
I would like to know the download rate limits, so that I can be respectful of Amplify rules/policies.
Thank you @jake. Is this assessed over some time window (e.g., average over an hour)? Through trial and error, I had been pausing for 5 seconds and would sometimes still get a 429. Does the get_file_list() query count toward this rate limit?
@nolan I am using the Python version and I get the 429 error very often, even if I put time.sleep(10) before each API call. This never happened to me before with exactly the same code. Could you look into it and put the limits similar to what we had before? It already took a long time to download the data before getting this error, but now this error is making it impossible to download several years of data…
Hey @jake, can you tell us again what are the current rate limits? Because I have code that works correctly for several hours and then all of a sudden starts giving me the 429 error. Then if I wait a bit (some hours) it works again. This seems to indicate that there is some other limit besides the rate limit per second.
@jake, I’d echo what @jbayham and @ariadnaaz13 are saying here. Even when I include Sys.sleep breaks in the API calls to avoid making more than 2 API calls per second, I still end up rate limited.
@max_kagan The rate limit seems a bit unpredictable at times. I think it is easiest to just build in a catch, so when you get the 429, wait for some time (I did 15 min). See my code above for an example in R.
The issue causing the frequent rate limit error as been resolved! Please try your download again if you were experiencing interruptions.
Thank you all for you patience and communication on this!
If you are still experiencing some expected rate limit errors, you can try implementing this helper function, similar to what @jbayham proposed: Python Code Examples