Skip to main content

Dota2StatsService

A list of all methods in the Dota2StatsService service. Click on the method name to view detailed information about that method.

MethodsDescription
get_dota2_matches_matchIdOrSlug_players_statsGet detailed statistics of Dota2 players for the given match
get_dota2_players_playerIdOrSlug_statsGet detailed statistics of a given Dota2 player
get_dota2_series_serieIdOrSlug_players_playerIdOrSlug_statsGet detailed statistics of a given Dota2 player for the given serie
get_dota2_series_serieIdOrSlug_teams_teamIdOrSlug_statsGet detailed statistics of a given Dota2 team for the given serie
get_dota2_teams_teamIdOrSlug_statsGet detailed statistics of a given Dota2 team
get_dota2_tournaments_tournamentIdOrSlug_players_playerIdOrSlug_statsGet detailed statistics of a given Dota2 player for the given tournament
get_dota2_tournaments_tournamentIdOrSlug_teams_teamIdOrSlug_statsGet detailed statistics of a given Dota2 team for the given tournament

get_dota2_matches_matchIdOrSlug_players_stats

Get detailed statistics of Dota2 players for the given match

  • HTTP Method: GET
  • Endpoint: /dota2/matches/{match_id_or_slug}/players/stats

Parameters

NameTypeRequiredDescription
matchIdOrSlugMatchIdOrSlugA match ID or slug

Return Type

Dota2StatsForAllPlayersByMatch

Example Usage Code Snippet

import { MatchIdOrSlug, PandascoreClient } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});

const matchIdOrSlug = 5;

const { data } = await pandascoreClient.dota2Stats.getDota2MatchesMatchIdOrSlugPlayersStats();

console.log(data);
})();

get_dota2_players_playerIdOrSlug_stats

Get detailed statistics of a given Dota2 player

  • HTTP Method: GET
  • Endpoint: /dota2/players/{player_id_or_slug}/stats

Parameters

NameTypeRequiredDescription
playerIdOrSlugPlayerIdOrSlugA player ID or slug
gamesCountnumberThe amount of games used for the statistics.

For example if ?games_count=5, it would show the statistics for the most recent 5 games played
sideGetDota2PlayersPlayerIdOrSlugStatsSide
fromstringFilter out 'from' date
tostringFilter out 'to' date

Return Type

Dota2StatsForPlayer

Example Usage Code Snippet

import { PandascoreClient, PlayerIdOrSlug } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN'});

const playerIdOrSlug = 9;
const getDota2PlayersPlayerIdOrSlugStatsSide = GetDota2PlayersPlayerIdOrSlugStatsSide.RADIANT;

const { data } = await pandascoreClient.dota2Stats.getDota2PlayersPlayerIdOrSlugStats(
,
{
gamesCount: 4,
side: getDota2PlayersPlayerIdOrSlugStatsSide,
from: "2017-07-21",
to: "2017-07-21",
}
);

console.log(data);
})();

get_dota2_series_serieIdOrSlug_players_playerIdOrSlug_stats

Get detailed statistics of a given Dota2 player for the given serie

  • HTTP Method: GET
  • Endpoint: /dota2/series/{serie_id_or_slug}/players/{player_id_or_slug}/stats

Parameters

NameTypeRequiredDescription
serieIdOrSlugSerieIdOrSlugA serie ID or slug
playerIdOrSlugPlayerIdOrSlugA player ID or slug
gamesCountnumberThe amount of games used for the statistics.

For example if ?games_count=5, it would show the statistics for the most recent 5 games played
sideGetDota2PlayersPlayerIdOrSlugStatsSide

Return Type

Dota2StatsForPlayerBySerie

Example Usage Code Snippet

import { PandascoreClient, PlayerIdOrSlug, SerieIdOrSlug } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN'});

const serieIdOrSlug = 10;
const playerIdOrSlug = 9;
const getDota2PlayersPlayerIdOrSlugStatsSide = GetDota2PlayersPlayerIdOrSlugStatsSide.RADIANT;

const { data } = await pandascoreClient.dota2Stats.getDota2SeriesSerieIdOrSlugPlayersPlayerIdOrSlugStats(
,
,
{
gamesCount: 6,
side: getDota2PlayersPlayerIdOrSlugStatsSide,
}
);

console.log(data);
})();

get_dota2_series_serieIdOrSlug_teams_teamIdOrSlug_stats

Get detailed statistics of a given Dota2 team for the given serie

  • HTTP Method: GET
  • Endpoint: /dota2/series/{serie_id_or_slug}/teams/{team_id_or_slug}/stats

Parameters

NameTypeRequiredDescription
serieIdOrSlugSerieIdOrSlugA serie ID or slug
teamIdOrSlugTeamIdOrSlugA team ID or slug
gamesCountnumberThe amount of games used for the statistics.

For example if ?games_count=5, it would show the statistics for the most recent 5 games played
sideGetDota2PlayersPlayerIdOrSlugStatsSide

Return Type

Dota2StatsForTeamBySerie

Example Usage Code Snippet

import { PandascoreClient, SerieIdOrSlug, TeamIdOrSlug } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN'});

const serieIdOrSlug = 10;
const teamIdOrSlug = 10;
const getDota2PlayersPlayerIdOrSlugStatsSide = GetDota2PlayersPlayerIdOrSlugStatsSide.RADIANT;

const { data } = await pandascoreClient.dota2Stats.getDota2SeriesSerieIdOrSlugTeamsTeamIdOrSlugStats(
,
,
{
gamesCount: 9,
side: getDota2PlayersPlayerIdOrSlugStatsSide,
}
);

console.log(data);
})();

get_dota2_teams_teamIdOrSlug_stats

Get detailed statistics of a given Dota2 team

  • HTTP Method: GET
  • Endpoint: /dota2/teams/{team_id_or_slug}/stats

Parameters

NameTypeRequiredDescription
teamIdOrSlugTeamIdOrSlugA team ID or slug
gamesCountnumberThe amount of games used for the statistics.

For example if ?games_count=5, it would show the statistics for the most recent 5 games played
sideGetDota2PlayersPlayerIdOrSlugStatsSide
fromstringFilter out 'from' date
tostringFilter out 'to' date

Return Type

Dota2StatsForTeam

Example Usage Code Snippet

import { PandascoreClient, TeamIdOrSlug } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN'});

const teamIdOrSlug = 10;
const getDota2PlayersPlayerIdOrSlugStatsSide = GetDota2PlayersPlayerIdOrSlugStatsSide.RADIANT;

const { data } = await pandascoreClient.dota2Stats.getDota2TeamsTeamIdOrSlugStats(
,
{
gamesCount: 4,
side: getDota2PlayersPlayerIdOrSlugStatsSide,
from: "2017-07-21",
to: "2017-07-21",
}
);

console.log(data);
})();

get_dota2_tournaments_tournamentIdOrSlug_players_playerIdOrSlug_stats

Get detailed statistics of a given Dota2 player for the given tournament

  • HTTP Method: GET
  • Endpoint: /dota2/tournaments/{tournament_id_or_slug}/players/{player_id_or_slug}/stats

Parameters

NameTypeRequiredDescription
tournamentIdOrSlugTournamentIdOrSlugA tournament ID or slug
playerIdOrSlugPlayerIdOrSlugA player ID or slug
gamesCountnumberThe amount of games used for the statistics.

For example if ?games_count=5, it would show the statistics for the most recent 5 games played
sideGetDota2PlayersPlayerIdOrSlugStatsSide

Return Type

Dota2StatsForPlayerByTournament

Example Usage Code Snippet

import { PandascoreClient, PlayerIdOrSlug, TournamentIdOrSlug } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN'});

const tournamentIdOrSlug = 2;
const playerIdOrSlug = 9;
const getDota2PlayersPlayerIdOrSlugStatsSide = GetDota2PlayersPlayerIdOrSlugStatsSide.RADIANT;

const { data } = await pandascoreClient.dota2Stats.getDota2TournamentsTournamentIdOrSlugPlayersPlayerIdOrSlugStats(
,
,
{
gamesCount: 7,
side: getDota2PlayersPlayerIdOrSlugStatsSide,
}
);

console.log(data);
})();

get_dota2_tournaments_tournamentIdOrSlug_teams_teamIdOrSlug_stats

Get detailed statistics of a given Dota2 team for the given tournament

  • HTTP Method: GET
  • Endpoint: /dota2/tournaments/{tournament_id_or_slug}/teams/{team_id_or_slug}/stats

Parameters

NameTypeRequiredDescription
tournamentIdOrSlugTournamentIdOrSlugA tournament ID or slug
teamIdOrSlugTeamIdOrSlugA team ID or slug
gamesCountnumberThe amount of games used for the statistics.

For example if ?games_count=5, it would show the statistics for the most recent 5 games played
sideGetDota2PlayersPlayerIdOrSlugStatsSide

Return Type

Dota2StatsForTeamByTournament

Example Usage Code Snippet

import { PandascoreClient, TeamIdOrSlug, TournamentIdOrSlug } from 'pandascore_client';

(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN'});

const tournamentIdOrSlug = 2;
const teamIdOrSlug = 10;
const getDota2PlayersPlayerIdOrSlugStatsSide = GetDota2PlayersPlayerIdOrSlugStatsSide.RADIANT;

const { data } = await pandascoreClient.dota2Stats.getDota2TournamentsTournamentIdOrSlugTeamsTeamIdOrSlugStats(
,
,
{
gamesCount: 3,
side: getDota2PlayersPlayerIdOrSlugStatsSide,
}
);

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →