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_dota2_item_id_or_slugGet 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.
sortList[any]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
per_pageintEquivalent to page[size]

Return Type

List[Dota2Item]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverDota2Items, RangeOverDota2Items, SearchOverDota2Items

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverDota2Items(
id_=[
3
],
name=[
"8cd5x"
]
)
range=RangeOverDota2Items(
id_=[
4
],
name=[
"mmypoz-ntw9"
]
)
sort=[
""
]
search=SearchOverDota2Items(
name="grbfwr"
)
page=1

result = sdk.dota2_items.get_dota2_items(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)

print(result)

get_dota2_items_dota2_item_id_or_slug

Get a single item by ID or by slug

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

Parameters

NameTypeRequiredDescription
dota2_item_id_or_slugDota2ItemIdOrSlugAn item ID or slug

Return Type

Dota2Item

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
dota2_item_id_or_slug=6

result = sdk.dota2_items.get_dota2_items_dota2_item_id_or_slug(dota2_item_id_or_slug=dota2_item_id_or_slug)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →