{"id":18023191,"url":"https://github.com/sn99/dota2_webapi_bindings","last_synced_at":"2025-06-12T15:38:58.032Z","repository":{"id":57621516,"uuid":"304277641","full_name":"sn99/dota2_webapi_bindings","owner":"sn99","description":"Dota 2 webapi bindings for rust","archived":false,"fork":false,"pushed_at":"2020-10-18T00:21:42.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-30T12:56:01.889Z","etag":null,"topics":["dota2","dota2api","rust","webapi"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sn99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-15T09:37:11.000Z","updated_at":"2022-10-14T20:56:52.000Z","dependencies_parsed_at":"2022-09-26T20:10:26.480Z","dependency_job_id":null,"html_url":"https://github.com/sn99/dota2_webapi_bindings","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sn99/dota2_webapi_bindings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Fdota2_webapi_bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Fdota2_webapi_bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Fdota2_webapi_bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Fdota2_webapi_bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sn99","download_url":"https://codeload.github.com/sn99/dota2_webapi_bindings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Fdota2_webapi_bindings/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259495061,"owners_count":22866616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dota2","dota2api","rust","webapi"],"created_at":"2024-10-30T07:08:23.454Z","updated_at":"2025-06-12T15:38:57.957Z","avatar_url":"https://github.com/sn99.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dota2_webapi_bindings\n\n[![Build Status](https://travis-ci.com/sn99/dota2_webapi_bindings.svg?branch=master)](https://travis-ci.com/sn99/dota2_webapi_bindings)\n[![Crates.io Download](https://img.shields.io/crates/d/dota2_webapi_bindings.svg)](https://crates.io/crates/dota2_webapi_bindings)\n[![crate](https://img.shields.io/crates/v/dota2_webapi_bindings.svg)](https://crates.io/crates/dota2_webapi_bindings)\n[![Documentation](https://docs.rs/dota2_webapi_bindings/badge.svg)](https://docs.rs/dota2_webapi_bindings) \n\nDota 2 webapi bindings for rust\n\nYou can find the official(outdated) documentation [here](https://wiki.teamfortress.com/wiki/WebAPI#Dota_2)\n\nI am currently using [xpaw](https://steamapi.xpaw.me/#) to get a list of APIs\n\n### How to Use :\n\nIn `Cargo.toml` :\n```toml\n[dependencies]\ndota2_webapi_bindings = \"*\"\n```\nIn `main.rs` :\n\n```rust\n//main.rs\nuse dota2_webapi_bindings::Dota2Api;\nstatic DOTA2_KEY: \u0026str = \"0123456789\"; //example token\n\nfn main() {\n   let mut dota = Dota2Api::new(String::from(DOTA2_KEY));\n   // we use `set` to configure the URL first\n   dota.set_heroes().itemized_only(true).language(\"zh_zh\");\n   // you can also write the above as just `dota.set_heroes();` or `dota.set_heroes().itemized_only(true);`\n   // or just `dota.set_heroes().language(\"zh_zh\");` or `dota.set_heroes().language(\"zh_zh\").itemized_only(true);`\n   // our builder like function takes care of optional parameters\n \n   // and finally `get` to retrieve our struct\n   let data = dota.get_heroes().expect(\"something went wrong, ez mid\");\n }\n ```\n\nThe webapi terms are same as official except they are all in lowercase, Eg : `GetGameItems` is now `get_game_items()`.\n\n##### Available calls :\n* IEconDOTA2_570\n    * GetGameItems\n    * GetHeroes\n    * GetRarities\n    * GetTournamentPrizePool\n* IDOTA2Match_205790\n    * GetLeagueListing\n* IDOTA2Match_570\n    * GetLiveLeagueGames\n    * GetTopLiveGame\n\nSee [documentation](https://docs.rs/dota2_webapi_bindings) for more.\n\n**Note:** Try using `language()` with everything, just put in any string, it seems like its gives better readable name\nand description for some reason\n\n## License\n\nLicensed under\n\n * MIT license ([LICENSE.md](LICENSE.md) or http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn99%2Fdota2_webapi_bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsn99%2Fdota2_webapi_bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn99%2Fdota2_webapi_bindings/lists"}