DocumentationAPI v1
Back to All Task Types
Captcha Token•Token & Cookie Bypass~0.9s avg99.6% accuracy$0.70 / 1k

Altcha Captcha (Beta)

POST/api/v1/createTask
POST/api/v1/getTaskResult

Solves Altcha proof-of-work checkbox challenges from the challenge JSON fetched by the widget. Returns the Base64 payload for the altcha form field and the solved number.

View every supported captcha type and compatibility alias.All Task Types →

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
AltchaTaskProxylessProxyless (v1: altcha)Standard Altcha challenges using the JSON payload fetched from challengeurl$0.70
AltchaTaskProxy OptionalUse when submitting via a dedicated proxy session$0.75
How to Locate Required Parameters
  1. Locate the <altcha-widget challengeurl="..."> attribute in the target page HTML.
  2. Fetch the challenge JSON from that challengeurl (contains algorithm, challenge, salt, signature, and maxnumber).
  3. Pass the full challenge JSON object (including any ?expires= or ?edk= query parameters inside salt) to POST /api/v1/createTask.
  4. Submit solution.token in the hidden input named altcha when posting the form.

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use AltchaTaskProxyless, AltchaTask, or canonical v1 name "altcha".
Example: "AltchaTaskProxyless"
websiteURLstringRequired
Full URL of the page rendering the Altcha widget.
Example: "https://example.com/login"
challengeobjectRequired
Exact challenge JSON object returned by the widget challengeurl endpoint.
Example: {"algorithm":"SHA-256","challenge":"6f2a...","salt":"46d5...?expires=1761048664","signature":"9f0c...","maxnumber":100000}
challenge.challengestringRequired
Target hash digest string from the challenge JSON.
Example: "6f2a..."
challenge.saltstringRequired
Full salt value including any ?expires= or ?edk= parameters.
Example: "46d5b1c8?expires=1761048664"
challenge.signaturestringRequired
HMAC signature string from the challenge JSON.
Example: "9f0c..."
challenge.maxnumberintegerRequired
Upper search bound (>= 1) provided in the challenge JSON.
Example: 100000
challenge.algorithmstringOptional
Hash algorithm specified by the challenge (default SHA-256).
Example: "SHA-256"

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "AltchaTaskProxyless",
      "websiteURL": "https://example.com/login",
      "challenge": {
        "algorithm": "SHA-256",
        "challenge": "6f2a",
        "salt": "46d5b1c8?expires=1761048664",
        "signature": "9f0c",
        "maxnumber": 100000
      }
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "token": "eyJhbGdvcml0aG0iOiJTSEEtMjU2IiwiY2hhbGxlbmdlIjoiNmYyYSIsIm51bWJlciI6NDgxMjB9",
    "number": 48120,
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
  }
}
Response FieldTypeDescription
solution.tokenstringBase64-encoded JSON payload to submit in the altcha form field.
solution.numberintegerSolved numeric nonce matching the target challenge hash.
solution.user_agentstringUser-Agent associated with the solved session.

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
INVALID_CHALLENGE_PAYLOADMissing salt parameters or expired challenge timestamp.Fetch a fresh challenge JSON and pass challenge.salt verbatim without stripping query parameters.
Best Practices & Billing Protection
  • Submit the solved token before the ?expires= timestamp inside challenge.salt lapses.
  • Always pass the complete salt string unmodified, including any ?edk= parameters.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →