Repository navigation
Add To Cart
Revadike edited this page Oct 16, 2026
·
1 revision
Adds a package or bundle to the user's cart.
No known rate limit
Authenticated: Yes
Method:
POSTHost:
store.steampowered.comPath:
/cart/addtocartForm Data:
Name Type Required Description actionstring Yes The action. add_to_cartto add items to the cart.subidnumber No The Steam package ID. Use subid[]for multiple packages.bundleidnumber No The Steam bundle ID quantitynumber No The quantity sessionidstring Yes The value of the sessionidcookieisgiftnumber No When 1, adds the item as a giftgifteeaccountidnumber No The account ID of the gift recipient snrstring No The navigation reference microtxnappidnumber No The Steam AppID of the microtransaction item microtxnassetclassidnumber No The asset class ID of the microtransaction item
Name Type Description successboolean Whether the request was successful itemcountnumber The number of items in the cart contentsobject The cart contents. nullfor the account cart.
POST https://store.steampowered.com/cart/addtocart { action: "add_to_cart", subid: 1730126, sessionid: "a0b1c2d3e4f5g6h7i8j9klmn" }
{
"success": true,
"itemcount": 1,
"contents": null
}