PubgMatchesService
A list of all methods in the PubgMatchesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_pubg_matches | List matches for the PUBG videogame |
get_pubg_matches_past | List past PUBG matches |
get_pubg_matches_running | List running PUBG matches |
get_pubg_matches_upcoming | List upcoming PUBG matches |
get_pubg_matches
List matches for the PUBG videogame
- HTTP Method:
GET
- Endpoint:
/pubg/matches
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverPubgMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverPubgMatches | ❌ | 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 | SearchOverPubgMatches | ❌ | 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 {
FilterOverPubgMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverPubgMatches,
SearchOverPubgMatches,
} 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 filterOverPubgMatchesVideogameTitle = 5;
const filterOverPubgMatchesVideogameVersion = '036.43414';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverPubgMatches: FilterOverPubgMatches = {
beginAt: ['aute eiusmod '],
detailedStats: true,
draw: true,
endAt: ['ullamco labor'],
finished: true,
forfeit: true,
future: true,
id: [9],
leagueId: [2],
matchType: [matchType],
modifiedAt: ['nisi irure culp'],
name: ['aute '],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverPubgMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['null'],
serieId: [4],
slug: ['1wzZ5GZv'],
status: [matchStatus],
tournamentId: [7],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverPubgMatchesVideogameTitle],
videogameVersion: [filterOverPubgMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverPubgMatches: RangeOverPubgMatches = {
beginAt: ['ut cillum in '],
detailedStats: [true],
draw: [true],
endAt: ['anim'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['in ut min'],
name: ['eu in'],
numberOfGames: [10],
scheduledAt: ['in '],
slug: ['FDoevNsA'],
status: [matchStatus1],
tournamentId: [5],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverPubgMatches: SearchOverPubgMatches = {
matchType: matchType12,
name: 'adipisic',
slug: 'H',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.pubgMatches.getPubgMatches({
filter: filterOverPubgMatches,
range: rangeOverPubgMatches,
sort: [[]],
search: searchOverPubgMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_pubg_matches_past
List past PUBG matches
- HTTP Method:
GET
- Endpoint:
/pubg/matches/past
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverPubgMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverPubgMatches | ❌ | 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 | SearchOverPubgMatches | ❌ | 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 {
FilterOverPubgMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverPubgMatches,
SearchOverPubgMatches,
} 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 filterOverPubgMatchesVideogameTitle = 5;
const filterOverPubgMatchesVideogameVersion = '036.43414';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverPubgMatches: FilterOverPubgMatches = {
beginAt: ['aute eiusmod '],
detailedStats: true,
draw: true,
endAt: ['ullamco labor'],
finished: true,
forfeit: true,
future: true,
id: [9],
leagueId: [2],
matchType: [matchType],
modifiedAt: ['nisi irure culp'],
name: ['aute '],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverPubgMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['null'],
serieId: [4],
slug: ['1wzZ5GZv'],
status: [matchStatus],
tournamentId: [7],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverPubgMatchesVideogameTitle],
videogameVersion: [filterOverPubgMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverPubgMatches: RangeOverPubgMatches = {
beginAt: ['ut cillum in '],
detailedStats: [true],
draw: [true],
endAt: ['anim'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['in ut min'],
name: ['eu in'],
numberOfGames: [10],
scheduledAt: ['in '],
slug: ['FDoevNsA'],
status: [matchStatus1],
tournamentId: [5],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverPubgMatches: SearchOverPubgMatches = {
matchType: matchType12,
name: 'adipisic',
slug: 'H',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.pubgMatches.getPubgMatchesPast({
filter: filterOverPubgMatches,
range: rangeOverPubgMatches,
sort: [[]],
search: searchOverPubgMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_pubg_matches_running
List running PUBG matches
- HTTP Method:
GET
- Endpoint:
/pubg/matches/running
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverPubgMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverPubgMatches | ❌ | 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 | SearchOverPubgMatches | ❌ | 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 {
FilterOverPubgMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverPubgMatches,
SearchOverPubgMatches,
} 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 filterOverPubgMatchesVideogameTitle = 5;
const filterOverPubgMatchesVideogameVersion = '036.43414';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverPubgMatches: FilterOverPubgMatches = {
beginAt: ['aute eiusmod '],
detailedStats: true,
draw: true,
endAt: ['ullamco labor'],
finished: true,
forfeit: true,
future: true,
id: [9],
leagueId: [2],
matchType: [matchType],
modifiedAt: ['nisi irure culp'],
name: ['aute '],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverPubgMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['null'],
serieId: [4],
slug: ['1wzZ5GZv'],
status: [matchStatus],
tournamentId: [7],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverPubgMatchesVideogameTitle],
videogameVersion: [filterOverPubgMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverPubgMatches: RangeOverPubgMatches = {
beginAt: ['ut cillum in '],
detailedStats: [true],
draw: [true],
endAt: ['anim'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['in ut min'],
name: ['eu in'],
numberOfGames: [10],
scheduledAt: ['in '],
slug: ['FDoevNsA'],
status: [matchStatus1],
tournamentId: [5],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverPubgMatches: SearchOverPubgMatches = {
matchType: matchType12,
name: 'adipisic',
slug: 'H',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.pubgMatches.getPubgMatchesRunning({
filter: filterOverPubgMatches,
range: rangeOverPubgMatches,
sort: [[]],
search: searchOverPubgMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_pubg_matches_upcoming
List upcoming PUBG matches
- HTTP Method:
GET
- Endpoint:
/pubg/matches/upcoming
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverPubgMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverPubgMatches | ❌ | 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 | SearchOverPubgMatches | ❌ | 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 {
FilterOverPubgMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverPubgMatches,
SearchOverPubgMatches,
} 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 filterOverPubgMatchesVideogameTitle = 5;
const filterOverPubgMatchesVideogameVersion = '036.43414';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverPubgMatches: FilterOverPubgMatches = {
beginAt: ['aute eiusmod '],
detailedStats: true,
draw: true,
endAt: ['ullamco labor'],
finished: true,
forfeit: true,
future: true,
id: [9],
leagueId: [2],
matchType: [matchType],
modifiedAt: ['nisi irure culp'],
name: ['aute '],
notStarted: true,
numberOfGames: [10],
opponentId: [filterOverPubgMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['null'],
serieId: [4],
slug: ['1wzZ5GZv'],
status: [matchStatus],
tournamentId: [7],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverPubgMatchesVideogameTitle],
videogameVersion: [filterOverPubgMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverPubgMatches: RangeOverPubgMatches = {
beginAt: ['ut cillum in '],
detailedStats: [true],
draw: [true],
endAt: ['anim'],
forfeit: [true],
id: [2],
matchType: [matchType1],
modifiedAt: ['in ut min'],
name: ['eu in'],
numberOfGames: [10],
scheduledAt: ['in '],
slug: ['FDoevNsA'],
status: [matchStatus1],
tournamentId: [5],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverPubgMatches: SearchOverPubgMatches = {
matchType: matchType12,
name: 'adipisic',
slug: 'H',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.pubgMatches.getPubgMatchesUpcoming({
filter: filterOverPubgMatches,
range: rangeOverPubgMatches,
sort: [[]],
search: searchOverPubgMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs