User:RJackson/Dota2API
This API is not actively documented, under development, and not meant for public consumption. It may change at any time without notice. |
Rough documentation for the Dota2.com API. Data is returned in JSON format.
Contents
Global parameters
Parameters observed to be used on most methods:
- l (Optional)
- For localized strings; takes English name of language (none of those fancy ISO distractions).
- v (Optional)
- Unknown.
itemdata
Detailed data on gameplay (non-cosmetic) items.
GET http://www.dota2.com/jsfeed/itemdata
Result data
- itemdata
-
- item token
-
- id
- img
- Filename of the item's image, relative to
http://media.steampowered.com/apps/dota2/images/items/
- dname
- Item's display name.
- qual
- Token representing item quality? Observed tokens:
- artifact
- common
- component
- consumable
- epic
- rare
- secret_shop
- cost
- Gold cost of the item.
- desc
- Localized description.
- attrib
- HTML representing the items attributes.
- mc
- Mana cost
- cd
- Cooldown
- lore
- Localized item lore.
- components
- List of tokens for items combine to create this item; returns list or null.
- created
- Whether the item is created from components.
heropickerdata
Detailed data on heroes.
GET http://www.dota2.com/jsfeed/heropickerdata
Parameters
- v
- This parameter is required on this method, seems to accept any value.
Result data
- hero token
-
- name
- Localized name.
- bio
- Localied bio.
- atk
- Token representing attack type. Observed tokens:
- melee
- ranged
- atk_1
- Localized string representing attack type.
- roles
- List containing tokens representing hero roles. Observed tokens:
- Disabler
- Nuker
- Support
- Escape
- Initiator
- LaneSupport
- Durable
- Carry
- Pusher
- Jungler
- roles_1
- List containing strings representing hero roles. Doesn't appear to be localized.
uniqueusers
GET http://www.dota2.com/jsfeed/uniqueusers
Result data
- users_last_month