API Rate Limits and Best Practices
Understanding API rate limits and best practices for efficient API usage.
Keep your BrainTube API integrations running smoothly.
Rate Limits
| Plan | Requests/Minute | Daily Limit |
|---|---|---|
| Free | 10 | 100 |
| Pro | 60 | 5,000 |
If you hit the limit, you receive a 429 response with a Retry-After header.
Best Practices
- Cache Results — Don't re-fetch unchanged data. Cache for at least 5 minutes.
- Use Appropriate Endpoints — Use search for quick lookups, graph-enhanced-search for deep results.
- Batch Requests — Fetch multiple items in one query with a higher limit.
- Handle Errors Gracefully — Implement retry logic with backoff for 429 responses.
- Use Webhooks — Consider Supabase Realtime instead of polling.
Monitoring Usage
Track API usage from Settings. Each key shows last_used timestamp and total_requests count.
Need Higher Limits?
Contact support for custom rate limits for high-volume integrations.
Still need help? Email support.