LoLMatchesService
A list of all methods in the LoLMatchesService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_lol_matches | List matches for the League of Legends videogame |
get_lol_matches_past | List past League of Legends matches |
get_lol_matches_running | List running League of Legends matches |
get_lol_matches_upcoming | List upcoming League of Legends matches |
get_lol_matches_matchIdOrSlug | Get a single League of Legends match by ID or slug |
get_lol_matches
List matches for the League of Legends videogame
- HTTP Method:
GET
- Endpoint:
/lol/matches
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLMatches | ❌ | 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 | SearchOverLoLMatches | ❌ | 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 {
FilterOverLoLMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverLoLMatches,
SearchOverLoLMatches,
} 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 filterOverLoLMatchesVideogameTitle = 9;
const filterOverLoLMatchesVideogameVersion = '076677.94865001934.580355685';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverLoLMatches: FilterOverLoLMatches = {
beginAt: ['nisi e'],
detailedStats: true,
draw: true,
endAt: ['deserun'],
finished: true,
forfeit: true,
future: true,
id: [6],
leagueId: [10],
matchType: [matchType],
modifiedAt: ['laborum '],
name: ['sint velit'],
notStarted: true,
numberOfGames: [123],
opponentId: [filterOverLoLMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['Duis Lorem'],
serieId: [1],
slug: ['rki'],
status: [matchStatus],
tournamentId: [6],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverLoLMatchesVideogameTitle],
videogameVersion: [filterOverLoLMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverLoLMatches: RangeOverLoLMatches = {
beginAt: ['occaecat'],
detailedStats: [true],
draw: [true],
endAt: ['velit est'],
forfeit: [true],
id: [3],
matchType: [matchType1],
modifiedAt: ['labori'],
name: ['cillum'],
numberOfGames: [6],
scheduledAt: ['ad dolor qu'],
slug: ['XMb'],
status: [matchStatus1],
tournamentId: [2],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverLoLMatches: SearchOverLoLMatches = {
matchType: matchType12,
name: 'etocc',
slug: 'WYcNZudjm l',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.loLMatches.getLolMatches({
filter: filterOverLoLMatches,
range: rangeOverLoLMatches,
sort: [[]],
search: searchOverLoLMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_lol_matches_past
List past League of Legends matches
- HTTP Method:
GET
- Endpoint:
/lol/matches/past
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLMatches | ❌ | 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 | SearchOverLoLMatches | ❌ | 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 {
FilterOverLoLMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverLoLMatches,
SearchOverLoLMatches,
} 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 filterOverLoLMatchesVideogameTitle = 9;
const filterOverLoLMatchesVideogameVersion = '076677.94865001934.580355685';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverLoLMatches: FilterOverLoLMatches = {
beginAt: ['nisi e'],
detailedStats: true,
draw: true,
endAt: ['deserun'],
finished: true,
forfeit: true,
future: true,
id: [6],
leagueId: [10],
matchType: [matchType],
modifiedAt: ['laborum '],
name: ['sint velit'],
notStarted: true,
numberOfGames: [123],
opponentId: [filterOverLoLMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['Duis Lorem'],
serieId: [1],
slug: ['rki'],
status: [matchStatus],
tournamentId: [6],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverLoLMatchesVideogameTitle],
videogameVersion: [filterOverLoLMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverLoLMatches: RangeOverLoLMatches = {
beginAt: ['occaecat'],
detailedStats: [true],
draw: [true],
endAt: ['velit est'],
forfeit: [true],
id: [3],
matchType: [matchType1],
modifiedAt: ['labori'],
name: ['cillum'],
numberOfGames: [6],
scheduledAt: ['ad dolor qu'],
slug: ['XMb'],
status: [matchStatus1],
tournamentId: [2],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverLoLMatches: SearchOverLoLMatches = {
matchType: matchType12,
name: 'etocc',
slug: 'WYcNZudjm l',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.loLMatches.getLolMatchesPast({
filter: filterOverLoLMatches,
range: rangeOverLoLMatches,
sort: [[]],
search: searchOverLoLMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_lol_matches_running
List running League of Legends matches
- HTTP Method:
GET
- Endpoint:
/lol/matches/running
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLMatches | ❌ | 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 | SearchOverLoLMatches | ❌ | 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 {
FilterOverLoLMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverLoLMatches,
SearchOverLoLMatches,
} 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 filterOverLoLMatchesVideogameTitle = 9;
const filterOverLoLMatchesVideogameVersion = '076677.94865001934.580355685';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverLoLMatches: FilterOverLoLMatches = {
beginAt: ['nisi e'],
detailedStats: true,
draw: true,
endAt: ['deserun'],
finished: true,
forfeit: true,
future: true,
id: [6],
leagueId: [10],
matchType: [matchType],
modifiedAt: ['laborum '],
name: ['sint velit'],
notStarted: true,
numberOfGames: [123],
opponentId: [filterOverLoLMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['Duis Lorem'],
serieId: [1],
slug: ['rki'],
status: [matchStatus],
tournamentId: [6],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverLoLMatchesVideogameTitle],
videogameVersion: [filterOverLoLMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverLoLMatches: RangeOverLoLMatches = {
beginAt: ['occaecat'],
detailedStats: [true],
draw: [true],
endAt: ['velit est'],
forfeit: [true],
id: [3],
matchType: [matchType1],
modifiedAt: ['labori'],
name: ['cillum'],
numberOfGames: [6],
scheduledAt: ['ad dolor qu'],
slug: ['XMb'],
status: [matchStatus1],
tournamentId: [2],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverLoLMatches: SearchOverLoLMatches = {
matchType: matchType12,
name: 'etocc',
slug: 'WYcNZudjm l',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.loLMatches.getLolMatchesRunning({
filter: filterOverLoLMatches,
range: rangeOverLoLMatches,
sort: [[]],
search: searchOverLoLMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_lol_matches_upcoming
List upcoming League of Legends matches
- HTTP Method:
GET
- Endpoint:
/lol/matches/upcoming
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverLoLMatches | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverLoLMatches | ❌ | 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 | SearchOverLoLMatches | ❌ | 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 {
FilterOverLoLMatches,
MatchStatus,
MatchType,
MatchWinnerType,
Page,
PandascoreClient,
RangeOverLoLMatches,
SearchOverLoLMatches,
} 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 filterOverLoLMatchesVideogameTitle = 9;
const filterOverLoLMatchesVideogameVersion = '076677.94865001934.580355685';
const opponentId = 7;
const matchWinnerType = MatchWinnerType.PLAYER;
const filterOverLoLMatches: FilterOverLoLMatches = {
beginAt: ['nisi e'],
detailedStats: true,
draw: true,
endAt: ['deserun'],
finished: true,
forfeit: true,
future: true,
id: [6],
leagueId: [10],
matchType: [matchType],
modifiedAt: ['laborum '],
name: ['sint velit'],
notStarted: true,
numberOfGames: [123],
opponentId: [filterOverLoLMatchesOpponentId],
opponentsFilled: true,
past: true,
running: true,
scheduledAt: ['Duis Lorem'],
serieId: [1],
slug: ['rki'],
status: [matchStatus],
tournamentId: [6],
unscheduled: true,
videogame: [videogameIdOrSlug],
videogameTitle: [filterOverLoLMatchesVideogameTitle],
videogameVersion: [filterOverLoLMatchesVideogameVersion],
winnerId: [opponentId],
winnerType: [matchWinnerType],
};
const matchType1 = MatchType.ALLGAMESPLAYED;
const matchStatus1 = MatchStatus.CANCELED;
const opponentId1 = 7;
const matchWinnerType1 = MatchWinnerType.PLAYER;
const rangeOverLoLMatches: RangeOverLoLMatches = {
beginAt: ['occaecat'],
detailedStats: [true],
draw: [true],
endAt: ['velit est'],
forfeit: [true],
id: [3],
matchType: [matchType1],
modifiedAt: ['labori'],
name: ['cillum'],
numberOfGames: [6],
scheduledAt: ['ad dolor qu'],
slug: ['XMb'],
status: [matchStatus1],
tournamentId: [2],
winnerId: [opponentId1],
winnerType: [matchWinnerType1],
};
const matchType12 = MatchType.ALLGAMESPLAYED;
const matchStatus12 = MatchStatus.CANCELED;
const matchWinnerType12 = MatchWinnerType.PLAYER;
const searchOverLoLMatches: SearchOverLoLMatches = {
matchType: matchType12,
name: 'etocc',
slug: 'WYcNZudjm l',
status: matchStatus12,
winnerType: matchWinnerType12,
};
const page = 1;
const { data } = await pandascoreClient.loLMatches.getLolMatchesUpcoming({
filter: filterOverLoLMatches,
range: rangeOverLoLMatches,
sort: [[]],
search: searchOverLoLMatches,
page: page,
perPage: 50,
});
console.log(data);
})();
get_lol_matches_matchIdOrSlug
Get a single League of Legends match by ID or slug
- HTTP Method:
GET
- Endpoint:
/lol/matches/{match_id_or_slug}
Parameters
Name | Type | Required | Description |
---|---|---|---|
matchIdOrSlug | MatchIdOrSlug | ✅ | A match ID or slug |
Return Type
LoLMatch
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.loLMatches.getLolMatchesMatchIdOrSlug();
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs