Get Fantasy Matchups
fantasy_get_matchupsCurrent head-to-head scoring or a requested matchup period. Use team_query to limit detail to one team’s matchup. For "how am I doing right now", "who is scoring" or mid-game player updates, use live=true and include_players=true. Returns league fantasy points, separate projections, available raw stats/game progress, retrieval time and provisional/final status. ESPN/Sleeper supply player points; detailed raw stats vary by sport and source. A refresh is a new snapshot, not continuous streaming. This is THE source for live scoring and box-score recaps; season player data is not live scoring. Profile-first: league inferred when connected.
Fantrax: public/viewable leagues only, team totals only; roto/points leagues have no matchups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | Refresh scoring: ESPN live scoreboard; Sleeper current league points with available NFL stats/game progress; Fantrax team totals with explicit feed limits. This is a snapshot, not streaming. | |
| week | No | Week/scoring period. Omit for current week. | |
| sport | No | Sport, e.g. 'NFL', 'NBA', 'MLB', 'NHL'. Required for ESPN/Sleeper and Fantrax name lookups. | |
| season | No | Season year, e.g. 2025. Required for ESPN/Sleeper league discovery; ignored by Fantrax. | |
| provider | No | Fantasy platform. Optional: defaults to your connected platform ('sleeper'). | |
| league_id | No | The platform's league id (Fantrax also accepts the full league URL). | |
| team_query | No | Optional: show one team’s matchup. Exact team name/id wins; ambiguous matches require a more specific name. | |
| credentials | No | Per-call credentials, only needed WITHOUT a connected profile. Keys: secret_id (Fantrax); espn_s2 + swid (private ESPN leagues); username or user_id (Sleeper discovery); session_cookie / auth_token + write_enabled:true (explicit write opt-in only). Public ESPN leagues and all Sleeper reads need none. | |
| league_query | No | League name/id filter, for when the profile has several leagues on the provider. | |
| include_players | No | Include player scoring, starters/bench, separate projections and available game progress/stat categories. Use with live=true for mid-game updates. ESPN/Sleeper; Fantrax shows team totals. | |
| response_format | No | 'markdown' (default) or 'json' (raw payload). | markdown |