Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seasonal badge #80

Closed
tailon2k opened this issue Mar 9, 2024 · 4 comments
Closed

Seasonal badge #80

tailon2k opened this issue Mar 9, 2024 · 4 comments

Comments

@tailon2k
Copy link

tailon2k commented Mar 9, 2024

Hello! is it possible to get the seasonal badge that we can get with steam shop points?
I mean this one: https://store.steampowered.com/points/shop/c/steambadge
There is an API route to do it but i don't know how to get the defid for the badge. This is the Steam Web API documentation: https://steamapi.xpaw.me/#ILoyaltyRewardsService/RedeemPointsForBadgeLevel

Something like this but for the badge i mentioned:
https://github.com/quer/the-steam-awards/blob/Master/modules/pointsShop/RedeemPoints.js

@quer
Copy link
Owner

quer commented Mar 12, 2024

That is posibal. and shoud not be hard to do. It shoud just be, to do as we do "RedeemPoints.js", but for that other url.
and if you only what the level that you can do, whit the point that the account have. You can just use
https://github.com/quer/the-steam-awards/blob/Master/modules/pointsShop/GetpointsStatus.js
to get the point, and then do Math on the number. And only request the amount you need.

I cant create it for you, as i doent what i use my point on it. If you provide the point, then i can look into it.

@tailon2k
Copy link
Author

Okay thank you for the info! the problem thought is that i don't know how to get the defid that is required, as this badge is not from a game, and i think it can't be obtain by scraping the page.

@quer
Copy link
Owner

quer commented Mar 12, 2024

did a quick look in the code, from steam. and found this:
defid: 258511 <- Winter Collection - 2023

You can also find the id, in steamdb.
https://steamdb.info/app/2750340/communityitems/

@tailon2k
Copy link
Author

Thank you so much! :)

@quer quer closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants