Skip to content
Guide

ZenRows Not Working on Cloudflare in 2026: Error Codes, Parameters and Fixes

NSLSolver TeamPublished Updated 9 min read

When ZenRows returns a Cloudflare "Just a moment..." page or fails with RESP001 "Could Not Get Content", the request almost always ran without the configuration the target needs: no JavaScript rendering, no residential (premium) proxy, too little waiting, or a client that hung up before ZenRows finished. Try mode=auto (Adaptive Stealth Mode) first, or js_render=true plus premium_proxy=true with a wait_for selector, and give your HTTP client a 3-minute timeout. If Cloudflare's challenge is the only thing in your way and the content is plain HTML, a dedicated challenge solver that returns a cf_clearance cookie can be simpler and cheaper.

Every error code, parameter and price below comes from ZenRows' own documentation and pricing page (checked 2026-12-01). ZenRows does much more than pass challenges (rendering, extraction, geotargeting, screenshots, batch jobs), so this guide covers the Cloudflare case only.

Quick answer: what your ZenRows error means on a Cloudflare site

ZenRows answers with an HTTP status and a documented error code. Find yours below; the fixes are the ones ZenRows documents for that code.

422 RESP001 Could Not Get Content
ZenRows could not retrieve the page with the configuration you sent. ZenRows suggests js_render=true, premium_proxy=true for anti-bot sites, a proxy_country, a longer wait, custom headers or a referer. Or switch to mode=auto.
400 REQS002 Request Requirements Unsatisfied
The domain needs js_render and/or premium_proxy. The request was rejected before fetching and is not charged. Add those parameters, or use mode=auto from the first request.
400 REQS004 Invalid Params Provided
A parameter is invalid or badly encoded, or the combination is not allowed. The common case: js_render or premium_proxy sent together with mode=auto. Send one approach, not both, and URL-encode the target.
200, but the body is Cloudflare's "Just a moment..." page
The HTML was returned before the real page loaded. Enable js_render and premium_proxy, add wait_for with a selector that only exists on the real page, and set original_status=true to see the target's status.
424 RESP006 Failed To Solve CAPTCHA / 400 REQS006 Invalid CAPTCHA Solver Key
A solve_captcha step (2Captcha integration) failed, or the solver key is wrong. Check the 2Captcha key and its balance in the integration, add premium proxies and retry with backoff.
499/500 CTX0001 Context Cancelled
Your client closed the connection, usually on its own timeout. Not charged. Raise the client timeout to 180 seconds or more: ZenRows says fetch requests can take up to 3 minutes.
504 CTX0002 Operation Timeout Exceeded
ZenRows reached its own time limit for the request. Check the site in a browser, simplify the request (fewer js_instructions), or add premium proxies and geolocation.
403 BLK0001 IP Address Blocked
ZenRows blocked your calling IP for exceeding the maximum error rate. Wait a few minutes, fix the cause of the errors and retry with exponential backoff instead of a tight loop.
429 AUTH006 Concurrency Exceeded / 402 AUTH004 Usage Exceeded
Too many simultaneous requests for your plan, or the period's credits are spent. Queue requests using the Concurrency-Remaining header; top up or upgrade, or wait for the renewal.

Why a Cloudflare challenge still comes back through ZenRows

A ZenRows request is only as strong as the configuration you give it. On Cloudflare-protected sites, the failures come from a handful of causes:

  • A basic request. Without js_render nothing executes Cloudflare's challenge JavaScript, and without premium_proxy the request leaves from a datacenter IP. ZenRows describes premium_proxy as routing "through residential IPs for protected access to sites with anti-bot protection".
  • Rendering without waiting for the right thing. If ZenRows returns as soon as the first document loads, you can get the interstitial instead of the page behind it. wait and wait_for exist for this.
  • A Turnstile widget inside the page. Getting past the full-page challenge is not the same as submitting a login or signup form that a Turnstile widget protects. ZenRows handles that case through its 2Captcha integration.
  • Region rules. ZenRows notes that access can still be denied for region-specific reasons even with premium proxies, which proxy_country addresses.
  • Client behaviour. Timeouts shorter than 3 minutes produce CTX0001, and retry loops on errors can trigger BLK0001 on your own IP.

Fix 1: start with Adaptive Stealth Mode (mode=auto)

ZenRows documents mode=auto as an execution mode that "analyzes each request and selects the most cost-effective configuration": it starts with basic settings and escalates only when needed. Billing follows the result: "You are billed only once, for the configuration that succeeds", and failed attempts are not charged.

Two rules matter. First, js_render and premium_proxy are managed for you, so sending either with mode=auto returns REQS004 ("Js_render and premium_proxy cannot be combined with mode=auto"). Second, proxy_country is allowed with mode=auto, as are parameters such as session_id and css_extractor. The X-Request-Cost response header tells you what the successful configuration cost, which is the quickest way to learn whether a domain needs the full protected setup.

zenrows_cloudflare.py
import requests

ZR = "https://api.zenrows.com/v1/"
KEY = "YOUR_ZENROWS_KEY"
URL = "https://example.com/products"

# Option A: Adaptive Stealth Mode. Do NOT add js_render or premium_proxy (REQS004).
auto = {"apikey": KEY, "url": URL, "mode": "auto", "proxy_country": "us"}

# Option B: manual protected configuration (25 credits per successful request)
manual = {
    "apikey": KEY,
    "url": URL,
    "js_render": "true",
    "premium_proxy": "true",
    "proxy_country": "us",
    "wait_for": ".product-list",   # a selector that exists only on the real page
    "original_status": "true",     # return the target's real status code
}

# Fetch requests can take up to 3 minutes: a shorter client timeout causes CTX0001
r = requests.get(ZR, params=auto, timeout=180)
print(r.status_code, "cost:", r.headers.get("X-Request-Cost"),
      "slots left:", r.headers.get("Concurrency-Remaining"))
if r.status_code >= 400:
    print(r.text[:500])   # error details, e.g. RESP001 or REQS002

Fix 2: the manual protected configuration

If you prefer to control the setup, combine js_render=true ("Enable JavaScript rendering with a headless browser") with premium_proxy=true. ZenRows prices a standard request at 1 credit, JavaScript rendering at 5, premium proxies at 10 and both together, which it calls a protected request, at 25 credits.

When that combination is still blocked, ZenRows' own troubleshooting page lists these steps, to be combined as needed:

  • proxy_country: pick a country for the proxy, for example the one where the site operates. It requires premium_proxy=true or mode=auto.
  • wait_for: wait for a CSS selector before returning. Use a selector that exists only on the real page, never one that the challenge page also contains. wait adds a fixed delay in milliseconds.
  • block_resources: ZenRows blocks some resources such as images and CSS by default. Changing the list, or setting block_resources=none, changes how the page loads.
  • custom_headers: add headers such as a referer to mimic normal browser behaviour.
  • session_id: keep the same IP for up to 10 minutes, for example to collect cookies on a less protected page and then open the protected one.
  • original_status=true returns the target's real status code, so a 403 from Cloudflare is not hidden; allowed_status_codes returns content even for listed error statuses.

Fix 3: Turnstile on forms with js_instructions

ZenRows says its built-in handling usually gets you past protections, and that in-page CAPTCHAs are rare after that. For the remaining cases, "interactive or in-page CAPTCHAs, such as those tied to form fields", it offers a 2Captcha integration: you save your 2Captcha API key in the ZenRows dashboard and add a step such as {"solve_captcha": {"type": "cloudflare_turnstile"}} to js_instructions. js_instructions requires js_render=true or mode=auto.

Two errors belong to this path. REQS006 Invalid CAPTCHA Solver Key means the stored key or its balance is the problem. RESP006 Failed To Solve CAPTCHA is retryable: ZenRows suggests checking the solver balance, adding premium proxies and retrying with backoff. Remember that this path involves a second provider account with its own balance.

Fix 4: timeouts, concurrency and retries

Several "ZenRows is not working" reports are client-side. ZenRows documents the following:

  • Fetch requests can take up to 3 minutes. Set your HTTP client timeout to 180 seconds or more; a shorter timeout returns CTX0001 and, after a cancel, the concurrency slot stays occupied for up to 3 minutes.
  • Concurrency limits depend on the plan (5 on Free, 20 on Build, 50 on Launch, 100 on Growth). Exceeding them returns 429 AUTH006; read Concurrency-Remaining before sending more.
  • BLK0001 means your IP exceeded the maximum error rate. Fix the failing configuration and use exponential backoff.
  • RESP008 is a non-retryable error not related to ZenRows (site configuration or certificate). Do not retry it in a loop, because repeated 400s can lead to BLK0001.

What a protected Cloudflare page costs on ZenRows

Prices checked 2026-12-01 on zenrows.com/pricing: Free gives 5,000 credits per month with no card; Build starts at $19 per month for 45,000 credits; Launch is $69 per month for 250,000 credits. ZenRows states that failed requests are never charged.

Because a protected request costs 25 credits, 250,000 Launch credits cover about 10,000 protected pages, roughly $6.90 per 1,000 pages by our arithmetic (less on larger plans, nothing extra when mode=auto finds a cheaper configuration). That price includes the residential proxy, the browser and the retries, which is a fair deal if you need all of them.

When a dedicated challenge solver is cheaper or simpler

A solver works at a different layer. Instead of fetching every page through a remote browser, you pass the Cloudflare challenge once, get the cf_clearance cookie and the matching User-Agent, and send the following requests yourself through your own proxy. Cloudflare documents that the clearance cookie lasts 30 minutes by default (sites can change this) and that no challenge is shown while it is valid, so one solve can cover many page requests.

That is usually the better fit when Cloudflare's challenge is the only obstacle, the data is in the HTML or in a JSON endpoint, and you scrape many pages on a few domains. NSLSolver charges $1.00 per 1,000 Cloudflare Challenge solves, only for successful ones; you pay your own proxy traffic on top.

Keep ZenRows when you need JavaScript-rendered content, extraction, screenshots, many different domains, or protections a Cloudflare solver does not cover. NSLSolver handles Cloudflare Turnstile, Cloudflare Challenge, reCAPTCHA v3 / Enterprise, Kasada and Akamai (beta); it does not solve reCAPTCHA v2, hCaptcha, image or text CAPTCHAs, FunCaptcha, GeeTest or DataDome.

The same Cloudflare challenge with NSLSolver

Send the page url, the challenge site_key (the 0x... widget id on the challenge page) and your proxy. The synchronous response contains cookies (with cf_clearance) and user_agent; replay both through the same proxy. Omit user_agent in the request, or send an iPhone Safari UA, because the clearance is issued for an iPhone Safari User-Agent. A challenge solve averages about 3.3 seconds.

Only automate sites you own or are authorised to access. Sign up with Google, Gmail or Proton for $0.10 of free credit (about 125 Turnstile solves), no card required.

nslsolver_challenge.py
import requests

API = "https://api.nslsolver.com/solve"
PROXY = "http://user:pass@host:port"   # your proxy: used for the solve AND the replay
TARGET = "https://example.com/products"

# 1) One solve: NSLSolver passes the Cloudflare challenge and returns cf_clearance
r = requests.post(API, headers={"X-API-Key": "YOUR_API_KEY"}, json={
    "type": "challenge",
    "url": TARGET,
    "site_key": "0x4AAAAAAAxxxxxxxxxxxxxxxx",  # challenge widget id (0x...) from the page
    "proxy": PROXY,
    # no user_agent: the clearance is issued for the solver's iPhone Safari
}, timeout=120)
r.raise_for_status()  # 400 field, 401 key, 402 balance, 429 rate, 503 retry (not billed)
data = r.json()

# 2) Replay with your own HTTP client: same proxy, returned cookies and user_agent
s = requests.Session()
s.proxies = {"http": PROXY, "https": PROXY}
s.cookies.update(data["cookies"])            # includes cf_clearance
s.headers["User-Agent"] = data["user_agent"]

for page in range(1, 51):
    resp = s.get(f"{TARGET}?page={page}", timeout=30)
    if resp.status_code == 403 and "Just a moment" in resp.text:
        break  # clearance expired or the context changed: solve again
    print(page, resp.status_code, len(resp.text))

Frequently asked questions

Why does ZenRows return a Cloudflare challenge page?

Usually because the request ran without JavaScript rendering, without a residential (premium) proxy, or returned before the real page loaded. Use mode=auto, or js_render=true and premium_proxy=true with a wait_for selector that exists only on the real page.

What does ZenRows RESP001 "Could Not Get Content" mean?

It is a 422 error meaning ZenRows could not retrieve the content with your configuration. ZenRows suggests enabling js_render, premium_proxy for anti-bot sites, a proxy_country, a longer wait and custom headers or a referer, or testing with a minimal configuration.

What is ZenRows REQS002?

REQS002 Request Requirements Unsatisfied means the domain needs js_render and/or premium_proxy. The request is rejected before fetching and is not charged. Add the parameters or use mode=auto from the first request.

Can I use mode=auto with js_render or premium_proxy?

No. Adaptive Stealth Mode manages both parameters itself, and combining them returns REQS004. Use one approach or the other. proxy_country, session_id and css_extractor still work with mode=auto.

How many credits does a Cloudflare-protected page cost on ZenRows?

A request with both JavaScript rendering and premium proxies, which ZenRows calls protected, costs 25 credits; rendering alone costs 5 and premium proxies alone 10. With mode=auto you pay only for the configuration that succeeded, and failed requests are not charged (pricing checked 2026-12-01).

Why do I get CTX0001 Context Cancelled?

Your own client closed the connection, usually because its timeout was shorter than the request. ZenRows says fetch requests can take up to 3 minutes, so set a timeout of at least 180 seconds. CTX0001 is not charged.

When is a cf_clearance solver cheaper than ZenRows?

When Cloudflare's challenge is the only obstacle, the content does not need rendering, and you fetch many pages per domain. One cf_clearance stays valid for the site's Challenge Passage (30 minutes by default), so a $1.00 per 1,000 solve can cover many requests sent through your own proxy.

Pass the Cloudflare challenge once, scrape with your own client

NSLSolver returns cf_clearance and the matching User-Agent in one synchronous call, at $1.00 per 1,000 successful solves. Free credit with Google, Gmail or Proton sign-up, no card needed.