HTTP Request waits within a loop

GJoob
GJoob Member Posts: 1 Green Ribbon

I am extracting large amounts of data from a RESTful api.

Because of the amount of data being returned, I have to make thousands of requests via a loop which seems to be bombarding the the api server and eventually I get a HTTP 500 error back.

Is there a way to wait for responses or have a delay between requests within the loop before it makes the next request?

Thanks for any help.