---
id: "mlb_team_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Major League Baseball team abbreviation"
regexp: "^[A-Z]{2,3}$"
categories: ["common"]
country: ["US", "CA"]
langs: ["en"]
quality: 90
url: "https://registry.apicrafter.io/datatype/mlb_team_code"
---

# Major League Baseball team abbreviation (`mlb_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 Major League Baseball, the professional baseball league of the United States and Canada: NYY (New York Yankees), BOS, LAD, CHC, TOR (Toronto Blue Jays). Box scores, standings, rosters and statistics tables use it for the team and the opponent. Sources differ for some teams (CWS or CHW, KC or KCR, SD or SDP, SF or SFG, TB or TBR, WSH or WSN) and older tables keep teams that moved or were renamed (MON for the Montreal Expos, FLA for the Florida Marlins). NBA and NFL abbreviations are separate types and share many codes (ATL, BOS, CHI).

- 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,3}$
```

## Examples

- `NYY` — New York Yankees
- `LAD` — Los Angeles Dodgers
- `CWS` — Chicago White Sox
- `TOR` — Toronto Blue Jays
- `NewYork` (invalid example)

## Metacrafter rules

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

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

## Supported by tools

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

## Translations

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

## Sources

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

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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