Get Fantasy Matchups
fantasy_get_matchupsHead-to-head scores for the current or a requested period, league-wide or for one team (team_query). THE source for live scoring and box-score recaps; season player data is not live scoring. For "who is scoring" or mid-game player updates, pass live=true and include_players=true. Returns league fantasy points, separate projections, available raw stats/game progress, retrieval time and provisional/final status; a refresh is a new snapshot, not continuous streaming. ESPN/Sleeper supply player points (raw stat categories NFL-only; Sleeper NFL adds projections from the league's scoring). Partial subtotals list missing categories and unsupported rules: never treat them as complete totals. Fantrax: team totals only, and scores need a publicly viewable league (others get pairings without scores); roto/points leagues have no matchups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | Fresh scores: ESPN live scoreboard; Sleeper current league points with NFL stats/game progress where available; Fantrax team totals with stated feed limits. A snapshot, not streaming. | |
| week | No | Week/scoring period. Omit for current. | |
| sport | No | e.g. 'NFL', 'NBA'. Needed for ESPN/Sleeper and Fantrax name lookups. | |
| season | No | Season year, e.g. 2025; ignored by Fantrax. | |
| provider | No | Fantasy platform. Optional: defaults to your connected platform ('sleeper'). | |
| league_id | No | Omit when connected. League id (Fantrax also takes the league URL). | |
| team_query | No | One team's matchup. An exact name/id wins; an ambiguous name must be made more specific. | |
| credentials | No | Only WITHOUT a connected profile: secret_id (Fantrax), espn_s2 + swid (private ESPN), username or user_id (Sleeper discovery). Public ESPN and Sleeper reads need none. | |
| league_query | No | A connected league's name/id; omit to auto-pick (primary first). Never ask for ids. | |
| include_players | No | Player scoring, starters/bench, game progress, and NFL player projections and stat categories (ESPN/Sleeper; Fantrax has team totals only). Pair with live=true mid-game. | |
| response_format | No | 'markdown' (default, most compact) or 'json' (same normalized data, not the raw payload). | markdown |