Troubleshooting

ERROR_BAD_PARAMETERS: Request Validation and Fix Guide

ERROR_BAD_PARAMETERS means your request is missing required fields or has invalid values. This guide lists all required parameters per CAPTCHA type.


Required Parameters by Type

reCAPTCHA v2

Parameter Required Example
key Yes Your API key
method Yes userrecaptcha
googlekey Yes 40-char sitekey
pageurl Yes https://example.com
data = {
    "key": "YOUR_API_KEY",
    "method": "userrecaptcha",
    "googlekey": "6Le-wvkSAAAAAPBMRTvw...",
    "pageurl": "https://example.com",
    "json": 1,
}

reCAPTCHA v3

Parameter Required Example
key Yes Your API key
method Yes userrecaptcha
googlekey Yes Sitekey
pageurl Yes Full URL
version Yes v3
action Recommended submit, login
min_score Optional 0.3, 0.7, 0.9
data = {
    "key": "YOUR_API_KEY",
    "method": "userrecaptcha",
    "googlekey": "SITEKEY",
    "pageurl": "https://example.com",
    "version": "v3",
    "action": "submit",
    "min_score": "0.7",
    "json": 1,
}

Cloudflare Turnstile

Parameter Required Example
key Yes Your API key
method Yes turnstile
sitekey Yes Turnstile sitekey
pageurl Yes Full URL
data = {
    "key": "YOUR_API_KEY",
    "method": "turnstile",
    "sitekey": "0x4AAAAAAAB...",
    "pageurl": "https://example.com",
    "json": 1,
}

GeeTest v3

Parameter Required Example
key Yes Your API key
method Yes geetest
gt Yes GT key from page
challenge Yes Challenge token
pageurl Yes Full URL
data = {
    "key": "YOUR_API_KEY",
    "method": "geetest",
    "gt": "GT_KEY",
    "challenge": "CHALLENGE_TOKEN",
    "pageurl": "https://example.com",
    "json": 1,
}

Image CAPTCHA (Base64)

Parameter Required Example
key Yes Your API key
method Yes base64
body Yes Base64-encoded image
import base64

with open("captcha.png", "rb") as f:
    image_b64 = base64.b64encode(f.read()).decode()

data = {
    "key": "YOUR_API_KEY",
    "method": "base64",
    "body": image_b64,
    "json": 1,
}

BLS CAPTCHA

Parameter Required Example
key Yes Your API key
method Yes bls
sitekey Yes BLS sitekey
pageurl Yes Full URL

Pre-Submit Validation

REQUIRED_PARAMS = {
    "userrecaptcha": ["key", "method", "googlekey", "pageurl"],
    "turnstile": ["key", "method", "sitekey", "pageurl"],
    "geetest": ["key", "method", "gt", "challenge", "pageurl"],
    "base64": ["key", "method", "body"],
    "bls": ["key", "method", "sitekey", "pageurl"],
}


def validate_params(data):
    """Validate required parameters before submission."""
    method = data.get("method")
    if not method:
        raise ValueError("Missing 'method' parameter")

    required = REQUIRED_PARAMS.get(method)
    if not required:
        raise ValueError(f"Unknown method: {method}")

    missing = [p for p in required if not data.get(p)]
    if missing:
        raise ValueError(f"Missing required parameters: {', '.join(missing)}")

    # Format validation
    if "pageurl" in data:
        if not data["pageurl"].startswith(("http://", "https://")):
            raise ValueError("pageurl must start with http:// or https://")

    if "googlekey" in data:
        if len(data["googlekey"]) < 20:
            raise ValueError("googlekey appears too short")

    return True


# Use before every submission
data = {
    "key": "YOUR_API_KEY",
    "method": "userrecaptcha",
    "googlekey": "SITEKEY",
    "pageurl": "https://example.com",
    "json": 1,
}

validate_params(data)

Common Mistakes

Mistake Error Result Fix
method missing BAD_PARAMETERS Add method field
pageurl without https:// BAD_PARAMETERS or PAGEURL error Include full URL
body empty for image CAPTCHA BAD_PARAMETERS Encode image to base64
Wrong method for CAPTCHA type BAD_PARAMETERS Check correct method name
Turnstile using googlekey BAD_PARAMETERS Use sitekey for Turnstile
GeeTest missing challenge BAD_PARAMETERS Extract fresh challenge token

Troubleshooting

Issue Cause Fix
"method" is correct but still errors Typo in parameter name Check exact spelling (case-sensitive)
Works for v2, fails for v3 Missing version=v3 Add version parameter
Image CAPTCHA fails Bad base64 encoding Verify with base64.b64decode(body)
GeeTest always fails Challenge token expired Get fresh challenge before submit

FAQ

Which parameters are case-sensitive?

Parameter names are case-sensitive. Use lowercase: method, googlekey, pageurl. The method value is also case-sensitive: use userrecaptcha, not UserRecaptcha.

Can I send extra parameters?

Yes. Unknown parameters are ignored. This won't cause BAD_PARAMETERS — only missing required ones will.

How do I know which method to use?

Check the CAPTCHA type on the target page. reCAPTCHA → userrecaptcha, Turnstile → turnstile, GeeTest → geetest, Image → base64 or post.



Validate first, solve fast — use CaptchaAI.

Discussions (0)

No comments yet.

Related Posts

DevOps & Scaling Ansible Playbooks for CaptchaAI Worker Deployment
Deploy and manage Captcha AI workers with Ansible — playbooks for provisioning, configuration, rolling updates, and health checks across your server fleet.

Deploy and manage Captcha AI workers with Ansible — playbooks for provisioning, configuration, rolling updates...

Automation Python All CAPTCHA Types
Apr 07, 2026
DevOps & Scaling Blue-Green Deployment for CAPTCHA Solving Infrastructure
Implement blue-green deployments for CAPTCHA solving infrastructure — zero-downtime upgrades, traffic switching, and rollback strategies with Captcha AI.

Implement blue-green deployments for CAPTCHA solving infrastructure — zero-downtime upgrades, traffic switchin...

Automation Python All CAPTCHA Types
Apr 07, 2026
Troubleshooting CaptchaAI API Error Handling: Complete Decision Tree
Complete decision tree for every Captcha AI API error.

Complete decision tree for every Captcha AI API error. Learn which errors are retryable, which need parameter...

Automation Python All CAPTCHA Types
Mar 17, 2026
Tutorials Using Fiddler to Inspect CaptchaAI API Traffic
How to use Fiddler Everywhere and Fiddler Classic to capture, inspect, and debug Captcha AI API requests and responses — filters, breakpoints, and replay for tr...

How to use Fiddler Everywhere and Fiddler Classic to capture, inspect, and debug Captcha AI API requests and r...

Automation Python All CAPTCHA Types
Mar 05, 2026
Tutorials CAPTCHA Handling in Mobile Apps with Appium
Handle CAPTCHAs in mobile app automation using Appium and Captcha AI — extract Web sitekeys, solve, and inject tokens on Android and i OS.

Handle CAPTCHAs in mobile app automation using Appium and Captcha AI — extract Web View sitekeys, solve, and i...

Automation Python All CAPTCHA Types
Feb 13, 2026
Tutorials Streaming Batch Results: Processing CAPTCHA Solutions as They Arrive
Process CAPTCHA solutions the moment they arrive instead of waiting for tasks to complete — use async generators, event emitters, and callback patterns for stre...

Process CAPTCHA solutions the moment they arrive instead of waiting for all tasks to complete — use async gene...

Automation Python All CAPTCHA Types
Apr 07, 2026
Reference CaptchaAI CLI Tool: Command-Line CAPTCHA Solving and Testing
A reference for building and using a Captcha AI command-line tool — solve CAPTCHAs, check balance, test parameters, and integrate with shell scripts and CI/CD p...

A reference for building and using a Captcha AI command-line tool — solve CAPTCHAs, check balance, test parame...

Automation Python All CAPTCHA Types
Feb 26, 2026
DevOps & Scaling Auto-Scaling CAPTCHA Solving Workers
Build auto-scaling CAPTCHA solving workers that adjust capacity based on queue depth, balance, and solve rates.

Build auto-scaling CAPTCHA solving workers that adjust capacity based on queue depth, balance, and solve rates...

Automation Python All CAPTCHA Types
Mar 23, 2026
DevOps & Scaling CaptchaAI Monitoring with Datadog: Metrics and Alerts
Monitor Captcha AI performance with Datadog — custom metrics, dashboards, anomaly detection alerts, and solve rate tracking for CAPTCHA solving pipelines.

Monitor Captcha AI performance with Datadog — custom metrics, dashboards, anomaly detection alerts, and solve...

Automation Python All CAPTCHA Types
Feb 19, 2026
Troubleshooting GeeTest v3 Error Codes: Complete Troubleshooting Reference
Complete reference for Gee Test v 3 error codes — from registration failures to validation errors — with causes, fixes, and Captcha AI-specific troubleshooting.

Complete reference for Gee Test v 3 error codes — from registration failures to validation errors — with cause...

Automation Testing GeeTest v3
Apr 08, 2026
Troubleshooting Turnstile Token Invalid After Solving: Diagnosis and Fixes
Fix Cloudflare Turnstile tokens that come back invalid after solving with Captcha AI.

Fix Cloudflare Turnstile tokens that come back invalid after solving with Captcha AI. Covers token expiry, sit...

Python Cloudflare Turnstile Web Scraping
Apr 08, 2026
Troubleshooting Common GeeTest v3 Errors and Fixes
Diagnose the most common Gee Test v 3 errors — stale challenge, bad parameters, validation failures — and fix them with practical troubleshooting steps.

Diagnose the most common Gee Test v 3 errors — stale challenge, bad parameters, validation failures — and fix...

Automation Testing GeeTest v3
Jan 24, 2026