Skip to main content

Dota2PlayersService

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

MethodsDescription
get_dota2_playersList players for the Dota 2 videogame

get_dota2_players

List players for the Dota 2 videogame

  • HTTP Method: GET
  • Endpoint: /dota2/players

Parameters

NameTypeRequiredDescription
filterFilterOverDota2PlayersOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverDota2PlayersOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverDota2PlayersOptions to search results
For more information on searching, see docs.
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent to page[size]

Return Type

Player[]

Example Usage Code Snippet

import {
FilterOverDota2Players,
Page,
PandascoreClient,
RangeOverDota2Players,
SearchOverDota2Players,
VideogameId,
} from 'pandascore_client';

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

const videogameId = VideogameId._1;

const filterOverDota2Players: FilterOverDota2Players = {
active: true,
birthday: ['nulla ad '],
firstName: ['nostrud'],
id: [6],
lastName: ['fugiat sit ve'],
modifiedAt: ['Lorem ex amet '],
name: ['nisi labore s'],
nationality: ['dolor'],
role: ['pariatur l'],
slug: ['m8l'],
teamId: [7],
videogameId: [videogameId],
};

const rangeOverDota2Players: RangeOverDota2Players = {
birthday: ['qui esse'],
firstName: ['eiusmod repreh'],
id: [2],
lastName: ['in sunt pariat'],
modifiedAt: ['anim magna '],
name: ['dolor'],
nationality: ['quidolore repre'],
role: ['cupida'],
slug: ['-f5-23-'],
};

const searchOverDota2Players: SearchOverDota2Players = {
birthday: 'anim qu',
firstName: 'Lorem ',
lastName: 'cillum ipsum',
name: 'est enim mi',
nationality: 'id in mollit',
role: 'fugiat in',
slug: 'apl',
};
const page = 1;

const { data } = await pandascoreClient.dota2Players.getDota2Players({
filter: filterOverDota2Players,
range: rangeOverDota2Players,
sort: [[]],
search: searchOverDota2Players,
page: page,
perPage: 50,
});

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

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →