Chess.com API: Get player stats
Gets a Chess.com player's public profile, ratings and game records, best puzzle rating and Puzzle Rush best score from a username or member profile link.
Unofficial. Not affiliated with or endorsed by Chess.com.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Username, required
username Player's Chess.com username or profile link, for example Hikaru or https://www.chess.com/member/Hikaru.
Hikaru
Input as JSON
{ "username": "Hikaru"}Output
{ "blitz": { "wins": 36022, "draws": 4376, "losses": 5543, "best_rating": 3503, "current_rating": 3463, "best_rating_date": "2026-10-06" }, "daily": { "wins": 73, "draws": 4, "losses": 11, "best_rating": 2464, "current_rating": 2239, "best_rating_date": "2014-04-10" }, "rapid": { "wins": 205, "draws": 220, "losses": 69, "best_rating": 2927, "current_rating": 2838, "best_rating_date": "2022-02-26" }, "title": "GM", "bullet": { "wins": 17129, "draws": 1172, "losses": 2514, "best_rating": 3570, "current_rating": 3420, "best_rating_date": "2020-11-11" }, "country": "United States", "username": "hikaru", "followers": 1418542, "is_streamer": true, "joined_date": "2014-01-06", "display_name": "Hikaru Nakamura", "profile_link": "https://www.chess.com/member/Hikaru" , "last_online_date": "2026-10-22", "avatar_image_link": "https://images.chesscomfiles.com/uploads/v1/user/15448422.88c010c1.200x200o.3c5619f5441e.png" , "best_puzzle_rating": 2730, "puzzle_rush_best_score": 123}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"chess.com/get_player_stats","input":{"username":"Hikaru"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "chess.com/get_player_stats" , "input": { "username": "Hikaru" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "chess.com/get_player_stats" , "input": { "username": "Hikaru" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run chess.com/get_player_stats# with {"username":"Hikaru"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "username" ], "properties": { "username": { "type": "string", "description": "Player's Chess.com username or profile link, for example Hikaru or https://www.chess.com/member/Hikaru." } }}Output schema
{ "type": "object", "required": [ "username", "display_name", "title", "country", "joined_date", "last_online_date", "followers", "is_streamer", "profile_link", "avatar_image_link", "rapid", "blitz", "bullet", "daily", "best_puzzle_rating", "puzzle_rush_best_score" ], "properties": { "blitz": { "type": [ "object", "null" ], "required": [ "current_rating", "best_rating", "best_rating_date", "wins", "losses", "draws" ], "properties": { "wins": { "type": [ "integer", "null" ] }, "draws": { "type": [ "integer", "null" ] }, "losses": { "type": [ "integer", "null" ] }, "best_rating": { "type": [ "integer", "null" ], "description": "Highest published rating." }, "current_rating": { "type": [ "integer", "null" ], "description": "Most recently published rating." }, "best_rating_date": { "type": [ "string", "null" ], "format": "date", "description": "Date of highest published rating." } }, "description": "Null when this time control has never been played.", "additionalProperties": false }, "daily": { "type": [ "object", "null" ], "required": [ "current_rating", "best_rating", "best_rating_date", "wins", "losses", "draws" ], "properties": { "wins": { "type": [ "integer", "null" ] }, "draws": { "type": [ "integer", "null" ] }, "losses": { "type": [ "integer", "null" ] }, "best_rating": { "type": [ "integer", "null" ], "description": "Highest published rating." }, "current_rating": { "type": [ "integer", "null" ], "description": "Most recently published rating." }, "best_rating_date": { "type": [ "string", "null" ], "format": "date", "description": "Date of highest published rating." } }, "description": "Null when this time control has never been played.", "additionalProperties": false }, "rapid": { "type": [ "object", "null" ], "required": [ "current_rating", "best_rating", "best_rating_date", "wins", "losses", "draws" ], "properties": { "wins": { "type": [ "integer", "null" ] }, "draws": { "type": [ "integer", "null" ] }, "losses": { "type": [ "integer", "null" ] }, "best_rating": { "type": [ "integer", "null" ], "description": "Highest published rating." }, "current_rating": { "type": [ "integer", "null" ], "description": "Most recently published rating." }, "best_rating_date": { "type": [ "string", "null" ], "format": "date", "description": "Date of highest published rating." } }, "description": "Null when this time control has never been played.", "additionalProperties": false }, "title": { "type": [ "string", "null" ] }, "bullet": { "type": [ "object", "null" ], "required": [ "current_rating", "best_rating", "best_rating_date", "wins", "losses", "draws" ], "properties": { "wins": { "type": [ "integer", "null" ] }, "draws": { "type": [ "integer", "null" ] }, "losses": { "type": [ "integer", "null" ] }, "best_rating": { "type": [ "integer", "null" ], "description": "Highest published rating." }, "current_rating": { "type": [ "integer", "null" ], "description": "Most recently published rating." }, "best_rating_date": { "type": [ "string", "null" ], "format": "date", "description": "Date of highest published rating." } }, "description": "Null when this time control has never been played.", "additionalProperties": false }, "country": { "type": [ "string", "null" ], "description": "Country name." }, "username": { "type": "string" }, "followers": { "type": [ "integer", "null" ] }, "is_streamer": { "type": [ "boolean", "null" ] }, "joined_date": { "type": [ "string", "null" ], "format": "date" }, "display_name": { "type": [ "string", "null" ] }, "profile_link": { "type": "string", "format": "uri" }, "last_online_date": { "type": [ "string", "null" ], "format": "date" }, "avatar_image_link": { "type": [ "string", "null" ] }, "best_puzzle_rating": { "type": [ "integer", "null" ] }, "puzzle_rush_best_score": { "type": [ "integer", "null" ] } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
chess.com/get_player_stats- Returns
- username, display name, title, country, dates, followers, profile and avatar links, rapid/blitz/bullet/daily ratings and records, best puzzle rating, Puzzle Rush best score
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method chess.com/get_player_stats with the inputs above.
Ask your agent
- What's the current rapid and blitz rating for the player Hikaru on Chess.com?
- Show me the win-loss-draw record and bullet rating for username MagnusCarlsen.
- How many followers does the Chess.com account https://www.chess.com/member/GothamChess have, and what country is it listed under?
- Find the best puzzle rating and Puzzle Rush high score for the player nihalsarin2004.
- When did the account DanielNaroditsky join, and what is its daily chess rating?
See more
All Chess.com methodsLists up to 50 top Chess.com players for a time control, in rank order, with ratings, game records and profile links. Puzzles rankings use puzzle scores.
chess.com/list_top_playersLists a Chess.com player's completed public games for a month, newest first, with results, ratings, opening and game links.
chess.com/list_recent_gamesLooks up an NHL player by name, link or ID and returns the profile with regular-season stats for a season and career totals.
nhl.com/get_player_statsLooks up a Yahoo Sports player by name and returns the player's regular-season statistics for a season, alongside career totals. Each stat includes season and career values.
sports.yahoo.com/get_player_statsLooks up a Premier League player by name and returns the profile and either career totals or the stats for a chosen season. If names clash, a current Premier League player is preferred.
premierleague.com/get_player_statsGets an MLB player's profile and regular-season hitting and pitching statistics for one season and for his career. Without a season it uses the current season, or the player's latest MLB season if he has no stats this year.
mlb.com/get_player_statsGets the public X profile for a username or profile link, including counts, verification, images and account details. Does not include posts or a timeline.
x.com/get_profileLooks up an ESPN player by name and returns season and career statistics. Use a league to tell apart players with the same name, and a season year or label to pick a past season.
espn.com/get_player_stats