Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Now, click your link in the client.
Which link?
The one without the Xs, that I quoted and edited for you.
Of course, I very much doubt it's going to somehow get a session cookie into the browser, so you'll probably have to do a login first.
https://developer.valvesoftware.com/wiki/Steam_browser_protocol
According to this page i have tried something like that:
steam://open/activateproduct/XXXXX-XXXXX-XXXXX
but it just opens a popup window and doesn't even fill the textbox :(
Yes, because the description on that page doesn't mention the key; you just invented that...
The main challenge is the login -- without a login, you won't even get the page to enter the key. And while you could probably somehow steal an access token from the Steam client to construct session cookies which allows you to access webpages, these expire after a short time.
In my experience, Steam's webpages are pretty good, for the most part (except for one particular support page that I just can't seem to load programmatically). You probably don't even need to "click" on anything -- chances are that the key redemption page just sends a POST with the key anyway, so you would just do THAT and ignore the page.
Still, I wonder what the ultimate goal even is. My bot has various commands to help with the free stuff that Steam hands out occasionally, including an "add-license" command to activate free licenses. I've never felt the need for a "redeem-key" command, since I don't have a source that keeps giving me keys, and I can easily redeem the occasional purchase in the normal client...
Yes, I know, ASF has such a command -- I wonder whether anyone is actually using it for anything, though. I never did back when I still used ASF...
I am developing a game for Steam . I want to create a web platform where steam users can login and redeem their free keys (of my game) that i have assigned for only their username/steamid automatically. I don't want them to copy / paste it for security reasons.
I have made some research and know that the page makes a POST request to https://store.steampowered.com/account/ajaxregisterkey/ and it needs some parameters like product_key, session_id and steamLoginSecure cookie.
I have no intention to steal someones login security data so i am looking for a legitimate way.
Steam has always had a version of their "login with Steam" mechanic to let the site activate a game on the account. How that works, or where to find the documentation -- no idea. And yes, it was extremely popular with some shops and then disappeared over night, but it's still available -- I *have* seen it since.
"steamLoginSecure" is the tricky one, and you can't get that from the outside. From a client perspective, the client requests an access_token from Steam to construct that cookie, but that has limited validity time. I suspect the mechanism is similar when doing a web-login.
Sure, you could make a site where people enter their ACTUAL credentials, but I would just advise anyone to not use such sites. "Login through Stream" exists, and if someone thinks they don't want to use that, they should be ignored.
I am looking for a way to redeem their keys automatically through a steam web api or their steam client app.
Digital stores that are selling steam keys just give you a key as plain text. So it is up to you to copy/paste it to activate on your steam client app or share it someone else.
I would't use such a website that you must put your actual steam credentials either :)
I have asked a steam://command type of url in my original question.