CounterStrikeMatchesService
A list of all methods in the CounterStrikeMatchesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_csgo_matches | List matches for the Counter-Strike videogame |
get_csgo_matches_past | List past Counter-Strike matches |
get_csgo_matches_running | List running Counter-Strike matches |
get_csgo_matches_upcoming | List upcoming Counter-Strike matches |
get_csgo_matches_matchIdOrSlug | Get a single Counter-Strike match by ID or slug |
get_csgo_matches
List matches for the Counter-Strike videogame
- HTTP Method:
GET
- Endpoint:
/csgo/matches
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCsgoMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoMatches | ❌ | 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 | SearchOverCsgoMatches | ❌ | 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
Match[]
Example Usage Code Snippet
import {
FilterOverCsgoMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCsgoMatches,
SearchOverCsgoMatches,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const matchType = MatchType.ALLGAMESPLAYED;
const teamIdOrSlug = 10;
const matchStatus = MatchStatus.CANCELED;
const videogameId = VideogameId._1;
const filterOverCsgoMatchesVideogameTitle = 4;
const filterOverCsgoMatchesVideogameVersion = '46404802.4461.3142';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverCsgoMatches: FilterOverCsgoMatches = {
beginAt: ['incidi'],
detailedStats: true,
draw: true,
endAt: ['exercita'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [4],
matchType: [matchType],
modifiedAt: ['aliqua'],
name: ['aliquip eius'],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverCsgoMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['voluptate adipi'],
serieId: [5],
slug: ['kid'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCsgoMatchesVideogameTitle],
videogameVersion: [filterOverCsgoMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverCsgoMatches: RangeOverCsgoMatches = {
beginAt: ['incididunt ut'],
detailedStats: [true],
draw: [true],
endAt: ['in ex aute'],
forfeit: [true],
id: [5],
matchType: [matchType1],
modifiedAt: ['do'],
name: ['adipisici'],
numberOfGames: [123],
scheduledAt: ['dolor Ut'],
slug: ['R37RucjN7s'],
status: [matchStatus1],
tournamentId: [4],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverCsgoMatches: SearchOverCsgoMatches = {
matchType: matchType12,
name: 'aliqua anim',
slug: 'x6lAktgCkB',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.counterStrikeMatches.getCsgoMatches({
filter: filterOverCsgoMatches,
range: rangeOverCsgoMatches,
sort: [[]],
search: searchOverCsgoMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_csgo_matches_past
List past Counter-Strike matches
- HTTP Method:
GET
- Endpoint:
/csgo/matches/past
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCsgoMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoMatches | ❌ | 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 | SearchOverCsgoMatches | ❌ | 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
Match[]
Example Usage Code Snippet
import {
FilterOverCsgoMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCsgoMatches,
SearchOverCsgoMatches,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const matchType = MatchType.ALLGAMESPLAYED;
const teamIdOrSlug = 10;
const matchStatus = MatchStatus.CANCELED;
const videogameId = VideogameId._1;
const filterOverCsgoMatchesVideogameTitle = 4;
const filterOverCsgoMatchesVideogameVersion = '46404802.4461.3142';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverCsgoMatches: FilterOverCsgoMatches = {
beginAt: ['incidi'],
detailedStats: true,
draw: true,
endAt: ['exercita'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [4],
matchType: [matchType],
modifiedAt: ['aliqua'],
name: ['aliquip eius'],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverCsgoMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['voluptate adipi'],
serieId: [5],
slug: ['kid'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCsgoMatchesVideogameTitle],
videogameVersion: [filterOverCsgoMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverCsgoMatches: RangeOverCsgoMatches = {
beginAt: ['incididunt ut'],
detailedStats: [true],
draw: [true],
endAt: ['in ex aute'],
forfeit: [true],
id: [5],
matchType: [matchType1],
modifiedAt: ['do'],
name: ['adipisici'],
numberOfGames: [123],
scheduledAt: ['dolor Ut'],
slug: ['R37RucjN7s'],
status: [matchStatus1],
tournamentId: [4],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverCsgoMatches: SearchOverCsgoMatches = {
matchType: matchType12,
name: 'aliqua anim',
slug: 'x6lAktgCkB',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.counterStrikeMatches.getCsgoMatchesPast({
filter: filterOverCsgoMatches,
range: rangeOverCsgoMatches,
sort: [[]],
search: searchOverCsgoMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_csgo_matches_running
List running Counter-Strike matches
- HTTP Method:
GET
- Endpoint:
/csgo/matches/running
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCsgoMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoMatches | ❌ | 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 | SearchOverCsgoMatches | ❌ | 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
Match[]
Example Usage Code Snippet
import {
FilterOverCsgoMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCsgoMatches,
SearchOverCsgoMatches,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const matchType = MatchType.ALLGAMESPLAYED;
const teamIdOrSlug = 10;
const matchStatus = MatchStatus.CANCELED;
const videogameId = VideogameId._1;
const filterOverCsgoMatchesVideogameTitle = 4;
const filterOverCsgoMatchesVideogameVersion = '46404802.4461.3142';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverCsgoMatches: FilterOverCsgoMatches = {
beginAt: ['incidi'],
detailedStats: true,
draw: true,
endAt: ['exercita'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [4],
matchType: [matchType],
modifiedAt: ['aliqua'],
name: ['aliquip eius'],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverCsgoMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['voluptate adipi'],
serieId: [5],
slug: ['kid'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCsgoMatchesVideogameTitle],
videogameVersion: [filterOverCsgoMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverCsgoMatches: RangeOverCsgoMatches = {
beginAt: ['incididunt ut'],
detailedStats: [true],
draw: [true],
endAt: ['in ex aute'],
forfeit: [true],
id: [5],
matchType: [matchType1],
modifiedAt: ['do'],
name: ['adipisici'],
numberOfGames: [123],
scheduledAt: ['dolor Ut'],
slug: ['R37RucjN7s'],
status: [matchStatus1],
tournamentId: [4],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverCsgoMatches: SearchOverCsgoMatches = {
matchType: matchType12,
name: 'aliqua anim',
slug: 'x6lAktgCkB',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.counterStrikeMatches.getCsgoMatchesRunning({
filter: filterOverCsgoMatches,
range: rangeOverCsgoMatches,
sort: [[]],
search: searchOverCsgoMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_csgo_matches_upcoming
List upcoming Counter-Strike matches
- HTTP Method:
GET
- Endpoint:
/csgo/matches/upcoming
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverCsgoMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverCsgoMatches | ❌ | 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 | SearchOverCsgoMatches | ❌ | 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
Match[]
Example Usage Code Snippet
import {
FilterOverCsgoMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCsgoMatches,
SearchOverCsgoMatches,
} from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const matchType = MatchType.ALLGAMESPLAYED;
const teamIdOrSlug = 10;
const matchStatus = MatchStatus.CANCELED;
const videogameId = VideogameId._1;
const filterOverCsgoMatchesVideogameTitle = 4;
const filterOverCsgoMatchesVideogameVersion = '46404802.4461.3142';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverCsgoMatches: FilterOverCsgoMatches = {
beginAt: ['incidi'],
detailedStats: true,
draw: true,
endAt: ['exercita'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [4],
matchType: [matchType],
modifiedAt: ['aliqua'],
name: ['aliquip eius'],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverCsgoMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['voluptate adipi'],
serieId: [5],
slug: ['kid'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCsgoMatchesVideogameTitle],
videogameVersion: [filterOverCsgoMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverCsgoMatches: RangeOverCsgoMatches = {
beginAt: ['incididunt ut'],
detailedStats: [true],
draw: [true],
endAt: ['in ex aute'],
forfeit: [true],
id: [5],
matchType: [matchType1],
modifiedAt: ['do'],
name: ['adipisici'],
numberOfGames: [123],
scheduledAt: ['dolor Ut'],
slug: ['R37RucjN7s'],
status: [matchStatus1],
tournamentId: [4],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverCsgoMatches: SearchOverCsgoMatches = {
matchType: matchType12,
name: 'aliqua anim',
slug: 'x6lAktgCkB',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.counterStrikeMatches.getCsgoMatchesUpcoming({
filter: filterOverCsgoMatches,
range: rangeOverCsgoMatches,
sort: [[]],
search: searchOverCsgoMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_csgo_matches_matchIdOrSlug
Get a single Counter-Strike match by ID or slug
- HTTP Method:
GET
- Endpoint:
/csgo/matches/{match_id_or_slug}
Parameters
Name | Type | Required | Description |
---|---|---|---|
matchIdOrSlug | MatchIdOrSlug | ✅ | A match ID or slug |
Return Type
CsgoMatch
Example Usage Code Snippet
import { MatchIdOrSlug, PandascoreClient } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const matchIdOrSlug = 5;
const { data } = await pandascoreClient.counterStrikeMatches.getCsgoMatchesMatchIdOrSlug();
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs