Account
π¦ Automate Steam Login Process
Baseurl: https://www.steamwebapi.com/steam/api/steamloginsecure
π¬ **What this endpoint does:**
- Automates your Steam login process, including for trading, market, and other Steam Community features.
- With the `steamLoginSecure` cookie, you can use our Trading API and build easy-to-use trading bots, market trackers, and more.
π οΈ **How to use:**
There are **two ways to authenticate**:
1. **Username + Password Login**
- Send a POST request with your Steam `username` and `password` in the request body.
- If your account is protected by Steam Guard, include the `code` parameter from your mobile authenticator.
2. **Refresh Token Login**
- Instead of username/password, you can provide a `steamrefreshtoken` (JWT).
- This token is returned after the initial login and allows you to request a fresh `steamLoginSecure` cookie without needing to re-enter credentials.
π¨ **Important Note:**
- Do **not** provide both login credentials and `steamrefreshtoken` at the same time.
- One of the two options must be present, not both.
π **Additional Info:**
- The login process is handled securely. No password is stored server-side.
- This endpoint is ideal for building:
- Trading bots
- Market analyzers
- Automated session checkers
π¦ **Response:**
- On success, you will receive the following cookies:
- `steamLoginSecure` β required for authenticated Steam Community actions
- `sessionid` β required for most web interactions
- `browserid` β identifies the browser/session
- `steamrefreshtoken` β reusable token to fetch new `steamLoginSecure` cookies later
π **Token Lifespan**
- The `steamrefreshtoken` is typically valid for **up to 6 months**
- It can be used repeatedly to retrieve new `steamLoginSecure` cookies without logging in again.
post/steam/api/steamloginsecure
Request
- Base URL: https://www.steamwebapi.com
- URL: https://www.steamwebapi.com/steam/api/steamloginsecure
- Auth: API key in query parameter key
Request body
Example request
{
"username": "user123",
"password": "password123",
"code": "123456",
"steamrefreshtoken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Response
Successfully logged in to Steam. Cookies are returned.
Example response
{
"success": true,
"message": "Successfully logged in to steamcommunity.com",
"cookies": {
"steamloginsecure": "steamLoginSecureToken...",
"steamloginsecureexp": "2025-04-01T12:00:00+00:00",
"steamrefreshtoken": "steamId||refreshToken...",
"sessionid": "xyz123",
"browserid": "abc456",
"steamid": "76561198000000000"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.