NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Rate limiting: how services cap request volume

Rate limiting is a rule that restricts how many requests a client can make in a given time window, protecting a service from overload and from automated abuse.

Definition

A rate limit counts requests from some identity (an IP address, an API key, a user account or a session cookie) over a window such as one second, one minute or one day. Once the count crosses the threshold, further requests are refused, delayed or challenged until the window moves on. Almost every public API and most large websites use some form of it.

Common algorithms

MethodHow it countsBehavior
Fixed windowCounter resets at the start of each minuteSimple; allows bursts at window edges
Sliding windowCounts the last N seconds continuouslySmoother, no edge bursts
Token bucketTokens refill at a steady rate; each request spends oneAllows short bursts up to bucket size
Leaky bucketRequests queue and drain at a fixed rateSteady output, adds delay

The 429 response

HTTP status 429 Too Many Requests is the standard way to say "slow down". Well behaved servers add a Retry-After header with a number of seconds or a date, and some APIs return remaining quota in headers. Websites protecting pages rather than APIs may instead answer with a challenge or a 403, so a sudden change in response type is often a rate rule firing. The 429 FAQ covers diagnosis in more detail.

What identity is counted

The choice of key shapes who gets limited. Counting by IP is simple but punishes everyone behind a shared office or carrier address. Counting by API key or account is precise for APIs, since each caller authenticates. Counting by session cookie catches one browser hammering a page, yet a client that drops cookies escapes it. Many sites combine two or three of these so that no single trick avoids all of them.

Backing off correctly

The right reaction to a limit is to wait, not to retry immediately. Exponential backoff with a little randomness spreads retries out so that many workers do not all return at the same instant.

import random, time, requests

def fetch_politely(session, url, tries=5):
    for n in range(tries):
        r = session.get(url, timeout=30)
        if r.status_code != 429:
            return r
        hint = r.headers.get("Retry-After")
        pause = float(hint) if hint and hint.isdigit() else 2 ** n
        time.sleep(pause + random.uniform(0, 1))
    raise RuntimeError("still limited after retries")

Rate limits as a bot signal

For websites, rate limits double as detection. A client that hits the limit repeatedly, ignores Retry-After, or spreads requests across many addresses to stay just under it forms a recognizable pattern. Sites often lower limits for unknown clients and raise them for logged in users or verified crawlers.

GateSolver's own limit

Our API allows 600 requests per minute per API key. That budget covers createTask, getTaskResult and getBalance calls together. There is no cap on how many tasks can be in progress at the same time, so the practical way to stay inside the limit is to poll sensibly: every 3 seconds for token tasks and every second for image tasks, rather than in a tight loop. A request over the limit returns ERROR_RATE_LIMIT, which costs nothing; wait briefly and continue. Since there is one API key per account, the limit applies to the whole account at once. See the rate limit FAQ for planning large batches.

Designing your client around limits

  • Use a shared limiter across all workers instead of one per thread.
  • Prefer fewer, smarter polls: a reCAPTCHA v2 task usually finishes under 9 seconds, so polling every few seconds is plenty.
  • Cache responses you already fetched so retries do not repeat work.
  • Log 429 counts per target; a rising trend is an early warning before blocks start.

Common questions

What does HTTP 429 mean?

It means Too Many Requests: the client exceeded a rate limit and should wait before trying again.

What is the GateSolver API rate limit?

Up to 600 requests per minute per API key, counting all endpoints; concurrent tasks are not capped.

Does a rate limited request cost money?

No. Error responses, including ERROR_RATE_LIMIT, are never charged.

How often should I poll for a result?

About every 3 seconds for token tasks and every second for image tasks, which stays well inside the limit.

Is spreading requests across many IPs a good way around site limits?

It is a pattern sites watch for; slowing down and caching is the more sustainable approach for permitted jobs.

Keep reading