Marble applies rate limits to protect the stability of the API for all users. This page explains the limits, how they are calculated, and how to design your integration to handle them gracefully.Documentation Index
Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Marble API uses rate limiting to ensure fair usage and API stability. Rate limits are enforced per API key using a sliding window approach.Most applications will not hit these limits during normal use, but you should
still build in defensive handling for rate limit responses.
Rate Limit Tiers
API Key Requests
All authenticated requests are rate limited per API key:- Limit: 200 requests per 10 seconds
- Applies to: All resource routes
GET /postsGET /posts/:identifierGET /categoriesGET /tagsGET /authors
429 Too Many Requests responses.
Unauthenticated Requests
Requests without a valid API key have a more conservative limit:- Limit: 10 requests per 10 seconds
Rate Limit Response Headers
When rate limiting is active, responses include standard headers that let you understand how many requests you have remaining in the current window.The maximum number of requests allowed in the current window.
The number of requests remaining in the current window before you hit the
limit.
Unix timestamp (in seconds) when the current rate limit window resets.
When You Exceed the Limit
If you exceed the allowed number of requests in the current window, the API returns a429 Too Many Requests error.
Implementing Backoff
Here’s a simple example of exponential backoff in JavaScript:Best Practices
If you consistently need higher rate limits for your use case, please contact
us to discuss your requirements.