ESPN team API
Use the ESPN team API to retrieve statistical breakdowns, performance totals, grouped competition tables, published summaries, record identities and titles and source-page links as structured JSON from ESPN. Supply league and team identifier in the query; optionally select sport and season to set the requested scope. Use these results to enrich a competitor reference page and connect the player or team with its published sporting record. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent ESPN team API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
abbreviationstringactivebooleanalternate_colorstringcachedbooleancolorstringcredits_usedintegerfetched_atstringfranchiseobjectidstringnamestringvenueobjectaddressobjectcitystringstatestring
fullNamestringgrassbooleanidstringimagesobject[]altstringheightintegerhrefstringrelstring[]widthinteger
indoorbooleanshortNamestring
groupsobjectidstringisConferencebooleanparentobjectidstring
idstringleaguestringlocationstringlogostringlogosobject[]relstring[]urlstring
namestringnext_eventobject[]competitionsobject[]attendancenullbroadcastsunknown[]competitorsobject[]athletenullformnullhome_awaystringidstringleadersunknown[]linescoresunknown[]orderintegerranknullrecordsunknown[]scorenullseednullstatisticsunknown[]teamobjectabbreviationstringalternate_colornullcolornullidstringlocationstringlogostringnamestringnicknamenullshort_namestringurlstring
typestringwinnernull
conference_gamenulldatestringheadlinesunknown[]idstringleadersunknown[]neutral_sitebooleannotesstring[]oddsnullstatusobjectclockstringcompletedbooleandescriptionstringdetailstringnamestringperiodintegershort_detailstringstatestring
typestringvenueobjectcitystringcountrynullidnullindoornullnamestringstatestring
datestringend_datenullidstringnamestringseasonobjectslugnulltypenullyearinteger
short_namestringstatusnullurlstringweeknull
nicknamestringrecordobject[]descriptionstringstatsobjectOTLossesintegerOTWinsintegeravgPointsAgainstnumberavgPointsFornumberdifferentialnumberdivisionWinPercentnumbergamesAheadintegergamesBehindintegergamesPlayedintegerleagueWinPercentnumberlossesintegerplayoffSeedintegerpointDifferentialintegerpointsintegerpointsAgainstintegerpointsForintegerstreakintegertiesintegerwinPercentnumberwinsinteger
summarystringtypestring
short_namestringslugstringsportstringstanding_summarystringurlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
abbreviation?: string;
active?: boolean;
alternate_color?: string;
cached?: boolean;
color?: string;
credits_used?: number;
fetched_at?: string;
franchise?: {
id?: string;
name?: string;
venue?: {
address?: {
city?: string;
state?: string;
};
fullName?: string;
grass?: boolean;
id?: string;
images?: Array<{
alt?: string;
height?: number;
href?: string;
rel?: Array<string>;
width?: number;
}>;
indoor?: boolean;
shortName?: string;
};
};
groups?: {
id?: string;
isConference?: boolean;
parent?: {
id?: string;
};
};
id?: string;
league?: string;
location?: string;
logo?: string;
logos?: Array<{
rel?: Array<string>;
url?: string;
}>;
name?: string;
next_event?: Array<{
competitions?: Array<{
attendance?: null;
broadcasts?: Array<unknown>;
competitors?: Array<{
athlete?: null;
form?: null;
home_away?: string;
id?: string;
leaders?: Array<unknown>;
linescores?: Array<unknown>;
order?: number;
rank?: null;
records?: Array<unknown>;
score?: null;
seed?: null;
statistics?: Array<unknown>;
team?: {
abbreviation?: string;
alternate_color?: null;
color?: null;
id?: string;
location?: string;
logo?: string;
name?: string;
nickname?: null;
short_name?: string;
url?: string;
};
type?: string;
winner?: null;
}>;
conference_game?: null;
date?: string;
headlines?: Array<unknown>;
id?: string;
leaders?: Array<unknown>;
neutral_site?: boolean;
notes?: Array<string>;
odds?: null;
status?: {
clock?: string;
completed?: boolean;
description?: string;
detail?: string;
name?: string;
period?: number;
short_detail?: string;
state?: string;
};
type?: string;
venue?: {
city?: string;
country?: null;
id?: null;
indoor?: null;
name?: string;
state?: string;
};
}>;
date?: string;
end_date?: null;
id?: string;
name?: string;
season?: {
slug?: null;
type?: null;
year?: number;
};
short_name?: string;
status?: null;
url?: string;
week?: null;
}>;
nickname?: string;
record?: Array<{
description?: string;
stats?: {
OTLosses?: number;
OTWins?: number;
avgPointsAgainst?: number;
avgPointsFor?: number;
differential?: number;
divisionWinPercent?: number;
gamesAhead?: number;
gamesBehind?: number;
gamesPlayed?: number;
leagueWinPercent?: number;
losses?: number;
playoffSeed?: number;
pointDifferential?: number;
points?: number;
pointsAgainst?: number;
pointsFor?: number;
streak?: number;
ties?: number;
winPercent?: number;
wins?: number;
};
summary?: string;
type?: string;
}>;
short_name?: string;
slug?: string;
sport?: string;
standing_summary?: string;
url?: string;
};- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/espn/v1/team- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
league | URL query parametersquery | string | Yes | 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 | URL query parametersquery | string | No | 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 | URL query parametersquery | string | Yes | ESPN team id or abbreviation (13 = Los Angeles Lakers). |
include | URL query parametersquery | string | No | 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 | URL query parametersquery | string | No | For include=leaders: season year (the year the season ends for NBA/NHL, e.g. 2025 = 2024-25). Default the current season. |
seasontype | URL query parametersquery | string | No | For include=leaders: 1 preseason, 2 regular season (default), 3 postseason, 4 off season. enum: "1", "2", "3", "4" |
leaders_limit | URL query parametersquery | integer | No | For include=leaders: players per category (1-20, default 5). |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | 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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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"
}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 item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 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.
View API Markdown
# ESPN team API
Use the ESPN team API to retrieve statistical breakdowns, performance totals, grouped competition tables, published summaries, record identities and titles and source-page links as structured JSON from ESPN. Supply league and team identifier in the query; optionally select sport and season to set the requested scope. Use these results to enrich a competitor reference page and connect the player or team with its published sporting record. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · ESPN team API: https://openany.si/markets/apis/capabilities/espn-team-api?offering=84efe0c1-43f9-462e-8831-17de17da2493 · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/espn-team-api
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/espn/v1/team
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared 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'
```
## API contract
```json
{
"resource_type": "api",
"name": "ESPN team API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/espn/v1/team",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"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`.",
"location": "query",
"name": "league",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Only needed for a league not listed under `league` (it is inferred for those).",
"enum_values": [
"football",
"basketball",
"baseball",
"hockey",
"soccer",
"racing",
"golf",
"tennis",
"mma",
"lacrosse",
"volleyball",
"rugby",
"field-hockey",
"water-polo",
"australian-football",
"rugby-league",
"cricket",
"boxing"
],
"location": "query",
"name": "sport",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "ESPN team id or abbreviation (13 = Los Angeles Lakers).",
"location": "query",
"name": "team_id",
"nullable": false,
"required": true,
"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}`.",
"location": "query",
"name": "include",
"nullable": false,
"required": false,
"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.",
"location": "query",
"name": "season",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "For include=leaders: 1 preseason, 2 regular season (default), 3 postseason, 4 off season.",
"enum_values": [
"1",
"2",
"3",
"4"
],
"location": "query",
"name": "seasontype",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "For include=leaders: players per category (1-20, default 5).",
"location": "query",
"name": "leaders_limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"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.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"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": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live API.SH response · Minimal request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"league": "nba",
"output": "json",
"raw": "0",
"team_id": "13"
}
},
"response_body": {
"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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 12
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).
team_id- ESPN team id or abbreviation (13 = Los Angeles Lakers).
include- 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- For include=leaders: season year (the year the season ends for NBA/NHL, e.g. 2025 = 2024-25). Default the current season.
seasontype- For include=leaders: 1 preseason, 2 regular season (default), 3 postseason, 4 off season.
leaders_limit- For include=leaders: players per category (1-20, default 5).
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 · cURLcurl \ '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'Check the response
Sample response · Documented HTTP 200
Sample response{ "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" }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use ESPN team API with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.