Rate Limiting

The REST API has one limit: 100 requests per IP address per hour. There are no tiers, no per-endpoint limits and no separate limit for heavy operations.

The Automation Access block, showing the REST endpoint address
The limit counts requests to this endpoint, per IP address.

How the counting works

Every request to /api/v1/… records a timestamp against the caller's IP address. Before a request is handled, the timestamps from the last 60 minutes are counted, and if the count has reached the limit the request is refused.

The window moves with time. It does not reset at the start of each hour, so sixty requests at 14:59 and sixty more at 15:01 do not add up to 120 requests in two minutes. Each of the first sixty requests leaves the window sixty minutes after it was made.

Counting per IP address has three effects that are easy to miss:

The counter is shared by everything behind one address. Two n8n workflows on the same server, or an office behind one public IP, share the same 100 requests. A second API key does not add a second limit, because keys are not counted.

The limiter runs before authentication. A request with a wrong key, or with no key, still counts. This makes the limit effective against a script that sends many requests to the endpoint.

/api/v1/health also counts. A monitor that calls it every thirty seconds uses 120 requests an hour and blocks every other request from that address. Poll it every five minutes.

Behind a CDN or reverse proxy, the client address is taken from the forwarded headers only when the connection comes from a trusted proxy: a Cloudflare edge address, or a local address on a host that runs its own proxy in front of the site. Otherwise the connection address is used, so a forged header cannot be used to avoid the limit or to fill another client's counter.

The 429

HTTP/1.1 429 Too Many Requests
Content-Type: application/json; charset=utf-8

{
  "success": false,
  "error": { "code": 429, "message": "Rate limit exceeded" }
}

This is the complete response. There is no Retry-After header and there are **no X-RateLimit-* headers**, neither on this response nor on successful ones, so a client cannot see how many requests it has left or when to try again.

On a 429, wait according to your own schedule, for example 60 seconds, then 5 minutes, then stop and send an alert. Retrying immediately in a loop makes the problem worse, because every attempt is another request that keeps the window full.

Staying inside the limit

Request data in pages, not row by row. GET /api/v1/posts?per_page=100 is one request for a hundred posts; fetching them one id at a time is a hundred. per_page is capped at 100, so three requests cover three hundred posts.

Cache data that rarely changes. Categories, tags and settings are a few rows, and a daily sync keeps them up to date. The API does not support conditional requests (it sends no ETag and no Last-Modified), so every repeated call counts as a full request. Only caching on your side avoids this.

Use events instead of polling. If you call the API on a timer to find out when something changed, use an outgoing webhook instead; webhooks do not count against the limit.

Raising the limit

The value is the API_RATE_LIMIT constant, defined in config/environment.php, which reads an environment variable of the same name when one is present. Set it there and the new value applies from the next request; you do not need to restart anything or clear a cache.

Raise it only when you need to. The limit exists because a script stuck in a loop on shared hosting can use up the resources the site itself needs. On most installs, if you keep hitting 100 requests an hour, a client that batches and caches requests is a better fix than a higher limit.

Be the first to know

New features, release notes and CMS guides. We send a couple of emails a month.