Tips for Working Within the API Rate Limit

Last Updated -

When your script goes over the API rate limit, sends a header called "x-rate-limit-reset" with the amount of time you must wait before another request is processed. Knowing this, you might consider writing a bit of custom logic to look for this header, and then pause your script accordingly. This way, your script will run at maximum efficiency without ever running into issues due to the rate limit. 

Here's an example of this technique in Ruby: