Skip to main content

Dota2HeroesService

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

MethodsDescription
get_dota2_heroesList heroes
get_dota2_heroes_dota2_hero_id_or_slugGet a single hero by ID or by slug

get_dota2_heroes

List heroes

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

Parameters

NameTypeRequiredDescription
filterFilterOverDota2HeroesOptions to filter results. String fields are case sensitive
For more information on filtering, see docs.
rangeRangeOverDota2HeroesOptions 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.
searchSearchOverDota2HeroesOptions 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[Dota2Hero]

Example Usage Code Snippet

from pandascore_client import PandascoreClient, Environment
from pandascore_client.models import FilterOverDota2Heroes, RangeOverDota2Heroes, SearchOverDota2Heroes

sdk = PandascoreClient(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value,
timeout=10000
)
filter=FilterOverDota2Heroes(
id_=[
2
],
localized_name=[
"et do"
],
name=[
"-rmn"
]
)
range=RangeOverDota2Heroes(
id_=[
6
],
localized_name=[
"id pariatu"
],
name=[
"5"
]
)
sort=[
""
]
search=SearchOverDota2Heroes(
localized_name="consectetur",
name="4mqbolw_x"
)
page=1

result = sdk.dota2_heroes.get_dota2_heroes(
filter=filter,
range=range,
sort=sort,
search=search,
page=page,
per_page=50
)

print(result)

get_dota2_heroes_dota2_hero_id_or_slug

Get a single hero by ID or by slug

  • HTTP Method: GET
  • Endpoint: /dota2/heroes/{dota2_hero_id_or_slug}

Parameters

NameTypeRequiredDescription
dota2_hero_id_or_slugDota2HeroIdOrSlugA hero ID or slug

Return Type

Dota2Hero

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_hero_id_or_slug=9

result = sdk.dota2_heroes.get_dota2_heroes_dota2_hero_id_or_slug(dota2_hero_id_or_slug=dota2_hero_id_or_slug)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →