Skip to content

An incomplete, proof-of-concept API wrapper for Apex Legends written in Python. Not intended for use.

License

Notifications You must be signed in to change notification settings

thenayr/Apex.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apex.py

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.

Requirements

  • Python 3.7
  • Requests
  • BeautifulSoup

PC

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
		}]
	}
}

PlayStation 4

Not supported. Requires an accountId from the PSN API.

Xbox One

Not supported. Requires an XUID from the Xbox Live API.

About

An incomplete, proof-of-concept API wrapper for Apex Legends written in Python. Not intended for use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages