Rate limits
Each key has a per-minute request limit, and account keys also draw on a monthly allowance from your plan. Every authenticated response tells you where you stand.
Limits
| Key or action | Limit | Window |
|---|---|---|
| Account key (so_live_) | 60 requests | per minute, per key |
| Site key (so_site_) | 120 requests | per minute, per key |
One-click connect POST /connect/exchange | 20 attempts | per 10 minutes, per IP address |
| Starting tool runs | Short burst protection | returns rate_limited when runs start too quickly |
Limits apply per key, so separate integrations with separate keys do not slow each other down. Tool runs are additionally limited by your plan's daily, weekly and monthly run limits (402 run_limit).
Headers
Every authenticated response, including errors, carries:
| Header | Meaning |
|---|---|
x-ratelimit-limit | Requests allowed per minute for this key. |
x-ratelimit-remaining | Requests left in the current window. |
x-ratelimit-reset | Unix time (seconds) when the window resets. |
retry-after | On 429 only: seconds to wait before retrying. |
x-request-id | Identifier of this request, also in error bodies. |
HTTP/1.1 200 OK
content-type: application/json
x-request-id: req_3hT8sPq0Wm2x
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
x-ratelimit-reset: 1767225660Handling 429
When the per-minute limit is reached the API answers 429 with rate_limited and a Retry-After header. Wait that many seconds and retry. Do not retry immediately in a loop.
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry in 23s.",
"requestId": "req_Lx0aQm41sT9c",
"docs": "https://semanticson.com/developers/errors#rate_limited"
}
}async function request(url, init = {}, attempt = 0) {
const res = await fetch(url, init);
if (res.status === 429 && attempt < 5) {
const body = await res.clone().json().catch(() => null);
if (body?.error?.code === "monthly_limit_reached") return res; // waiting will not help
const wait = Number(res.headers.get("retry-after") ?? 1);
await new Promise((r) => setTimeout(r, wait * 1000));
return request(url, init, attempt + 1);
}
if (res.status >= 500 && attempt < 5) {
await new Promise((r) => setTimeout(r, 2 ** attempt * 1000));
return request(url, init, attempt + 1);
}
return res;
}Monthly allowance
Requests made with account keys count towards the API requests per month included in your plan, for the current billing period. When they are used up, requests return 429 with monthly_limit_reached until the next period starts. Retrying will not help; upgrade or wait.
- Site keys are not counted. Traffic from connected websites (sync, changes, audits from WordPress) is limited by the number of websites your plan includes instead.
- Check usage with
GET /me(usage.apiRequestsThisPeriodandplan.limits.apiRequestsPerMonth;-1means unlimited) or day by day withGET /usage.
curl https://semanticson.com/api/v1/usage?days=7 \
-H "Authorization: Bearer $SEMANTICSON_API_KEY"Staying within limits
- Use webhooks instead of polling for tool results, audits and change decisions.
- When polling a tool run, wait 2–5 seconds between requests.
- Request 100 items per page when you need everything.
- Cache data that rarely changes, such as
GET /toolsand project details.
Need higher limits for a large integration? Contact us with your use case.