Cloudflare Turnstile
Returns a valid Turnstile token for the page you send, in solution.token, plus the User-Agent to send with it. Add your own proxy with TurnstileTask.
- Managed and non-interactive
- User-Agent in the reply
- Your own proxy
POST /turnstile/getToken
{ "clientKey": "<your API key>",
"task": { "type": "TurnstileTaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "0x4AAA..." } }
curl -X POST "https://solver.mintbin.xyz/turnstile/getToken" \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "TurnstileTaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "0x4AAAAAAA..."
}
}'
<?php
$ch = curl_init("https://solver.mintbin.xyz/turnstile/getToken");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_TIMEOUT => 200,
CURLOPT_HTTPHEADER => ["Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
"clientKey" => "YOUR_API_KEY",
"task" => [
"type" => "TurnstileTaskProxyLess",
"websiteURL" => "https://example.com",
"websiteKey" => "0x4AAAAAAA..."
]
]),
]);
$res = json_decode(curl_exec($ch), true);
if (!is_array($res)) { // no JSON: a network error or HTTP 502/504; retry in a few seconds
throw new RuntimeException("No JSON reply (HTTP " . curl_getinfo($ch, CURLINFO_HTTP_CODE) . ")");
}
if ($res["errorId"] !== 0) {
throw new RuntimeException($res["errorCode"]); // e.g. ERROR_CAPTCHA_UNSOLVABLE
}
echo $res["solution"]["token"] . PHP_EOL; // the token: submit it with the form
echo $res["solution"]["userAgent"] . PHP_EOL; // send this User-Agent when you submit
import requests
payload = {
"clientKey": "YOUR_API_KEY",
"task": {
"type": "TurnstileTaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "0x4AAAAAAA..."
}
}
res = requests.post("https://solver.mintbin.xyz/turnstile/getToken", json=payload, timeout=200).json()
if res["errorId"] != 0:
raise SystemExit(res["errorCode"]) # e.g. ERROR_CAPTCHA_UNSOLVABLE
print(res["solution"]["token"]) # the token: submit it with the form
print(res["solution"]["userAgent"]) # send this User-Agent when you submit
// Node 18+; save as .mjs (top-level await)
const res = await fetch("https://solver.mintbin.xyz/turnstile/getToken", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
clientKey: "YOUR_API_KEY",
task: {
type: "TurnstileTaskProxyLess",
websiteURL: "https://example.com",
websiteKey: "0x4AAAAAAA..."
}
}),
}).then((r) => r.json());
if (res.errorId !== 0) throw new Error(res.errorCode); // e.g. ERROR_CAPTCHA_UNSOLVABLE
console.log(res.solution.token); // the token: submit it with the form
console.log(res.solution.userAgent); // send this User-Agent when you submit