Defense vs Position & Pace
defense_vs_positionUse this when the user asks which teams allow the most or fewest to a position ('best matchups for centers', 'defenses vs TE'). Returns what every NBA or NFL team allows per game to each position group (NBA: G, F, C, with pace; NFL: QB, RB, WR, TE) with league ranks (1 = allows the most); window 'recent' (last 10 games) needs Pro. Not for one player's matchup (player_profile's next game).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| league | Yes | League ("nba" or "nfl"). | |
| season | No | Optional season year. Defaults to the current season. | |
| window | No | Sample window: "season" (free) or "recent" (last 10 games, requires Pro). | season |
| position | No | Optional position group filter (NBA: "G", "F", "C"; NFL: "QB", "RB", "WR", "TE"). |