Rate Limiting

Laravel's API Middleware includes a rate limiter, which, by default, it set to 60 requests per minute, per-IP.

If you exceed the throttling, you'll have a 429 Too Many Requests HTTP response code. You'll also have a Retry-After header included, indicating the number of seconds to wait:

Retry-After: 60

The below headers will also be included.

When a request is made, several headers are returned to show you where you are in terms of throttling:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59

To read some more information about how the throttling works in Laravel, check out this page