Get StartedDocs

MCP + REST API · StatMuse+ beta

Power your agents
with StatMuse

Add StatMuse to Claude, ChatGPT or any AI assistant: every stat and every league. Plus a natural language REST API so you can ask in plain English and get the stats back as JSON. In beta for StatMuse+ members.

For personal, non-commercial use only.

StatMuse
You askStatMuse in your AI assistant

“How are the Chiefs against the spread on the road this season?”

search_teamget_stats
StatMuse answers

The Chiefs are 3-3-1 against the spread on the road this season (42.9% covered) and 4-1 at home.

Data as of Dec. 4, 2026

You askGET /sports/nba/v1/ask

“Who led the NBA in scoring in 2024-25?”

200 OKJSON stats
StatMuse answers

Shai Gilgeous-Alexander averaged the most points per game in 2024-25, with 32.7 per game.

Points per game
32.7
Total points
2,484
Games
76

2024-25 NBA regular season

What you can do

Ask Claude, ChatGPT, Codex or any AI assistant a sports question in plain English. It answers with real StatMuse stats. Pick a scenario to watch.

Your AI assistant, connected to StatMuse
You ask:

I have one lineup spot left this week: Jaxon Smith-Njigba or CeeDee Lamb? Check the injury report.

  1. search_player"Jaxon Smith-Njigba", "CeeDee Lamb"

    Smith-Njigba (Seahawks receiver) · Lamb (Cowboys receiver)

  2. get_projectionswindow: this_week, scoring: ppr
    Week 13 projected fantasy points (points-per-reception)
    Smith-Njigba24.8
    Lamb20.3
  3. get_player_injuriesteams: SEA, DAL
    Smith-Njigba
    Did not practice · Rest
    Lamb
    Not listed
  4. get_gamesteam: SEA

    Week 13 · Cowboys at Seahawks · Mon 8:15 PM ET

The answer

Start Jaxon Smith-Njigba

Smith-Njigba fantasy points
24.8
Lamb fantasy points
20.3
Projected advantage
+4.5

Your assistant answers:Start Jaxon Smith-Njigba. Projections put him at 24.8 fantasy points (points-per-reception) and Lamb at 20.3. His missed practice is a rest day, not an injury. The two play each other Monday night, so check the final report before kickoff.

Real StatMuse data as of Dec. 4, 2026. Projections via ESPN.

You ask:

Bills at Patriots on Sunday. How do the Bills do against the spread on the road?

  1. get_gamesleague: nfl, date: 2026-12-06

    Week 13 · Bills at Patriots · Sun 4:25 PM ET

  2. get_statsBills · record against the spread, home and away
    Away
    5-0 · 4-1 against the spread
    Home
    5-1 · 4-1-1 against the spread
  3. get_statsJosh Allen · passing yards · last 5 games
    Passing yards, oldest to newest
    1. 289BAL
    2. 234@MIN
    3. 196@NYJ
    4. 304MIA
    5. 81KC
The answer

Bills are 4-1 against the spread on the road

Road record vs. spread
4-1
Road record
5-0
Allen yards per game (last 5)
220.8

Your assistant answers:The Bills are 5-0 on the road and 4-1 against the spread there. Josh Allen averages 220.8 passing yards over his last 5 games, with a high of 304 against Miami and a low of 81 against the Chiefs.

Real StatMuse data as of Dec. 4, 2026.

You ask:

How has Victor Wembanyama scored over his last 5 games?

  1. search_player"Victor Wembanyama", league: nba

    Victor Wembanyama (Spurs center)

  2. get_statspoints · last 5 games
    Points per game, oldest to newest
    1. 50NOP
    2. 44@POR
    3. 25LAL
    4. 40BOS
    5. 34TOR
The answer

38.6 points per game over his last 5

Points per game (last 5)
38.6
Games with 34+ points
4 of 5
Highest game
50

Your assistant answers:Wembanyama averages 38.6 points over his last 5 games, peaking at 50 against New Orleans. He scored 34 or more in 4 of 5, with a low of 25 against the Lakers. Compare that with the betting line.

Real StatMuse data as of Dec. 4, 2026.

You ask:

Pull the top 2001 MLB home run leaders with batting average and runs batted in for our dashboard.

  1. get_stats_guideleague: mlb

    Loaded MLB batting stats

  2. get_statsleague: mlb, season: 2001, sort: home runs, limit: 3
    2001 MLB home runs
    Barry Bonds73
    Sammy Sosa64
    Luis Gonzalez57
  3. get_statsleague: mlb, season: 2001, stats: batting average, runs batted in
    Barry Bonds
    .328 batting average · 137 runs batted in
    Sammy Sosa
    .328 batting average · 160 runs batted in
    Luis Gonzalez
    .325 batting average · 142 runs batted in
The answer

Barry Bonds led baseball with 73 home runs

Bonds home runs
73
Sosa home runs
64
Sosa runs batted in
160

Your assistant answers:Barry Bonds led baseball with 73 home runs, batting .328 in 2001. Sammy Sosa hit 64 home runs and drove in 160 runs, ahead of Luis Gonzalez with 57 home runs. Every row comes back ready for spreadsheets, models or dashboards.

Real StatMuse data · 2001 MLB regular season.

Major sports leagues · plain-English questions · answers your code can use.

Ask the hard questions

Home games, wins, one season. StatMuse handles every condition in one question.

  • NFL
  • NBA
  • MLB
  • NHL
  • WNBA
  • College football
  • Soccer
  • Golf (REST API)
NFL

“Josh Allen passing yards at home in wins in the 2025 regular season?”

1,657 yards

135 completions on 180 passes (75.0%), 14 touchdowns, 3 interceptions and a 121.9 passer rating.

NBA

“Most unassisted stepback shots from 25+ feet in the 2024-25 regular season?”

86 made

James Harden led the NBA with 86, ahead of Luka Dončić with 61.

MLB

“How many career ninth-inning hits did Derek Jeter have in the regular season?”

177 hits

177 hits in 741 ninth-inning at-bats over his regular-season career.

Premier League

“How many goals did Arsenal allow in the 2025-26 Premier League?”

27 goals allowed

Across 38 matches, with 19 clean sheets (0.71 goals allowed per match).

Real StatMuse answers from completed regular seasons.

Connect your agent

Add StatMuse to your AI assistant once and sign in with your StatMuse account. No API key, no code.

Set up MCP
Server addresshttps://api.statmuse.com/mcp
  • Claude
  • ChatGPT
  • Claude Code
  • Codex
  • any MCP assistant

Works with any AI assistant that lets you add tools by web address.

See it in code

Our natural language REST API lets you ask in plain English and get the stats back as JSON. One web request returns the written answer and the numbers behind it.

GET/sports/nfl/v1/ask
200 OK · JSON
curl "https://statmuse-api-staging-landing-v2.api.statmuse.com/sports/nfl/v1/ask?input=josh+allen+passing+yards+at+home+in+wins+in+the+2025+regular+season" -H "x-statmuse-api-key: $STATMUSE_API_KEY"

Josh Allen had 1,657 passing yards in the regular season in a win at home in 2025.

Passing yards
1,657
Completion %
75.0%
Touchdowns
14
Passer rating
121.9
View full JSON response (50 lines)
{
  "type": "stats",
  "input": {
    "original": "josh allen passing yards at home in wins in the 2025 regular season"
  },
  "answer": {
    "text": "Josh Allen had 1,657 passing yards in the regular season in a win at home in 2025.",
    "markdown": "[Josh Allen](https://www.statmuse.com/nfl/player/josh-allen-26650) had 1,657 passing yards in the regular season in a win at home in 2025."
  },
  "query": {
    "stats": [
      "Passing-Yards",
      "Passing-Completions",
      "Passing-Attempts",
      "Passing-CompletionPercentage",
      "Passing-YardsPerAttempt",
      "Passing-Touchdowns",
      "Passing-Interceptions",
      "Passing-Rating",
      "Passing-TouchdownPercentage",
      "Passing-InterceptionPercentage",
      "Passing-Sacks",
      "Passing-SackYards"
    ]
  },
  "data": {
    "results": [
      {
        "context": [
          { "type": "player", "playerId": 26650, "longName": "Josh Allen" },
          { "type": "seasonYear", "seasonYear": 2025, "display": "2025" }
        ],
        "stats": {
          "Passing-Yards": { "value": 1657, "display": "1,657" },
          "Passing-Completions": { "value": 135, "display": "135" },
          "Passing-Attempts": { "value": 180, "display": "180" },
          "Passing-CompletionPercentage": { "value": 0.75, "display": "75.0" },
          "Passing-YardsPerAttempt": { "value": 9.20555556, "display": "9.2" },
          "Passing-Touchdowns": { "value": 14, "display": "14" },
          "Passing-Interceptions": { "value": 3, "display": "3" },
          "Passing-Rating": { "value": 121.9212963, "display": "121.9" },
          "Passing-TouchdownPercentage": { "value": 0.07777778, "display": "7.8" },
          "Passing-InterceptionPercentage": { "value": 0.01666667, "display": "1.7" },
          "Passing-Sacks": { "value": 12, "display": "12" },
          "Passing-SackYards": { "value": 61, "display": "61" }
        }
      }
    ]
  }
}

Real 2025 NFL regular-season numbers. Full response guide in Asking Questions.

How it works

Connect your agent. No code.

  1. Join StatMuse+

    StatMuse API beta is included with a StatMuse+ membership.

  2. Connect your agent

    Add StatMuse in Claude, ChatGPT or another MCP assistant and sign in.

  3. Ask away

    Your assistant answers with real StatMuse stats.

REST API. With code.

  1. Join StatMuse+

    StatMuse API beta is included with a StatMuse+ membership.

  2. Create an API key

    Generate a key from your dashboard. You'll see it once.

  3. Make your first request

    Send a plain-English question and read the stats back as JSON.

Included with StatMuse+

StatMuse+ membership includes the StatMuse API beta, with no separate subscription. Your AI assistant (MCP) and the natural language REST API share one monthly allowance.

How access works
One monthly allowance
  • AI assistant (MCP)
  • REST API

Start in minutes

Join StatMuse+, then connect your agent and just ask. Or grab an API key and build your own agent.