Paging support for players/{account_id}/mmr
your opendota api is very worked to me,thank you
but i have a question :How to get account_id by user name
There isn't a really good way to do it since Steam users can change their tag at any time. You can try using the /search endpoint to attempt to find players by the last name we have on record for them.
thank you .but when i query username = 123,there have too many results,but i want to get the results by page. is there have a good way to get?
Unfortunately the server limits results to 500, so searching for common usernames may be difficult. We do this because otherwise the search request might take too long.
If the user logs in via Steam, your server can identify them and find their account_id that way.
thank you
how to get player's recent match by page? @howardchung
i want to build an app with your api, but most of them doesn't have the way to get data by page.i'm very hope you to add this method to me .thank you very much.
What do you mean by recent match by page?
The /players/{account_id}/matches endpoint is a full listing of the matches the player has played.
/players/{account_id}/recentMatches returns only the last 20, but is faster.
like this,https://wiki.teamfortress.com/wiki/WebAPI/GetMatchHistory start_at_match_id (Optional) (string) Start searching for matches equal to or older than this match ID matches_requested (Optional) (string) Amount of matches to include in results (default: 25).
That should be covered by the /players/{account_id}/matches endpoint. It returns all matches (there is no paging)
If you want to page you can pass limit and offset parameters. (This should be in the docs, let me know if it's not there)
ok
Hello my friend ,how to get hero's info by hero id?
What info are you looking for?
for example,hero's icon,name,skills and hero's other info the more the better
See the dotaconstants project for this data: https://github.com/odota/dotaconstants/tree/master/build
how can i know when the constants's data get updated?
You can watch the repo for updates. We run a script to update it after patches.
https://api.opendota.com/api/players/{account_id}/ratings hey brother,can you add some params that can query the result by limit?
example?