Skip to content

Instantly share code, notes, and snippets.

@Kavan72
Created June 12, 2021 12:44
Show Gist options
  • Save Kavan72/b32f61746a859290733aedec045fe5df to your computer and use it in GitHub Desktop.
Save Kavan72/b32f61746a859290733aedec045fe5df to your computer and use it in GitHub Desktop.
How to fetch Valorant user inventory?

How to fetch valorant user inventory(in python)?

There is no endpoint available to fetch inventory. Wait a second ? how does the game fetch user skins, player_cards, buddy, etc? So, After digging into Valorant I found the user inventory.

I created down below a basic python code that fetches the Valorant user inventory.

import request

user_session = request.session()
# login stuff here

data = user_session.get('https://pd.ap.a.pvp.net/store/v1/entitlements/{user_id}/{entitlement_id}')

# You're probably thinking what the `entitlement_id` means here


_ = {
    "51c9eb99-3e6b-4658-801f-a5a7fd64bb9d": "",
    "bcef87d6-209b-46c6-8b19-fbe40bd95abc": "",
    "e7c63390-eda7-46e0-bb7a-a6abdacd2433": "skin_level",
    "3ad1b2b2-acdb-4524-852f-954a76ddae0a": "skin_chroma",
    "77258665-71d1-4623-bc72-44db9bd5b3b3": "",
    "01bb38e1-da47-4e6a-9b3d-945fe4655707": "agent",
    "6520634c-bd1e-4fc4-81af-cac5dc723105": "",
    "290f8769-97c6-492a-a1a8-caacf3d5b325": "",
    "f85cb6f7-33e5-4dc8-b609-ec7212301948": "contract_definition",
    "ac3c307a-368f-4db8-940d-68914b26d89a": "",
    "dd3bf334-87f3-40bd-b043-682a57a8dc3a": "buddy",
    "d5f120f8-ff8c-4aac-92ea-f2b5acbe9475": "spray",
    "0381b6a6-e901-4225-a30c-b18afc6d0ad4": "",
    "3f296c07-64c3-494c-923b-fe692a4fa1bd": "player_card",
    "de7caa6b-adf7-4588-bbd1-143831e786c6": "player_title",
}

# so if you want to fetch user `spray` you would be able to get spray_id from the decoded dictionary as shown, the url will look like this

'https://pd.ap.a.pvp.net/store/v1/entitlements/{user_id}/d5f120f8-ff8c-4aac-92ea-f2b5acbe9475'
@xoxobest
Copy link

xoxobest commented Sep 9, 2022

What is the User ID? Encrypted version of username or password? I couldn't find any networked data related with User ID.

@RandomNick2
Copy link

What is the User ID? Encrypted version of username or password? I couldn't find any networked data related with User ID.

Do you found the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment