Skip to content

list_teams

1 creditStatic referencePOST /v1/list_teams

Team ids, abbreviations and colours for a season

Use it when you need team ids and abbreviations for a season. Every other endpoint takes a team as either.

Parameters

seasonnumber | stringoptional
Season by the year it ends: 2025 = 2024-25. WNBA: the calendar year.

Notes

  • Over MCP, ask for it in plain English and the client calls list_teams itself. Point any MCP client at https://mcp.dunkapi.com/mcp?key=YOUR_API_KEY.
  • Each call costs 1 credit, taken before it runs and refunded if the server errors.
  • Not the call you need? Find the right call by what you are trying to answer.

Request

curl -X POST https://mcp.dunkapi.com/v1/list_teams \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "season": 2024
}'

Response

json
{
  "season": 2024,
  "teams": [
    {
      "team_id": "1",
      "abbrev": "ATL",
      "name": "Hawks",
      "display_name": "Atlanta Hawks",
      "location": "Atlanta",
      "conference": "Eastern",
      "color": "c8102e",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/atl.png"
    },
    {
      "team_id": "2",
      "abbrev": "BOS",
      "name": "Celtics",
      "display_name": "Boston Celtics",
      "location": "Boston",
      "conference": "Eastern",
      "color": "008348",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/bos.png"
    },
    {
      "team_id": "17",
      "abbrev": "BKN",
      "name": "Nets",
      "display_name": "Brooklyn Nets",
      "location": "Brooklyn",
      "conference": "Eastern",
      "color": "000000",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/bkn.png"
    }
  ],
  "count": 30
}

Response fields

seasonnumber
teams[]array
List of objects
teams[].team_idstring
teams[].abbrevstring
teams[].namestring
teams[].display_namestring
teams[].locationstring
teams[].conferencestring
teams[].colorstring
teams[].logostring
countnumber

Related endpoints

Try it

500 credits free on signup: 500 calls to list_teams, and no card.