ESPN API endpoint
Returns recent news articles (headline, description, link) for a league. 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/newsQuery 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.Notable response behavior:
sport/league values return an invalid-parameter error before upstream IO.| Field | Filled in, of 6 checked | Values in the sample |
|---|---|---|
| headline | 6 | median 59 characters |
| description | 6 | median 59 characters |
| published | 6 | 2026-10-13 |
| type | 6 | Media (3), Story (2), HeadlineNews (1) |
| byline | 3 | |
| link | 6 | espn.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| sport | string | Yes | Sport key Allowed values: football, basketball, baseball, hockey, soccer. | basketball | |
| 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. | nba | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/espn/news?sport=basketball&league=nba" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sport": "basketball",
"league": "nba",
"count": 1,
"source_url": "https://site.api.espn.com/apis/site/v2/sports/basketball/nba/news",
"fetched_at": "2026-07-06T00:00:00Z",
"articles": [
{
"headline": "Recap: Home team wins",
"description": "A summary of the game.",
"published": "2026-07-05T04:00:00Z",
"type": "Recap",
"link": "https://www.espn.com/nba/story/_/id/000000/recap"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/espn.newsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | espn.NewsResponse | No | ||||
| data.articles | array | No | Recent news articles for the league, one entry per article. | |||
| data.articles[].byline | string | No | Name of the article's author. | |||
| data.articles[].description | string | No | Short summary of the article. | |||
| data.articles[].headline | string | No | Article headline as shown on ESPN. | |||
| data.articles[].link | string | No | URL of the article on ESPN. | |||
| data.articles[].published | string | No | Time the article was published, in ISO 8601. | |||
| data.articles[].type | string | No | Article type as ESPN labels it. | |||
| data.count | integer | No | Number of articles returned. | |||
| 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`. | |||
| 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/news?sport=basketball&league=nba" \
-H "x-api-key: $CRAWLORA_API_KEY"