For AI agents: a documentation index is available at /llms.txt
Skip to main content

solve

Solves a captcha or other challenge. Can auto-detect the CAPTCHA type or solve a specific type. Uses the same detection logic as BaaS to automatically identify the CAPTCHA type and routes to the appropriate solver. Optionally accepts a specific type to solve.

Example (Auto-detection):

mutation SolveAuto {
goto(url: "https://protected.domain") {
status
}

solve {
found
solved
time
token
}
}

Example (Specific type):

mutation SolveSpecific {
goto(url: "https://protected.domain") {
status
}

solve(type: recaptcha) {
found
solved
time
token
}
}
solve(
type: CaptchaTypes
timeout: Float
wait: Boolean = true
): CaptchaResponse

Arguments​

solve.type ● CaptchaTypes enum​

An enum of the type of captcha to look for and solve. If not provided, auto-detection will be used.

solve.timeout ● Float scalar​

A time, in milliseconds, to wait for a captcha to appear. Only valid when wait = true. If a captcha is found then this timer doesn't have an effect on timing-out the solve Default timeout is 30 seconds, or 30000.

solve.wait ● Boolean scalar​

Whether or not to wait for the Captcha to be present on the page

Type​

CaptchaResponse object​

Response returned after a captcha has been solved

Was this page helpful?