Yahoo API: Get player stats
Looks 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.
Unofficial. Not affiliated with or endorsed by Yahoo.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Team optional
team Team name to distinguish players, such as Philadelphia 76ers.
(default)
- League optional
league League to search, such as NBA. If omitted, searches the main US leagues.
NBA
Default
.- Player, required
player Player name, such as LeBron James.
LeBron James
- Season optional
season Season year or season label, such as 2024 or 2024-25. Defaults to the latest season with statistics.
latest (default)
Input as JSON
{ "league": "NBA", "player": "LeBron James"}Output
{ "age": 41, "team": "Philadelphia 76ers", "stats": [ { "stat_name": "Three-Points Made", "career_value": 2637, "season_value": 1, "stat_abbreviation": "3PM" }, { "stat_name": "Defensive Rebounds Per Game", "career_value": 6.3, "season_value": 8.5, "stat_abbreviation": "DR" }, { "stat_name": "Points", "career_value": 43471, "season_value": 31, "stat_abbreviation": "Pts" } ], "league": "NBA", "player": "LeBron James", "season": "2026-27", "position": "Small Forward, Power Forward", "player_id": "nba.p.3704", "headshot_image_link": "https://s.yimg.com/iu/api/res/1.2/seqKuxPVMBWA3DBzxjLvGg--~B/YXBwaWQ9c2hhcmVkO2ZpPWZpbGw7cT03NTtoPTE2MDt3PTE2MA--/https://s.yimg.com/xe/i/us/sp/v/nba_cutout/players_l/10082026/3704.1.png" , "yahoo_sports_player_link": "https://sports.yahoo.com/nba/players/3704/" }Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"sports.yahoo.com/get_player_stats","input":{"league":"NBA","player":"LeBron James"}}' # 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": "sports.yahoo.com/get_player_stats" , "input": { "league": "NBA", "player": "LeBron James" }})# 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": "sports.yahoo.com/get_player_stats" , "input": { "league": "NBA", "player": "LeBron James" } }), 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 sports.yahoo.com/get_player_stats# with {"league":"NBA","player":"LeBron James"}"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": [ "player" ], "properties": { "team": { "type": "string", "default": "", "description": "Team name to distinguish players, such as Philadelphia 76ers." }, "league": { "type": "string", "default": "", "description": "League to search, such as NBA. If omitted, searches the main US leagues." }, "player": { "type": "string", "description": "Player name, such as LeBron James." }, "season": { "type": "string", "default": "latest", "description": "Season year or season label, such as 2024 or 2024-25. Defaults to the latest season with statistics." } }}Output schema
{ "type": "object", "required": [ "player", "team", "league", "position", "age", "headshot_image_link", "yahoo_sports_player_link", "season", "stats", "player_id" ], "properties": { "age": { "type": [ "integer", "null" ] }, "team": { "type": [ "string", "null" ] }, "stats": { "type": "array", "items": { "type": "object", "required": [ "stat_name", "season_value", "career_value", "stat_abbreviation" ], "properties": { "stat_name": { "type": "string" }, "career_value": { "type": "number" }, "season_value": { "type": "number" }, "stat_abbreviation": { "type": [ "string", "null" ], "x-fous-developer": true } }, "additionalProperties": false } }, "league": { "type": "string" }, "player": { "type": "string" }, "season": { "type": "string" }, "position": { "type": [ "string", "null" ] }, "player_id": { "type": "string", "x-fous-developer": true }, "headshot_image_link": { "type": [ "string", "null" ] }, "yahoo_sports_player_link": { "type": "string" } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
sports.yahoo.com/get_player_stats- Returns
- player, team, league, position, age, headshot, season, stats (season and career values), player ID
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 sports.yahoo.com/get_player_stats with the inputs above.
Ask your agent
- What were Stephen Curry's regular season stats for the 2023-24 season, and how do they compare to his career averages?
- Can you pull up Victor Wembanyama's season numbers for 2024-25 along with his career totals?
- Show me Patrick Mahomes' passing stats for last season plus his career line on yahoo sports.
- I need Aaron Judge's 2024 batting stats and career numbers for the Yankees.
- Look up Caitlin Clark's latest season statistics with career totals in the WNBA.
See more
All Yahoo methodsReturns Yahoo Sports team standings for a league and season, grouped by division or conference.
sports.yahoo.com/get_standingsGets scores and schedules for a league on a date, or for the football week that contains the date. Results can be limited to one team. Venue names come from each game page, for up to 22 games.
sports.yahoo.com/get_scoresLooks up a stock, fund, index, or cryptocurrency by name or ticker and returns its latest displayed price and key statistics. Unavailable figures are null; quotes may be delayed.
finance.yahoo.com/get_quoteReturns Yahoo Finance daily, weekly or monthly price history and total adjusted-close return for a stock, fund, index or cryptocurrency.
finance.yahoo.com/get_price_historyLooks up a company by name or ticker on Yahoo Finance and returns its latest news headlines, with article summaries when the article page provides one.
finance.yahoo.com/get_company_newsReads a public Yahoo News article from its link or headline and returns its text and details. Headline matching uses Yahoo News search results.
yahoo.com/read_articleShows analyst recommendations, price targets, earnings estimates and recent rating changes for a public company on Yahoo Finance.
finance.yahoo.com/get_analyst_ratingsGets earnings reports for a date range, or the upcoming reports and up to four previous reports for one company.
finance.yahoo.com/get_earnings_calendar