Skip to content

This .dll provides all the request that you need to retrieve data from Valorant

Notifications You must be signed in to change notification settings

Teo230/Valorant.API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Valorant.API - [OBSOLETE] - New project here

This .dll provides all the request that you need to retrieve data from Valorant

How to use

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!

Request Available

  • GetUserParameters
  • GetEntitlementsToken
  • GetPlayer
  • GetMatches
  • GetBalance
  • GetCompetitiveMatch
  • GetPlayerMMR
  • GetPlayerStore
  • GetStoryContract
  • GetIDList

Request to be provide by Riot

  • Player Inventory
  • Match Info

All these requests are documentated by @RumbleMike on this Link

About

This .dll provides all the request that you need to retrieve data from Valorant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages