NSLSolver
v1.0.0Solve Cloudflare Turnstile, Cloudflare Challenge, Kasada, Akamai and reCAPTCHA v3 for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
solve_turnstile Solve Cloudflare Turnstile
Solve a Cloudflare Turnstile widget and return a token (~250 ms, $0.80 per 1,000). site_key is the data-sitekey attribute (starts with 0x4AAAA...) of the .cf-turnstile element, or the sitekey passed to turnstile.render(). Submit the returned token as the cf-turnstile-response form field (or wherever the site sends it). Tokens are single-use and expire after ~300 s. No proxy needed.
| Parameter | Type | Description |
|---|---|---|
site_key * | string | Turnstile data-sitekey, e.g. 0x4AAAAAAA... |
url * | string | Full URL of the page where the protection is loaded. |
action | string | Only if the widget sets data-action. Must match exactly. |
cdata | string | Only if the widget sets data-cdata. Must match exactly. |
proxy | string | Optional. Turnstile is solved proxyless by default. |
user_agent | string | Optional User-Agent to solve with. |
solve_cloudflare_challenge Solve Cloudflare Challenge (cf_clearance)
Solve a Cloudflare managed challenge / "Just a moment..." interstitial and return the cf_clearance cookie plus the user_agent it is bound to (~2.5 s, $1.00 per 1,000). site_key is the challenge widget id (0x...): in the browser Network tab, find the request to challenges.cloudflare.com ending in /new/normal and copy the path segment after /rch/xxxxx/. A proxy is required; replay cf_clearance through the same proxy with the returned user_agent.
| Parameter | Type | Description |
|---|---|---|
proxy * | string | Required. cf_clearance is bound to this proxy exit IP. |
site_key * | string | Challenge widget id (0x...). |
url * | string | Full URL of the page where the protection is loaded. |
accept_language | string | Optional Accept-Language override, e.g. en-US,en;q=0.9 |
user_agent | string | Optional override; use the UA you will replay the cookie with. |
solve_kasada Solve Kasada
Solve Kasada (KPSDK) bot protection and return the x-kpsdk-ct / x-kpsdk-cd / x-kpsdk-v / x-kpsdk-h headers to replay on the protected API (~6 s, $1.50 per 1,000). p_js_path is the path of the Kasada p.js script loaded by the page (starts with /, looks like /<uuid>/<uuid>/p.js); fp_host serves the fingerprint page; tl_host is the host receiving the /tl request.
| Parameter | Type | Description |
|---|---|---|
fp_host * | string | Hostname serving the Kasada fingerprint page, e.g. passport.twitch.tv |
p_js_path * | string | Path of Kasada p.js, e.g. /149e9513-.../2d206a39-.../p.js |
tl_host * | string | Hostname of the /tl token endpoint, e.g. gql.twitch.tv |
url * | string | Full URL of the page where the protection is loaded. |
cd_constant | string | Hex constant for the CD proof-of-work, only if the site needs one. |
proxy | string | |
ua_version | integer | Chrome major version matching user_agent, e.g. 145. |
user_agent | string | Recommended: the UA you will replay the headers with. |
solve_akamai Solve Akamai Bot Manager (beta)
Solve Akamai Bot Manager and return validated cookies (_abck, bm_sz, ak_bmsc) (~9 s, $2.00 per 1,000, beta). url is the protected page that loads the Akamai sensor script. Replay the cookies with the same user_agent and through the same proxy.
| Parameter | Type | Description |
|---|---|---|
proxy * | string | Required. _abck is bound to this proxy exit IP. |
url * | string | Full URL of the page where the protection is loaded. |
user_agent * | string | Required. Akamai fingerprints the UA; replay with the same one. |
solve_recaptcha_v3 Solve reCAPTCHA v3 / Enterprise
Solve Google reCAPTCHA v3 or reCAPTCHA Enterprise (score-based) and return a token (~4.5 s, $1.00 per 1,000). site_key is the render= / data-sitekey value (usually starts with 6L). Set enterprise=true when the page loads recaptcha/enterprise.js. action must match the action the site passes to grecaptcha.execute. Submit the token as g-recaptcha-response.
| Parameter | Type | Description |
|---|---|---|
proxy * | string | Required. The score depends partly on the exit IP. |
site_key * | string | reCAPTCHA site key, usually 6L... |
url * | string | Full URL of the page where the protection is loaded. |
action | string | Action passed to grecaptcha.execute. Defaults to "verify". |
enterprise | boolean | true for reCAPTCHA Enterprise (enterprise.js). |
user_agent | string |
get_balance Get NSLSolver balance
Return the account balance in USD, the captcha types this API key may solve, and the captchas-per-minute limit (max_cpm, current_cpm, cpm_limit). Free; limited to 30 calls per minute per IP.