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

Any ideas on how to get item wear? #6

Open
jcohenho opened this issue Sep 27, 2019 · 1 comment
Open

Any ideas on how to get item wear? #6

jcohenho opened this issue Sep 27, 2019 · 1 comment

Comments

@jcohenho
Copy link

Thank you for this amazing library. Any ideas on how to fetch item wear for a particular item? Thanks!

@OmG3r
Copy link
Owner

OmG3r commented Sep 27, 2019

This library alone is not enough to get the a csgo item wear value.

however it can provide you with the item's inspect URL and you can send it to CSGO Float API to get the wear value

you will have to get the non-trimmed version of your target's inventory match link each item with it's description as shown in the readme.

then you would get the inspection link for each item you want its float value ( item['actions'][0]['link'] should give you the link)

the link will look something like this "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D14134723931320265265" you'd need to fill in "%owner_steamid%" and "%assetid%" with their respctive values to get the final inspection link

finally, you make a request to CSGO float API with this link

"https://api.csgofloat.com/?url=steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198084749846A698323590D7935523998312483177"

you replace url parameter with the inspection link you created

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