---
id: "nba_team_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "NBA team abbreviation"
regexp: "^[A-Z]{2,4}$"
categories: ["common"]
country: ["US", "CA"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/nba_team_code"
---

# NBA team abbreviation (`nba_team_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Abbreviation of a team of the National Basketball Association, the professional basketball league of the United States and Canada: LAL (Los Angeles Lakers), BOS, GSW, NYK, SAS, TOR (Toronto Raptors). Box scores, standings, rosters and statistics tables use it for the team and the opponent. Sources differ for some teams (BKN or BRK, CHA or CHO, PHX or PHO, GSW or GS) and older tables keep teams that moved or were renamed (NJN for the New Jersey Nets, SEA for the Seattle SuperSonics, NOH for the New Orleans Hornets). MLB and NFL abbreviations are separate types and share many codes.

- Parent datatype: [`sports_team`](https://registry.apicrafter.io/datatype/sports_team.md)
- Personal data (PII): no
- Categories: Common (common)
- Countries: United States (US), Canada (CA)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[A-Z]{2,4}$
```

## Examples

- `LAL` — Los Angeles Lakers
- `GSW` — Golden State Warriors
- `NYK` — New York Knicks
- `SAS` — San Antonio Spurs

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `nbateamcodebyname` (field, `us/us_sports.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Сокращение команды NBA

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/National_Basketball_Association>

## Quality

Score 85/100. Missing: negative example, mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/nba_team_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/common/nba_team_code.yaml>
