# Universal Cloudflare Bypass (`zknight/actorfull`) Actor

Bypass Cloudflare Turnstile, JS challenges, and interstitials. Fast TLS fingerprint path for unprotected sites (~4s) and a stealth browser fallback for Turnstile (~10-20s). Residential proxies included. Concurrent processing. No silent failures.

- **URL**: https://apify.com/zknight/actorfull.md
- **Developed by:** [Leonel Asulde](https://apify.com/zknight) (community)
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Universal Cloudflare Bypass

Bypass Cloudflare Turnstile, JS challenges, and interstitials. Fast TLS fingerprint path for unprotected sites (~4s) and a stealth browser fallback for Turnstile (~10-20s). Residential proxies included. Concurrent processing. No silent failures.

### What does Universal Cloudflare Bypass do?

Most scrapers fail when they hit a Cloudflare "Just a moment" page. This Actor doesn't. It uses a **two-phase escalation strategy** to get the real HTML back, no matter what Cloudflare throws at it.

It sends a request to any URL. If Cloudflare blocks it, the Actor automatically escalates through multiple bypass layers until it gets the data. You don't need to configure anything. Just paste your URLs and run.

### How it works

The Actor tries the cheapest, fastest method first. Only if that fails does it escalate to the heavy machinery.

- **Phase 1 � Fast path (TLS impersonation)**: Uses `curl_cffi` to mimic a real browser's TLS fingerprint. No browser is launched. This takes ~4 seconds per URL. It handles sites without active bot protection.
- **Phase 2 � Stealth browser (Turnstile solver)**: If Phase 1 gets a 403 or detects a challenge, the Actor launches a full stealth browser (Camoufox, a patched Firefox) with residential proxies. It solves Turnstile and JS challenges in ~10-20 seconds.
- **Automatic fallback**: The switch between phases is automatic. You get the best of both worlds: speed when possible, power when needed.

It also handles the messy stuff that other scrapers ignore: proxy rotation, `NS_ERROR_ABORT` retries, `page is navigating` errors, and Cloudflare's post-challenge redirects. No silent failures.

### What can you do with it?

- **Scrape protected sites**: Extract HTML from sites behind Cloudflare Turnstile, JS challenges, or interstitials.
- **Monitor competitors**: Get pricing, product pages, or content from sites that block normal scrapers.
- **Build datasets**: Pull data from multiple URLs concurrently. The Actor supports parallel processing.
- **Automate workflows**: Use it as a reliable first step in your data pipeline. It returns clean HTML, ready for parsing.

### Input

The Actor takes a list of URLs. You can paste them directly or use the bulk editor.

| Field | Type | Description |
| :--- | :--- | :--- |
| **Start URLs** | Array | The list of URLs you want to fetch. Cloudflare-protected sites are allowed. |
| **Proxy configuration** | Object | **Residential proxies are mandatory.** Datacenter proxies will be blocked by Cloudflare. The default is set to `RESIDENTIAL`. Do not change it. |
| **Memory** | Integer | **Recommended: 8192 MB (8 GB).** Camoufox (the stealth browser) needs memory to run. Lower values may cause failures. |
| **Timeout** | Integer | **Recommended: 600 seconds.** This gives the Actor enough time to handle multiple URLs. |

### Output

For each URL, you get a JSON object in the default dataset.

````json
{
  "url": "https://example.com",
  "status": "success",
  "phase_reached": "phase3",
  "html_length": 29076,
  "html_snippet": "<!DOCTYPE html><html lang=\"en\"><head>..."
}



# Actor input Schema

## `startUrls` (type: `array`):

URLs a procesar (Cloudflare permitido).
## `proxyConfiguration` (type: `object`):

Residential proxies son obligatorios para Cloudflare.
## `memory_mbytes` (type: `integer`):

Memoria asignada. M�nimo 8192 MB para Camoufox.
## `timeout_secs` (type: `integer`):

Timeout de la run. M�nimo 600s.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.sealedair.com/"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "memory_mbytes": 8192,
  "timeout_secs": 600
}
````

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.sealedair.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zknight/actorfull").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.sealedair.com/" }] }

# Run the Actor and wait for it to finish
run = client.actor("zknight/actorfull").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.sealedair.com/"
    }
  ]
}' |
apify call zknight/actorfull --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zknight/actorfull"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kbHftisFsL4fwZnfg/builds/dg62HOcBXO2rcoGcZ/openapi.json
