Dota2 - is it possible to get personal match information via API into sql database?

I would like to start a small hobby project. This is the best way and where to start doing the following:

Me and my friend play dota2 sometime, usually a bot swing against each other. So I would like to get results that won mach and stored this information in a sql database for example.

Is it possible to get this information through the dota 2 API and how can I get it in my database?

+3


source to share


1 answer


You can create PHP page to get API results https://api.opendota.com/api/players/ {account_id} / matches



Scroll through the answers (the result will be in JSON format, see http://php.net/manual/en/function.json-decode.php for reference), save the new swings in your db.

0


source







All Articles