Skip to main content
These patterns apply across all Geekflare endpoints. Following them will make your integration resilient to transient failures and easier to reason about at scale.

Retries

Not every failure should be retried. Retry 429 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

If the response includes an x-geekflare-ratelimit-reset header, wait at least that long before your first retry. Don’t rely on backoff alone. See Rate Limit Exceeded for details on the rate-limit headers.

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.
A request that hangs without a timeout ties up a connection in your pool indefinitely and can cascade into broader outages under load.

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 get 429s. 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-second to anticipate 429s before they happen.
  • Watch x-geekflare-credits-remaining to 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 5xx errors — 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.