odota / core

Open source Dota 2 data platform
https://www.opendota.com
MIT License
1.51k stars 300 forks source link

Method 'GetGameItems' not found in interface 'IEconDOTA2_570' #2743

Closed OneTrueSum95 closed 6 months ago

OneTrueSum95 commented 7 months ago

I want to get some items' name and lore in different languages, but the official api is not available, and the OPENDOTA's api is English only.

builder-247 commented 6 months ago

You can use the new official APIs:

Item List https://www.dota2.com/datafeed/itemlist?language=English

Item Details (Blink Dagger id: 1) https://www.dota2.com/datafeed/itemdata?language=english&item_id=1

OneTrueSum95 commented 6 months ago

You can use the new official APIs:

Item List https://www.dota2.com/datafeed/itemlist?language=English

Item Details (Blink Dagger id: 1) https://www.dota2.com/datafeed/itemdata?language=english&item_id=1

Thanks, that's what I wanted! And are there any more types of APIs?

builder-247 commented 6 months ago

Thanks, that's what I wanted! And are there any more types of APIs?

Here is the full list that I know of:

Item List https://www.dota2.com/datafeed/itemlist?language=English

Item Details (Blink Dagger id: 1) https://www.dota2.com/datafeed/itemdata?language=english&item_id=1

Hero List https://www.dota2.com/datafeed/herolist?language=English

Hero Details (Anti-Mage id: 1) https://www.dota2.com/datafeed/herodata?language=english&hero_id=1

Ability List https://www.dota2.com/datafeed/abilitylist?language=English

Ability Data https://www.dota2.com/datafeed/abilitydata?language=English&ability_id=5007

Unique Users https://www.dota2.com/datafeed/uniqueusers?language=English

Patch Notes List https://www.dota2.com/datafeed/patchnoteslist?language=English

Patch Notes (7.29d) https://www.dota2.com/datafeed/patchnotes?language=English&version=7.29d

OneTrueSum95 commented 6 months ago

Awesome! By the way, are these APIs temporary or long-term? I wouldn't want Valve to suddenly stop using these APIs one day while I'm using it, just like what they did with the old ones on that TF2 page.

howardchung commented 6 months ago

It's Valve so you should probably consider all APIs potentially short-term and subject to unannounced change