ESPN API endpoint
Returns one team's detail (identity, colors, record, standing summary). The `sport` enum accepts `football`, `basketball`, `baseball`, `hockey`, and `soccer`. The `league` enum accepts `nfl`, `college-football`, `nba`, `wnba`, `mens-college-basketball`, `womens-college-basketball`, `mlb`, `nhl`, `eng.1`, `esp.1`, `ita.1`, `ger.1`, `fra.1`, `usa.1`, and `uefa.champions`; it must be valid for the chosen sport.
/espn/teamQuery parameters:
sport: required enum. Allowed values: football, basketball, baseball, hockey, soccer.league: required enum, must be valid for the chosen sport. Allowed values: nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl, eng.1, esp.1, ita.1, ger.1, fra.1, usa.1, uefa.champions.team: required. Team id (numeric) or abbreviation, e.g. 12 or KC.Notable response behavior:
sport/league/team values return an invalid-parameter error before upstream IO.| Field | In the sample | Value in the sample |
|---|---|---|
| sport | Has a value | “football” |
| league | Has a value | “nfl” |
| team.id | Has a value | |
| team.uid | Has a value | |
| team.abbreviation | Has a value | “KC” |
| team.display_name | Has a value | |
| team.short_display_name | Has a value | |
| team.name | Has a value | “Chiefs” |
| team.location | Has a value | “Kansas City” |
| team.color | Has a value | “e31837” |
| team.alternate_color | Has a value | “ffb612” |
| team.logo | Has a value | a.espncdn.com |
| team.record | Has a value | “4-0” |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| sport | string | Yes | Sport key Allowed values: football, basketball, baseball, hockey, soccer. | football | |
| league | string | Yes | League key (must be valid for the sport) Allowed values: nfl, college-football, nba, wnba, mens-college-basketball, womens-college-basketball, mlb, nhl, eng.1, esp.1, ita.1, ger.1, fra.1, usa.1, uefa.champions. | nfl | |
| team | string | Yes | Team id (numeric) or abbreviation | KC | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/espn/team?sport=football&league=nfl&team=KC" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sport": "football",
"league": "nfl",
"source_url": "https://site.api.espn.com/apis/site/v2/sports/football/nfl/teams/KC",
"fetched_at": "2026-07-06T00:00:00Z",
"team": {
"id": "12",
"abbreviation": "KC",
"display_name": "Kansas City Chiefs",
"location": "Kansas City",
"record": "14-3",
"standing_summary": "1st in AFC West"
}
}
}Request schema
No body schema
Response schema
#/definitions/espn.teamResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | espn.TeamResponse | No | ||||
| data.fetched_at | string | No | Time the data was fetched, in UTC (RFC 3339). | |||
| data.league | string | No | League key that was requested, for example `nfl`. | |||
| data.source_url | string | No | URL the data was read from. | |||
| data.sport | string | No | Sport key that was requested, for example `football`. | |||
| data.team | object | No | Details for the requested team, including record and standing. | |||
| data.team.abbreviation | string | No | KC | Short team code, for example `KC`. | ||
| data.team.alternate_color | string | No | Team's secondary colour code, as ESPN gives it. | |||
| data.team.color | string | No | Team's primary colour code, as ESPN gives it. | |||
| data.team.display_name | string | No | Kansas City Chiefs | Full team name, for example `Kansas City Chiefs`. | ||
| data.team.id | string | No | 12 | ESPN team id, for example `12`. Use it as the `team` parameter of the team and roster endpoints. | ||
| data.team.location | string | No | Kansas City | Team's city or region, for example `Kansas City`. | ||
| data.team.logo | string | No | URL of the team logo image. | |||
| data.team.name | string | No | Chiefs | Team nickname without the location, for example `Chiefs`. | ||
| data.team.record | string | No | Team's overall win-loss record, for example `10-2`. | |||
| data.team.short_display_name | string | No | Chiefs | Shortened team name, for example `Chiefs`. | ||
| data.team.standing_summary | string | No | Short text describing the team's place in its division or conference standings. | |||
| data.team.uid | string | No | ESPN's unique identifier string for the team. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/espn/team?sport=football&league=nfl&team=KC" \
-H "x-api-key: $CRAWLORA_API_KEY"