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

How can I get price of the skin & its rank? #74

Closed
musnows opened this issue Aug 16, 2022 · 5 comments
Closed

How can I get price of the skin & its rank? #74

musnows opened this issue Aug 16, 2022 · 5 comments

Comments

@musnows
Copy link

musnows commented Aug 16, 2022

HELLO!

I'm new in Python,while using valorant-api, I found that the price of the skin and the rank of the skin (not the weapons/skinlevels includes in api,but like epic skin). How can I get the price of the skin and this rank?

image

url = f"https://valorant-api.com/v1/weapons/skinlevels/{skinuuid}"
headers = {'Connection': 'close'}
res = requests.get(url=url,headers=headers)
res1 = json.loads(res.text)

the res of this code is👇

{'status': 200, 'data': {'uuid': 'fc4c3dcb-4f6d-5e8e-3dc3-1695f55d24c2', 'displayName': '王牌戰隊 幻象', 'levelItem': None, 'displayIcon': 'https://media.valorant-api.com/weaponskinlevels/fc4c3dcb-4f6d-5e8e-3dc3-1695f55d24c2/displayicon.png', 'streamedVideo': None, 'assetPath': 'ShooterGame/Content/Equippables/Guns/Rifles/Carbine/Flush/Levels/Carbine_Flush_Lv1_PrimaryAsset'}}

PS: I use ValorantClientAPI to fetch my daily shop

@musnows musnows changed the title How can I get price of the skin & its level? How can I get price of the skin & its rank? Aug 16, 2022
@staciax
Copy link
Owner

staciax commented Aug 16, 2022

@staciax
Copy link
Owner

staciax commented Aug 16, 2022

Now I can't answer much. I'll try to forget my old way of coding.

I am currently coding an object oriented valorant client. ready to update v4.0.0

I'm not sure when I will finish coding. Because my homework is a lot 😢

@musnows
Copy link
Author

musnows commented Aug 18, 2022

Thanks a lot,I will check it out.

but most of my bot users are afraid of getting banded😂Only a few of them are willing to use

@musnows
Copy link
Author

musnows commented Aug 20, 2022

YES!I foud the api to fetch price and skin_level!

Because of the traslation issue(I'm not native En speaker),I ignore this api before

@musnows musnows closed this as completed Aug 20, 2022
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