Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How requests are throttled per API key.
X-RateLimit-Limit: 120 X-RateLimit-Remaining: 47 X-RateLimit-Reset: 1713715260
X-RateLimit-Reset
{ "success": false, "code": "RATE_LIMITED", "error": "Too many requests. Please try again after 2026-04-21T15:27:40.000Z" }
Retry-After
async function call(url, key) { for (let attempt = 0; attempt < 5; attempt++) { const res = await fetch(url, { headers: { Authorization: `Bearer ${key}` }, }); if (res.status !== 429) return res; const reset = Number(res.headers.get("X-RateLimit-Reset")); const waitMs = Math.max(1000, reset * 1000 - Date.now()); await new Promise((r) => setTimeout(r, waitMs)); } throw new Error("rate limit exhausted"); }
Was this page helpful?