Audible Interview Question

How do you implement rate limiter for an api?