StoryStats

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.

GET/stories/wnba/games

Query parameters

NameTypeRequiredDescription
datestringYesISO-8601 calendar date in YYYY-MM-DD format (e.g. 2026-04-12).
timezonestringNoIANA 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.

FieldTypeDescription
idintegerGame identifier. Pass this value as :game_id to the story endpoints below.
home_teamobjectHome team. See Team below.
away_teamobjectAway team. See Team below.
start_timestring (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.

FieldTypeDescription
idintegerStable BallDontLie team identifier. Joins to the WNBA teams endpoint.
namestringTeam nickname (e.g. Storm).
full_namestringFull display name (e.g. Seattle Storm).
citystringHome market (e.g. Seattle).
conferencestring| nullConference name when available.
abbreviationstringTeam 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).

GET/stories/wnba/games/{game_id}/pregame

Query parameters

NameTypeRequiredDescription
audiencestringNoEither betting or stats. Defaults to betting.
tonestringNoEither 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.

FieldTypeDescription
idintegerGame 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.

FieldTypeDescription
idintegerStable story identifier. Safe to use as an idempotency key.
created_atstring (date-time)RFC 3339 timestamp (UTC) marking when the narrative was written.
contentstring| nullTweet-length narrative body (≤280 characters). Null only in the rare case that the requested tone has not yet been rendered for this story.
entity_tagsobjectTeams 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.

FieldTypeDescription
teamsarray<object>Teams mentioned in the story. Each element is { id: integer, name: string, abbreviation: string }.
playersarray<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.

GET/stories/wnba/games/{game_id}/live

Query parameters

NameTypeRequiredDescription
audiencestringNoEither betting or stats. Defaults to betting.
tonestringNoEither 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.

FieldTypeDescription
idintegerGame 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.

FieldTypeDescription
idintegerStable story identifier. Safe to use as an idempotency key.
created_atstring (date-time)RFC 3339 timestamp (UTC) marking when the narrative was written.
typestringDetection module that produced this story (e.g. game_over, close_game, prop_exceeded, batter_breakout). Useful for routing stories into downstream product surfaces.
contentstring| nullTweet-length narrative body (≤280 characters). Null only in the rare case that the requested tone has not yet been rendered for this story.
entity_tagsobjectTeams and players referenced in content. See entity_tags below.
game_snapshotobjectScore 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.

FieldTypeDescription
teamsarray<object>Teams mentioned in the story. Each element is { id: integer, name: string, abbreviation: string }.
playersarray<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.

FieldTypeDescription
home_scoreintegerHome team score at the moment the story fired.
away_scoreintegerAway team score at the moment the story fired.
periodintegerQuarter number. 1–4 for regulation, 5+ for overtime periods.
minutes_remainingintegerWhole minutes remaining in the current period.
clockstring| nullRaw 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.

GET/stories/wnba/games/{game_id}/postgame

Query parameters

NameTypeRequiredDescription
audiencestringNoEither betting or stats. Defaults to betting.
tonestringNoEither 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.

FieldTypeDescription
idintegerGame 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.

FieldTypeDescription
idintegerStable story identifier. Safe to use as an idempotency key.
created_atstring (date-time)RFC 3339 timestamp (UTC) marking when the narrative was written.
contentstring| nullTweet-length narrative body (≤280 characters). Null only in the rare case that the requested tone has not yet been rendered for this story.
entity_tagsobjectTeams 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.

FieldTypeDescription
teamsarray<object>Teams mentioned in the story. Each element is { id: integer, name: string, abbreviation: string }.
playersarray<object>Players mentioned in the story. Each element is { id: integer, name: string, team?: string }, where team is the abbreviation when known.