Register Free 中文版
 Browse all 23 API docs & guides

Steam Recovery / Register

Steam Recovery & Register flow with Preflight and Enterprise APIs

Quick Start: Register free to get your User-Token →  |  Optional header: Developer-Id: hqLmMS

preflight api request preflight api to get useragent and proxy region

JAVASCRIPT
preflight = request(
  "http://api.nocaptcha.io/api/wanda/hcaptcha/preflight",
  { "User-Token": "your_token" },
  {
    sitekey: "steam_recovery", // recovery
    sitekey: "steam_register", // register
  },
);
if (preflight.success) {
  preflight_uuid = preflight.data.preflight_uuid;
  userAgent = preflight.data.data.navigator.userAgent;
  region = preflight.data.data.region;
} else {
  // low score or other reason
  return;
}

if (preflight.data.allowPassProxy) {
  proxy = `socks5://xxxxxx-${region}-xxxxxx-sessTime-5:xxx@ip:port`;
} else {
  proxy = null;
}

// recovery
url = "https://help.steampowered.com/en/wizard/RefreshCaptcha";
headers = `Connection: keep-alive
Content-Length: 77
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie:
Origin: https://help.steampowered.com
User-Agent: ${userAgent}
X-Requested-With: XMLHttpRequest
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://help.steampowered.com/en/wizard/HelpWithLoginInfo?issueid=406
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9`;

// register
url = "https://store.steampowered.com/join/refreshcaptcha/";
headers = `Host: store.steampowered.com
Connection: keep-alive
Content-Length: 18
Accept: text/javascript, text/html, application/xml, text/xml, */*
Content-type: application/x-www-form-urlencoded; charset=UTF-8
Cookie:
Origin: https://store.steampowered.com
User-Agent: ${userAgent}
X-Prototype-Version: 1.7
X-Requested-With: XMLHttpRequest
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://store.steampowered.com/join/
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9`;

resp = request(url, headers, proxy);
sitekey = resp.sitekey;
if (
  sitekey !== "eb9cbe72-814a-4392-b9b2-f8965f3686ee" &&
  sitekey !== "e18a349a-46c2-46a0-87a8-74be79345c92" &&
  sitekey !== "de4aa7b0-f4a6-41a6-8334-358c70743fbc" &&
  sitekey !== "20e8e2a6-6908-4840-9814-912e9ea4683c"
) {
  // skip and use next proxy (ip)
  return;
}

resp = request(
  "http://api.nocaptcha.io/api/wanda/hcaptcha/enterprise",
  { "User-Token": "your_token" },
  {
    preflight_uuid: preflight_uuid, // keep session
    proxy: proxy,
    sitekey: sitekey,
    region: region,
  },
  proxy,
);

token = resp.data.generated_pass_UUID;
// request to steam
Ready to integrate Steam Recovery / Register? Register Free & Get API Key →  |  View Service Directory →