Skip to content
Guide

NodeMaven Residential Proxies with NSLSolver: Kasada Headers, Akamai Cookies and cf_clearance in Python and Node.js

NSLSolver TeamPublished 9 min read

NodeMaven serves residential and mobile proxies from gate.nodemaven.com and builds every option into the username, in a fixed order: country, region, city, then session settings such as sid and ttl. This guide generates those usernames in code and passes the result to NSLSolver, so that Kasada x-kpsdk headers, Akamai _abck cookies and Cloudflare cf_clearance cookies are earned on the IP your requests then use, in Python and Node.js.

NSLSolver solves on its servers without a browser and bills only successful solves. Cloudflare Challenge, reCAPTCHA v3 and Akamai require a proxy, because the result belongs to the IP that earned it. NodeMaven's sid, ttl and norotate options decide how long that IP stays yours.

NodeMaven residential proxy format at a glance

Gateway
gate.nodemaven.com:8080 (HTTP), :1080 (SOCKS5)
Authentication
USERNAME-<key>-<value>-...:PASSWORD (no prefix)
Parameter order
country, region, city or zip, isp, type, ipv4, sid, ttl, filter or speed, norotate
Sticky session
-sid-<13 characters> -ttl-30m (60 s to 24 h)
Geo-targeting
-country-us -region-california -city-los_angeles -zip-90039
Full example
http://USERNAME-country-us-region-california-sid-abc123def4567-ttl-30m:PASSWORD@gate.nodemaven.com:8080

From NodeMaven's proxy documentation (docs.nodemaven.com), checked 1 December 2026. USERNAME and PASSWORD are your proxy credentials from the NodeMaven dashboard.

Which NSLSolver solves need a NodeMaven proxy?

Pass the NodeMaven proxy URL in the proxy field of POST https://api.nslsolver.com/solve and send your own requests through the identical URL. Because the session lives in the username, changing the order or the value of any parameter can give you a different IP.

Solve typeProxyWhat is bound to the IPNSLSolver price per 1,000
Cloudflare ChallengeRequiredcf_clearance cookie$1.00
Akamai Bot Manager (beta)Required_abck and bm_sz cookies$2.00
reCAPTCHA v3RequiredThe score depends on the IP$1.00
KasadaOptional, recommendedThe x-kpsdk-ct session$1.50
Cloudflare TurnstileOptional (proxyless by default)Nothing by default$0.80

Only successful solves are billed. NodeMaven bills its proxy traffic separately, under your NodeMaven plan.

How NodeMaven builds a proxy username

There is no user- or customer- prefix: the username is your proxy username followed by -key-value pairs. NodeMaven's dashboard writes them in a fixed sequence, USERNAME -country- -region- -city- or -zip- -isp- -type-mobile -ipv4-true -sid- -ttl- -filter- or -speed- -norotate-true, and the code below follows the same order so the strings match what the dashboard generates.

Countries are two-letter codes in lowercase, never names. Multi-word places use underscores (city-los_angeles, not city-los-angeles), and zip replaces region and city rather than being added to them. HTTP clients use ports 8080 to 9080 or 32000 to 33000, SOCKS5 clients 1080 to 2080 or 42000 to 43000; a SOCKS5 client on 8080 will not connect.

ParameterExampleNotes from NodeMaven's docs
country-country-usTwo-letter code, lowercase.
region-region-californiaRegion or state.
city-city-los_angelesUnderscores for spaces.
zip-zip-90039Used instead of region and city.
sid-sid-abc123def4567Session ID; the dashboard generates 13 characters. A new sid gives a new IP.
ttl-ttl-30mSession length, written in h/m/s (for example 8m20s), from 60 seconds to 24 hours.
norotate-norotate-trueNever swaps the session's IP.

NodeMaven's examples also include a filter parameter (such as -filter-medium) and options for mobile IPs (-type-mobile) and IPv4 only (-ipv4-true). IP whitelisting is available for residential and mobile proxies from the dashboard.

sid, ttl and norotate for cookie replay

cf_clearance is accepted only from the IP that earned it, for the site's Challenge Passage window (30 minutes by default). Akamai's _abck and the Kasada x-kpsdk-ct session are tied to one IP in the same way. Without a sid, NodeMaven rotates the IP on every request and the cookie is useless on the next one.

Add a sid and a ttl that covers the reuse window: -ttl-30m for a default Challenge Passage. Without a ttl, NodeMaven's docs say a sticky session lasts as long as possible, up to 24 hours, which is fine for long scraping runs but makes the session length less predictable. For Akamai, where a mid-session IP change invalidates _abck, -norotate-true asks NodeMaven never to swap the IP.

Geography has to match as well. Keep country, region and city identical for the solve and the replay, and give the Challenge solve an accept_language that fits the country. If the site starts challenging or blocking the IP anyway, generate a new sid and solve again: that is the only rotation these flows need.

Python: cf_clearance on a sticky NodeMaven IP

nodemaven_proxy() takes keyword arguments and writes them in NodeMaven's order, rejecting unknown keys. new_sid() returns 13 characters, the length of the dashboard's sids.

nodemaven_nslsolver.py
# nodemaven_nslsolver.py  (pip install curl_cffi)
import secrets
from curl_cffi import requests

NSL_API_KEY = "nsl_YOUR_API_KEY"
NODEMAVEN_USERNAME = "YOUR_NODEMAVEN_USERNAME"
NODEMAVEN_PASSWORD = "YOUR_NODEMAVEN_PASSWORD"
UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
      "(KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36")

# NodeMaven reads the username parameters in this order.
ORDER = ["country", "region", "city", "zip", "isp", "type", "ipv4", "sid", "ttl", "filter", "speed", "norotate"]


def nodemaven_proxy(**params):
    """gate.nodemaven.com:8080 (HTTP). Parameters are appended to the USERNAME
    as -key-value pairs, no prefix, in NodeMaven's documented order.
    No sid = a new IP on every request."""
    unknown = set(params) - set(ORDER)
    if unknown:
        raise ValueError(f"unknown NodeMaven parameter(s): {unknown}")
    parts = [NODEMAVEN_USERNAME]
    for key in ORDER:
        if params.get(key) is not None:
            parts += [key, str(params[key])]
    return f"http://{'-'.join(parts)}:{NODEMAVEN_PASSWORD}@gate.nodemaven.com:8080"


def new_sid():
    return secrets.token_hex(7)[:13]  # 13 characters, like the dashboard's sids


def solve(payload):
    r = requests.post("https://api.nslsolver.com/solve",
                      headers={"X-API-Key": NSL_API_KEY}, json=payload, timeout=180)
    data = r.json()
    if r.status_code != 200 or not data.get("success"):
        raise RuntimeError(f"NSLSolver {r.status_code}: {data.get('error', data)}")
    return data


def browser_session(proxy, user_agent, accept_language=None, impersonate="chrome"):
    # TLS fingerprint must match the UA: "chrome" for a Chrome UA, "safari_ios"
    # for the iPhone Safari UA that a Challenge solve returns
    s = requests.Session(impersonate=impersonate)
    s.proxies = {"http": proxy, "https": proxy}
    s.headers["User-Agent"] = user_agent
    if accept_language:
        s.headers["Accept-Language"] = accept_language
    return s


# Sticky Californian IP for 30 minutes: solve and replay through the same string.
cf_proxy = nodemaven_proxy(country="us", region="california", sid=new_sid(), ttl="30m")

cf = solve({
    "type": "challenge",
    "url": "https://cf-protected.example.com/",
    "site_key": "0x4AAAAAAA...",
    "proxy": cf_proxy,
    "accept_language": "en-US,en;q=0.9",
})
site = browser_session(cf_proxy, cf["user_agent"], "en-US,en;q=0.9", impersonate="safari_ios")
for name, value in cf["cookies"].items():  # cf_clearance
    site.cookies.set(name, value)

r = site.get("https://cf-protected.example.com/catalog")
print(r.status_code, r.headers.get("cf-mitigated"))  # 200 None when accepted

Python: Kasada x-kpsdk headers through NodeMaven

p_js_path, fp_host and tl_host come from the browser's Network tab. Send the returned headers through the same sid with the same User-Agent, and solve again for every protected call, since x-kpsdk-cd is single-use on most sites.

nodemaven_nslsolver.py
# Same file: Kasada headers on a NodeMaven sticky session.
kasada_proxy = nodemaven_proxy(country="us", sid=new_sid(), ttl="10m")

k = solve({
    "type": "kasada",
    "url": "https://www.kasada-site.example.com/login",
    "user_agent": UA,
    "ua_version": 145,
    "kasada_config": {
        "p_js_path": "/<uuid-1>/<uuid-2>/p.js",       # the target's real p.js path (DevTools > Network)
        "fp_host": "www.kasada-site.example.com",     # host serving /fp
        "tl_host": "api.kasada-site.example.com",     # host receiving POST /tl
    },
    "proxy": kasada_proxy,
})

api = browser_session(kasada_proxy, UA)
r = api.post("https://api.kasada-site.example.com/v1/search",
             headers=k["headers"], json={"q": "..."})
print(r.status_code)  # x-kpsdk-cd is single-use: solve again for the next call

Python: Akamai _abck cookies through NodeMaven

This session is targeted to Los Angeles and uses -norotate-true so the IP behind _abck does not change. Replay all returned cookies with the same User-Agent. Akamai is in beta on NSLSolver.

nodemaven_nslsolver.py
# Same file: Akamai cookies on a city-targeted session that never rotates.
akamai_proxy = nodemaven_proxy(country="us", region="california", city="los_angeles",
                               sid=new_sid(), ttl="1h", norotate="true")

ak = solve({
    "type": "akamai",
    "url": "https://akamai-site.example.com/login",
    "user_agent": UA,
    "proxy": akamai_proxy,  # required for akamai
})

shop = browser_session(akamai_proxy, UA, "en-US,en;q=0.9")
for name, value in ak["cookies"].items():  # _abck, bm_sz, ...
    shop.cookies.set(name, value)
r = shop.get("https://akamai-site.example.com/api/products")
print(r.status_code)  # 403 "Access Denied" = solve again

Node.js: the same flows with undici

nodemavenProxy() builds the same ordered username. undici's ProxyAgent reads the credentials from the URL; encode the password if it contains special characters.

nodemaven-nslsolver.mjs
// nodemaven-nslsolver.mjs  (Node 18+, npm i undici)
import { randomBytes } from "node:crypto";
import { fetch, ProxyAgent } from "undici";

const NSL_API_KEY = "nsl_YOUR_API_KEY";
const NODEMAVEN_USERNAME = "YOUR_NODEMAVEN_USERNAME";
const NODEMAVEN_PASSWORD = "YOUR_NODEMAVEN_PASSWORD";
const UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 " +
  "(KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36";

// Username parameters, in NodeMaven's documented order.
const ORDER = ["country", "region", "city", "zip", "isp", "type", "ipv4", "sid", "ttl", "filter", "speed", "norotate"];

function nodemavenProxy(params) {
  const parts = [NODEMAVEN_USERNAME];
  for (const key of ORDER) if (params[key] !== undefined) parts.push(key, String(params[key]));
  return "http://" + parts.join("-") + ":" + encodeURIComponent(NODEMAVEN_PASSWORD) + "@gate.nodemaven.com:8080";
}
const newSid = () => randomBytes(7).toString("hex").slice(0, 13);

async function solve(payload) {
  const res = await fetch("https://api.nslsolver.com/solve", {
    method: "POST",
    headers: { "X-API-Key": NSL_API_KEY, "Content-Type": "application/json" },
    body: JSON.stringify(payload),
  });
  const data = await res.json();
  if (!res.ok || !data.success) {
    throw new Error("NSLSolver " + res.status + ": " + (data.error || JSON.stringify(data)));
  }
  return data;
}

const cookieHeader = (cookies) =>
  Object.entries(cookies).map(([k, v]) => k + "=" + v).join("; ");

// 1) Cloudflare Challenge on a sticky Californian IP
const cfProxy = nodemavenProxy({ country: "us", region: "california", sid: newSid(), ttl: "30m" });
const cf = await solve({
  type: "challenge",
  url: "https://cf-protected.example.com/",
  site_key: "0x4AAAAAAA...",
  proxy: cfProxy,
  accept_language: "en-US,en;q=0.9",
});
const page = await fetch("https://cf-protected.example.com/catalog", {
  dispatcher: new ProxyAgent(cfProxy),
  headers: { "User-Agent": cf.user_agent, "Accept-Language": "en-US,en;q=0.9", Cookie: cookieHeader(cf.cookies) },
});
console.log("challenge", page.status);

// 2) Kasada
const kProxy = nodemavenProxy({ country: "us", sid: newSid(), ttl: "10m" });
const k = await solve({
  type: "kasada",
  url: "https://www.kasada-site.example.com/login",
  user_agent: UA,
  ua_version: 145,
  kasada_config: {
    p_js_path: "/<uuid-1>/<uuid-2>/p.js",     // the target's real p.js path (DevTools > Network)
    fp_host: "www.kasada-site.example.com",   // host serving /fp
    tl_host: "api.kasada-site.example.com",   // host receiving POST /tl
  },
  proxy: kProxy,
});
const api = await fetch("https://api.kasada-site.example.com/v1/search", {
  method: "POST",
  dispatcher: new ProxyAgent(kProxy),
  headers: { ...k.headers, "User-Agent": UA, "Content-Type": "application/json" },
  body: JSON.stringify({ q: "..." }),
});
console.log("kasada", api.status);

// 3) Akamai on a Los Angeles IP that never rotates
const akProxy = nodemavenProxy({ country: "us", region: "california", city: "los_angeles", sid: newSid(), ttl: "1h", norotate: "true" });
const ak = await solve({ type: "akamai", url: "https://akamai-site.example.com/login", user_agent: UA, proxy: akProxy });
const products = await fetch("https://akamai-site.example.com/api/products", {
  dispatcher: new ProxyAgent(akProxy),
  headers: { "User-Agent": UA, Cookie: cookieHeader(ak.cookies) },
});
console.log("akamai", products.status);
// Node's fetch does not copy Chrome's TLS fingerprint; if a strict site still
// blocks it, send the follow-up requests from Python with curl_cffi.

Full NSLSolver API reference

Troubleshooting NodeMaven with NSLSolver

For the meaning of each NSLSolver status code and of the Cloudflare, Kasada and Akamai errors, see the anti-bot error-code reference.

SymptomLikely causeFix
Targeting ignored or wrong locationParameters out of order, a country name instead of a code, or hyphens in a city name.Follow the documented order, use codes such as us, and write los_angeles.
Connection refusedSOCKS5 client on an HTTP port, or the reverse.HTTP on 8080 (8080-9080, 32000-33000), SOCKS5 on 1080 (1080-2080, 42000-43000).
cf_clearance rejected after a whileNo sid, or a ttl shorter than the reuse window.Add -sid- and -ttl-30m or longer; consider -norotate-true.
ttl not appliedValue outside 60 seconds to 24 hours, or not in h/m/s form.Use values such as 30m, 1h or 8m20s.
NSLSolver 400 Validation failedProxy without a scheme, or a missing required field.Send the full http:// URL and check the field named in the error.
NSLSolver 503 Solve failedThe solve did not complete; it is not billed.Retry with backoff; if it repeats on one sid, generate a new one.

Related

Frequently asked questions

How do I use NodeMaven proxies with NSLSolver?

Build http://USERNAME-country-us-region-california-sid-abc123def4567-ttl-30m:PASSWORD@gate.nodemaven.com:8080 and pass it in the proxy field of POST /solve. Send your follow-up requests through the identical URL so they come from the IP that earned the cookie or headers.

Does the order of NodeMaven parameters matter?

NodeMaven documents a fixed order: country, region, city or zip, isp, type, ipv4, sid, ttl, filter or speed, norotate. Building the username in that order keeps it identical to what the dashboard generates.

What ttl should I use for cf_clearance?

At least as long as you will reuse the cookie. Cloudflare's default Challenge Passage is 30 minutes, so -ttl-30m is a good default. NodeMaven accepts values from 60 seconds to 24 hours.

What does -norotate-true do?

It tells NodeMaven never to swap the session's IP. That suits Akamai and Cloudflare cookies, which stop working when the IP changes mid-session.

What does NSLSolver cost with NodeMaven proxies?

NSLSolver charges per successful solve: $1.00 per 1,000 for Cloudflare Challenge, $1.50 for Kasada and $2.00 for Akamai (beta). Failed solves are not billed. NodeMaven bills its proxy traffic separately under your NodeMaven plan.

Plug your NodeMaven proxies into NSLSolver

Kasada headers, Akamai cookies and cf_clearance through your own residential IPs, solved server-side without a browser. Only successful solves are billed, and you get free credit when you sign up with Google, Gmail or Proton.