Getting Started

CaptchaAI Proxy Configuration Guide

Proxies route CaptchaAI's solving traffic through your chosen IP address. They are mandatory for Cloudflare Challenge and recommended for better success rates on other CAPTCHA types. This guide covers setup from scratch.


When you need a proxy

CAPTCHA type Proxy required? Why
Cloudflare Challenge Yes (mandatory) cf_clearance cookie is bound to solving IP
Cloudflare Turnstile Recommended Improves success rate
reCAPTCHA v2/v3 Optional Reduces challenge difficulty
reCAPTCHA Enterprise Recommended Better scores with residential IPs
Image/OCR No No IP binding in the solution
GeeTest Optional Depends on target site

Proxy format

CaptchaAI requires two parameters for proxy configuration:

proxytype: HTTP | HTTPS | SOCKS4 | SOCKS5
proxy: host:port:username:password

With authentication

data = {
    "key": "YOUR_API_KEY",
    "method": "userrecaptcha",
    "googlekey": "SITEKEY",
    "pageurl": "https://example.com",
    "proxytype": "HTTP",
    "proxy": "192.168.1.1:8080:myuser:mypassword",
    "json": 1
}

Without authentication

data = {
    "key": "YOUR_API_KEY",
    "method": "cloudflare_challenge",
    "pageurl": "https://example.com",
    "proxytype": "HTTP",
    "proxy": "192.168.1.1:8080",
    "userAgent": "Mozilla/5.0 ...",
    "json": 1
}

Proxy types

HTTP proxy

The most common type. Works with most residential proxy providers.

data["proxytype"] = "HTTP"
data["proxy"] = "host:port:user:pass"

HTTPS proxy

Same as HTTP but with SSL/TLS encryption between your proxy and the target. Use when your proxy provider requires SSL.

data["proxytype"] = "HTTPS"
data["proxy"] = "host:port:user:pass"

SOCKS5 proxy

Lower-level proxy protocol. Handles any traffic type but requires SOCKS5 support in the solving infrastructure.

data["proxytype"] = "SOCKS5"
data["proxy"] = "host:port:user:pass"

SOCKS4 proxy

Older protocol with no authentication support. Rarely needed.

data["proxytype"] = "SOCKS4"
data["proxy"] = "host:1080"

Residential vs datacenter proxies

Feature Residential Datacenter
IP source Real ISP (home/mobile) Cloud provider
Detection risk Low High
CAPTCHA difficulty Lower (fewer challenges) Higher (more challenges)
Cost Higher Lower
Best for Cloudflare, reCAPTCHA Image/OCR, testing

Recommendation: Use residential proxies for Cloudflare Challenge and reCAPTCHA Enterprise. Datacenter proxies work for Image/OCR and development.


Common proxy providers format mapping

Different proxy providers format connections differently. Here is how to convert:

Standard format

Provider gives: http://user:pass@host:port
CaptchaAI needs: proxytype=HTTP, proxy=host:port:user:pass

IP-whitelisted (no auth)

Provider gives: host:port
CaptchaAI needs: proxytype=HTTP, proxy=host:port

Rotating proxy with session

Provider gives: http://user-session-abc123:pass@gate.provider.com:5432
CaptchaAI needs: proxytype=HTTP, proxy=gate.provider.com:5432:user-session-abc123:pass

Testing proxy before use

Always verify your proxy works before sending it to CaptchaAI:

import requests

proxy_url = "http://user:pass@host:port"

try:
    resp = requests.get("https://httpbin.org/ip", proxies={
        "http": proxy_url,
        "https": proxy_url
    }, timeout=10)
    print(f"Proxy IP: {resp.json()['origin']}")
except Exception as e:
    print(f"Proxy failed: {e}")

Special characters in credentials

If your password contains @, :, #, or other special characters, URL-encode them:

from urllib.parse import quote

password = "p@ss:w0rd#123"
encoded_password = quote(password, safe="")
# Result: p%40ss%3Aw0rd%23123

data["proxy"] = f"host:port:user:{encoded_password}"

Cloudflare Challenge — proxy binding

For Cloudflare Challenge, the proxy used during solving must be the same proxy used for subsequent requests:

PROXY = "host:port:user:pass"
USER_AGENT = "Mozilla/5.0 ..."

# Solve with these
data = {
    "key": "YOUR_API_KEY",
    "method": "cloudflare_challenge",
    "pageurl": "https://example.com",
    "proxytype": "HTTP",
    "proxy": PROXY,
    "userAgent": USER_AGENT,
    "json": 1
}

# Browse with the same proxy and User-Agent
session = requests.Session()
session.headers["User-Agent"] = USER_AGENT
session.proxies = {
    "http": f"http://user:pass@host:port",
    "https": f"http://user:pass@host:port"
}
session.cookies.set("cf_clearance", solved_value, domain=".example.com")

FAQ

Do I need a proxy for reCAPTCHA v2?

No. Proxies are optional for reCAPTCHA v2. However, using a residential proxy may reduce the difficulty of image challenges.

Can I use free proxies?

Not recommended. Free proxies are slow, unreliable, and often blacklisted. They will result in low solve rates and frequent errors.

My proxy uses IP whitelisting. Will it work?

Only if CaptchaAI's servers are whitelisted. Since CaptchaAI connects from its own IPs, IP-whitelisted proxies usually fail. Switch to username/password authentication.


Configure proxies with CaptchaAI

Set up reliable proxy configuration at captchaai.com.


Discussions (0)

No comments yet.

Related Posts

API Tutorials Proxy Authentication Methods for CaptchaAI API
Configure proxy authentication with Captcha AI — IP whitelisting, username/password, SOCKS 5, and passing proxies directly to the solving API.

Configure proxy authentication with Captcha AI — IP whitelisting, username/password, SOCKS 5, and passing prox...

Automation Python reCAPTCHA v2
Mar 09, 2026
Reference CAPTCHA Token Injection Methods Reference
Complete reference for injecting solved CAPTCHA tokens into web pages.

Complete reference for injecting solved CAPTCHA tokens into web pages. Covers re CAPTCHA, Turnstile, and Cloud...

Automation Python reCAPTCHA v2
Apr 08, 2026
Reference Chrome DevTools Protocol + CaptchaAI: Low-Level CAPTCHA Automation
Use Chrome Dev Tools Protocol (CDP) directly for CAPTCHA automation with Captcha AI — handleing Web Driver detection, intercepting network requests, and injecti...

Use Chrome Dev Tools Protocol (CDP) directly for CAPTCHA automation with Captcha AI — handleing Web Driver det...

Automation Python reCAPTCHA v2
Jan 12, 2026
Troubleshooting CaptchaAI Proxy Connection Failures: Diagnosis and Fixes
Troubleshoot proxy connection failures when using Captcha AI.

Troubleshoot proxy connection failures when using Captcha AI. Fix timeout errors, authentication issues, and p...

Python reCAPTCHA v2 Web Scraping
Mar 27, 2026
Integrations Bright Data + CaptchaAI: Complete Proxy Integration Guide
Integrate Bright Data's residential, datacenter, and ISP proxies with Captcha AI for high-success-rate CAPTCHA solving at scale.

Integrate Bright Data's residential, datacenter, and ISP proxies with Captcha AI for high-success-rate CAPTCHA...

Python reCAPTCHA v2 Cloudflare Turnstile
Feb 21, 2026
API Tutorials SOCKS5 Proxy + CaptchaAI: Setup and Configuration Guide
Configure SOCKS 5 proxies with Captcha AI for CAPTCHA solving — setup in Python, Node.js, Selenium, and Puppeteer with authentication.

Configure SOCKS 5 proxies with Captcha AI for CAPTCHA solving — setup in Python, Node.js, Selenium, and Puppet...

Automation Python reCAPTCHA v2
Jan 23, 2026
Tutorials Pytest Fixtures for CaptchaAI API Testing
Build reusable pytest fixtures to test CAPTCHA-solving workflows with Captcha AI.

Build reusable pytest fixtures to test CAPTCHA-solving workflows with Captcha AI. Covers mocking, live integra...

Automation Python reCAPTCHA v2
Apr 08, 2026
Reference Browser Session Persistence for CAPTCHA Workflows
Manage browser sessions, cookies, and storage across CAPTCHA-solving runs to reduce repeat challenges and maintain authenticated state.

Manage browser sessions, cookies, and storage across CAPTCHA-solving runs to reduce repeat challenges and main...

Automation Python reCAPTCHA v2
Feb 24, 2026
Integrations Browser Profile Isolation + CaptchaAI Integration
Browser profile isolation tools create distinct browser environments with unique fingerprints per session.

Browser profile isolation tools create distinct browser environments with unique fingerprints per session. Com...

Automation Python reCAPTCHA v2
Feb 21, 2026
Comparisons WebDriver vs Chrome DevTools Protocol for CAPTCHA Automation
Compare Web Driver and Chrome Dev Tools Protocol (CDP) for CAPTCHA automation — detection, performance, capabilities, and when to use each with Captcha AI.

Compare Web Driver and Chrome Dev Tools Protocol (CDP) for CAPTCHA automation — detection, performance, capabi...

Automation Python reCAPTCHA v2
Mar 27, 2026
Getting Started Migrate from CapMonster Cloud to CaptchaAI
Step-by-step guide to migrate from Cap Monster Cloud to Captcha AI — endpoint mapping, parameter changes, and code migration examples.

Step-by-step guide to migrate from Cap Monster Cloud to Captcha AI — endpoint mapping, parameter changes, and...

Python reCAPTCHA v2 Cloudflare Turnstile
Mar 29, 2026
Getting Started Migrate from Manual CAPTCHA Solving to CaptchaAI API
Step-by-step guide to migrating from manual CAPTCHA solving to Captcha AI API.

Step-by-step guide to migrating from manual CAPTCHA solving to Captcha AI API. Covers code changes, workflow i...

Automation Python reCAPTCHA v2
Jan 15, 2026
Getting Started How to Choose the Right CAPTCHA Solving Method
Guide to selecting the correct Captcha AI method parameter for each CAPTCHA type — re CAPTCHA, Turnstile, Gee Test, image, and .

Guide to selecting the correct Captcha AI method parameter for each CAPTCHA type — re CAPTCHA, Turnstile, Gee...

Automation Cloudflare Turnstile
Mar 26, 2026