An incomplete, proof-of-concept API wrapper for Apex Legends written in Python.
Apex.py contains messy, incomplete code and is not intended for use. Think of it as a research knowledgebase or starting point.
- Python 3.7
- Requests
- BeautifulSoup
Login to Origin using your Email and Password. Two-Factor Authentication is not supported due to login the method used.
Example usage
client = Origin.Origin("Email@email.com", "Password")
client.Login()
userId, _ = client.SearchUser("TheRealCouRageJD", "PC")
apex = Apex.Apex()
print(apex.GetStats(userId, "PC"))
client.Logout()
Output
{
"userId": 1007948015471,
"username": "TheRealCouRageJD",
"platform": "PC",
"partyPrivacy": "open",
"inMatch": false,
"isOnline": false,
"isJoinable": false,
"isPartyFull": 0,
"kills": 0,
"gamesPlayed": 0,
"wins": 0,
"accountLevel": 85,
"accountProgress": 29,
"legend": {
"name": "Wraith",
"skin": 1145429508,
"intro": 1625282092
},
"banner": {
"frame": 296967174,
"stance": 2088801000,
"badges": [{
"badge": 946701015,
"tier": 2
}, {
"badge": 1774065557,
"tier": 87
}, {
"badge": 1170935138,
"tier": 2
}],
"trackers": [{
"tracker": "kills",
"value": 191202
}, {
"tracker": "games_played",
"value": 33502
}, {
"tracker": "damage",
"value": 39066302
}]
}
}
Not supported. Requires an accountId from the PSN API.
Not supported. Requires an XUID from the Xbox Live API.