pip install valclient
from valclient.client import Client
client = Client(region="na")
client.activate()
# get MatchID of latest match
history = client.fetch_match_history(queue_id="unrated")
print(history["History"][0]["MatchID"])
- don't use this to make anything that's obviously against TOS (i.e. automatic agent selecting program)
- just don't be dumb :)
Check out Techdoodle's extensive documentation. Most of the endpoints are implemented in this wrapper, but if you find another one/I'm missing one, open an issue!