Solve a Cloudflare Turnstile or WAF challenge
solve_turnstileClear a Cloudflare Turnstile challenge and obtain a single-use token for form submission. Provide the sitekey and the exact page URL where the challenge renders.
Instructions
Clear a Cloudflare challenge and return a token. gate is "turnstile" for an embedded widget (there is a data-sitekey in the page) or "waf" for a full-page Cloudflare interstitial. sitekey and url are both required; the url must be the page the challenge actually renders on, because a sitekey is bound to its configured hostnames. Tokens are single-use and expire in minutes — request one at the moment you submit. Failed solves are never billed. Requires SOLVEGATE_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page URL the challenge renders on | |
| gate | Yes | Which challenge type to clear | |
| proxy | No | Optional egress proxy URL to solve through | |
| action | No | Optional Turnstile action label, if the widget sets one | |
| sitekey | Yes | The target's sitekey, e.g. 0x4AAAAAAA… |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| mode | Yes | sandbox tokens NEVER clear a real gate | |
| token | Yes | Submit this as the cf-turnstile-response field | |
| billed | Yes | ||
| status | Yes | ||
| solveMs | Yes | ||
| summary | Yes | ||
| errorCode | Yes | ||
| expiresAt | Yes | Unix seconds after which the token is worthless |