3 releases

new 0.0.4 Jan 12, 2025
0.0.3 Jan 11, 2025
0.0.2 Jan 10, 2025
0.0.1 Jan 10, 2025

#556 in Web programming

Download history 295/week @ 2025-01-05

298 downloads per month

GLWTPL license

190KB
5K SLoC

Kez

Kez is a rust crate for valve's dota2 web api. The name is the newest hero added to dota2 as of the time this crate is created(2025/01/09).

Motivation

As of 2025/01/09, there are two rust crate for the same functionality, namely dota2_api and dota2_webapi_bindings, however they are both outdated. In my attempt to write a dota2 match finder in rust, I have to manually write these equivelent code, so I decided to extract those code into a separate crate.

Supported APIs

  • get_match_history_by_seq_num: this is the primary APIs used by varies dota2 data websites now, you can requests at most 100 matches with this APIs in one request, and it gives back the most detailed match information like get_match_detail(this is not working right now).
  • get_match_history: this is the API for you if you want to find some specific matches, for example with specific hero or player. However this API is very hard to use IMO.
  • get_heroes: request a list of current available heroes.

TODOs

  • add more dota2 related types, LobbyType/GameMode/Item/...
  • add more APIs? GetTopLiveGame?
  • add more comments about varies fields of response
  • other things...

Dependencies

~4–16MB
~199K SLoC