ValorantGamesService
A list of all methods in the ValorantGamesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_valorant_games_valorantGameId | Get a single Valorant game by ID |
get_valorant_games_valorantGameId_events | List events for a given Valorant game |
get_valorant_games_valorantGameId_rounds | List rounds in a Valorant game |
get_valorant_matches_matchIdOrSlug_games | List 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
Name | Type | Required | Description |
---|---|---|---|
valorantGameId | number | ✅ | A 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
Name | Type | Required | Description |
---|---|---|---|
valorantGameId | number | ✅ | A Valorant game ID |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent 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
Name | Type | Required | Description |
---|---|---|---|
valorantGameId | number | ✅ | A Valorant game ID |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent 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
Name | Type | Required | Description |
---|---|---|---|
matchIdOrSlug | MatchIdOrSlug | ✅ | A match ID or slug |
filter | FilterOverValorantGames | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverValorantGames | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
search | SearchOverValorantGames | ❌ | Options to search results For more information on searching, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent 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