Skip to main content

LoLChampionsService

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

MethodsDescription
get_lol_championsList champions
get_lol_champions_lolChampionIdGet a single champion by ID or by slug

get_lol_champions

List champions

  • HTTP Method: GET
  • Endpoint: /lol/champions

Parameters

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

LoLChampion[]

Example Usage Code Snippet

import {
FilterOverLoLChampions,
Page,
PandascoreClient,
RangeOverLoLChampions,
SearchOverLoLChampions,
} from 'pandascore_client';

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

const filterOverLoLChampions: FilterOverLoLChampions = {
armor: [5.35],
armorperlevel: [2.85],
attackdamage: [4.76],
attackdamageperlevel: [9.24],
attackrange: [3.35],
attackspeedoffset: [5.17],
attackspeedperlevel: [9.6],
crit: [6.73],
critperlevel: [3.81],
hp: [5.6],
hpperlevel: [7.71],
hpregen: [0.96],
hpregenperlevel: [6.1],
id: [8],
movespeed: [7.47],
mp: [5.77],
mpperlevel: [8.02],
mpregen: [9.83],
mpregenperlevel: [0.84],
name: ['et labore'],
spellblock: [1.91],
spellblockperlevel: [6.83],
videogameVersion: [],
};

const rangeOverLoLChampions: RangeOverLoLChampions = {
armor: [6.96],
armorperlevel: [9.76],
attackdamage: [7.04],
attackdamageperlevel: [1.33],
attackrange: [3.27],
attackspeedoffset: [2.7],
attackspeedperlevel: [6.48],
crit: [2.64],
critperlevel: [3.83],
hp: [2.77],
hpperlevel: [5.48],
hpregen: [2.16],
hpregenperlevel: [4.44],
id: [7],
movespeed: [9.89],
mp: [6.32],
mpperlevel: [0.37],
mpregen: [0.64],
mpregenperlevel: [2.8],
name: ['sit ipsum nostr'],
spellblock: [5.29],
spellblockperlevel: [4.75],
};

const searchOverLoLChampions: SearchOverLoLChampions = {
name: 'eu ex',
};
const page = 1;

const { data } = await pandascoreClient.loLChampions.getLolChampions({
filter: filterOverLoLChampions,
range: rangeOverLoLChampions,
sort: [[]],
search: searchOverLoLChampions,
page: page,
perPage: 50,
});

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

get_lol_champions_lolChampionId

Get a single champion by ID or by slug

  • HTTP Method: GET
  • Endpoint: /lol/champions/{lol_champion_id}

Parameters

NameTypeRequiredDescription
lolChampionIdnumberA champion ID

Return Type

LoLChampion

Example Usage Code Snippet

import { PandascoreClient } from 'pandascore_client';

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

const { data } = await pandascoreClient.loLChampions.getLolChampionsLolChampionId(5);

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

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →