API example
WNBA endpoints
All WNBA endpoints live under https://api.balldontlie.io/stories/wnba. Every request requires a Bearer API key in the Authorization header.
List games
Returns all WNBA games scheduled on a given date. Use this endpoint first to discover game IDs, then pass those IDs to the story endpoints below.
/stories/wnba/gamesQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
| date | string | Yes | ISO-8601 calendar date in YYYY-MM-DD format (e.g. 2026-04-12). |
| timezone | string | No | IANA timezone name used to resolve the date boundary. Defaults to UTC. |
Example request
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.balldontlie.io/stories/wnba/games?date=2026-05-24&timezone=America/New_York"Example response
{
"data": [
{
"id": 24797,
"home_team": {
"id": 9,
"conference": "Western Conference",
"city": "Seattle",
"name": "Storm",
"full_name": "Seattle Storm",
"abbreviation": "SEA"
},
"away_team": {
"id": 5,
"conference": "Eastern Conference",
"city": "Washington",
"name": "Mystics",
"full_name": "Washington Mystics",
"abbreviation": "WSH"
},
"start_time": "2026-05-24T18:00:00.000-04:00"
}
]
}Response schema
data
Games scheduled on the requested date, ordered by start_time ascending.
| Field | Type | Description |
|---|---|---|
| id | integer | Game identifier. Pass this value as :game_id to the story endpoints below. |
| home_team | object | Home team. See Team below. |
| away_team | object | Away team. See Team below. |
| start_time | string (date-time) | Scheduled tipoff in RFC 3339 format. The UTC offset reflects the timezone query parameter (UTC when omitted). |
Team
Returned on both home_team and away_team for every WNBA game.
| Field | Type | Description |
|---|---|---|
| id | integer | Stable BallDontLie team identifier. Joins to the WNBA teams endpoint. |
| name | string | Team nickname (e.g. Storm). |
| full_name | string | Full display name (e.g. Seattle Storm). |
| city | string | Home market (e.g. Seattle). |
| conference | string| null | Conference name when available. |
| abbreviation | string | Team code (e.g. SEA). |
Get pregame story
Returns a single aggregated pregame story. Generated within 1 hour before the scheduled start time. Returns 404 if the story has not been generated yet (game is more than 1 hour away).
/stories/wnba/games/{game_id}/pregameQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
| audience | string | No | Either betting or stats. Defaults to betting. |
| tone | string | No | Either editorial or humor. Defaults to editorial. |
Example request
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.balldontlie.io/stories/wnba/games/24797/pregame?audience=betting&tone=editorial"Example response
{
"game": { "id": 24797 },
"story": {
"id": 215736,
"created_at": "2026-05-24T21:00:49.672Z",
"content": "WSH moved from -2.5 to -4.5 and the total dropped from 160.5 to 156.5, but the models still call for 164.3. Sonia Citron is 0-for-3 over 17.5 pts vs SEA, even with a 20-ppg season.",
"entity_tags": {
"teams": [
{ "id": 9, "name": "Seattle Storm", "abbreviation": "SEA" },
{ "id": 5, "name": "Washington Mystics", "abbreviation": "WSH" }
],
"players": [
{ "id": 736, "name": "Sonia Citron", "team": "WSH" },
{ "id": 758, "name": "Dominique Malonga" },
{ "id": 590, "name": "Ezi Magbegor" }
]
}
}
}Response schema
game
Compact reference to the game this response is scoped to. Echoes the :game_id path parameter.
| Field | Type | Description |
|---|---|---|
| id | integer | Game identifier matching the one supplied in the request path. |
story
The single narrative object for this phase. Deterministic for a given (game_id, audience, tone) tuple.
| Field | Type | Description |
|---|---|---|
| id | integer | Stable story identifier. Safe to use as an idempotency key. |
| created_at | string (date-time) | RFC 3339 timestamp (UTC) marking when the narrative was written. |
| content | string| null | Tweet-length narrative body (≤280 characters). Null only in the rare case that the requested tone has not yet been rendered for this story. |
| entity_tags | object | Teams and players referenced in content. See entity_tags below. |
entity_tags
Structured list of the teams and players referenced in the narrative. Use the IDs to join to the corresponding BallDontLie sport APIs.
| Field | Type | Description |
|---|---|---|
| teams | array<object> | Teams mentioned in the story. Each element is { id: integer, name: string, abbreviation: string }. |
| players | array<object> | Players mentioned in the story. Each element is { id: integer, name: string, team?: string }, where team is the abbreviation when known. |
Get live stories
Returns event-driven stories for a live game, sorted oldest to newest by created_at. Live games produce guaranteed period-end checkpoints plus conditional stories triggered by momentum shifts, prop breaches, and milestones. Returns an empty array if no live stories have been generated yet.
/stories/wnba/games/{game_id}/liveQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
| audience | string | No | Either betting or stats. Defaults to betting. |
| tone | string | No | Either editorial or humor. Defaults to editorial. |
Example request
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.balldontlie.io/stories/wnba/games/24797/live?audience=betting&tone=editorial"Example response
{
"game": { "id": 24797 },
"data": [
{
"id": 215900,
"created_at": "2026-05-24T23:15:00.000Z",
"type": "close_game",
"content": "SEA and WSH are trading runs late, with Washington still inside the number after closing as a short road favorite. The total remains in range after the pregame move down to 156.5.",
"entity_tags": {
"teams": [
{ "id": 9, "name": "Seattle Storm", "abbreviation": "SEA" },
{ "id": 5, "name": "Washington Mystics", "abbreviation": "WSH" }
],
"players": []
},
"game_snapshot": {
"period": 4,
"home_score": 81,
"away_score": 78,
"minutes_remaining": 4,
"clock": "4:12"
}
}
]
}Response schema
game
Compact reference to the game this response is scoped to. Echoes the :game_id path parameter.
| Field | Type | Description |
|---|---|---|
| id | integer | Game identifier matching the one supplied in the request path. |
data
Array of live stories for the game, ordered oldest to newest by created_at. Empty if no live stories have fired yet.
| Field | Type | Description |
|---|---|---|
| id | integer | Stable story identifier. Safe to use as an idempotency key. |
| created_at | string (date-time) | RFC 3339 timestamp (UTC) marking when the narrative was written. |
| type | string | Detection module that produced this story (e.g. game_over, close_game, prop_exceeded, batter_breakout). Useful for routing stories into downstream product surfaces. |
| content | string| null | Tweet-length narrative body (≤280 characters). Null only in the rare case that the requested tone has not yet been rendered for this story. |
| entity_tags | object | Teams and players referenced in content. See entity_tags below. |
| game_snapshot | object | Score and clock at the moment the story fired. See game_snapshot below. |
entity_tags
Structured list of the teams and players referenced in the narrative. Use the IDs to join to the corresponding BallDontLie sport APIs.
| Field | Type | Description |
|---|---|---|
| teams | array<object> | Teams mentioned in the story. Each element is { id: integer, name: string, abbreviation: string }. |
| players | array<object> | Players mentioned in the story. Each element is { id: integer, name: string, team?: string }, where team is the abbreviation when known. |
game_snapshot
Point-in-time state of the game when the story was generated. Useful for rendering a score banner alongside the narrative.
| Field | Type | Description |
|---|---|---|
| home_score | integer | Home team score at the moment the story fired. |
| away_score | integer | Away team score at the moment the story fired. |
| period | integer | Quarter number. 1–4 for regulation, 5+ for overtime periods. |
| minutes_remaining | integer | Whole minutes remaining in the current period. |
| clock | string| null | Raw game-clock string when available (e.g. "6:22"). Present on most live triggers; may be absent on period-boundary events. |
Get postgame story
Returns the most recent postgame story, generated immediately after the game goes final. Evaluates the pregame narrative against actual results. Returns 404 if no postgame story has been generated yet.
/stories/wnba/games/{game_id}/postgameQuery parameters
| Name | Type | Required | Description |
|---|---|---|---|
| audience | string | No | Either betting or stats. Defaults to betting. |
| tone | string | No | Either editorial or humor. Defaults to editorial. |
Example request
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.balldontlie.io/stories/wnba/games/24797/postgame?audience=betting&tone=editorial"Example response
{
"game": { "id": 24797 },
"story": {
"id": 215901,
"created_at": "2026-05-25T00:02:00.000Z",
"content": "SEA beat WSH 97-85, flipping the pregame spread result after Washington closed -4.5. The 182 combined points cleared the 156.5 total with room to spare.",
"entity_tags": {
"teams": [
{ "id": 9, "name": "Seattle Storm", "abbreviation": "SEA" },
{ "id": 5, "name": "Washington Mystics", "abbreviation": "WSH" }
],
"players": []
}
}
}Response schema
game
Compact reference to the game this response is scoped to. Echoes the :game_id path parameter.
| Field | Type | Description |
|---|---|---|
| id | integer | Game identifier matching the one supplied in the request path. |
story
The single narrative object for this phase. Deterministic for a given (game_id, audience, tone) tuple.
| Field | Type | Description |
|---|---|---|
| id | integer | Stable story identifier. Safe to use as an idempotency key. |
| created_at | string (date-time) | RFC 3339 timestamp (UTC) marking when the narrative was written. |
| content | string| null | Tweet-length narrative body (≤280 characters). Null only in the rare case that the requested tone has not yet been rendered for this story. |
| entity_tags | object | Teams and players referenced in content. See entity_tags below. |
entity_tags
Structured list of the teams and players referenced in the narrative. Use the IDs to join to the corresponding BallDontLie sport APIs.
| Field | Type | Description |
|---|---|---|
| teams | array<object> | Teams mentioned in the story. Each element is { id: integer, name: string, abbreviation: string }. |
| players | array<object> | Players mentioned in the story. Each element is { id: integer, name: string, team?: string }, where team is the abbreviation when known. |