outbreak-info / R-outbreak-info

R package to access the genomics and epidemiology data and Research Library metadata compiled and standardized on outbreak.info.
https://outbreak-info.github.io/R-outbreak-info/
MIT License
19 stars 10 forks source link

You have exceeded the API usage limit. Please limit the usage to 1 request/minute. #101

Closed AJFeng closed 1 year ago

AJFeng commented 1 year ago

Is there any way to run a few hundred requests?

I am using getPrevalence( function), got the following error: You have exceeded the API usage limit. Please limit the usage to 1 request/minute.

flaneuse commented 1 year ago

@AJFeng If you're running a few hundred requests, we suggest you add a pause between calls to avoid the throttling. You can add a Sys.sleep(pause_time) within your loop to add a pause_time pause between requests.