# ESPN teams API

Get ESPN Teams data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as league, output, raw, and retrieve structured data including resolved league slug, resolved sport name, numeric ESPN team identifier, team full display name, and team short abbreviation to resolve team_id values, populate team selector dropdowns, and filter college conferences.

Documentation: https://openany.si/espn/espn-teams-api/cb802209-e883-4485-914d-cf50febff44f/
API ID: cb802209-e883-4485-914d-cf50febff44f
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/espn/v1/teams
Page update time: 2026-12-03T02:43:04.768Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:42:13.059Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## ESPN Teams API

Retrieve the complete directory of teams for a league by passing required league and optional sport or college conference groups ID. Returned teams\[\] expose each club's numeric id, abbreviation, slug, name, nickname, location, active status, primary and alternate colors, logo and canonical url.

## What You Can Build

- **Resolve team\_id values**: Fetch teams\[\].id and abbreviation once to feed the ESPN Team, Roster, Schedule, Injuries and Transactions APIs.
- **Populate team selector dropdowns**: Use teams\[\].name, short\_name, logo and color to build branded league navigation.
- **Filter college conferences**: Pass the college conference groups integer to list only teams in a specific conference.

## Returned Data

| Field | Meaning |
| --- | --- |
| `league` | Resolved league slug |
| `sport` | Resolved sport name |
| `count` | Total number of teams returned |
| `teams[].id` | Numeric ESPN team identifier |
| `teams[].name` | Team full display name |
| `teams[].abbreviation` | Team short abbreviation |
| `teams[].location` | Team city or geographic location |
| `teams[].color` | Primary team hex color |
| `teams[].logo` | Team logo image URL |
| `teams[].url` | Canonical ESPN team page URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ESPN teams API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "league": {
          "type": "string",
          "description": "League slug: nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl, soccer competitions (eng.1 Premier League, esp.1 LaLiga, ita.1, ger.1, fra.1, usa.1 MLS, uefa.champions, uefa.europa, fifa.world ...), f1, irl, nascar-premier, pga, lpga, atp, wta, ufc. Other ESPN leagues work with `sport`."
        },
        "sport": {
          "type": "string",
          "description": "Only needed for a league not listed under `league` (it is inferred for those).",
          "enum": [
            "football",
            "basketball",
            "baseball",
            "hockey",
            "soccer",
            "racing",
            "golf",
            "tennis",
            "mma",
            "lacrosse",
            "volleyball",
            "rugby",
            "field-hockey",
            "water-polo",
            "australian-football",
            "rugby-league",
            "cricket",
            "boxing"
          ]
        },
        "groups": {
          "type": "integer",
          "description": "Conference group id (college)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "league"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "league": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "teams": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "abbreviation": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "alternate_color": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "logo": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "short_name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/espn/v1/teams?league=nba&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 30,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:21:20.708Z",
  "league": "nba",
  "sport": "basketball",
  "teams": [
    {
      "abbreviation": "ATL",
      "active": true,
      "alternate_color": "fdb927",
      "color": "c8102e",
      "id": "1",
      "location": "Atlanta",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/atl.png",
      "name": "Atlanta Hawks",
      "nickname": "Hawks",
      "short_name": "Hawks",
      "slug": "atlanta-hawks",
      "url": "https://www.espn.com/nba/team/_/name/atl/atlanta-hawks"
    },
    {
      "abbreviation": "BOS",
      "active": true,
      "alternate_color": "ffffff",
      "color": "008348",
      "id": "2",
      "location": "Boston",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/bos.png",
      "name": "Boston Celtics",
      "nickname": "Celtics",
      "short_name": "Celtics",
      "slug": "boston-celtics",
      "url": "https://www.espn.com/nba/team/_/name/bos/boston-celtics"
    },
    {
      "abbreviation": "BKN",
      "active": true,
      "alternate_color": "ffffff",
      "color": "000000",
      "id": "17",
      "location": "Brooklyn",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/bkn.png",
      "name": "Brooklyn Nets",
      "nickname": "Nets",
      "short_name": "Nets",
      "slug": "brooklyn-nets",
      "url": "https://www.espn.com/nba/team/_/name/bkn/brooklyn-nets"
    },
    {
      "abbreviation": "CHA",
      "active": true,
      "alternate_color": "1d1060",
      "color": "008ca8",
      "id": "30",
      "location": "Charlotte",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/cha.png",
      "name": "Charlotte Hornets",
      "nickname": "Hornets",
      "short_name": "Hornets",
      "slug": "charlotte-hornets",
      "url": "https://www.espn.com/nba/team/_/name/cha/charlotte-hornets"
    },
    {
      "abbreviation": "CHI",
      "active": true,
      "alternate_color": "000000",
      "color": "ce1141",
      "id": "4",
      "location": "Chicago",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/chi.png",
      "name": "Chicago Bulls",
      "nickname": "Bulls",
      "short_name": "Bulls",
      "slug": "chicago-bulls",
      "url": "https://www.espn.com/nba/team/_/name/chi/chicago-bulls"
    },
    {
      "abbreviation": "CLE",
      "active": true,
      "alternate_color": "bc945c",
      "color": "860038",
      "id": "5",
      "location": "Cleveland",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/cle.png",
      "name": "Cleveland Cavaliers",
      "nickname": "Cavaliers",
      "short_name": "Cavaliers",
      "slug": "cleveland-cavaliers",
      "url": "https://www.espn.com/nba/team/_/name/cle/cleveland-cavaliers"
    },
    {
      "abbreviation": "DAL",
      "active": true,
      "alternate_color": "bbc4ca",
      "color": "0064b1",
      "id": "6",
      "location": "Dallas",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/dal.png",
      "name": "Dallas Mavericks",
      "nickname": "Mavericks",
      "short_name": "Mavericks",
      "slug": "dallas-mavericks",
      "url": "https://www.espn.com/nba/team/_/name/dal/dallas-mavericks"
    },
    {
      "abbreviation": "DEN",
      "active": true,
      "alternate_color": "fec524",
      "color": "0e2240",
      "id": "7",
      "location": "Denver",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/den.png",
      "name": "Denver Nuggets",
      "nickname": "Nuggets",
      "short_name": "Nuggets",
      "slug": "denver-nuggets",
      "url": "https://www.espn.com/nba/team/_/name/den/denver-nuggets"
    },
    {
      "abbreviation": "DET",
      "active": true,
      "alternate_color": "c8102e",
      "color": "1d428a",
      "id": "8",
      "location": "Detroit",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/det.png",
      "name": "Detroit Pistons",
      "nickname": "Pistons",
      "short_name": "Pistons",
      "slug": "detroit-pistons",
      "url": "https://www.espn.com/nba/team/_/name/det/detroit-pistons"
    },
    {
      "abbreviation": "GS",
      "active": true,
      "alternate_color": "1d428a",
      "color": "fdb927",
      "id": "9",
      "location": "Golden State",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/gs.png",
      "name": "Golden State Warriors",
      "nickname": "Warriors",
      "short_name": "Warriors",
      "slug": "golden-state-warriors",
      "url": "https://www.espn.com/nba/team/_/name/gs/golden-state-warriors"
    },
    {
      "abbreviation": "HOU",
      "active": true,
      "alternate_color": "000000",
      "color": "ce0e2d",
      "id": "10",
      "location": "Houston",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/hou.png",
      "name": "Houston Rockets",
      "nickname": "Rockets",
      "short_name": "Rockets",
      "slug": "houston-rockets",
      "url": "https://www.espn.com/nba/team/_/name/hou/houston-rockets"
    },
    {
      "abbreviation": "IND",
      "active": true,
      "alternate_color": "ffd520",
      "color": "0c2340",
      "id": "11",
      "location": "Indiana",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/ind.png",
      "name": "Indiana Pacers",
      "nickname": "Pacers",
      "short_name": "Pacers",
      "slug": "indiana-pacers",
      "url": "https://www.espn.com/nba/team/_/name/ind/indiana-pacers"
    },
    {
      "abbreviation": "LAC",
      "active": true,
      "alternate_color": "c8102e",
      "color": "12173f",
      "id": "12",
      "location": "LA",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/lac.png",
      "name": "LA Clippers",
      "nickname": "Clippers",
      "short_name": "Clippers",
      "slug": "la-clippers",
      "url": "https://www.espn.com/nba/team/_/name/lac/la-clippers"
    },
    {
      "abbreviation": "LAL",
      "active": true,
      "alternate_color": "fdb927",
      "color": "552583",
      "id": "13",
      "location": "Los Angeles",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/lal.png",
      "name": "Los Angeles Lakers",
      "nickname": "Lakers",
      "short_name": "Lakers",
      "slug": "los-angeles-lakers",
      "url": "https://www.espn.com/nba/team/_/name/lal/los-angeles-lakers"
    },
    {
      "abbreviation": "MEM",
      "active": true,
      "alternate_color": "12173f",
      "color": "5d76a9",
      "id": "29",
      "location": "Memphis",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/mem.png",
      "name": "Memphis Grizzlies",
      "nickname": "Grizzlies",
      "short_name": "Grizzlies",
      "slug": "memphis-grizzlies",
      "url": "https://www.espn.com/nba/team/_/name/mem/memphis-grizzlies"
    },
    {
      "abbreviation": "MIA",
      "active": true,
      "alternate_color": "000000",
      "color": "98002e",
      "id": "14",
      "location": "Miami",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/mia.png",
      "name": "Miami Heat",
      "nickname": "Heat",
      "short_name": "Heat",
      "slug": "miami-heat",
      "url": "https://www.espn.com/nba/team/_/name/mia/miami-heat"
    },
    {
      "abbreviation": "MIL",
      "active": true,
      "alternate_color": "eee1c6",
      "color": "00471b",
      "id": "15",
      "location": "Milwaukee",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/mil.png",
      "name": "Milwaukee Bucks",
      "nickname": "Bucks",
      "short_name": "Bucks",
      "slug": "milwaukee-bucks",
      "url": "https://www.espn.com/nba/team/_/name/mil/milwaukee-bucks"
    },
    {
      "abbreviation": "MIN",
      "active": true,
      "alternate_color": "79bc43",
      "color": "266092",
      "id": "16",
      "location": "Minnesota",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/min.png",
      "name": "Minnesota Timberwolves",
      "nickname": "Timberwolves",
      "short_name": "Timberwolves",
      "slug": "minnesota-timberwolves",
      "url": "https://www.espn.com/nba/team/_/name/min/minnesota-timberwolves"
    },
    {
      "abbreviation": "NO",
      "active": true,
      "alternate_color": "b4975a",
      "color": "0a2240",
      "id": "3",
      "location": "New Orleans",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/no.png",
      "name": "New Orleans Pelicans",
      "nickname": "Pelicans",
      "short_name": "Pelicans",
      "slug": "new-orleans-pelicans",
      "url": "https://www.espn.com/nba/team/_/name/no/new-orleans-pelicans"
    },
    {
      "abbreviation": "NY",
      "active": true,
      "alternate_color": "f58426",
      "color": "1d428a",
      "id": "18",
      "location": "New York",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/ny.png",
      "name": "New York Knicks",
      "nickname": "Knicks",
      "short_name": "Knicks",
      "slug": "new-york-knicks",
      "url": "https://www.espn.com/nba/team/_/name/ny/new-york-knicks"
    },
    {
      "abbreviation": "OKC",
      "active": true,
      "alternate_color": "ef3b24",
      "color": "007ac1",
      "id": "25",
      "location": "Oklahoma City",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/okc.png",
      "name": "Oklahoma City Thunder",
      "nickname": "Thunder",
      "short_name": "Thunder",
      "slug": "oklahoma-city-thunder",
      "url": "https://www.espn.com/nba/team/_/name/okc/oklahoma-city-thunder"
    },
    {
      "abbreviation": "ORL",
      "active": true,
      "alternate_color": "9ca0a3",
      "color": "0150b5",
      "id": "19",
      "location": "Orlando",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/orl.png",
      "name": "Orlando Magic",
      "nickname": "Magic",
      "short_name": "Magic",
      "slug": "orlando-magic",
      "url": "https://www.espn.com/nba/team/_/name/orl/orlando-magic"
    },
    {
      "abbreviation": "PHI",
      "active": true,
      "alternate_color": "e01234",
      "color": "1d428a",
      "id": "20",
      "location": "Philadelphia",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/phi.png",
      "name": "Philadelphia 76ers",
      "nickname": "76ers",
      "short_name": "76ers",
      "slug": "philadelphia-76ers",
      "url": "https://www.espn.com/nba/team/_/name/phi/philadelphia-76ers"
    },
    {
      "abbreviation": "PHX",
      "active": true,
      "alternate_color": "e56020",
      "color": "29127a",
      "id": "21",
      "location": "Phoenix",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/phx.png",
      "name": "Phoenix Suns",
      "nickname": "Suns",
      "short_name": "Suns",
      "slug": "phoenix-suns",
      "url": "https://www.espn.com/nba/team/_/name/phx/phoenix-suns"
    },
    {
      "abbreviation": "POR",
      "active": true,
      "alternate_color": "000000",
      "color": "e03a3e",
      "id": "22",
      "location": "Portland",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/por.png",
      "name": "Portland Trail Blazers",
      "nickname": "Trail Blazers",
      "short_name": "Trail Blazers",
      "slug": "portland-trail-blazers",
      "url": "https://www.espn.com/nba/team/_/name/por/portland-trail-blazers"
    },
    {
      "abbreviation": "SAC",
      "active": true,
      "alternate_color": "6a7a82",
      "color": "5a2d81",
      "id": "23",
      "location": "Sacramento",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/sac.png",
      "name": "Sacramento Kings",
      "nickname": "Kings",
      "short_name": "Kings",
      "slug": "sacramento-kings",
      "url": "https://www.espn.com/nba/team/_/name/sac/sacramento-kings"
    },
    {
      "abbreviation": "SA",
      "active": true,
      "alternate_color": "c4ced4",
      "color": "000000",
      "id": "24",
      "location": "San Antonio",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/sa.png",
      "name": "San Antonio Spurs",
      "nickname": "Spurs",
      "short_name": "Spurs",
      "slug": "san-antonio-spurs",
      "url": "https://www.espn.com/nba/team/_/name/sa/san-antonio-spurs"
    },
    {
      "abbreviation": "TOR",
      "active": true,
      "alternate_color": "000000",
      "color": "d91244",
      "id": "28",
      "location": "Toronto",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/tor.png",
      "name": "Toronto Raptors",
      "nickname": "Raptors",
      "short_name": "Raptors",
      "slug": "toronto-raptors",
      "url": "https://www.espn.com/nba/team/_/name/tor/toronto-raptors"
    },
    {
      "abbreviation": "UTAH",
      "active": true,
      "alternate_color": "79a3dc",
      "color": "4e008e",
      "id": "26",
      "location": "Utah",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/utah.png",
      "name": "Utah Jazz",
      "nickname": "Jazz",
      "short_name": "Jazz",
      "slug": "utah-jazz",
      "url": "https://www.espn.com/nba/team/_/name/utah/utah-jazz"
    },
    {
      "abbreviation": "WSH",
      "active": true,
      "alternate_color": "002b5c",
      "color": "e31837",
      "id": "27",
      "location": "Washington",
      "logo": "https://a.espncdn.com/i/teamlogos/nba/500/wsh.png",
      "name": "Washington Wizards",
      "nickname": "Wizards",
      "short_name": "Wizards",
      "slug": "washington-wizards",
      "url": "https://www.espn.com/nba/team/_/name/wsh/washington-wizards"
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which leagues are supported by the league parameter?
Standard slugs include nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl and soccer competitions such as eng.1.

### When do I need to pass the sport parameter?
Only for a league not in the standard list; for known league slugs, sport is inferred automatically.

### What is the groups parameter used for?
For college leagues, groups filters the team directory to a specific conference group ID.

### Does each team include branding colors and logo URLs?
Yes. Every teams[] item includes color, alternate_color, logo and canonical ESPN url.

### How often should I bypass the cache with fresh=1?
Team directories rarely change mid-season, so cached responses work well; pass fresh=1 after expansion, rebranding or realignment.

### Can I request only team IDs and names?
Yes. Pass fields=teams.id,teams.name,teams.abbreviation and raw=0 for a minimal JSON payload.

## Available implementations
- apish: https://openany.si/espn/espn-teams-api/cb802209-e883-4485-914d-cf50febff44f/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
