Skip to main content

ValorantGamesService

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

MethodsDescription
get_valorant_games_valorantGameIdGet a single Valorant game by ID
get_valorant_games_valorantGameId_eventsList events for a given Valorant game
get_valorant_games_valorantGameId_roundsList rounds in a Valorant game
get_valorant_matches_matchIdOrSlug_gamesList games for a given Valorant match

get_valorant_games_valorantGameId

Get a single Valorant game by ID

  • HTTP Method: GET
  • Endpoint: /valorant/games/{valorant_game_id}

Parameters

NameTypeRequiredDescription
valorantGameIdnumberA Valorant game ID

Return Type

ValorantGame

Example Usage Code Snippet

import { PandascoreClient } from 'pandascore_client';

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

const { data } = await pandascoreClient.valorantGames.getValorantGamesValorantGameId(1);

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

get_valorant_games_valorantGameId_events

List events for a given Valorant game

  • HTTP Method: GET
  • Endpoint: /valorant/games/{valorant_game_id}/events

Parameters

NameTypeRequiredDescription
valorantGameIdnumberA Valorant game ID
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent to page[size]

Return Type

ValorantGameEvent[]

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.valorantGames.getValorantGamesValorantGameIdEvents(9, {
page: page,
perPage: 50,
});

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

get_valorant_games_valorantGameId_rounds

List rounds in a Valorant game

  • HTTP Method: GET
  • Endpoint: /valorant/games/{valorant_game_id}/rounds

Parameters

NameTypeRequiredDescription
valorantGameIdnumberA Valorant game ID
pagePagePagination in the form of page=2 or page[size]=30&page[number]=2
perPagenumberEquivalent to page[size]

Return Type

ValorantFullRound[]

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.valorantGames.getValorantGamesValorantGameIdRounds(2, {
page: page,
perPage: 50,
});

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

get_valorant_matches_matchIdOrSlug_games

List games for a given Valorant match

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

Parameters

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

ValorantGame[]

Example Usage Code Snippet

import { FilterOverValorantGames, GameStatus, MatchIdOrSlug, Page, PandascoreClient, RangeOverValorantGames, SearchOverValorantGames } from 'pandascore_client';

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

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

const filterOverValorantGames: FilterOverValorantGames = {
beginAt: ["in nisi"],
complete: true,
detailedStats: true,
endAt: ["e"],
finished: true,
forfeit: true,
id: [6],
length: [7],
position: [2],
status: [gameStatus]
};
const gameStatus1 = GameStatus.FINISHED;

const rangeOverValorantGames: RangeOverValorantGames = {
beginAt: ["au"],
complete: [true],
detailedStats: [true],
endAt: ["nulla"],
finished: [true],
forfeit: [true],
id: [5],
length: [10],
position: [10],
status: [gameStatus1]
};
const gameStatus12 = GameStatus.FINISHED;

const searchOverValorantGames: SearchOverValorantGames = {
status: gameStatus12
};
const page = 1;

const { data } = await pandascoreClient.valorantGames.getValorantMatchesMatchIdOrSlugGames(
,
{
filter: filterOverValorantGames,
range: rangeOverValorantGames,
sort: [[]],
search: searchOverValorantGames,
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 →