The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays.
If you think something is broken, something is missing or have any questions, please open an Issue
To get started with OpenDotaApi first you will need to get the library itself. The easiest way to do this is to install the package into your project using NuGet.
- Download and Install the latest
OpenDotaApi
from NuGet or via CLI:
PM> Install-Package OpenDotaApi
- After installing it's time to actually use it. To get started we have to add the OpenDotaApi namespace:
using OpenDotaApi;
Then use the class!
long SteamId = 0;
var openDota = new OpenDota();
var data = await openDota.Player.GetPlayerAsync(SteamId);
Console.WriteLine(data.Profile.Avatarfull);