Valorant.API - [OBSOLETE] - New project here
This .dll provides all the request that you need to retrieve data from Valorant
To make any request, you need to create a ValorantClient object with HttpClient session.
clientVersion
parameter at the moment you can select one from this Link
HttpClient session = new HttpClient();
var valorantClient = new ValorantClient(session, clientVersion);
When you create the valorantClient, you are enable to make the first request to retrieve the Bearer Token
UserParametersDTO userParameter = valorantClient.GetUserParameters();
Inside userParameters you can find a sub-properties called uri
that contain the Bearer Token (access_token)
"uri": "https://beta.playvalorant.com/opt_in#access_token=herethereisthetoken&scope=openid&id_token=herethereistheidtoken&token_type=Bearer&expires_in=3600"
Once you saved the BearerToken, you need to add to session
as header and re-create the ValorantClient
session.DefaultRequestHeaders.Add("Authorization", "Bearer " + BearerToken);
var valorantClient = new ValorantClient(session, clientVersion);
Now you can request the EntitlementsToken
string EntitlementsToken = valorantClient.GetEntitlementsToken();
Add also EntitlementsToken to session
as header and re-create the ValorantClient
session.DefaultRequestHeaders.Add("X-Riot-Entitlements-JWT", EntitlementsToken);
var valorantClient = new ValorantClient(session, clientVersion);
Now you are ready to make all the other request!
- GetUserParameters
- GetEntitlementsToken
- GetPlayer
- GetMatches
- GetBalance
- GetCompetitiveMatch
- GetPlayerMMR
- GetPlayerStore
- GetStoryContract
- GetIDList
- Player Inventory
- Match Info
All these requests are documentated by @RumbleMike on this Link