---
title: "Team Stats Allowed - by Position"
method: GET
path: "/v3/nba/stats/{format}/TeamStatsAllowedByPosition/{season}"
tags: ["NBA v3 Stats"]
---

# Team Stats Allowed - by Position

`GET /v3/nba/stats/{format}/TeamStatsAllowedByPosition/{season}`

## Request

- Base URL: `https://api.sportsdata.io`
- URL: `https://api.sportsdata.io/v3/nba/stats/{format}/TeamStatsAllowedByPosition/{season}`
- Auth: one of:
  - API key in header `Ocp-Apim-Subscription-Key`
  - API key in query parameter `key`
- TypeScript: <https://skmtc.dev/sportsdata/apis/nba-api/docs/v3/nba/stats/:format/TeamStatsAllowedByPosition/:season/get.ts> (a function with typed inputs; its response is checked against the schema)

For each team, deliveres a season total of statistical records for their opponents' positions (e.g. all field goals made against this team by Centers.)

## Path parameters

- `format` 'JSON' | 'XML', required
- `season` string, required

## Response `200`

Success

- TeamSeason[]
  - `StatID` integer: The unique ID of the stat
  - `TeamID` integer, nullable: The unique ID of the team
  - `SeasonType` integer, nullable: The type of season that this record corresponds to (1=Regular Season; 2=Preseason; 3=Postseason; 4=Offseason; 5=AllStar; 6=Exhibition).
  - `Season` integer, nullable: The NBA season that these totals apply for
  - `Name` string, nullable: The name of the team
  - `Team` string, nullable: The abbreviation [Key] of the team
  - `Wins` integer, nullable: Total number of team wins on the season
  - `Losses` integer, nullable: Total number of team losses on the season
  - `OpponentPosition` string, nullable: This field is expected to be NULL
  - `Possessions` number, nullable: Total number of estimated possessions by the team in the season
  - `GlobalTeamID` integer, nullable: A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues.
  - `OpponentStat` OpponentSeason
    - `StatID` integer: The unique ID of the stat
    - `TeamID` integer, nullable: The unique ID of the team
    - `SeasonType` integer, nullable: The type of season that this record corresponds to (1=Regular Season; 2=Preseason; 3=Postseason; 4=Offseason; 5=AllStar; 6=Exhibition).
    - `Season` integer, nullable: The NBA season that these totals apply for
    - `Name` string, nullable: The name of the team
    - `Team` string, nullable: The abbreviation [Key] of the team
    - `Wins` integer, nullable: Total number of team wins on the season
    - `Losses` integer, nullable: Total number of team losses on the season
    - `OpponentPosition` string, nullable: This field is expected to be NULL
    - `Possessions` number, nullable: Total number of estimated possessions by the team in the season
    - `GlobalTeamID` integer, nullable: A globally unique ID for this team. This value is guaranteed to be unique across all sports/leagues.
    - `Updated` string, nullable: The timestamp of when the record was last updated (US Eastern Time)
    - `Games` integer, nullable: The number of games played
    - `FantasyPoints` number, nullable: Total fantasy points
    - `Minutes` integer, nullable: Total number of minutes played
    - `Seconds` integer, nullable: Total number of seconds played
    - `FieldGoalsMade` number, nullable: Total number of field goals made
    - `FieldGoalsAttempted` number, nullable: Total number of field goals attempted
    - `FieldGoalsPercentage` number, nullable: Total field goal percentage
    - `EffectiveFieldGoalsPercentage` number, nullable: Total effective field goals percentage
    - `TwoPointersMade` number, nullable: Total two pointers made
    - `TwoPointersAttempted` number, nullable: Total two pointers attempted
    - `TwoPointersPercentage` number, nullable: Total two pointers percentage
    - `ThreePointersMade` number, nullable: Total three pointers made
    - `ThreePointersAttempted` number, nullable: Total three pointers attempted
    - `ThreePointersPercentage` number, nullable: Total three pointers percentage
    - `FreeThrowsMade` number, nullable: Total free throws made
    - `FreeThrowsAttempted` number, nullable: Total free throws attempted
    - `FreeThrowsPercentage` number, nullable: Total free throws percentage
    - `OffensiveRebounds` number, nullable: Total offensive rebounds
    - `DefensiveRebounds` number, nullable: Total defensive rebounds
    - `Rebounds` number, nullable: Total rebounds
    - `OffensiveReboundsPercentage` number, nullable: Total offensive rebounds percentage
    - `DefensiveReboundsPercentage` number, nullable: Total defensive rebounds percentage
    - `TotalReboundsPercentage` number, nullable: The player/team total rebounds percentage
    - `Assists` number, nullable: Total assists
    - `Steals` number, nullable: Total steals
    - `BlockedShots` number, nullable: Total blocked shots
    - `Turnovers` number, nullable: Total turnovers
    - `PersonalFouls` number, nullable: Total personal fouls
    - `Points` number, nullable: Total points scored
    - `TrueShootingAttempts` number, nullable: The player's true shooting attempts as defined here: http://www.basketball-reference.com/about/glossary.html
    - `TrueShootingPercentage` number, nullable: The player's true shooting percentage as defined here: http://www.basketball-reference.com/about/glossary.html
    - `PlayerEfficiencyRating` number, nullable: The player's linear weight efficiency rating as defined here: http://bleacherreport.com/articles/113144-cracking-the-code-how-to-calculate-hollingers-per-without-all-the-mess
    - `AssistsPercentage` number, nullable: The player's assist percentage as defined here: http://www.basketball-reference.com/about/glossary.html
    - `StealsPercentage` number, nullable: The player's steal percentage as defined here: http://www.basketball-reference.com/about/glossary.html
    - `BlocksPercentage` number, nullable: The player's block percentage as defined here: http://www.basketball-reference.com/about/glossary.html
    - `TurnOversPercentage` number, nullable: The player's turnover percentage as defined here: http://www.basketball-reference.com/about/glossary.html
    - `UsageRatePercentage` number, nullable: The player's usage rate percentage as defined here: http://www.basketball-reference.com/about/glossary.html
    - `FantasyPointsFanDuel` number, nullable: Total FanDuel daily fantasy points scored
    - `FantasyPointsDraftKings` number, nullable: Total DraftKings daily fantasy points scored
    - `FantasyPointsYahoo` number, nullable: Total Yahoo daily fantasy points scored
    - `PlusMinus` number, nullable: Total plus minus
    - `DoubleDoubles` number, nullable: Total double-doubles scored
    - `TripleDoubles` number, nullable: Total triple-doubles scored
    - `FantasyPointsFantasyDraft` number, nullable: Total FantasyDraft daily fantasy points scored
    - `IsClosed` boolean: Indicates whether the game is over and the stats for this player have been verified and closed out.
    - `LineupConfirmed` boolean, nullable: Indicates whether starting lineup is confirmed
    - `LineupStatus` string, nullable: Indicates whether player is starting, active, or inactive
  - `Updated` string, nullable: The timestamp of when the record was last updated (US Eastern Time)
  - `Games` integer, nullable: The number of games played
  - `FantasyPoints` number, nullable: Total fantasy points
  - `Minutes` integer, nullable: Total number of minutes played
  - `Seconds` integer, nullable: Total number of seconds played
  - `FieldGoalsMade` number, nullable: Total number of field goals made
  - `FieldGoalsAttempted` number, nullable: Total number of field goals attempted
  - `FieldGoalsPercentage` number, nullable: Total field goal percentage
  - `EffectiveFieldGoalsPercentage` number, nullable: Total effective field goals percentage
  - `TwoPointersMade` number, nullable: Total two pointers made
  - `TwoPointersAttempted` number, nullable: Total two pointers attempted
  - `TwoPointersPercentage` number, nullable: Total two pointers percentage
  - `ThreePointersMade` number, nullable: Total three pointers made
  - `ThreePointersAttempted` number, nullable: Total three pointers attempted
  - `ThreePointersPercentage` number, nullable: Total three pointers percentage
  - `FreeThrowsMade` number, nullable: Total free throws made
  - `FreeThrowsAttempted` number, nullable: Total free throws attempted
  - `FreeThrowsPercentage` number, nullable: Total free throws percentage
  - `OffensiveRebounds` number, nullable: Total offensive rebounds
  - `DefensiveRebounds` number, nullable: Total defensive rebounds
  - `Rebounds` number, nullable: Total rebounds
  - `OffensiveReboundsPercentage` number, nullable: Total offensive rebounds percentage
  - `DefensiveReboundsPercentage` number, nullable: Total defensive rebounds percentage
  - `TotalReboundsPercentage` number, nullable: The player/team total rebounds percentage
  - `Assists` number, nullable: Total assists
  - `Steals` number, nullable: Total steals
  - `BlockedShots` number, nullable: Total blocked shots
  - `Turnovers` number, nullable: Total turnovers
  - `PersonalFouls` number, nullable: Total personal fouls
  - `Points` number, nullable: Total points scored
  - `TrueShootingAttempts` number, nullable: The player's true shooting attempts as defined here: http://www.basketball-reference.com/about/glossary.html
  - `TrueShootingPercentage` number, nullable: The player's true shooting percentage as defined here: http://www.basketball-reference.com/about/glossary.html
  - `PlayerEfficiencyRating` number, nullable: The player's linear weight efficiency rating as defined here: http://bleacherreport.com/articles/113144-cracking-the-code-how-to-calculate-hollingers-per-without-all-the-mess
  - `AssistsPercentage` number, nullable: The player's assist percentage as defined here: http://www.basketball-reference.com/about/glossary.html
  - `StealsPercentage` number, nullable: The player's steal percentage as defined here: http://www.basketball-reference.com/about/glossary.html
  - `BlocksPercentage` number, nullable: The player's block percentage as defined here: http://www.basketball-reference.com/about/glossary.html
  - `TurnOversPercentage` number, nullable: The player's turnover percentage as defined here: http://www.basketball-reference.com/about/glossary.html
  - `UsageRatePercentage` number, nullable: The player's usage rate percentage as defined here: http://www.basketball-reference.com/about/glossary.html
  - `FantasyPointsFanDuel` number, nullable: Total FanDuel daily fantasy points scored
  - `FantasyPointsDraftKings` number, nullable: Total DraftKings daily fantasy points scored
  - `FantasyPointsYahoo` number, nullable: Total Yahoo daily fantasy points scored
  - `PlusMinus` number, nullable: Total plus minus
  - `DoubleDoubles` number, nullable: Total double-doubles scored
  - `TripleDoubles` number, nullable: Total triple-doubles scored
  - `FantasyPointsFantasyDraft` number, nullable: Total FantasyDraft daily fantasy points scored
  - `IsClosed` boolean: Indicates whether the game is over and the stats for this player have been verified and closed out.
  - `LineupConfirmed` boolean, nullable: Indicates whether starting lineup is confirmed
  - `LineupStatus` string, nullable: Indicates whether player is starting, active, or inactive

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/sportsdata/apis/nba-api.md) - [All operations](https://skmtc.dev/sportsdata/apis/nba-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sportsdata/apis/nba-api/revisions/30672152476c?raw)
