Skip to main content
CaptchaKings
  • Início
  • Características
  • Preços
  • Demonstração
    • Como funciona
    • Forum
    • Rotador IP
    • Blog
Search
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
Entrar Cadastre-se gratuitamente
  • EN English
  • ID Indonesia
  • RU Русский
  • ES Español
  • PT Português
  • VI Tiếng Việt
  • ZH 中文
Entrar Cadastre-se gratuitamente

cURL Captcha Solver: Solve Captchas From the Terminal (2026)

Terminal one-liners, bash scripts & PowerShell — updated August 2026

TL;DR — QUICK ANSWER

How to solve Captchas with cURL?

Image captchas solve in one cURL command — live today. The reCAPTCHA two-command flow (create the task, then poll) is a planned preview — see /supported-captchas. Copy the bash script below for a cron-ready solver. $0.50 free balance on signup, no credit card required.

💰 Price: $0.80 / 1,000 image solves
⚡ Speed: ~1.2s median execution
🎯 Command: Single cURL POST request
🎁 Free Trial: $0.50 balance on signup

📋 Status: Live today via the API: image/text captchas ($0.80 per 1,000, ~1.2s median) plus GeeTest, Tencent, xCaptcha, MTCaptcha and Amazon WAF ($1.00 per 1,000) — measured numbers at /benchmarks. reCAPTCHA, hCaptcha and Cloudflare Turnstile are planned, not yet available — see /supported-captchas.

Image Captcha: One Command

The image API is synchronous — upload the file, get the text back immediately. This is the same endpoint documented in the API docs:

bash
curl -X POST https://captchakings.com/api/process.php \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]"

Response (success):

json
{
  "success": true,
  "data": {
    "prediction": "7H3kP",
    "confidence": 97.5,
    "process_time": 0.84
  },
  "billing": {
    "amount_charged": 0.0008,
    "balance_remaining": 0.4992,
    "plan": "payg"
  }
}

Extract just the text with jq:

bash
curl -s -X POST https://captchakings.com/api/process.php \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" | jq -r '.data.prediction'

Amazon WAF Image Challenge: One Command (Live)

The Amazon solver is also synchronous — upload the challenge image, get the click coordinates back in one response (~8s median, set a 30s client timeout). reCAPTCHA v2/v3 and hCaptcha are planned, not yet available — see /supported-captchas:

bash
curl -s -X POST https://captchakings.com/api/amazon.php \
  -F "api_key=YOUR_API_KEY" \
  -F "target_class=car" \
  -F "[email protected]" | jq '.coordinates'

Retrying the same challenge after a transient failure? Add -F "is_retry=true" so you are not billed twice for it. reCAPTCHA's token flow will be documented at launch — the endpoints on this page are the live ones.

Full Bash Solver Script — Amazon WAF Flow (Live, Cron-Ready)

Save this as solve_amazon.sh. It prints the coordinates JSON on success and exits non-zero on failure, so cron mails you errors automatically:

solve_amazon.sh
#!/usr/bin/env bash
# Usage: ./solve_amazon.sh <challenge_image> <target_class>
set -euo pipefail

API_KEY="${CAPTCHAKINGS_KEY:?Set CAPTCHAKINGS_KEY env var}"
IMAGE="$1"
TARGET_CLASS="$2"

# Synchronous solve — one POST, coordinates in the response (~8s median, allow 30s)
RESULT=$(curl -s --max-time 30 -X POST "https://captchakings.com/api/amazon.php" \
  -F "api_key=$API_KEY" \
  -F "target_class=$TARGET_CLASS" \
  -F "file=@$IMAGE")

echo "$RESULT" | jq -e '.coordinates' >/dev/null || { echo "Solve failed: $RESULT" >&2; exit 1; }
echo "$RESULT" | jq -c '.coordinates'

Run it from cron (e.g. every 15 minutes, result saved to a file):

crontab
*/15 * * * * CAPTCHAKINGS_KEY=ck_xxx /opt/scripts/solve_amazon.sh /tmp/challenge.png "car" > /var/run/amazon_coords.json

PowerShell on Windows

No curl needed — Invoke-RestMethod -Form handles the multipart endpoints natively on PowerShell 7+:

solve_amazon.ps1
$ApiKey = $env:CAPTCHAKINGS_KEY

# Synchronous Amazon WAF solve — one POST, coordinates in the response
$r = Invoke-RestMethod -Method Post `
  -Uri "https://captchakings.com/api/amazon.php" `
  -TimeoutSec 30 `
  -Form @{
    api_key = $ApiKey
    target_class = "car"
    file = Get-Item ".\challenge.png"
  }

$r.coordinates | ConvertTo-Json -Compress

For the image API on PowerShell 7+, multipart is one call:

image.ps1 (PowerShell 7+)
$r = Invoke-RestMethod -Method Post `
  -Uri "https://captchakings.com/api/process.php" `
  -Headers @{ Authorization = "Bearer $env:CAPTCHAKINGS_KEY" } `
  -Form @{ captcha = Get-Item ".\captcha.jpg" }

$r.data.prediction

Endpoint Recap

Captcha TypeEndpointResult
Image captchacaptchakings.com/api/process.phpSolved text (synchronous) — live, ~1.2s median, $0.80 / 1,000
AWS WAF (Amazon)captchakings.com/api/amazon.phpClick coordinates (synchronous) — live, ~8s median, $1.00 / 1,000
reCAPTCHA / hCaptcha / TurnstileAnnounced at launchPlanned — token flow at launch, see /supported-captchas
2Captcha-compatiblecaptchakings.com/in.php / res.phpDrop-in migration format

Best Practices

  • -s for scripts, -v for debugging — silent mode keeps output clean for pipes and jq.
  • Set generous timeouts — image OCR solves in ~1.2s median; Amazon WAF is inference-heavy at ~8s median, so allow 30s (see /benchmarks).
  • Keep the key in an env var (CAPTCHAKINGS_KEY), not in the script or crontab history.
  • Exit codes matter in cron: the bash script above exits 1 on failure so cron notifies you instead of silently writing garbage.
  • Batch image solves with xargs for bulk jobs: ls *.jpg | xargs -P8 -I{} curl ... -F "captcha=@{}".

FAQ

Can I solve a captcha with a single cURL command?

Yes — both live APIs are synchronous: one multipart POST to /api/process.php returns the solved text, and one to /api/amazon.php returns the challenge coordinates. reCAPTCHA support is planned, not yet live — see /supported-captchas and /recaptcha-solver.

How do I parse the JSON in bash?

With jq: curl ... | jq -r '.data.prediction' for images, jq '.coordinates' for Amazon challenges. jq is in every major distro's repos and on Windows via winget.

Does this work in PowerShell?

Yes — Invoke-RestMethod -Form handles multipart uploads on PowerShell 7+. Examples above.

Can I run this from cron?

Yes — the bash script prints only the token to stdout and exits non-zero on failure, so cron emails you errors. A sample crontab line is included above.

Integration Guides for Other Languages

  • Python Captcha Solver Guide
  • Node.js Captcha Solver Guide
  • PHP Captcha Solver Guide
  • reCAPTCHA Solver — How It Works
  • Full API Documentation
  • Free Browser Tools (no code)

Start solving from your terminal today

$0.50 free balance on signup — test with your own captchas.

Get Your API Key
CaptchaKings

CaptchaKings (Captcha Kings) é uma API solucionadora de captcha com IA para automação moderna: rápida, precisa e transparente

Produtos

  • Características
  • Tencent / Captcha Chinês NOVO
  • xCaptcha Solver NOVO
  • Google reCAPTCHA NOVO
  • Documentação da API
  • Preços
  • Como funciona
  • CAPTCHAs suportados
  • Testes de desempenho

Recursos

  • Docs para desenvolvedores
  • Guia do Selenium NOVO
  • Guia do Playwright NOVO
  • Guia do Puppeteer NOVO
  • Ferramentas gratuitas NOVO
  • Extensão para Chrome NOVO
  • Blog e tutoriais
  • Rotacionador de IP

Comparações e FAQ

  • Por que o CaptchaKings?
  • Comparação de preços
  • vs 2Captcha
  • vs CapSolver
  • vs CapMonster
  • vs Anti-Captcha
  • Para agentes de IA

Empresa

  • Sobre nós
  • Demonstração
  • Painel
  • Suporte
  • Política de privacidade
  • Política de reembolso
  • Termos de serviço
  • SLA 99.9%

© 2026 CaptchaKings.com. Todos os direitos reservados.

🚀 Get Started Free
🎁

Wait! Don't Miss Out

Sign up now and get a $0.50 FREE BALANCE to test our API.

Claim Bonus & Sign Up Free

Utilizamos cookies para aprimorar sua experiência, analisar o tráfego do site e otimizar o desempenho da API. Ao continuar navegando, você concorda com nossa política de cookies. Política de Privacidade