Retries
Not every failure should be retried. Retry429 and 5xx responses; do not retry 401, 402, 403, or 404 — those indicate a problem with the request itself, and retrying it will fail the same way every time.
Exponential backoff with jitter
Timeouts
Set a client-side timeout on every request. Endpoints that render JavaScript or capture screenshots can take longer than simple lookups (DNS, ping). Don’t apply the same timeout to both.- Fast endpoints (DNS Lookup, Ping, Site Status, TLS Scan): 10–15 seconds is generally enough.
- Browser-based endpoints (Web Scraping with rendering, Screenshot, Lighthouse): allow 30–60 seconds, especially for heavy or slow-loading pages.
Concurrency
Your rate limit caps requests per second, not concurrent connections. But sending far more concurrent requests than your rate limit allows just means most of them queue or get429s. Size your concurrency to roughly match your plan’s requests-per-second limit, and use a queue or semaphore to stay under it rather than firing requests unbounded.
Idempotency
Geekflare endpoints are stateless HTTP calls. Retrying an identical request (same URL, same parameters) simply re-runs it and consumes credits again. If you’re retrying after a timeout where you’re unsure whether the original request completed, prefer checking your API Logs for the original request before firing a duplicate, especially for credit-heavy calls like AI Extraction or Lighthouse audits.Monitoring
Every response includes headers you can log or check inline, without a separate dashboard call:- Watch
x-geekflare-ratelimit-remaining-secondto anticipate429s before they happen. - Watch
x-geekflare-credits-remainingto avoid a 402 Credit Exhausted error mid-batch, especially before starting a large scrape or search job. - Check status.geekflare.com if you see a spike in
5xxerrors — it’s the fastest way to confirm whether an issue is on Geekflare’s side before opening a support ticket.
Next Steps
Error Code Reference
Every error code and what to do about it.
Rate Limit Exceeded
Headers, backoff strategy, and per-plan limits.