Skip to main content

CounterStrikeGamesService

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

MethodsDescription
get_csgo_games_csgoGameIdGet a single Counter-Strike game by ID
get_csgo_games_csgoGameId_eventsList events for a given Counter-Strike game
get_csgo_games_csgoGameId_roundsList rounds in a Counter-Strike game
get_csgo_matches_matchIdOrSlug_gamesList games for a given Counter-Strike match

get_csgo_games_csgoGameId

Get a single Counter-Strike game by ID

  • HTTP Method: GET
  • Endpoint: /csgo/games/{csgo_game_id}

Parameters

NameTypeRequiredDescription
csgoGameIdnumberA Counter-Strike game ID

Return Type

CsgoGame

Example Usage Code Snippet

import { PandascoreClient } from 'pandascore_client';

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

const { data } = await pandascoreClient.counterStrikeGames.getCsgoGamesCsgoGameId(5);

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

get_csgo_games_csgoGameId_events

List events for a given Counter-Strike game

  • HTTP Method: GET
  • Endpoint: /csgo/games/{csgo_game_id}/events

Parameters

NameTypeRequiredDescription
csgoGameIdnumberA Counter-Strike game ID
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent to page[size]

Return Type

CsgoEvent[]

Example Usage Code Snippet

import { Page, PandascoreClient } from 'pandascore_client';

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

const page = 1;

const { data } = await pandascoreClient.counterStrikeGames.getCsgoGamesCsgoGameIdEvents(10, {
page: page,
perPage: 50,
});

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

get_csgo_games_csgoGameId_rounds

List rounds in a Counter-Strike game

  • HTTP Method: GET
  • Endpoint: /csgo/games/{csgo_game_id}/rounds

Parameters

NameTypeRequiredDescription
csgoGameIdnumberA Counter-Strike game ID
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent to page[size]

Return Type

CsgoFullRound[]

Example Usage Code Snippet

import { Page, PandascoreClient } from 'pandascore_client';

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

const page = 1;

const { data } = await pandascoreClient.counterStrikeGames.getCsgoGamesCsgoGameIdRounds(3, {
page: page,
perPage: 50,
});

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

get_csgo_matches_matchIdOrSlug_games

List games for a given Counter-Strike match

  • HTTP Method: GET
  • Endpoint: /csgo/matches/{match_id_or_slug}/games

Parameters

NameTypeRequiredDescription
matchIdOrSlugMatchIdOrSlugA match ID or slug
filterFilterOverCsgoGamesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCsgoGamesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCsgoGamesOptions 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

CsgoGame[]

Example Usage Code Snippet

import { FilterOverCsgoGames, GameStatus, MatchIdOrSlug, Page, PandascoreClient, RangeOverCsgoGames, SearchOverCsgoGames } from 'pandascore_client';

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

const matchIdOrSlug = 5;
const gameStatus = GameStatus.FINISHED;

const filterOverCsgoGames: FilterOverCsgoGames = {
beginAt: ["ad anim ut i"],
complete: true,
detailedStats: true,
endAt: ["reprehende"],
finished: true,
forfeit: true,
id: [6],
length: [7],
matchId: [1],
position: [9],
status: [gameStatus]
};
const gameStatus1 = GameStatus.FINISHED;

const rangeOverCsgoGames: RangeOverCsgoGames = {
beginAt: ["i"],
complete: [true],
detailedStats: [true],
endAt: ["en"],
finished: [true],
forfeit: [true],
id: [1],
length: [7],
matchId: [8],
position: [9],
status: [gameStatus1]
};
const gameStatus12 = GameStatus.FINISHED;

const searchOverCsgoGames: SearchOverCsgoGames = {
status: gameStatus12
};
const page = 1;

const { data } = await pandascoreClient.counterStrikeGames.getCsgoMatchesMatchIdOrSlugGames(
,
{
filter: filterOverCsgoGames,
range: rangeOverCsgoGames,
sort: [[]],
search: searchOverCsgoGames,
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 →