Skip to main content

OwGamesService

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

MethodsDescription
get_ow_games_owGameIdGet a single Overwatch game by ID
get_ow_matches_matchIdOrSlug_gamesList games for a given Overwatch match

get_ow_games_owGameId

Get a single Overwatch game by ID

  • HTTP Method: GET
  • Endpoint: /ow/games/{ow_game_id}

Parameters

NameTypeRequiredDescription
owGameIdnumberAn Overwatch game ID

Return Type

OwGame

Example Usage Code Snippet

import { PandascoreClient } from 'pandascore_client';

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

const { data } = await pandascoreClient.owGames.getOwGamesOwGameId(3);

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

get_ow_matches_matchIdOrSlug_games

List games for a given Overwatch match

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

Parameters

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

OwGame[]

Example Usage Code Snippet

import { FilterOverOwGames, GameStatus, MatchIdOrSlug, OpponentType, Page, PandascoreClient, RangeOverOwGames, SearchOverOwGames } from 'pandascore_client';

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

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

const opponentType = OpponentType.PLAYER;

const filterOverOwGames: FilterOverOwGames = {
beginAt: ["e"],
complete: true,
detailedStats: true,
endAt: ["si"],
finished: true,
forfeit: true,
id: [6],
length: [4],
matchId: [10],
position: [8],
status: [gameStatus],
winnerType: [opponentType]
};
const gameStatus1 = GameStatus.FINISHED;

const opponentType1 = OpponentType.PLAYER;

const rangeOverOwGames: RangeOverOwGames = {
beginAt: ["cupidat"],
complete: [true],
detailedStats: [true],
endAt: ["conse"],
finished: [true],
forfeit: [true],
id: [9],
length: [2],
matchId: [2],
position: [6],
status: [gameStatus1],
winnerType: [opponentType1]
};
const gameStatus12 = GameStatus.FINISHED;

const opponentType12 = OpponentType.PLAYER;

const searchOverOwGames: SearchOverOwGames = {
status: gameStatus12,
winnerType: opponentType12
};
const page = 1;

const { data } = await pandascoreClient.owGames.getOwMatchesMatchIdOrSlugGames(
,
{
filter: filterOverOwGames,
range: rangeOverOwGames,
sort: [[]],
search: searchOverOwGames,
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 →