ready-made APIby Sekou Torres

OpenDota Dota 2 Matches & Players

opendota.com

Dota 2 API from OpenDota: match details, player profiles and win/loss records, player search by name, hero pick and win rates, pro players, recent pro matches, team rosters and SQL queries against the OpenDota database.

Writ CloudRESTMCPwebhookschedule2 credits / call

No website sign-in or persona needed. Free to install. Try any function below with your own values, no account: 10 free credits a day per device. Cloud calls after that use your own credits. Pricing →

The name opendota.com belongs to its owner. This API is not affiliated with, endorsed by or sponsored by opendota.com. You are responsible for how you use it.

01 · Functions9 functions

The form is the docs.

Choose a function, fill in its inputs, and run it: the answer comes back from the live site, with your values. Without an account you get 10 free credits a day per device for this; install the listing in Writ to keep calling it.

9 functionschoose one to explore
01get_matchRetrieve comprehensive match data including duration, scores, players, and advanced statistics for a specific match. Each player entry contains hero, items, kills/deaths/assists, gold/xp rates, benchmarks, and more.02get_playerGet player profile data including Steam info, rank tier, and leaderboard position. Returns profile sub-object with Steam details (personaname, avatar, country), rank_tier as an integer encoding medal and star, and leaderboard_rank for top players.03get_player_win_lossGet player win/loss count with optional filters for hero, game mode, lobby type, region, patch, and date. Returns aggregate win and lose counts for the filtered set of matches.04search_playersSearch for players by personaname. Returns an array of matching player summaries ordered by relevance, each containing account_id, avatar, display name, and last match time.05get_hero_statsGet comprehensive hero performance statistics including pick/win rates across all rank brackets, pro matches, and turbo mode. Returns every hero with base attributes, roles, and aggregate statistics.06get_pro_playersGet list of professional players with their team affiliations and profile details. Returns all registered pro players with Steam info, team name/tag, country, and last match time.07get_pro_matchesGet recent professional matches ordered by match_id descending. Use less_than_match_id for pagination to retrieve older matches. Each entry includes teams, league, duration, and result.08get_explorerExecute SQL queries against the OpenDota PostgreSQL database. Supports SELECT queries on tables like matches, players, heroes, leagues, and teams. Returns rows as an array of objects plus metadata about the query execution.09get_team_playersGet the list of players who have played for a specific team, including games played, wins, and current membership status. Results are ordered by games_played descending.
When a call does not work
No key · GET

AI assistants and tools that can only open a URL can call it with no key: one URL per function, its inputs in the query string. Each call spends the free keyless allowance, 10 credits a day per IP address.

GET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_match&match_id=<match_id>GET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_player&account_id=<account_id>GET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_player_win_loss&account_id=<account_id>GET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=search_players&query=<query>GET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_hero_statsGET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_pro_playersGET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_pro_matchesGET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_explorer&sql=<sql>GET https://api.usewrit.app/api/marketplace/listings/opendota-dota-2-matches-players/run?function_name=get_team_players&team_id=<team_id>
02 · Checks and timingsmeasured per function

Built to be called again.

Every function was called on the live site before this API was published, and keeps being measured. The numbers are the listing’s own.

0.34 stypical callmedian of 7 functions’ medians
43measured runsacross 9 functions
5/5daily checks passedlast Dec 4 · pass
—buyer runs succeeded1 counted run so far; a rate shows from 20
functionmedian · 95th percentilemedianruns
get_match 0.95 s 3
get_player 0.21 s 1
get_player_win_loss 0.32 s 2
search_players 3.06 s 3
get_hero_stats 0.41 s 12
get_pro_players Not measured —
get_pro_matches 0.32 s 2
get_explorer 0.34 s 20
get_team_players Not measured —
Checked daily 5 of 5 passed · last Dec 4
Repaired when it breaks A function that fails its check is re-tested and rebuilt. Installed copies receive the update; you redeploy nothing.
Buyer runs counted 1 counted buyer run so far; a success rate is published from 20. Uptime counts real buyers’ runs only. Writ service status →Failed runs by cause: 1 unknown.

Historical measurements from the public listing, refreshed Dec 4, 2026. Timing samples are not an uptime claim or a guarantee for your next call.

03 · Your copyyour account

Install your copy. Call it your way.

2 credits
Priced per cloud call.

The listing’s base price is 2 credits per call. Longer runs, residential traffic and CAPTCHA solving can add usage. A site or Writ failure is free; your own input or login failures can be billable. Full usage rates →

cloud
No computer to keep running.

Marketplace copies execute in Writ Cloud, in your own account. Requirements and prices are checked before you use the listing.

REST · MCP
Every way to call it, at once.

Use your API key, connect an assistant, set a schedule with email or webhook delivery, or export answers as a dataset.

read-only
It only reads.

The published functions read data from the source website. No website sign-in or persona is needed for this listing.

private copy
Your account, your usage.

Your installed copy belongs to your account. Its underlying recipe stays sealed with its creator; no creator credentials are included.

04 · Or build your ownwebsite → API

Missing a function? Describe it.

Give Writ a website and say what you want. It builds and tests the API for your task.

On your computeryour machine

Build it in Writ Desktop and run it from your own IP. Execution on your machine costs 0 credits.

Get Writ Desktop →
In Writ Cloudcloud

Keep your API online without leaving your computer running. Cloud calls start at 2 credits, or 20 with a browser.

Build an API →
05 · More ready-madeAll APIs →
06 · Questions
Does OpenDota Dota have an API?
This page is an independent API and MCP server for opendota.com: Writ built it on the site’s public pages and tests it, and it has 9 functions you can call today. It is not an official OpenDota Dota product. For an official API, check OpenDota Dota’s own developer pages.
How do I use the OpenDota Dota API from Claude, ChatGPT or Cursor?
Install it in Writ, then add Writ’s MCP server (https://api.usewrit.app/mcp) to Claude, ChatGPT, Cursor or any MCP client: your assistant can run this API’s functions and read the results. From your own code, call the same functions over REST with a Writ API key.
How much does a call to the OpenDota Dota API cost?
2 credits per call, charged only when the call succeeds. New accounts start with 1,000 free credits, then 500 a month on the Free plan, no card.