Steam Guard

πŸ” Generate a Steam Guard login code

Generates the current 5-character Steam Guard login code (TOTP) from a sharedsecret β€” the same code the Steam mobile app shows. Stateless: the secret is supplied in the body and never stored.

post/steam/api/guard/code

Request

  • Base URL: https://www.steamwebapi.com
  • URL: https://www.steamwebapi.com/steam/api/guard/code
  • Auth: API key in query parameter key

Request body

sharedsecretstring password required
steamidstring

Optional, only used to derive a device id.

deviceidstring

Example request

{
  "sharedsecret": "base64-or-hex-shared-secret",
  "steamid": "76561198000000000"
}

Response

Current Steam Guard code with expiry information.

Changes

No recorded changes to this operation across all 1 revision of this API.