A .NET API Wrapper for the Apex Legends API Documentation is found below!
Our stable build is available from NuGet through the PureApex.API metapackage:
Once you have added the NuGet Package to your Project, you will need to add the using PureApex.API;
to your class header.
Then simply instance the ApexAPI class with your Origin Email and Password, like so:
var API = new ApexAPI("example@email.com", "password");
Then login to Origin with the LoginAsync()
call:
var result = await API.LoginAsync();
The result
boolean will be set to true or false depending on the login success.
If you already know a user's UserId or Username, you can use the GetUserAsync()
method to return an ApexUser
object.
- Username:
var user = await API.GetUserAsync("username");
- UserId:
var user = await API.GetUserAsync(userId);
Same as GetUserAsync()
but allows to search by generic terms.
- This will return any users who's username starts with
user
:
var users = await API.GetUsersAsync("user");
If you're wanting to get a user's stats, you can simply use GetStatsAsync()
and it will return the requested stats.
var user = await API.GetUserAsync("username");
var stats = await user.GetStatsAsync();
NOTE: THE API WILL ONLY RETURN VALID DATA FOR THE CURRENT ACTIVE LEGEND FOR THE USER
Please note: This API wrapper is for educational purposes only. I am not affiliated with Origin, Respawn, EA or any of their entities/affiliates.