Skip to main content

StarCraft2PlayersService

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

MethodsDescription
get_starcraft_2_playersList players for the StarCraft 2 videogame

get_starcraft_2_players

List players for the StarCraft 2 videogame

  • HTTP Method: GET
  • Endpoint: /starcraft-2/players

Parameters

NameTypeRequiredDescription
filterFilterOverStarcraft2PlayersOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverStarcraft2PlayersOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverStarcraft2PlayersOptions 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 {
FilterOverStarcraft2Players,
Page,
PandascoreClient,
RangeOverStarcraft2Players,
SearchOverStarcraft2Players,
VideogameId,
} from 'pandascore_client';

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

const videogameId = VideogameId._1;

const filterOverStarcraft2Players: FilterOverStarcraft2Players = {
active: true,
birthday: ['Utirure en'],
firstName: ['nulla'],
id: [8],
lastName: ['tempor do'],
modifiedAt: ['iru'],
name: ['officia in '],
nationality: ['Duisin'],
role: ['laboris nisi ad'],
slug: ['6akrbwuj'],
teamId: [7],
videogameId: [videogameId],
};

const rangeOverStarcraft2Players: RangeOverStarcraft2Players = {
birthday: ['do cupidatat a'],
firstName: ['dolor la'],
id: [5],
lastName: ['velit sit '],
modifiedAt: ['repreh'],
name: ['labore l'],
nationality: ['magna amet Dui'],
role: ['mollit Duis'],
slug: ['s1'],
};

const searchOverStarcraft2Players: SearchOverStarcraft2Players = {
birthday: 'eiusm',
firstName: 'enim si',
lastName: 'consequat s',
name: 'proiden',
nationality: 'fugiat eu sint',
role: 'nulla',
slug: '7-mandz0',
};
const page = 1;

const { data } = await pandascoreClient.starCraft2Players.getStarcraft2Players({
filter: filterOverStarcraft2Players,
range: rangeOverStarcraft2Players,
sort: [[]],
search: searchOverStarcraft2Players,
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 →