get
https://api.sharpsports.io/v1/teams//historicData
Game-by-game team statistics (TeamGameData) for a team.
Team stats are currently available for NFL teams. A team with no team stats returns 404 with a detail message; filters that match none of a team's games return [].
Authorization
🔐 Private API Key
Product Required: This endpoint requires the historicData product subscription.
Returns game-by-game team statistics (TeamGameData) for a single team.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
gamesBack | integer | Limit to the most recent N completed games (counts distinct games, not stat rows). |
seasonType | string | Filter by season type (REG, PRE, POST). |
metric | string | One metric ID (METR_points) or a comma-separated list (METR_points,METR_rebounds). |
gamesBackcounts games, not rows. A team typically has several stat rows per game (one per metric).gamesBack=5returns the five most recent games with all of their matching stat rows.