Skip to main content

Dota2ItemsService

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

MethodsDescription
get_dota2_itemsList items
get_dota2_items_dota2ItemIdOrSlugGet a single item by ID or by slug

get_dota2_items

List items

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

Parameters

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

Dota2Item[]

Example Usage Code Snippet

import {
FilterOverDota2Items,
Page,
PandascoreClient,
RangeOverDota2Items,
SearchOverDota2Items,
} from 'pandascore_client';

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

const filterOverDota2Items: FilterOverDota2Items = {
id: [3],
name: ['8cd5x'],
};

const rangeOverDota2Items: RangeOverDota2Items = {
id: [4],
name: ['mmypoz-ntw9'],
};

const searchOverDota2Items: SearchOverDota2Items = {
name: 'grbfwr',
};
const page = 1;

const { data } = await pandascoreClient.dota2Items.getDota2Items({
filter: filterOverDota2Items,
range: rangeOverDota2Items,
sort: [[]],
search: searchOverDota2Items,
page: page,
perPage: 50,
});

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

get_dota2_items_dota2ItemIdOrSlug

Get a single item by ID or by slug

  • HTTP Method: GET
  • Endpoint: /dota2/items/{dota2_item_id_or_slug}

Parameters

NameTypeRequiredDescription
dota2ItemIdOrSlugDota2ItemIdOrSlugAn item ID or slug

Return Type

Dota2Item

Example Usage Code Snippet

import { Dota2ItemIdOrSlug, PandascoreClient } from 'pandascore_client';

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

const dota2ItemIdOrSlug = 6;

const { data } = await pandascoreClient.dota2Items.getDota2ItemsDota2ItemIdOrSlug();

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

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →