Solve ALTCHA
capskip_solve_altchaSolve ALTCHA proof-of-work challenges by fetching the challenge URL or providing challenge JSON, and get a verification token for the altcha form field.
Instructions
Solve an ALTCHA proof-of-work challenge. ALTCHA is not a recognition captcha — there is nothing to read; the client brute-forces a number that satisfies a challenge, so a solve is deterministic and takes milliseconds. Give it either challenge_url (the endpoint the fetches from, which CapSkip will fetch) or challenge_json (the challenge document itself). Returns a token to put in the page's form field named altcha, verbatim. IMPORTANT: challenges expire quickly — some sites inside two minutes — so read the challenge immediately before calling and submit the token promptly. An expired challenge is rejected with a bare "verification failed" that looks exactly like a wrong answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the page the captcha appears on, including scheme. | |
| proxy | No | Fetch the challenge through this proxy. Used ONLY for the challenge_url fetch — an inline challenge_json never touches the network. | |
| timeout | No | Seconds to wait before giving up. Maximum 600. | |
| challenge_url | No | The endpoint the ALTCHA widget fetches its challenge from, e.g. 'https://site.com/altcha/challenge'. CapSkip fetches it for you. Pass this or challenge_json. | |
| challenge_json | No | The challenge document itself, as a JSON string, when you already have it. Solved locally with no network request. Pass this or challenge_url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| token | Yes | ||
| number | No | ||
| captchaId | Yes | ||
| solveSeconds | Yes |