Limiti Globali
Brevo limita le richieste API per endpoint. Ogni limite è un numero di richieste al secondo (RPS), all’ora (RPH) o entrambi. I valori qui sotto provengono dalla pagina dei limiti di frequenza di Brevo, verificata il 7 ottobre 2026. Controlla quella pagina prima di dimensionare un job grande.
Livelli dei limiti di frequenza
| Livello | Disponibile con |
|---|---|
| General | Free, Starter, Standard, Professional ed Enterprise |
| Advanced | Professional ed Enterprise |
| Extended | Enterprise |
Limiti per livello
| Endpoint | General | Advanced | Extended |
|---|---|---|---|
POST /v3/smtp/email, GET /v3/smtp/blockedContacts | 1.000 RPS, 3.600.000 RPH | 2.000 RPS, 7.200.000 RPH | 6.000 RPS |
GET /v3/smtp/emails | 2 RPS, 7.200 RPH | 3 RPS, 10.800 RPH | 18.000 RPH |
POST /v3/transactionalSMS/send | 150 RPS, 540.000 RPH | 200 RPS, 720.000 RPH | 250 RPS |
POST /v3/events | 10 RPS, 36.000 RPH | 20 RPS, 72.000 RPH | 60 RPS |
POST /v3/orders/status | 5 RPS, 18.000 RPH | 10 RPS, 36.000 RPH | 15 RPS |
POST /v3/products | 2 RPS, 7.200 RPH | 4 RPS, 14.400 RPH | 21.600 RPH |
Altri endpoint sotto /v3/smtp | 300 RPH | 600 RPH | 1.800 RPH |
Tutti gli endpoint sotto /v3/contacts | 10 RPS, 36.000 RPH | 20 RPS, 72.000 RPH | 60 RPS |
Tutti gli endpoint sotto /v3/loyalty | 600 RPH | 1.200 RPH | 100.000 RPH |
| Tutti gli altri endpoint | 100 RPH | 200 RPH | 600 RPH |
Quando un endpoint ha sia un limite RPS sia un limite RPH, resta sotto entrambi.
Header dei limiti di frequenza
Gli endpoint soggetti a limiti di frequenza restituiscono questi header:
HTTP/1.1 200 OKx-sib-ratelimit-limit: 1000x-sib-ratelimit-remaining: 750x-sib-ratelimit-reset: 1Descrizione degli header
x-sib-ratelimit-limit: richieste consentite nella finestra correntex-sib-ratelimit-remaining: richieste rimaste nella finestra correntex-sib-ratelimit-reset: tempo rimanente prima del reset della finestra, di solito in secondi
Brevo documenta questi header nella sua pagina sugli header dei limiti.
Monitorare l’utilizzo
Controllare l’utilizzo attuale
const checkRateLimit = async () => { const response = await fetch('https://api.brevo.com/v3/account', { headers: { 'api-key': process.env.BREVO_API_KEY } });
console.log({ limit: response.headers.get('x-sib-ratelimit-limit'), remaining: response.headers.get('x-sib-ratelimit-remaining'), resetInSeconds: Number(response.headers.get('x-sib-ratelimit-reset')) });};Gestire i limiti di frequenza
Backoff esponenziale
const makeRequestWithBackoff = async (url, options, maxRetries = 3) => { for (let i = 0; i < maxRetries; i++) { const response = await fetch(url, options);
if (response.status !== 429) return response;
const resetSeconds = Number(response.headers.get('x-sib-ratelimit-reset') || 1); const delay = Math.max(resetSeconds * 1000, 1000 * Math.pow(2, i));
console.log(`Rate limited. Waiting ${delay}ms before retry ${i + 1}`); await new Promise(resolve => setTimeout(resolve, delay)); } throw new Error('Rate limit retries exhausted');};Se continui a raggiungere i limiti
- Distribuisci le richieste in modo uniforme: un limite di 1.000 RPS consente fino a 60.000 richieste al minuto solo se sono distribuite in modo uniforme.
- Raggruppa e metti in cache: usa gli endpoint bulk ed evita di rileggere dati che hai già.
- Usa i webhook per le statistiche: ricevi gli eventi invece di interrogare con polling gli endpoint delle statistiche.
- Valuta un livello superiore: i livelli avanzato ed esteso sono inclusi nei piani Professional ed Enterprise.