Requests responding with 500 after making >500 requests

I already created a server and was using the API. Everything works until I have to make more than 504 requests. It always responds with response code of 500 after the 504th requests. The limit on the pricing page says I am allowed 3500 requests per minute. What am I doing wrong?

What kind of requests did you make?

@cryptokid Thanks for responding this was the kind of request I was making. the i for offset is from a loop.