kayusoft May 3, 2024 @ 3:34pm
Steam Key Activation Via Steam Protocol Automatically
Is there any url starts with steam:// to activate steam keys via steam app?
I know there is a link for web like:
https://store.steampowered.com/account/registerkey?key=XXXXX-XXXXX-XXXXX
Last edited by kayusoft; May 6, 2024 @ 6:11am
< >
Showing 1-15 of 21 comments
cSg|mc-Hotsauce May 3, 2024 @ 3:47pm 
Originally posted by kayusoft:
Is there any url starts with steam:// to activate steam keys via steam app?
I know there is a link for web like:
https://store.steampowered.com/account/registerkey

Now, click your link in the client.

:winterbunny2023:
kayusoft May 3, 2024 @ 5:07pm 
Originally posted by cSg|mc-Hotsauce:
Originally posted by kayusoft:
Is there any url starts with steam:// to activate steam keys via steam app?
I know there is a link for web like:
https://store.steampowered.com/account/registerkey

Now, click your link in the client.

:winterbunny2023:

Which link?
cSg|mc-Hotsauce May 3, 2024 @ 5:15pm 
Originally posted by kayusoft:
Originally posted by cSg|mc-Hotsauce:

Now, click your link in the client.

:winterbunny2023:

Which link?

The one without the Xs, that I quoted and edited for you.

:winterbunny2023:
Kargor May 3, 2024 @ 5:21pm 
Did you try this?

steam://openurl/<url> Opens URL in the system's default web browser.

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.
Last edited by Kargor; May 3, 2024 @ 5:22pm
kayusoft May 3, 2024 @ 5:29pm 
Originally posted by Kargor:
Did you try this?

steam://openurl/<url> Opens URL in the system's default web browser.
Yes. I know this url format but it opens a web browser page. I am looking for a way to activate a product key automaticly.
kayusoft May 3, 2024 @ 5:42pm 
Originally posted by kayusoft:
Originally posted by Kargor:
Did you try this?

steam://openurl/<url> Opens URL in the system's default web browser.
Yes. I know this url format but it opens a web browser page. I am looking for a way to activate a product key automaticly.
But after your answer i have found following page:
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 :(
Kargor May 4, 2024 @ 1:39am 
Originally posted by kayusoft:
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...
Last edited by Kargor; May 4, 2024 @ 1:40am
kayusoft May 4, 2024 @ 7:01am 
Originally posted by Kargor:
Originally posted by kayusoft:
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...
Yeah i have just tried :)
ReBoot May 4, 2024 @ 7:44am 
Get into Web scraping & programmatically "click" that button to activate now.
kayusoft May 4, 2024 @ 2:42pm 
Originally posted by ReBoot:
Get into Web scraping & programmatically "click" that button to activate now.
This is my last option for sure. Bu i hope to find out a legitimate way.
Kargor May 4, 2024 @ 5:21pm 
Originally posted by ReBoot:
Get into Web scraping & programmatically "click" that button to activate now.

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...
kayusoft May 5, 2024 @ 8:34am 
Originally posted by Kargor:
Originally posted by ReBoot:
Get into Web scraping & programmatically "click" that button to activate now.

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...
Thank you for your answer.
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.
Kargor May 5, 2024 @ 9:39am 
Ah... an XY problem: you are asking about "X", while in reality your problem is "Y".

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.
Last edited by Kargor; May 5, 2024 @ 9:46am
kayusoft May 5, 2024 @ 11:42am 
Originally posted by Kargor:
Ah... an XY problem: you are asking about "X", while in reality your problem is "Y".

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.
My original question is still valid. I am not looking for a way to make people to put their actual credentials. I have already implemented "Login with Steam" auth system on my website to verify their username/steamid.
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 :)
kayusoft May 6, 2024 @ 6:03am 
Originally posted by cSg|mc-Hotsauce:
Originally posted by kayusoft:

Which link?

The one without the Xs, that I quoted and edited for you.

:winterbunny2023:
I don't understand your aim. Page won't activate your key automatically without "X"s.
I have asked a steam://command type of url in my original question.
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: May 3, 2024 @ 3:34pm
Posts: 21