---
title: "All-Stars"
method: GET
path: "/v3/nba/stats/{format}/AllStars/{season}"
tags: ["NBA v3 Stats"]
---

# All-Stars

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

## Request

- Base URL: `https://api.sportsdata.io`
- URL: `https://api.sportsdata.io/v3/nba/stats/{format}/AllStars/{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/AllStars/:season/get.ts> (a function with typed inputs; its response is checked against the schema)

A list of players selected for the All-Star Game for a given season.

## Path parameters

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

## Response `200`

Success

- PlayerInfo[]
  - `PlayerID` integer: The player's unique PlayerID as assigned by SportsDataIO. Note: this ID will stay with the player throughout their entire career
  - `Name` string, nullable: The player's full name
  - `TeamID` integer, nullable: The unique ID of the player's team
  - `Team` string, nullable: The abbreviation [Key] of the player's team
  - `Position` string, nullable: The player's primary position. Possible values: C; PF; PG; SF; SG

## 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)
