 

# Cloudflare Bypass API for Web Scraping

 Get past Cloudflare-blocked targets with one API parameter.

##  Bot score under 30. `cf_clearance` minted. Page cleared. 

- **Real browser fingerprints.** [TLS](https://scrapfly.io/web-scraping-tools/ja3-fingerprint), [HTTP/2](https://scrapfly.io/web-scraping-tools/http2-fingerprint), [Canvas](https://scrapfly.io/web-scraping-tools/canvas-fingerprint), and [WebGL](https://scrapfly.io/web-scraping-tools/webgl-fingerprint) all match real Chrome on every request.
- **Adaptive challenge solving.** [JavaScript execution](https://scrapfly.io/docs/scrape-api/javascript-rendering), CAPTCHAs, proof-of-work, handled for you with nothing to set up.
- **Session intelligence.** Unblocked browser sessions reused across requests so Cloudflare sees a single coherent visitor.
 

**One API parameter.** Add `unblocker=true` to turn on the Unblocker (formerly ASP). See the [Unblocker docs](https://scrapfly.io/docs/scrape-api/unblocker).

 [Get Free API Key](https://scrapfly.io/register) [Read Unblocker docs](https://scrapfly.io/docs/scrape-api/unblocker) 

 1,000 free credits. No credit card required. [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/reviews/)  

 4.8/5 from 248 reviews 

 

 

[Scrapeway's Cloudflare benchmark](https://scrapeway.com/anti-bot-services/cloudflare)

 

 

  

 FINGERPRINT DATA  LIVE  

















 

 

 + 4,000 more datapoints... 

 

4,000+

 Fingerprint Datapoints 

75+

 Countries 

25+

 Anti-Bots 

 



 

 

 

 

 

Sites behind Cloudflare:

- [Zoopla Scraper API](https://scrapfly.io/scrapers/zoopla)
- [Glassdoor Scraper API](https://scrapfly.io/scrapers/glassdoor)
- [Indeed Scraper API](https://scrapfly.io/scrapers/indeed)
- [Crunchbase Scraper API](https://scrapfly.io/scrapers/crunchbase)
- [Yellow Pages Scraper API](https://scrapfly.io/scrapers/yellowpages)
 
 

## How well does Scrapfly handle Cloudflare?

Use `unblocker=true` to handle Bot Management, JavaScript challenges, and all three Turnstile modes. Failed scrapes are free, except a captcha whose solve has started.

 

 

 

## Which Scrapfly setup fits your Cloudflare page?

For single pages, Scrapfly's Web Scraping API with `unblocker=true` is enough. Use Scrapfly's Cloud Browser for logins and multi-step flows, and the Crawler API for whole sites.

| Your Cloudflare situation | Use | What you get |
|---|---|---|
| HTML pages behind Bot Management or the 5-second check | Web Scraping API + `unblocker=true` | Scrapfly detects Cloudflare and picks Curlium or Scrapium per target |
| A Turnstile widget on the page | The same flag | All three Turnstile modes, no solver setup |
| Text for an LLM or RAG pipeline | Add `format=markdown` | Clean Markdown from the same request |
| Logins, clicks or multi-step flows | Cloud Browser API (Playwright or Puppeteer over CDP) | Scrapium stealth Chromium; `solve_captcha` handles Turnstile |
| A whole site, not one page | Crawler API with `unblocker=true` | Recursive crawl, robots.txt respected by default |

 

 

---

Trusted by data teams worldwide

  NA North America 

- 
- 
- 
- 
- 
- 
- 
- 
- 
- SpaceX
- 
- 
 

- 
- 
- 
- 
- 
- 
- 
- 
- 
- SpaceX
- 
- 
 
 

 

 

  LATAM Latin America 

- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
 

- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
 
 

 

 

  EMEA Europe, Middle East, Africa 

- 
- 
- QatarEnergy
- 
- 
- Volkswagen
- 
- 
- 
- 
- 
- 
 

- 
- 
- QatarEnergy
- 
- 
- Volkswagen
- 
- 
- 
- 
- 
- 
 
 

 

 

  APAC Asia-Pacific 

- 
- 
- Petronas
- 
- Toyota
- 
- 
- 
- 
- 
- Mitsubishi
 

- 
- 
- Petronas
- 
- Toyota
- 
- 
- 
- 
- 
- Mitsubishi
 
 

 

 

 

 COVERAGE

## Every Cloudflare Signal, Matched

Bit-for-bit fingerprint parity with real Chrome. Not monkey-patching, not surface-level, engineered at the protocol and C++ layers.

 

 

##### Cloudflare Sees A Real Chrome. Score &lt; 30.

Cloudflare's Bot Score combines TLS fingerprint, HTTP/2 fingerprint, JavaScript challenge results, and behavioral signals into a 0–99 trust score. Scores above 30 get challenged or blocked. Scrapfly lands consistently under 30 because every layer is produced by a real patched Chrome, aligned to the same proxy exit region.

**&lt; 30**typical bot score achieved

**Turnstile**non-interactive + invisible + checkbox

**cf\_clearance**cookie kept valid

 





 

 

 

##### TLS Fingerprint, Chrome's Own Stack

Cloudflare inspects the TLS ClientHello at the edge before your request ever hits the origin. A JA4 hash that doesn't match a known browser profile triggers the managed challenge path instantly. On its Chrome desktop and Android profiles, Curlium runs Chrome's network stack, so the TLS handshake and HTTP/2 SETTINGS it sends are Chrome's, held to captures of genuine Chrome.

[JA4 / JA3 match](https://scrapfly.io/web-scraping-tools/ja3-fingerprint)

[HTTP/2 SETTINGS](https://scrapfly.io/web-scraping-tools/http2-fingerprint)

GREASE positions

Cipher suite order

ALPS extension

ALPN list

 

 





 

##### Why DIY Bypasses Fail

Most open-source Cloudflare bypass libraries break within weeks of a new Cloudflare edge deploy.

| **curl-impersonate** | lags Chrome by months |
|---|---|
| **cloudscraper** | no Turnstile support |
| **undetected-chromedriver** | JS-patched, detectable |
| **Playwright + stealth** | Canvas leaks, Audio leaks |
| **Scrapfly** | Handles Bot Management and Turnstile |

 





 

 

##### 5s Wait Page

The "Checking your browser" interstitial runs a proof-of-work puzzle and drops `cf_clearance`. Scrapfly solves it once, caches the cookie, and reuses across requests.

 **~2s** first-visit cleared 

 





 

##### Browser Fingerprint, C++ Patches

Cloudflare's collector script reads Canvas hash, WebGL vendor + renderer, AudioContext, Navigator plugins, screen dimensions, and font enumeration. Scrapium patches every one at the Chromium source level, not via JavaScript hooks that `toString()` inspection would expose.

[Canvas hash](https://scrapfly.io/web-scraping-tools/canvas-fingerprint)

[WebGL vendor](https://scrapfly.io/web-scraping-tools/webgl-fingerprint)

[AudioContext](https://scrapfly.io/web-scraping-tools/audio-fingerprint)

Navigator plugins

Font enumeration

Screen props

 

 





 

##### cf\_clearance Cookie

Signed token minted after the challenge clears. Any subsequent request without a matching fingerprint invalidates it instantly.

- Cached per-session
- Reused with same JA4
- Refreshed on expiry
 
 





 

 

##### Cloudflare Detection Stack, Every Layer Matched

Cloudflare chains TLS → HTTP/2 → JS challenge → behavioral signals → IP reputation → Bot Score. Break one layer and the whole chain collapses into a block. Scrapfly matches every layer simultaneously.

  **TLS + HTTP/2** JA4 + SETTINGS + WINDOW\_UPDATE = Chrome 

 

  **JavaScript Challenge** Turnstile + 5s interstitial cleared under real Chrome 

 

  **Browser Fingerprint** Canvas / WebGL / Audio / Navigator patched in C++ 

 

  **IP Reputation + Geo** Residential / datacenter pools, country-aligned headers 

 

 

 





 

##### Turnstile CAPTCHA, All Three Modes

Turnstile does not rely on solving visual puzzles. It runs a JavaScript challenge, reads fingerprint + behavioral signals, and issues a token. Scrapium executes the challenge under authentic browser semantics so the token verifies server-side.

- Non-interactive (invisible check)
- Invisible (brief fingerprint scan)
- Interactive checkbox
- Managed challenge escalation
 
 





 

 

---

 PROOF

## One Parameter. Cloudflare Cleared.

Add `unblocker=true`. Scrapfly detects Cloudflare and routes through the correct engine, Curlium for HTTP-layer targets, Scrapium for JS-heavy ones.

 

Set `unblocker=true` and Scrapfly handles Cloudflare automatically. Picks [Curlium](https://scrapfly.io/curlium) or [Scrapium](https://scrapfly.io/scrapium) per target.

     Python TypeScript Go Rust HTTP / cURL  

      

```
from scrapfly import ScrapeConfig, ScrapflyClient, ScrapeApiResponse
client = ScrapflyClient(key="API KEY")

api_response: ScrapeApiResponse = client.scrape(
    ScrapeConfig(
        url='https://httpbin.dev/html',
        # enable the Scrapfly Unblocker
        unblocker=True
    )
)
print(api_response.result)
```

```
import { 
    ScrapflyClient, ScrapeConfig 
} from 'jsr:@scrapfly/scrapfly-sdk';

const client = new ScrapflyClient({ key: "API KEY" });
let api_result = await client.scrape(
    new ScrapeConfig({
        url: 'https://httpbin.dev/html',
        // enable the Scrapfly Unblocker
        unblocker: true,
    })
);
console.log(api_result.result);
```

```
package main

import (
	"fmt"
	"github.com/scrapfly/go-scrapfly"
)

func main() {
	client, _ := scrapfly.New("API KEY")
	result, _ := client.Scrape(&scrapfly.ScrapeConfig{
		URL: "https://httpbin.dev/html",
		// enable the Scrapfly Unblocker
		Unblocker: scrapfly.BoolPtr(true),
	})
	fmt.Println(result.Result.Content)
}
```

```
use scrapfly_sdk::{Client, ScrapeConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::builder().api_key("API KEY").build()?;

    let cfg = ScrapeConfig::builder("https://httpbin.dev/html")
        // enable the Scrapfly Unblocker
        .unblocker(true)
        .build()?;

    let result = client.scrape(&cfg).await?;
    println!("{}", result.result.content);
    Ok(())
}
```

```
http https://api.scrapfly.io/scrape \
key==$SCRAPFLY_KEY \
url==https://httpbin.dev/html \
unblocker==true
```

 

 

 // RESPONSE    json  

```
{
  "result": {
    "status_code": 200,
    "success": true,
    "url": "https://httpbin.dev/html",
    "content_type": "text/html; charset=utf-8"
  },
  "context": {
    "cost": {
      "details": [
        {
          "amount": 1,
          "code": "PROXY_DATACENTER_NETWORK",
          "description": "Proxy Network (Datacenter)"
        }
      ],
      "total": 1
    }
  }
}
```

 

 

 

 [ Python SDK docs → ](https://scrapfly.io/docs/sdk/python) [ TypeScript SDK docs → ](https://scrapfly.io/docs/sdk/typescript) [ Go SDK docs → ](https://scrapfly.io/docs/sdk/golang) [ Rust SDK docs → ](https://scrapfly.io/docs/sdk/rust) [ HTTP API docs → ](https://scrapfly.io/docs) 

 

 

 [ Get Free API Key ](https://scrapfly.io/register) [ Read the Bypass Guide → ](https://scrapfly.io/blog/posts/how-to-bypass-cloudflare-anti-scraping) 

 

---

  FAQ

## Frequently Asked Questions

 

  

### How do I choose a Cloudflare bypass API?

 

Choose one with a dated success rate measured on page content, no per-site tuning, and no charge for a failed scrape, except a captcha whose solve has started. A scraping API can return a 200 status that carries a challenge page, so a rate counted on status codes overstates success. Scrapfly needs one parameter (`unblocker=true`) and does not bill failed scrapes, except a captcha whose solve has started.

 

   

### Is Scrapfly's Cloudflare handling automatic?

 

Yes. Add `unblocker=true` and Scrapfly detects Cloudflare and picks the right engine for each target: Curlium for HTTP-level checks, Scrapium for JavaScript challenges and Turnstile. You don't choose proxies, fingerprints or solvers.

 

   

### Can I test on my specific Cloudflare targets?

 

Yes. The free plan includes 1,000 API credits with no credit card required. Enable `unblocker=true` and test your exact targets before committing. Failed scrapes are not charged, except a captcha whose solve has started.

 

   

### How much does the Unblocker cost?

 

The Unblocker has no flat fee. A request costs its proxy and rendering: 1 credit on a datacenter proxy or 25 on residential, 5 more when a browser renders the page. A protected target can add a fee of its own, and a captcha the Unblocker solves for you is billed at its price once its solve has started. You pay for what a specific target needs, not a flat premium. See [pricing](https://scrapfly.io/pricing).

 

   

### What is Cloudflare Turnstile?

 

Turnstile is Cloudflare's CAPTCHA replacement, introduced in 2022. Unlike image CAPTCHAs, Turnstile usually runs in the background using browser fingerprinting and behavioral signals. It ships in three modes: non-interactive, invisible, and interactive checkbox. Scrapfly handles all three automatically via Scrapium's JS execution + Canvas/WebGL patches.

 

   

### How does Cloudflare detect bots?

 

Cloudflare combines four signals into a trust score: TLS fingerprinting (JA3/JA4), browser fingerprinting (Canvas, WebGL, Audio), behavioral analysis (mouse, clicks, timing), and IP reputation. The score decides whether to allow, challenge, or block. Scrapfly matches every signal. DIY: [how to bypass Cloudflare](https://scrapfly.io/blog/posts/how-to-bypass-cloudflare-anti-scraping).

 

   

### Can I use Scrapfly for Cloudflare-blocked e-commerce?

 

Yes. The Unblocker handles Bot Management, Turnstile and custom Cloudflare rules together. Test your own targets on the free plan's 1,000 credits before you commit.

 

  

 

 

---

 // SEE ALSO

### Bypass every other major anti-bot vendor too.

The Unblocker handles every major anti-bot stack with the same flag. Switch targets, keep the parameter.

 [Akamai](https://scrapfly.io/bypass/akamai) 

 [DataDome](https://scrapfly.io/bypass/datadome) 

 [PerimeterX](https://scrapfly.io/bypass/perimeterx) 

 [Kasada](https://scrapfly.io/bypass/kasada) 

 [Incapsula](https://scrapfly.io/bypass/incapsula) 

 [F5](https://scrapfly.io/bypass/f5) 

 [AWS WAF](https://scrapfly.io/bypass/aws-waf) 

 

 

 [Get Free API Key](https://scrapfly.io/register) [View all anti-bot bypasses](https://scrapfly.io/bypass)