ESPN API endpoint
Returns one athlete's bio/overview (name, position, jersey, physicals, current team). 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/athleteQuery 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.athlete: required. Numeric ESPN athlete (player) id, e.g. 3139477.Notable response behavior:
sport/league/athlete 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” |
| athlete.id | Has a value | |
| athlete.full_name | Has a value | |
| athlete.display_name | Has a value | |
| athlete.jersey | Has a value | 15 |
| athlete.position | Has a value | “QB” |
| athlete.age | Has a value | 31 |
| athlete.display_height | Has a value | |
| athlete.display_weight | Has a value | “225 lbs” |
| athlete.headshot | Has a value | a.espncdn.com |
| athlete.team | Has a value |
| 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 | |
| athlete | string | Yes | Numeric ESPN athlete (player) id | 3139477 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/espn/athlete?sport=football&league=nfl&athlete=3139477" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sport": "football",
"league": "nfl",
"source_url": "https://site.web.api.espn.com/apis/common/v3/sports/football/nfl/athletes/3139477",
"fetched_at": "2026-07-06T00:00:00Z",
"athlete": {
"id": "3139477",
"full_name": "Patrick Mahomes",
"display_name": "Patrick Mahomes",
"jersey": "15",
"position": "QB",
"age": 30,
"display_height": "6' 3\"",
"display_weight": "225 lbs",
"headshot": "https://a.espncdn.com/i/headshots/nfl/players/full/3139477.png",
"team": {
"id": "12",
"display_name": "Kansas City Chiefs"
}
}
}
}Request schema
No body schema
Response schema
#/definitions/espn.athleteResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | espn.AthleteResponse | No | ||||
| data.athlete | espn.Athlete | No | ||||
| data.athlete.age | integer | No | ||||
| data.athlete.display_height | string | No | ||||
| data.athlete.display_name | string | No | ||||
| data.athlete.display_weight | string | No | ||||
| data.athlete.full_name | string | No | ||||
| data.athlete.headshot | string | No | ||||
| data.athlete.id | string | No | ||||
| data.athlete.jersey | string | No | ||||
| data.athlete.position | string | No | ||||
| data.athlete.team | espn.TeamRef | No | TeamRef record, 10 fields: abbreviation, alternate_color, color, display_name, id, location, logo, name, short_display_name, uid. Described under ESPN team list API. | |||
| data.fetched_at | string | No | ||||
| data.league | string | No | ||||
| data.source_url | string | No | ||||
| data.sport | string | No | ||||
| 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/athlete?sport=football&league=nfl&athlete=3139477" \
-H "x-api-key: $CRAWLORA_API_KEY"