CounterStrikeGamesService
A list of all methods in the CounterStrikeGamesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_csgo_games_csgoGameId | Get a single Counter-Strike game by ID |
get_csgo_games_csgoGameId_events | List events for a given Counter-Strike game |
get_csgo_games_csgoGameId_rounds | List rounds in a Counter-Strike game |
get_csgo_matches_matchIdOrSlug_games | List 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
Name | Type | Required | Description |
---|---|---|---|
csgoGameId | number | ✅ | A 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
Name | Type | Required | Description |
---|---|---|---|
csgoGameId | number | ✅ | A Counter-Strike 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
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
Name | Type | Required | Description |
---|---|---|---|
csgoGameId | number | ✅ | A Counter-Strike 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
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
Name | Type | Required | Description |
---|---|---|---|
matchIdOrSlug | MatchIdOrSlug | ✅ | A match ID or slug |
filter | FilterOverCsgoGames | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoGames | ❌ | 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 | SearchOverCsgoGames | ❌ | 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
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