Skip to main content

Getting started

Rate limits and fair use

What you pay for (GB), fair use, request rate limits and best practices

10 min read


You pay for one thing: GB of data. A fair-use policy keeps KLOAKD fast for everyone, and a request-rate limit applies only where one is set.

How usage is metered

Usage is the data KLOAKD receives while serving your requests: every attempt (including failed ones and retries), in every mode — plain HTTP, a browser and everything its pages load — with or without a proxy. It is counted in exact bytes and shown as GB in the dashboard.

The client.crawl() orchestrator is the most bandwidth-efficient way to work. It reuses artifacts across discovery, fetching, and extraction — fewer pages fetched twice.

See where your data went: History

The app's History lists every operation your organisation ran, through the API or the dashboard. Its Data used column is the bandwidth that operation took from your allowance: the data received over the network, including pages that failed and the data of retries. It is not the size of what was kept.

Open an operation to see each request's data, and its results. For a fetched page, View page shows it as it was stored, in a sandboxed frame without its scripts and without loading anything from the site, and Download saves the HTML as a file. A page stored as received, without the check that it is the real page (it may be a block or error page), is labelled "page as received (not verified)". Viewing or downloading a stored page uses none of your allowance. Through the API, GET /api/v1/organizations/{org_id}/artifacts/{artifact_id} gives the page's details and GET …/artifacts/{artifact_id}/content gives the HTML as a download; only fetched pages are served.

To use less data before a crawl, see extras are off by default, the data limit and map the site first.

Bandwidth allocation by plan

| Plan | Allocation | When it is used up | |------|------------|--------------------| | Free | 0.5 GB, once: a 30-day trial | Subscribe to Pro or Pro+ | | Pro | 10 GB per month | Buy a GB top-up or upgrade | | Pro+ | 25 GB per month | Buy a GB top-up or upgrade | | Enterprise | Custom | Custom |

Free is a 30-day trial, not a monthly plan. It gives 0.5 GB once, valid for 30 days from the day you verify your email address (the trial starts then, not at sign-up); it ends when the 30 days pass or the 0.5 GB is used, whichever comes first, and it does not reset. Each user can have it once. Free places are limited: when they are full, new sign-ups join a waitlist when they verify their email, and are activated in turn as places free up. When the trial ends (30 days passed or 0.5 GB used), work is refused until the organisation subscribes to Pro or Pro+. Top-ups are not offered on Free.

Top-ups (Pro and Pro+) add to the current billing period's allocation and expire with it. See Pricing for the full comparison.

When the allocation is used up

New billable requests are refused with 429 and "error": "gb_exhausted" (SDKs: QuotaExceededError, not retried), with X-GB-Used, X-GB-Limit and X-GB-Remaining headers. On Pro and Pro+, requests resume when you buy a top-up, upgrade, or the next billing period starts. On Free, they resume when the organisation subscribes to Pro or Pro+.

Work that was already running when the allocation ran out is not refused, and it does not fail:

  • It carries on for up to 0.5 GB past the allocation (the grace).
  • If it is still running when the grace is used too, it is held. A crawl's status becomes held_quota: its message says what to do and its error stays null. A batch and its unfinished items are held the same way, and so is a Kolektr extract-all job. Held work keeps the pages and records it already has, and a held crawl or batch holds no work slot.
  • Held work resumes from where it stopped when the organisation upgrades, buys a top-up or starts a new billing period. You do not send it again: a payment that raises the allocation resumes it, and a check for held work also runs every five minutes.
  • Work held for more than 30 days ends failed, with held_quota_expired in its error.
  • Work started with a test key is not held.

A paid plan whose last payment failed is refused with 402 payment_required (PaymentRequiredError) until the payment is settled.

Fair use

Crawls and batches are queued and worked through for you. To keep KLOAKD fast for everyone, each plan runs a fair number of jobs at the same time, using work slots. Every metered call holds one slot while it runs — a fetch (sync or async), an anti-bot check, an extraction, a crawl, a batch, a Parlyr chat, a Skanyr extract or sync, a Fetchyr or Nexus run. Reading a status, a crawl's pages, results or an event stream takes no slot.

  • A request holds its slot until its response has been sent in full; a streamed response holds it until the stream ends.
  • A request handed off as a job (202, after about 85 seconds) keeps its slot until the job ends.
  • A crawl or a batch holds its slot while it is queued or running (a crawl while it is created, queued, starting or crawling; a batch while it is pending or running). Work held for quota holds none.

| Plan | Jobs that run at once | |------|-----------------------| | Free | 2 | | Pro | 10 | | Pro+ | 20 | | Enterprise | 100 |

Batches have no separate number: they count towards the same slots, and a plan can have at most its number of batches pending or running at once. Over the limit, a fetch or an extraction is queued; a route that cannot queue (starting a crawl, creating a batch, …) answers 409 concurrent_limit (Errors): at once on Free, and after a wait of up to 10 seconds on a paid plan, as described below.

The anonymous test keys of the docs' Try It panels run 2 at a time. Need more running at the same time? Talk to us.

When every slot is in use

On a route that can queue, a call made while every slot is in use is queued, not refused, on every plan. It starts when one of your jobs finishes. Any other metered route refuses the call. What you see depends on the route:

| Route | What happens over the limit | |-------|-----------------------------| | The synchronous routes that can answer 202: evadr/fetch, kolektr/extract, Fetchyr authenticate, form/detect, form/fill and mfa/detect, Nexus analyze and synthesize | The request waits for a slot, then runs. If it finishes within about 85 seconds of your call you get the usual answer. If not, you get 202 with a poll_url, as for any long request; on the routes that hand off to …/handoff/{job_id} the reason is queued_for_slot while the request is still waiting. The SDKs follow the 202 | | evadr/fetch/async | The job is returned at once and stays pending until a slot frees | | Every other metered route (starting or continuing a crawl, a crawl-extract job, a login session, …) | On Free, refused at once with 409 concurrent_limit (below). On a paid plan, waits up to 10 seconds for a slot, then is refused the same way |

Queued work holds no slot while it waits, and the queue is not first-in, first-out. Two limits apply to it:

  • A queued request waits at most 15 minutes (900 seconds). If no slot has freed by then, its job ends failed, with an error that says so: "Your pro plan runs 10 jobs at once; this request waited 900 s in the queue and no slot freed." (on a hand-off job the text is prefixed QueueTimeout:).
  • A limited number of requests per organisation can wait at once (100 on each API process). One more is refused with 429 queue_full and Retry-After: 30:
{
  "detail": {
    "error": "queue_full",
    "message": "Your pro plan runs 10 jobs at once and 100 more are already queued. Try again when some have finished.",
    "tier": "pro",
    "concurrent_limit": 10,
    "queued": 100
  }
}

The 409 of a route that cannot queue (SDKs: ConcurrencyLimitError) names what holds the slots:

{
  "detail": {
    "error": "concurrent_limit",
    "message": "Your free plan runs 2 jobs at once, and all of them are running now. Wait for one to finish, or upgrade your plan to run more at once.",
    "tier": "free",
    "concurrent_limit": 2,
    "active_crawls": 1,
    "active_requests": 1
  }
}

active_crawls counts crawls and batches, active_requests the other calls in flight. The limit on batches at once sends active_batches instead (batch jobs). Wait for one to finish, cancel a crawl, or upgrade your plan, and try again; the SDKs do not retry a 409. The SDKs expose concurrent_limit and active_crawls on the error, and from 0.6.0 active_requests too. A queue_full answer is a 429 whose detail.error is queue_full: wait the Retry-After and try again.

The test keys' shared daily allowance

The anonymous test keys of the docs' Try It panels share 10 GB of data per UTC day, across all of them. When it is used up, new work with a test key is refused with 429 until 00:00 UTC, and Retry-After gives the seconds until then. Work already running finishes. Create an account to keep going straight away; your own API keys do not draw on this allowance.

{
  "detail": {
    "error": "gb_exhausted",
    "message": "Test keys have used today's shared data allowance. It resets at 00:00 UTC. Create an account to keep going now.",
    "tier": "test_key",
    "reason": "test_key_daily_budget_used",
    "upgrade_url": "https://app.kloakd.dev/pricing",
    "retry_after_seconds": 3600
  }
}

detail.reason tells this apart from one test key's own allowance (test_key_data_used). The SDKs do not retry it. If the allowance cannot be checked, the request is not started and is answered with 503 test_key_unavailable and Retry-After: 30.

Request rate limit

Where a request-rate limit applies, a request over it is refused with 429 rate_limited (RateLimitError; the SDKs wait and retry), and responses carry:

| Header | Description | |--------|-------------| | X-RateLimit-Limit | Requests allowed per window | | X-RateLimit-Remaining | Requests left in the current window | | X-RateLimit-Reset | Unix timestamp when the window resets | | Retry-After | Seconds to wait (on 429 only) |

Handling 429

from kloakd.errors import QuotaExceededError, RateLimitError

try:
    result = client.crawl("https://example.com", max_depth=2)
except QuotaExceededError as e:
    print(f"Allocation used up; top up or upgrade: {e.upgrade_url}")
except RateLimitError as e:
    print(f"Too many requests. Retry after {e.retry_after}s")
import { QuotaExceededError, RateLimitError } from 'kloakd-sdk';

try {
  const result = await client.crawl('https://example.com', { maxDepth: 2 });
} catch (e) {
  if (e instanceof QuotaExceededError) console.log('Allocation used up');
  else if (e instanceof RateLimitError) console.log(`Retry after ${e.retryAfter}s`);
}

Best practices

  • Use client.crawl() — the orchestrator reuses artifacts across discovery, fetching, and extraction
  • Use artifact chaining — one fetch() reused by extract() avoids fetching the same page twice
  • Use extract_schema with crawl() — extraction runs on already-fetched HTML
  • Limit crawl depth and pages — max_depth=2 is usually enough for most sites
Was this page helpful?