Skip to main content

CodmwMatchesService

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

MethodsDescription
get_codmw_matchesList matches for the COD MW videogame
get_codmw_matches_pastList past CODMW matches
get_codmw_matches_runningList running CODMW matches
get_codmw_matches_upcomingList upcoming CODMW matches

get_codmw_matches

List matches for the COD MW videogame

  • HTTP Method: GET
  • Endpoint: /codmw/matches

Parameters

NameTypeRequiredDescription
filterFilterOverCodmwMatchesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCodmwMatchesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCodmwMatchesOptions 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

Match[]

Example Usage Code Snippet

import {
FilterOverCodmwMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCodmwMatches,
SearchOverCodmwMatches,
} 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 filterOverCodmwMatchesVideogameTitle = 9;

const filterOverCodmwMatchesVideogameVersion = '49265.58843243.7069641';

const opponentId = 7;

const matchWinnerType = MatchWinnerType.PLAYER;

const filterOverCodmwMatches: FilterOverCodmwMatches = {
beginAt: ['min'],
detailedStats: true,
draw: true,
endAt: ['re'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [5],
matchType: [matchType],
modifiedAt: ['dolore Excepte'],
name: ['ut laborum labo'],
notStarted: true,
numberOfGames: [1],
opponentId: [filterOverCodmwMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['in eiu'],
serieId: [9],
slug: ['FyZHzUQlMqf'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCodmwMatchesVideogameTitle],
videogameVersion: [filterOverCodmwMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;

const matchStatus1 = MatchStatus.CANCELED;

const opponentId1 = 7;

const matchWinnerType1 = MatchWinnerType.PLAYER;

const rangeOverCodmwMatches: RangeOverCodmwMatches = {
beginAt: ['sunt pari'],
detailedStats: [true],
draw: [true],
endAt: ['et mollit'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['consequat au'],
name: ['animirure c'],
numberOfGames: [7],
scheduledAt: ['exercitation U'],
slug: ['b'],
status: [matchStatus1],
tournamentId: [8],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;

const matchStatus12 = MatchStatus.CANCELED;

const matchWinnerType12 = MatchWinnerType.PLAYER;

const searchOverCodmwMatches: SearchOverCodmwMatches = {
matchType: matchType12,
name: 'culpa ad do Du',
slug: 'QnETMGeSVO4',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;

const { data } = await pandascoreClient.codmwMatches.getCodmwMatches({
filter: filterOverCodmwMatches,
range: rangeOverCodmwMatches,
sort: [[]],
search: searchOverCodmwMatches,
page: page,
perPage: 50,
});

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

get_codmw_matches_past

List past CODMW matches

  • HTTP Method: GET
  • Endpoint: /codmw/matches/past

Parameters

NameTypeRequiredDescription
filterFilterOverCodmwMatchesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCodmwMatchesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCodmwMatchesOptions 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

Match[]

Example Usage Code Snippet

import {
FilterOverCodmwMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCodmwMatches,
SearchOverCodmwMatches,
} 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 filterOverCodmwMatchesVideogameTitle = 9;

const filterOverCodmwMatchesVideogameVersion = '49265.58843243.7069641';

const opponentId = 7;

const matchWinnerType = MatchWinnerType.PLAYER;

const filterOverCodmwMatches: FilterOverCodmwMatches = {
beginAt: ['min'],
detailedStats: true,
draw: true,
endAt: ['re'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [5],
matchType: [matchType],
modifiedAt: ['dolore Excepte'],
name: ['ut laborum labo'],
notStarted: true,
numberOfGames: [1],
opponentId: [filterOverCodmwMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['in eiu'],
serieId: [9],
slug: ['FyZHzUQlMqf'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCodmwMatchesVideogameTitle],
videogameVersion: [filterOverCodmwMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;

const matchStatus1 = MatchStatus.CANCELED;

const opponentId1 = 7;

const matchWinnerType1 = MatchWinnerType.PLAYER;

const rangeOverCodmwMatches: RangeOverCodmwMatches = {
beginAt: ['sunt pari'],
detailedStats: [true],
draw: [true],
endAt: ['et mollit'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['consequat au'],
name: ['animirure c'],
numberOfGames: [7],
scheduledAt: ['exercitation U'],
slug: ['b'],
status: [matchStatus1],
tournamentId: [8],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;

const matchStatus12 = MatchStatus.CANCELED;

const matchWinnerType12 = MatchWinnerType.PLAYER;

const searchOverCodmwMatches: SearchOverCodmwMatches = {
matchType: matchType12,
name: 'culpa ad do Du',
slug: 'QnETMGeSVO4',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;

const { data } = await pandascoreClient.codmwMatches.getCodmwMatchesPast({
filter: filterOverCodmwMatches,
range: rangeOverCodmwMatches,
sort: [[]],
search: searchOverCodmwMatches,
page: page,
perPage: 50,
});

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

get_codmw_matches_running

List running CODMW matches

  • HTTP Method: GET
  • Endpoint: /codmw/matches/running

Parameters

NameTypeRequiredDescription
filterFilterOverCodmwMatchesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCodmwMatchesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCodmwMatchesOptions 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

Match[]

Example Usage Code Snippet

import {
FilterOverCodmwMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCodmwMatches,
SearchOverCodmwMatches,
} 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 filterOverCodmwMatchesVideogameTitle = 9;

const filterOverCodmwMatchesVideogameVersion = '49265.58843243.7069641';

const opponentId = 7;

const matchWinnerType = MatchWinnerType.PLAYER;

const filterOverCodmwMatches: FilterOverCodmwMatches = {
beginAt: ['min'],
detailedStats: true,
draw: true,
endAt: ['re'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [5],
matchType: [matchType],
modifiedAt: ['dolore Excepte'],
name: ['ut laborum labo'],
notStarted: true,
numberOfGames: [1],
opponentId: [filterOverCodmwMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['in eiu'],
serieId: [9],
slug: ['FyZHzUQlMqf'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCodmwMatchesVideogameTitle],
videogameVersion: [filterOverCodmwMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;

const matchStatus1 = MatchStatus.CANCELED;

const opponentId1 = 7;

const matchWinnerType1 = MatchWinnerType.PLAYER;

const rangeOverCodmwMatches: RangeOverCodmwMatches = {
beginAt: ['sunt pari'],
detailedStats: [true],
draw: [true],
endAt: ['et mollit'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['consequat au'],
name: ['animirure c'],
numberOfGames: [7],
scheduledAt: ['exercitation U'],
slug: ['b'],
status: [matchStatus1],
tournamentId: [8],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;

const matchStatus12 = MatchStatus.CANCELED;

const matchWinnerType12 = MatchWinnerType.PLAYER;

const searchOverCodmwMatches: SearchOverCodmwMatches = {
matchType: matchType12,
name: 'culpa ad do Du',
slug: 'QnETMGeSVO4',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;

const { data } = await pandascoreClient.codmwMatches.getCodmwMatchesRunning({
filter: filterOverCodmwMatches,
range: rangeOverCodmwMatches,
sort: [[]],
search: searchOverCodmwMatches,
page: page,
perPage: 50,
});

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

get_codmw_matches_upcoming

List upcoming CODMW matches

  • HTTP Method: GET
  • Endpoint: /codmw/matches/upcoming

Parameters

NameTypeRequiredDescription
filterFilterOverCodmwMatchesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverCodmwMatchesOptions to select results within ranges
For more information on ranges, see docs.
sortany[]Options to sort results
For more information on sorting, see docs.
searchSearchOverCodmwMatchesOptions 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

Match[]

Example Usage Code Snippet

import {
FilterOverCodmwMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverCodmwMatches,
SearchOverCodmwMatches,
} 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 filterOverCodmwMatchesVideogameTitle = 9;

const filterOverCodmwMatchesVideogameVersion = '49265.58843243.7069641';

const opponentId = 7;

const matchWinnerType = MatchWinnerType.PLAYER;

const filterOverCodmwMatches: FilterOverCodmwMatches = {
beginAt: ['min'],
detailedStats: true,
draw: true,
endAt: ['re'],
finished: true,
forfeit: true,
future: true,
id: [3],
leagueId: [5],
matchType: [matchType],
modifiedAt: ['dolore Excepte'],
name: ['ut laborum labo'],
notStarted: true,
numberOfGames: [1],
opponentId: [filterOverCodmwMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['in eiu'],
serieId: [9],
slug: ['FyZHzUQlMqf'],
status: [matchStatus],
tournamentId: [5],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverCodmwMatchesVideogameTitle],
videogameVersion: [filterOverCodmwMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;

const matchStatus1 = MatchStatus.CANCELED;

const opponentId1 = 7;

const matchWinnerType1 = MatchWinnerType.PLAYER;

const rangeOverCodmwMatches: RangeOverCodmwMatches = {
beginAt: ['sunt pari'],
detailedStats: [true],
draw: [true],
endAt: ['et mollit'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['consequat au'],
name: ['animirure c'],
numberOfGames: [7],
scheduledAt: ['exercitation U'],
slug: ['b'],
status: [matchStatus1],
tournamentId: [8],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;

const matchStatus12 = MatchStatus.CANCELED;

const matchWinnerType12 = MatchWinnerType.PLAYER;

const searchOverCodmwMatches: SearchOverCodmwMatches = {
matchType: matchType12,
name: 'culpa ad do Du',
slug: 'QnETMGeSVO4',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;

const { data } = await pandascoreClient.codmwMatches.getCodmwMatchesUpcoming({
filter: filterOverCodmwMatches,
range: rangeOverCodmwMatches,
sort: [[]],
search: searchOverCodmwMatches,
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 →