OpenDota API
Returns Dota 2 heroes, hero pick and win statistics, player profiles, professional matches, match details and player match history.
View as Markdown| GET | /opendota/heroes | All Dota 2 heroes with their primary attribute, attack type and roles. |
| GET | /opendota/heroStats | Pick, win and ban counts of every hero in public and professional matches. |
| GET | /opendota/player | A Dota 2 player's profile by account id: name, avatar, rank and MMR estimate. |
| GET | /opendota/proMatches | The most recent professional matches, newest first. |
| GET | /opendota/match | One Dota 2 match by id: result, duration, score and the ten players with their stats. |
| GET | /opendota/playerMatches | A player's most recent matches, newest first, up to 100. |
| GET | /opendota/playerWinLoss | A player's total wins and losses in ranked and unranked Dota 2 matches. |
| GET | /opendota/playerHeroes | The heroes a player has played, most played first, with wins and the games played with and against. |
| GET | /opendota/search | Dota 2 players whose name matches the query, with their account id and last match time. |
| GET | /opendota/rankDistribution | How many players of the ranked ladder sit in each rank bin, with the running total. |
| GET | /opendota/teams | Professional Dota 2 teams ranked by OpenDota rating, best first, 1000 per page. |
| GET | /opendota/liveMatches | Dota 2 matches being played right now that spectators can watch, with their score and average MMR. |
| GET | /opendota/publicMatches | The 100 most recent public Dota 2 matches with their lobby, rank and the heroes of both teams. |
| GET | /opendota/playerTotals | A player's career totals and per-game averages for each stat, such as kills, deaths and gold per minute. |
| GET | /opendota/playerPeers | The players a player has most often played with or against, most games first, up to 200. |
| GET | /opendota/heroMatchups | How often one hero won against each other hero in public matches: games played and wins per opposing hero. |
heroes
/v1/opendota/heroesAll Dota 2 heroes with their primary attribute, attack type and roles.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
attackType | string |
id | string |
name | string |
primaryAttr | string |
roles | string[] |
curl "https://api.hoshime.com/v1/opendota/heroes" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/heroes", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/heroes", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "attackType": "Melee", "id": "1", "name": "Anti-Mage", "primaryAttr": "agi", "roles": [ "Carry", "Escape" ] }, { "attackType": "Melee", "id": "2", "name": "Axe", "primaryAttr": "str", "roles": [ "Initiator", "Durable" ] } ], "meta": { "cached": false, "endpoint": "heroes", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
heroStats
/v1/opendota/heroStatsPick, win and ban counts of every hero in public and professional matches.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
id | string |
name | string |
proBan | integer (int64) |
proPick | integer (int64) |
proWin | integer (int64) |
pubPick | integer (int64) |
pubWin | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/heroStats" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/heroStats", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/heroStats", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "1", "name": "Anti-Mage", "proBan": 17, "proPick": 8, "proWin": 5, "pubPick": 672433, "pubWin": 344375 }, { "id": "2", "name": "Axe", "proBan": 7, "proPick": 5, "proWin": 4, "pubPick": 675349, "pubWin": 340069 } ], "meta": { "cached": false, "endpoint": "heroStats", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
player
/v1/opendota/playerA Dota 2 player's profile by account id: name, avatar, rank and MMR estimate.
Parameters
accountIdinteger required | Dota 2 account id, the 32-bit id in the player's profile URL. e.g. 105248644 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
leaderboardRank | integer (int64) |
mmrEstimate | integer (int64) |
name | string |
postCount | integer (int64) |
proName | string |
rankTier | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/opendota/player?accountId=105248644" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/player?accountId=105248644", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/player?accountId=105248644", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "avatarUrl": "https://avatars.steamstatic.com/4004d1ccdbf3145e8d93a081a9eb05378a676fde_full.jpg", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "105248644", "leaderboardRank": 16, "mmrEstimate": 0, "name": "SawagedBlind", "postCount": 0, "proName": "Miracle-", "rankTier": 80, "url": "", "username": "", "verified": false }, "meta": { "cached": false, "endpoint": "player", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
proMatches
/v1/opendota/proMatchesThe most recent professional matches, newest first.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
direName | string |
direScore | integer (int64) |
duration | integer (int64) |
leagueName | string |
matchId | string |
radiantName | string |
radiantScore | integer (int64) |
radiantWin | boolean |
startedAt | string |
curl "https://api.hoshime.com/v1/opendota/proMatches" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/proMatches", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/proMatches", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "direName": "", "direScore": 24, "duration": 2195, "leagueName": "护鼠宝", "matchId": "9078644458", "radiantName": "", "radiantScore": 67, "radiantWin": true, "startedAt": "2026-11-06T15:02:30Z" }, { "direName": "", "direScore": 24, "duration": 2175, "leagueName": "护鼠宝", "matchId": "9078565510", "radiantName": "", "radiantScore": 74, "radiantWin": true, "startedAt": "2026-11-06T14:11:44Z" } ], "meta": { "cached": false, "endpoint": "proMatches", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
match
/v1/opendota/matchOne Dota 2 match by id: result, duration, score and the ten players with their stats.
Parameters
matchIdinteger required | Dota 2 match id, such as 7000000000. e.g. 7000000000 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
24 fields
cluster | integer (int64) |
direScore | integer (int64) |
durationSec | integer (int64) |
firstBloodSec | integer (int64) |
gameMode | integer (int64) |
lobbyType | integer (int64) |
matchId | string |
players | MatchPlayer[] |
accountId | string |
assists | integer (int64) |
deaths | integer (int64) |
denies | integer (int64) |
goldPerMin | integer (int64) |
heroDamage | integer (int64) |
heroId | string |
kills | integer (int64) |
lastHits | integer (int64) |
level | integer (int64) |
slot | integer (int64) |
towerDamage | integer (int64) |
xpPerMin | integer (int64) |
radiantScore | integer (int64) |
radiantWin | boolean |
startedAt | string |
curl "https://api.hoshime.com/v1/opendota/match?matchId=7000000000" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/match?matchId=7000000000", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/match?matchId=7000000000", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "cluster": 181, "direScore": 53, "durationSec": 1604, "firstBloodSec": 0, "gameMode": 23, "lobbyType": 0, "matchId": "7000000000", "players": [ { "accountId": "157879374", "assists": 9, "deaths": 8, "denies": 13, "goldPerMin": 1329, "heroDamage": 30272, "heroId": "11", "kills": 8, "lastHits": 129, "level": 30, "slot": 0, "towerDamage": 1091, "xpPerMin": 1682 }, { "accountId": "351030372", "assists": 13, "deaths": 10, "denies": 2, "goldPerMin": 943, "heroDamage": 37924, "heroId": "119", "kills": 5, "lastHits": 44, "level": 29, "slot": 1, "towerDamage": 0, "xpPerMin": 1672 } ], "radiantScore": 33, "radiantWin": false, "startedAt": "2023-02-03T14:45:35Z" }, "meta": { "cached": false, "endpoint": "match", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
playerMatches
/v1/opendota/playerMatchesA player's most recent matches, newest first, up to 100.
Parameters
accountIdinteger required | Dota 2 account id, the 32-bit id in the player's profile URL. e.g. 105248644 |
limitinteger | Items per page, 1 to 100. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
assists | integer (int64) |
averageRank | integer (int64) |
deaths | integer (int64) |
durationSec | integer (int64) |
gameMode | integer (int64) |
heroId | string |
kills | integer (int64) |
lobbyType | integer (int64) |
matchId | string |
radiantWin | boolean |
slot | integer (int64) |
startedAt | string |
curl "https://api.hoshime.com/v1/opendota/playerMatches?accountId=105248644" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/playerMatches?accountId=105248644", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/playerMatches?accountId=105248644", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "assists": 12, "averageRank": 81, "deaths": 4, "durationSec": 2976, "gameMode": 2, "heroId": "4", "kills": 13, "lobbyType": 1, "matchId": "8138048280", "radiantWin": true, "slot": 2, "startedAt": "2025-01-20T16:12:12Z" }, { "assists": 7, "averageRank": 81, "deaths": 6, "durationSec": 3193, "gameMode": 2, "heroId": "60", "kills": 13, "lobbyType": 1, "matchId": "8137928896", "radiantWin": true, "slot": 130, "startedAt": "2025-01-20T14:54:09Z" } ], "meta": { "cached": false, "endpoint": "playerMatches", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
playerWinLoss
/v1/opendota/playerWinLossA player's total wins and losses in ranked and unranked Dota 2 matches.
Parameters
accountIdinteger required | Dota 2 account id, the 32-bit id in the player's profile URL. e.g. 105248644 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
losses | integer (int64) |
wins | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/playerWinLoss?accountId=105248644" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/playerWinLoss?accountId=105248644", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/playerWinLoss?accountId=105248644", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "losses": 1678, "wins": 2391 }, "meta": { "cached": false, "endpoint": "playerWinLoss", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
playerHeroes
/v1/opendota/playerHeroesThe heroes a player has played, most played first, with wins and the games played with and against.
Parameters
accountIdinteger required | Dota 2 account id, the 32-bit id in the player's profile URL. e.g. 105248644 |
limitinteger | Items per page, 1 to 200. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
againstGames | integer (int64) |
againstWins | integer (int64) |
games | integer (int64) |
heroId | string |
lastPlayedAt | string |
wins | integer (int64) |
withGames | integer (int64) |
withWins | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/playerHeroes?accountId=105248644" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/playerHeroes?accountId=105248644", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/playerHeroes?accountId=105248644", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "againstGames": 2, "againstWins": 1, "games": 6, "heroId": "99", "lastPlayedAt": "2025-01-20T13:57:01Z", "wins": 5, "withGames": 0, "withWins": 0 }, { "againstGames": 2, "againstWins": 1, "games": 5, "heroId": "46", "lastPlayedAt": "2025-01-20T09:55:05Z", "wins": 3, "withGames": 0, "withWins": 0 } ], "meta": { "cached": false, "endpoint": "playerHeroes", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
/v1/opendota/searchDota 2 players whose name matches the query, with their account id and last match time.
Parameters
querystring required | Player name to search for, such as miracle. e.g. miracle |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
12 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
lastMatchAt | string |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/opendota/search?query=miracle" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/search?query=miracle", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/search?query=miracle", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "avatarUrl": "https://avatars.steamstatic.com/d4cf695add4b726aa8ea4546d606299adff1165f_full.jpg", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "158895897", "lastMatchAt": "2026-11-06T17:31:31.000Z", "name": "+/- Miracle", "postCount": 0, "url": "", "username": "", "verified": false }, { "avatarUrl": "https://avatars.steamstatic.com/1df3535a6f4c9bcf76d310fff46700d18b98412c_full.jpg", "bio": "", "createdAt": "", "followerCount": 0, "followingCount": 0, "id": "121988165", "lastMatchAt": "2026-11-06T17:24:01.000Z", "name": "-Miracle-", "postCount": 0, "url": "", "username": "", "verified": false } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
rankDistribution
/v1/opendota/rankDistributionHow many players of the ranked ladder sit in each rank bin, with the running total.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
bin | integer (int64) |
count | integer (int64) |
cumulativeSum | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/rankDistribution" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/rankDistribution", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/rankDistribution", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "bin": 11, "count": 9049, "cumulativeSum": 9049 }, { "bin": 12, "count": 144619, "cumulativeSum": 153668 } ], "meta": { "cached": false, "endpoint": "rankDistribution", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
teams
/v1/opendota/teamsProfessional Dota 2 teams ranked by OpenDota rating, best first, 1000 per page.
Parameters
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
id | string |
lastMatchAt | string |
logoUrl | string |
losses | integer (int64) |
name | string |
rating | number (double) |
tag | string |
wins | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/teams" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/teams", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/teams", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "abc123", "lastMatchAt": "2026-11-06T09:41:00Z", "logoUrl": "https://…", "losses": 0, "name": "…", "rating": 0, "tag": "…", "wins": 0 } ], "meta": { "cached": false, "endpoint": "teams", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
liveMatches
/v1/opendota/liveMatchesDota 2 matches being played right now that spectators can watch, with their score and average MMR.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
averageMmr | integer (int64) |
direScore | integer (int64) |
direTeam | string |
gameMode | integer (int64) |
gameTimeSec | integer (int64) |
leagueId | string |
matchId | string |
radiantLead | integer (int64) |
radiantScore | integer (int64) |
radiantTeam | string |
spectators | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/liveMatches" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/liveMatches", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/liveMatches", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "averageMmr": 0, "direScore": 0, "direTeam": "…", "gameMode": 0, "gameTimeSec": 0, "leagueId": "abc123", "matchId": "abc123", "radiantLead": 0, "radiantScore": 0, "radiantTeam": "…", "spectators": 0 } ], "meta": { "cached": false, "endpoint": "liveMatches", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
publicMatches
/v1/opendota/publicMatchesThe 100 most recent public Dota 2 matches with their lobby, rank and the heroes of both teams.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
averageRank | integer (int64) |
direHeroIds | string[] |
durationSec | integer (int64) |
gameMode | integer (int64) |
matchId | string |
radiantHeroIds | string[] |
radiantWin | boolean |
startedAt | string |
curl "https://api.hoshime.com/v1/opendota/publicMatches" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/publicMatches", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/publicMatches", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "averageRank": 0, "direHeroIds": [ "…" ], "durationSec": 0, "gameMode": 0, "matchId": "abc123", "radiantHeroIds": [ "…" ], "radiantWin": false, "startedAt": "2026-11-06T09:41:00Z" } ], "meta": { "cached": false, "endpoint": "publicMatches", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
playerTotals
/v1/opendota/playerTotalsA player's career totals and per-game averages for each stat, such as kills, deaths and gold per minute.
Parameters
accountIdinteger required | Dota 2 account id, the 32-bit id in the player's profile URL. e.g. 70388657 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
average | number (double) |
games | integer (int64) |
stat | string |
total | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/playerTotals?accountId=70388657" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/playerTotals?accountId=70388657", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/playerTotals?accountId=70388657", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "average": 0, "games": 0, "stat": "…", "total": 0 } ], "meta": { "cached": false, "endpoint": "playerTotals", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
playerPeers
/v1/opendota/playerPeersThe players a player has most often played with or against, most games first, up to 200.
Parameters
accountIdinteger required | Dota 2 account id, the 32-bit id in the player's profile URL. e.g. 70388657 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
18 fields
againstGames | integer (int64) |
againstWins | integer (int64) |
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
games | integer (int64) |
id | string |
lastPlayedAt | string |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
wins | integer (int64) |
withGames | integer (int64) |
withWins | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/playerPeers?accountId=70388657" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/playerPeers?accountId=70388657", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/playerPeers?accountId=70388657", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "againstGames": 0, "againstWins": 0, "avatarUrl": "https://…", "bio": "…", "createdAt": "2026-11-06T09:41:00Z", "followerCount": 1280, "followingCount": 1280, "games": 0, "id": "abc123", "lastPlayedAt": "2026-11-06T09:41:00Z", "name": "…", "postCount": 1280, "url": "https://…", "username": "…", "verified": false, "wins": 0, "withGames": 0, "withWins": 0 } ], "meta": { "cached": false, "endpoint": "playerPeers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }
heroMatchups
/v1/opendota/heroMatchupsHow often one hero won against each other hero in public matches: games played and wins per opposing hero.
Parameters
heroIdinteger required | Dota 2 hero id, such as 1 for Anti-Mage. The heroes endpoint lists them. e.g. 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
games | integer (int64) |
opponentHeroId | string |
wins | integer (int64) |
curl "https://api.hoshime.com/v1/opendota/heroMatchups?heroId=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/opendota/heroMatchups?heroId=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/opendota/heroMatchups?heroId=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "games": 0, "opponentHeroId": "abc123", "wins": 0 } ], "meta": { "cached": false, "endpoint": "heroMatchups", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "opendota", "requestId": "req_2Xb9kQ…", "units": 1 } }