Tradeoffer

πŸ“¦ Create a Trade Offer on Steam

Baseurl: https://www.steamwebapi.com/steam/api/trade/create?key=YOUR_API_KEY

πŸ’¬ **What this endpoint does:**
- Initiates a new trade offer for a specific user.
- Requires a valid `steamloginsecure`, retrievable from Steam cookies.

πŸ› οΈ **Features:**
- Supports sending items (`myitemassetids`) and requesting items (`partneritemassetids`).
- Trade link and partner Steam ID ensure secure targeting.
- Includes a custom message option for the trade.

🌐 **How to use:**
- Provide required parameters in a JSON payload.
- Use optional parameters like `game` for game-specific trade offers.
post/steam/api/trade/create

Request

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

Query parameters

Your API key for authentication. Retrieve it from your Dashboard (top-right corner).

If you run in production, please set this to 1. Default is 0. This is in future required, and if not set, you will get a warning.

Request body

steamloginsecurestring required

SteamLoginSecure from the cookie of steamcommunity.com or via our extension for automated retrieval.

tradelinkstring required

The trade link of the user you are trading with.

partnersteamidstring required

Steam ID of the trade partner.

messagestring required

Message to include with the trade offer.

gamestring

Optional. The game for the trade offer. Default is cs2.

Example request

{
  "steamloginsecure": "76561198271552942||eyAidHlwIjogIkpXVCIsICJhbGciOiAiRWREU0EiIH0....",
  "partneritemassetids": "5533344212,23534354",
  "myitemassetids": "43543323,2323423423",
  "tradelink": "https://steamcommunity.com/tradeoffer/new/?partner=123456789&token=123456789",
  "partnersteamid": "123456789",
  "message": "This is a test message",
  "game": "cs2"
}

Response

Trade offer successfully created.

Changes

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