Skip to main content

Dota2LeaguesService

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

MethodsDescription
get_dota2_leaguesList Dota2 leagues

get_dota2_leagues

List Dota2 leagues

  • HTTP Method: GET
  • Endpoint: /dota2/leagues

Parameters

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

League[]

Example Usage Code Snippet

import {
FilterOverDota2Leagues,
Page,
PandascoreClient,
RangeOverDota2Leagues,
SearchOverDota2Leagues,
} from 'pandascore_client';

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

const filterOverDota2Leagues: FilterOverDota2Leagues = {
id: [3],
modifiedAt: ['proident labo'],
name: ['dolor proid'],
slug: ['_lxx'],
url: ['anim ea est U'],
};

const rangeOverDota2Leagues: RangeOverDota2Leagues = {
id: [8],
modifiedAt: ['aliqua aute'],
name: ['aliqua ea '],
slug: ['uic'],
url: ['in aute elit'],
};

const searchOverDota2Leagues: SearchOverDota2Leagues = {
name: 'Excepteur ip',
slug: 'pu97glcez',
url: 'dolore ipsum d',
};
const page = 1;

const { data } = await pandascoreClient.dota2Leagues.getDota2Leagues({
filter: filterOverDota2Leagues,
range: rangeOverDota2Leagues,
sort: [[]],
search: searchOverDota2Leagues,
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 →