{"id":16990619,"url":"https://github.com/booxood/node-dota2-api","last_synced_at":"2025-10-04T21:48:54.115Z","repository":{"id":23041841,"uuid":"26394822","full_name":"booxood/node-dota2-api","owner":"booxood","description":"Dota2 web api node.js version","archived":false,"fork":false,"pushed_at":"2022-01-22T16:05:51.000Z","size":27,"stargazers_count":43,"open_issues_count":7,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-14T15:44:24.978Z","etag":null,"topics":["api","dota2","dota2-api","javascript","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/booxood.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":"2014-11-09T12:24:46.000Z","updated_at":"2023-10-08T05:42:30.000Z","dependencies_parsed_at":"2022-08-31T18:01:11.633Z","dependency_job_id":null,"html_url":"https://github.com/booxood/node-dota2-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/booxood/node-dota2-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booxood%2Fnode-dota2-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booxood%2Fnode-dota2-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booxood%2Fnode-dota2-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booxood%2Fnode-dota2-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/booxood","download_url":"https://codeload.github.com/booxood/node-dota2-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booxood%2Fnode-dota2-api/sbom","scorecard":{"id":248136,"data":{"date":"2025-08-11","repo":{"name":"github.com/booxood/node-dota2-api","commit":"7be54f8e5e68b760e5914e9481c48b62c408f57b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T07:58:05.373Z","repository_id":23041841,"created_at":"2025-08-17T07:58:05.373Z","updated_at":"2025-08-17T07:58:05.373Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278380456,"owners_count":25977216,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","dota2","dota2-api","javascript","nodejs"],"created_at":"2024-10-14T03:23:03.297Z","updated_at":"2025-10-04T21:48:54.069Z","avatar_url":"https://github.com/booxood.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dota2 Web Api\n\n\n[![Build Status](https://travis-ci.org/booxood/node-dota2-api.svg?branch=master)](https://travis-ci.org/booxood/node-dota2-api)\n[![Coverage Status](https://coveralls.io/repos/booxood/node-dota2-api/badge.svg)](https://coveralls.io/r/booxood/node-dota2-api)\n\n\n**IMPORTANT: API is based on promises from v0.2.0**\n\nDota2 web api node.js version.See detail [here](https://wiki.teamfortress.com/wiki/WebAPI#Dota_2)\n\n## Install\n\n```\nnpm install dota2-api\n```\n\n\nExample:\n```javascript\n  const Dota2Api = require('dota2-api');\n\n  const da = Dota2Api.create('a key');\n\n  const options = {game_mode: 1};\n  da.getMatchHistory(options).then((result) =\u003e {\n      console.log(result);\n  }, (errorResponseStatusText) =\u003e {\n      console.log(errorResponseStatusText);\n  });\n```\n\n\n## API\n\n**Methods relating to Dota 2 matches.**\n\n### Dota2Api.create(key, [ID])\nCreate Dota2Api instance,require a key.(if no, see [here](http://steamcommunity.com/dev/apikey))\n\nList of IDs:\n- 570 Dota 2 (**default**)\n- 816 Dota 2 internal test\n- 205790 Dota 2 (beta) test\n\n```javascript\n  const da = Dota2Api.create('a key', 570);\n```\n\n### Dota2Api.prototype.getLeagueListing([options])\nInformation about DotaTV-supported leagues.\nOptions:\n  - **leagueid (Optional) (int)** – The ID of the league to get the prize pool of.\n\n### Dota2Api.prototype.getLiveLeagueGames()\nA list of in-progress league matches, as well as details of that match as it unfolds.\n\n### Dota2Api.prototype.getMatchDetails([options])\nInformation about a particular match.\nOptions:\n  - **match_id (string)** – Match id\n\n### Dota2Api.prototype.getMatchHistory([options])\nA list of matches, filterable by various parameters.\nOptions:\n  - **hero_id (Optional) (uint32)** – A list of hero IDs can be found via the GetHeroes method.\n  - **game_mode (Optional) (uint32)**\n      - 0 - None\n      - 1 - All Pick\n      - 2 - Captain's Mode\n      - 3 - Random Draft\n      - 4 - Single Draft\n      - 5 - All Random\n      - 6 - Intro\n      - 7 - Diretide\n      - 8 - Reverse Captain's Mode\n      - 9 - The Greeviling\n      - 10 - Tutorial\n      - 11 - Mid Only\n      - 12 - Least Played\n      - 13 - New Player Pool\n      - 14 - Compendium Matchmaking\n      - 16 - Captain's Draft\n  - **skill (Optional) (uint32)** – Skill bracket for the matches (Ignored if an account ID is specified).\n      - 0 - Any\n      - 1 - Normal\n      - 2 - High\n      - 3 - Very High\n  - **date_min (Optional) (uint32)** – Minimum date range for returned matches (unix timestamp, rounded to the nearest day).\n  - **date_max (Optional) (uint32)** – Maximum date range for returned matches (unix timestamp, rounded to the nearest day).\n  - **min_players (Optional) (string)** – Minimum amount of players in a match for the match to be returned.\n  - **account_id (Optional) (string)** – 32-bit account ID.\n  - **league_id (Optional) (string)** – Only return matches from this league. A list of league IDs can be found via the GetLeagueListing method.\n  - **start_at_match_id (Optional) (string)** - Start searching for matches equal to or older than this match ID.\n  - **matches_requested (Optional) (number)** – Amount of matches to include in results (default: 25).\n  - **tournament_games_only (Optional) (string)** – Whether to limit results to tournament matches. (0 = false, 1 = true)\n\n### Dota2Api.prototype.getMatchHistoryBySequenceNum([options])\nA list of matches ordered by their sequence num.\nOptions:\n  - **start_at_match_seq_num (Optional) (uint64)** – The match sequence number to start returning results from.\n  - **matches_requested (Optional) (uint32)** – The amount of matches to return.\n\n### Dota2Api.prototype.getScheduledLeagueGames([options])\nA list of scheduled league games coming up.\nOptions:\n  - **date_min (Optional) (uint32)** – Unix timestamp\n  - **date_max (Optional) (uint32)** – Unix timestamp\n\n### Dota2Api.prototype.getTeamInfoByTeamID([options])\nA list of all the teams set up in-game.\nOptions:\n  - **start_at_team_id (Optional) (uint64)** – The team id to start returning results from.\n  - **teams_requested (Optional) (uint32)** – The amount of teams to return.\n\n### Dota2Api.prototype.getTournamentPlayerStats([options])\nStats about a particular player within a tournament.\nOptions:\n  - **account_id (string)** – 32-bit account ID.\n  - **league_id (Optional) (string)** – A list of league IDs can be found via the GetLeagueListing method. Will return status 8 - only supports tournament 65006 (The International) unless you provide 65006.\n  - **hero_id (Optional) (string)** – A list of hero IDs can be found via the GetHeroes method.\n  - **time_frame (Optional) (string)** – Only return stats between this time frame (parameter format not yet known).\n\n### Dota2Api.prototype.getTopLiveGame([options])\nOptions:\n  - **partner (int32)** – Which partner's games to use.\n\n**Methods relating to Dota 2.**\n\n### Dota2Api.prototype.getGameItems([options])\nDota 2 In-game items\nOptions:\n  - **language (Optional) (string)** – The language to provide hero names in.\n\n### Dota2Api.prototype.getItemIconPath([options])\nOptions:\n  - **iconname (string)** – The item icon name to get the CDN path of\n  - **icontype (Optional) (uint32)** – The type of image you want.\n      - 0 = normal\n      - 1 = large\n      - 2 = ingame\n\n### Dota2Api.prototype.getRarities([options])\nDota 2 item rarity list.\nOptions:\n  - **language (Optional) (string)** – The language to provide hero names in.\n\n### Dota2Api.prototype.getHeroes([options])\nA list of heroes within Dota 2.\nOptions:\n  - **language (Optional) (string)** – The language to provide hero names in.\n  - **itemizedonly (Optional) (bool)** – Return a list of itemized heroes only.\n\n### Dota2Api.prototype.getTournamentPrizePool([options])\nThe current prizepool for specific tournaments.\nOptions:\n  - **leagueid (Optional) (int)** – The ID of the league to get the prize pool of.\n\n\n## TODO:\nImplement this methods(https://wiki.teamfortress.com/wiki/WebAPI#Dota_2):\n\nIEconDOTA2_\u003cID\u003e\n- GetEventStatsForAccount\n\nIDOTA2MatchStats_\u003cID\u003e\n- GetRealtimeStats\n\nIDOTA2Fantasy_\u003cID\u003e\n- GetFantasyPlayerStats\n- GetPlayerOfficialInfo\n\nIDOTA2StreamSystem_\u003cID\u003e\n- GetBroadcasterInfo\n\nIDOTA2Teams_\u003cID\u003e\n- GetTeamInfo\n\nIDOTA2AutomatedTourney_\u003cID\u003e\n- GetActiveTournamentList\n\nIDOTA2Ticket_\u003cID\u003e\n- SetSteamAccountPurchased\n- SteamAccountValidForEvent\n\n## License\n[The MIT License](https://github.com/booxood/node-dota2-api/blob/master/LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbooxood%2Fnode-dota2-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbooxood%2Fnode-dota2-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbooxood%2Fnode-dota2-api/lists"}