# ESPN team API

Get ESPN Team 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 ESPN team identifier, team full display name, team short abbreviation, primary team hex color, and primary team logo URL to build branded team pages, and show next matchup countdowns.

Documentation: https://openany.si/espn/espn-team-api/84efe0c1-43f9-462e-8831-17de17da2493/
API ID: 84efe0c1-43f9-462e-8831-17de17da2493
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/espn/v1/team
Page update time: 2026-12-03T02:43:04.713Z
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:41:58.207Z. 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 Team API

Inspect a single team by passing league and team\_id (numeric ID or abbreviation, such as 13 for the Los Angeles Lakers), plus optional sport, include (comma-separated extras like statistics, depth\_chart, leaders), season, seasontype and leaders\_limit (1-20). Returned JSON provides franchise details, venue, logos, colors, conference groups and next\_event\[\].

## What You Can Build

- **Build branded team pages**: Use color, alternate\_color, logo, logos\[\] and franchise.venue to style team headers accurately.
- **Pull team stats and depth charts together**: Pass include=statistics,depth\_chart,leaders to combine season metrics and starters in one call.
- **Show next matchup countdowns**: Read next\_event\[\] to display the team's upcoming opponent, date and competition status.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | ESPN team identifier |
| `name` | Team full display name |
| `abbreviation` | Team short abbreviation |
| `location` | Team city or geographic location |
| `color` | Primary team hex color |
| `logo` | Primary team logo URL |
| `franchise.name` | Franchise name |
| `franchise.venue.fullName` | Home stadium or arena name |
| `groups.id` | Conference or division group identifier |
| `next_event[].competitions[].date` | Scheduled start time of the next event |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ESPN team 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"
          ]
        },
        "team_id": {
          "type": "string",
          "description": "ESPN team id or abbreviation (13 = Los Angeles Lakers)."
        },
        "include": {
          "type": "string",
          "description": "Comma-separated extras: `statistics` (season team statistics), `depth_chart` (positions and players in depth order, where the league publishes one), `coaches` (coaching staff with years of experience), `injuries` (the team's injury report), `leaders` (team leaders per statistical category for `season`/`seasontype`, default the current season). Each extra is one more lookup; one that the league does not offer comes back as `{error}`."
        },
        "season": {
          "type": "string",
          "description": "For include=leaders: season year (the year the season ends for NBA/NHL, e.g. 2025 = 2024-25). Default the current season."
        },
        "seasontype": {
          "type": "string",
          "description": "For include=leaders: 1 preseason, 2 regular season (default), 3 postseason, 4 off season.",
          "enum": [
            "1",
            "2",
            "3",
            "4"
          ]
        },
        "leaders_limit": {
          "type": "integer",
          "description": "For include=leaders: players per category (1-20, default 5)."
        },
        "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",
        "team_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "abbreviation": {
      "type": "string"
    },
    "active": {
      "type": "boolean"
    },
    "alternate_color": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "color": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "franchise": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "venue": {
          "type": "object",
          "properties": {
            "address": {
              "type": "object",
              "properties": {
                "city": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                }
              }
            },
            "fullName": {
              "type": "string"
            },
            "grass": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            },
            "images": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "alt": {
                    "type": "string"
                  },
                  "height": {
                    "type": "integer"
                  },
                  "href": {
                    "type": "string"
                  },
                  "rel": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "width": {
                    "type": "integer"
                  }
                }
              }
            },
            "indoor": {
              "type": "boolean"
            },
            "shortName": {
              "type": "string"
            }
          }
        }
      }
    },
    "groups": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "isConference": {
          "type": "boolean"
        },
        "parent": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            }
          }
        }
      }
    },
    "id": {
      "type": "string"
    },
    "league": {
      "type": "string"
    },
    "location": {
      "type": "string"
    },
    "logo": {
      "type": "string"
    },
    "logos": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rel": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "name": {
      "type": "string"
    },
    "next_event": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "competitions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attendance": {
                  "type": "null"
                },
                "broadcasts": {
                  "type": "array",
                  "items": {}
                },
                "competitors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "athlete": {
                        "type": "null"
                      },
                      "form": {
                        "type": "null"
                      },
                      "home_away": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "leaders": {
                        "type": "array",
                        "items": {}
                      },
                      "linescores": {
                        "type": "array",
                        "items": {}
                      },
                      "order": {
                        "type": "integer"
                      },
                      "rank": {
                        "type": "null"
                      },
                      "records": {
                        "type": "array",
                        "items": {}
                      },
                      "score": {
                        "type": "null"
                      },
                      "seed": {
                        "type": "null"
                      },
                      "statistics": {
                        "type": "array",
                        "items": {}
                      },
                      "team": {
                        "type": "object",
                        "properties": {
                          "abbreviation": {
                            "type": "string"
                          },
                          "alternate_color": {
                            "type": "null"
                          },
                          "color": {
                            "type": "null"
                          },
                          "id": {
                            "type": "string"
                          },
                          "location": {
                            "type": "string"
                          },
                          "logo": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "nickname": {
                            "type": "null"
                          },
                          "short_name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          }
                        }
                      },
                      "type": {
                        "type": "string"
                      },
                      "winner": {
                        "type": "null"
                      }
                    }
                  }
                },
                "conference_game": {
                  "type": "null"
                },
                "date": {
                  "type": "string"
                },
                "headlines": {
                  "type": "array",
                  "items": {}
                },
                "id": {
                  "type": "string"
                },
                "leaders": {
                  "type": "array",
                  "items": {}
                },
                "neutral_site": {
                  "type": "boolean"
                },
                "notes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "odds": {
                  "type": "null"
                },
                "status": {
                  "type": "object",
                  "properties": {
                    "clock": {
                      "type": "string"
                    },
                    "completed": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": "string"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "period": {
                      "type": "integer"
                    },
                    "short_detail": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  }
                },
                "type": {
                  "type": "string"
                },
                "venue": {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "string"
                    },
                    "country": {
                      "type": "null"
                    },
                    "id": {
                      "type": "null"
                    },
                    "indoor": {
                      "type": "null"
                    },
                    "name": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "date": {
            "type": "string"
          },
          "end_date": {
            "type": "null"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "season": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "null"
              },
              "type": {
                "type": "null"
              },
              "year": {
                "type": "integer"
              }
            }
          },
          "short_name": {
            "type": "string"
          },
          "status": {
            "type": "null"
          },
          "url": {
            "type": "string"
          },
          "week": {
            "type": "null"
          }
        }
      }
    },
    "nickname": {
      "type": "string"
    },
    "record": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "stats": {
            "type": "object",
            "properties": {
              "OTLosses": {
                "type": "integer"
              },
              "OTWins": {
                "type": "integer"
              },
              "avgPointsAgainst": {
                "type": "number"
              },
              "avgPointsFor": {
                "type": "number"
              },
              "differential": {
                "type": "number"
              },
              "divisionWinPercent": {
                "type": "number"
              },
              "gamesAhead": {
                "type": "integer"
              },
              "gamesBehind": {
                "type": "integer"
              },
              "gamesPlayed": {
                "type": "integer"
              },
              "leagueWinPercent": {
                "type": "number"
              },
              "losses": {
                "type": "integer"
              },
              "playoffSeed": {
                "type": "integer"
              },
              "pointDifferential": {
                "type": "integer"
              },
              "points": {
                "type": "integer"
              },
              "pointsAgainst": {
                "type": "integer"
              },
              "pointsFor": {
                "type": "integer"
              },
              "streak": {
                "type": "integer"
              },
              "ties": {
                "type": "integer"
              },
              "winPercent": {
                "type": "number"
              },
              "wins": {
                "type": "integer"
              }
            }
          },
          "summary": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "short_name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "sport": {
      "type": "string"
    },
    "standing_summary": {
      "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/team?league=nba&output=json&raw=0&team_id=13' \
  -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
{
  "abbreviation": "LAL",
  "active": true,
  "alternate_color": "fdb927",
  "cached": false,
  "color": "552583",
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:21:20.435Z",
  "franchise": {
    "id": "13",
    "name": "Los Angeles Lakers",
    "venue": {
      "address": {
        "city": "Los Angeles",
        "state": "CA"
      },
      "fullName": "crypto.com Arena",
      "grass": false,
      "id": "1841",
      "images": [
        {
          "alt": "",
          "height": 1125,
          "href": "https://a.espncdn.com/i/venues/nba/day/1841.jpg",
          "rel": [
            "full",
            "day"
          ],
          "width": 2000
        }
      ],
      "indoor": true,
      "shortName": "Staples Center"
    }
  },
  "groups": {
    "id": "4",
    "isConference": false,
    "parent": {
      "id": "6"
    }
  },
  "id": "13",
  "league": "nba",
  "location": "Los Angeles",
  "logo": "https://a.espncdn.com/i/teamlogos/nba/500/lal.png",
  "logos": [
    {
      "rel": [
        "full",
        "default"
      ],
      "url": "https://a.espncdn.com/i/teamlogos/nba/500/lal.png"
    },
    {
      "rel": [
        "full",
        "dark"
      ],
      "url": "https://a.espncdn.com/i/teamlogos/nba/500-dark/lal.png"
    },
    {
      "rel": [
        "full",
        "scoreboard"
      ],
      "url": "https://a.espncdn.com/i/teamlogos/nba/500/scoreboard/lal.png"
    },
    {
      "rel": [
        "full",
        "scoreboard",
        "dark"
      ],
      "url": "https://a.espncdn.com/i/teamlogos/nba/500-dark/scoreboard/lal.png"
    },
    {
      "rel": [
        "full",
        "primary_logo_on_white_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/primary_logo_on_white_color.png"
    },
    {
      "rel": [
        "full",
        "primary_logo_on_black_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/primary_logo_on_black_color.png"
    },
    {
      "rel": [
        "full",
        "primary_logo_on_primary_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/primary_logo_on_primary_color.png"
    },
    {
      "rel": [
        "full",
        "primary_logo_on_secondary_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/primary_logo_on_secondary_color.png"
    },
    {
      "rel": [
        "full",
        "primary_logo_black"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/primary_logo_black.png"
    },
    {
      "rel": [
        "full",
        "primary_logo_white"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/primary_logo_white.png"
    },
    {
      "rel": [
        "full",
        "secondary_logo_on_white_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/secondary_logo_on_white_color.png"
    },
    {
      "rel": [
        "full",
        "secondary_logo_on_black_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/secondary_logo_on_black_color.png"
    },
    {
      "rel": [
        "full",
        "secondary_logo_on_primary_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/secondary_logo_on_primary_color.png"
    },
    {
      "rel": [
        "full",
        "secondary_logo_on_secondary_color"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/secondary_logo_on_secondary_color.png"
    },
    {
      "rel": [
        "full",
        "secondary_logo_black"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/secondary_logo_black.png"
    },
    {
      "rel": [
        "full",
        "secondary_logo_white"
      ],
      "url": "https://a.espncdn.com/guid/2876e98b-b9bc-2920-4319-46e6943f8be4/logos/secondary_logo_white.png"
    }
  ],
  "name": "Los Angeles Lakers",
  "next_event": [
    {
      "competitions": [
        {
          "attendance": null,
          "broadcasts": [],
          "competitors": [
            {
              "athlete": null,
              "form": null,
              "home_away": "home",
              "id": "13",
              "leaders": [],
              "linescores": [],
              "order": 0,
              "rank": null,
              "records": [],
              "score": null,
              "seed": null,
              "statistics": [],
              "team": {
                "abbreviation": "LAL",
                "alternate_color": null,
                "color": null,
                "id": "13",
                "location": "Los Angeles",
                "logo": "https://a.espncdn.com/i/teamlogos/nba/500/lal.png",
                "name": "Los Angeles Lakers",
                "nickname": null,
                "short_name": "Lakers",
                "url": "https://www.espn.com/nba/team/_/name/lal/los-angeles-lakers"
              },
              "type": "team",
              "winner": null
            },
            {
              "athlete": null,
              "form": null,
              "home_away": "away",
              "id": "23",
              "leaders": [],
              "linescores": [],
              "order": 1,
              "rank": null,
              "records": [],
              "score": null,
              "seed": null,
              "statistics": [],
              "team": {
                "abbreviation": "SAC",
                "alternate_color": null,
                "color": null,
                "id": "23",
                "location": "Sacramento",
                "logo": "https://a.espncdn.com/i/teamlogos/nba/500/sac.png",
                "name": "Sacramento Kings",
                "nickname": null,
                "short_name": "Kings",
                "url": "https://www.espn.com/nba/team/_/name/sac/sacramento-kings"
              },
              "type": "team",
              "winner": null
            }
          ],
          "conference_game": null,
          "date": "2026-11-21T03:00Z",
          "headlines": [],
          "id": "401909313",
          "leaders": [],
          "neutral_site": false,
          "notes": [
            "NBA Cup - Group Play"
          ],
          "odds": null,
          "status": {
            "clock": "0.0",
            "completed": false,
            "description": "Scheduled",
            "detail": "Fri, November 20th at 10:00 PM EST",
            "name": "STATUS_SCHEDULED",
            "period": 0,
            "short_detail": "11/20 - 10:00 PM EST",
            "state": "pre"
          },
          "type": "STD",
          "venue": {
            "city": "Los Angeles",
            "country": null,
            "id": null,
            "indoor": null,
            "name": "crypto.com Arena",
            "state": "CA"
          }
        }
      ],
      "date": "2026-11-21T03:00Z",
      "end_date": null,
      "id": "401909313",
      "name": "Sacramento Kings at Los Angeles Lakers",
      "season": {
        "slug": null,
        "type": null,
        "year": 2027
      },
      "short_name": "SAC @ LAL",
      "status": null,
      "url": "https://www.espn.com/nba/game/_/gameId/401909313/kings-lakers",
      "week": null
    }
  ],
  "nickname": "Lakers",
  "record": [
    {
      "description": "Overall Record",
      "stats": {
        "OTLosses": 0,
        "OTWins": 0,
        "avgPointsAgainst": 114.4375,
        "avgPointsFor": 120.875,
        "differential": 6.4375,
        "divisionWinPercent": 0.8333333,
        "gamesAhead": 11,
        "gamesBehind": 0,
        "gamesPlayed": 16,
        "leagueWinPercent": 0.7,
        "losses": 3,
        "playoffSeed": 1,
        "pointDifferential": 103,
        "points": 5,
        "pointsAgainst": 1831,
        "pointsFor": 1934,
        "streak": -1,
        "ties": 0,
        "winPercent": 0.8125,
        "wins": 13
      },
      "summary": "13-3",
      "type": "total"
    },
    {
      "description": "Home Record",
      "stats": {
        "OTLosses": 0,
        "losses": 2,
        "ties": 0,
        "winPercent": 0.75,
        "wins": 6
      },
      "summary": "6-2",
      "type": "home"
    },
    {
      "description": "Away Record",
      "stats": {
        "OTLosses": 0,
        "losses": 1,
        "ties": 0,
        "winPercent": 0.875,
        "wins": 7
      },
      "summary": "7-1",
      "type": "road"
    }
  ],
  "short_name": "Lakers",
  "slug": "los-angeles-lakers",
  "sport": "basketball",
  "standing_summary": "1st in Pacific Division",
  "url": "https://www.espn.com/nba/team/_/name/lal/los-angeles-lakers"
}
```

## 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
### Can I pass a team abbreviation instead of a numeric team_id?
Yes. team_id accepts either an ESPN numeric ID (such as 13) or team abbreviation.

### What extra data can I request with the include parameter?
Pass comma-separated extras such as statistics (season team stats), depth_chart (positions and players) and leaders.

### When do season, seasontype and leaders_limit apply?
Those parameters configure include=leaders, selecting the season year, season type (1-4, default 2) and leaders per category (1-20, default 5).

### Does the response include home arena or stadium metadata?
Yes. franchise.venue exposes id, fullName, shortName, address, indoor, grass and images[].

### How do I refresh next_event and team stats immediately?
Pass fresh=1 to skip the 24-hour cache and fetch live team data.

### How do I keep the team payload small?
Omit unneeded include extras and pass raw=0 to drop bulky raw source blocks.

## Available implementations
- apish: https://openany.si/espn/espn-team-api/84efe0c1-43f9-462e-8831-17de17da2493/

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