# Cloudflare Turnstile

Solve Cloudflare Turnstile challenges. Task types, parameters, and code examples.

Cloudflare's privacy-preserving captcha alternative. Often works without user interaction.


# Task Types

Task Type Description
TurnstileTaskProxyless Without proxy
TurnstileTask With your proxy

# Parameters

Parameter Type Required Description
websiteURL string Page URL with Turnstile
websiteKey string Turnstile site key

# Finding the Site Key

<div class="cf-turnstile" data-sitekey="0x4AAAAAAAB..."></div>

Search for: data-sitekey, turnstile.render, or cf-turnstile.


# Example

response = requests.post("https://v1.captchasolv.com/solve", json={
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "TurnstileTaskProxyless",
        "websiteURL": "https://example.com",
        "websiteKey": "0x4AAAAAAAB..."
    }
}, timeout=130)

token = response.json()["solution"]["token"]
# Submit token in the cf-turnstile-response form field
const response = await axios.post('https://v1.captchasolv.com/solve', {
    clientKey: 'YOUR_API_KEY',
    task: {
        type: 'TurnstileTaskProxyless',
        websiteURL: 'https://example.com',
        websiteKey: '0x4AAAAAAAB...'
    }
}, { timeout: 130000 });

const token = response.data.solution.token;

# Response

{
  "errorId": 0,
  "solution": {
    "token": "0.x7rN1bQ9...",
    "userAgent": "Mozilla/5.0..."
  }
}

All Turnstile modes (Managed, Non-Interactive, Invisible) use the same API call.


# Tips

  • Token expiry — ~5 minutes
  • User-Agent — Use the returned userAgent in subsequent requests
  • Detection — Look for challenges.cloudflare.com in network requests