OpenAny
Get API keyAPI Key
APIData

espn logo
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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

ESPN Teams API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
ESPN Teams API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: league (e.g. nba, nfl, mlb, nhl, eng.1). Optional sport, groups (college conference group id), raw=0, fields and fresh=1.
Selected implementation apish · ESPN teams API
Billing See the pricing area for the selected implementation and request options

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/espn/v1/teams \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode league=nba \
  --data-urlencode output=json \
  --data-urlencode raw=0

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published ESPN Teams API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
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`.
Optional parameters (7)
Only needed for a league not listed under `league` (it is inferred for those).
Conference group id (college).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
ESPN teams API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/espn/v1/teams
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
leagueURL query parametersquerystringYes

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`.

sportURL query parametersquerystringNo

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"

groupsURL query parametersqueryintegerNo

Conference group id (college).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • leaguestring
  • sportstring
  • teamsobject[]
    • abbreviationstring
    • activeboolean
    • alternate_colorstring
    • colorstring
    • idstring
    • locationstring
    • logostring
    • namestring
    • nicknamestring
    • short_namestring
    • slugstring
    • urlstring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 8

    Review these request fields before running. Keep the published provider and request method unchanged.

    league
    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
    Only needed for a league not listed under `league` (it is inferred for those).
    groups
    Conference group id (college).
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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"
        }
      ]
    }

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.

Use ESPN Teams API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.