STAT-API

MLB team_news API

team_newsmlb.team_news
News and updates about MLB teams — game previews, managerial changes, front-office moves, and beat reports.
⚠️ This endpoint is documented but not yet live. Calls return 503 until data is wired in.
GET/api/v1/mlb/team_news
Requires one of: team_id — requests satisfying none of these return 400.
Parameters
team_idquerybigintoptional
Filter by team.
categoryquerystringoptional
Filter by category (game_preview, coaching, transaction, general, draft, depth_chart). Values: game_preview, coaching, transaction, general, draft, depth_chart.
urgencyquerystringoptional
Filter by news urgency. Values: BREAKING_GAME_TIME, HIGH, MEDIUM, ROUTINE.
news_timequerytimestamptzoptional
Filter by publication time (ISO 8601). Use news_time__gte to poll for items since your last check. Range syntax: news_time__gte=, news_time__lte=, news_time__between=.
limitqueryintegeroptionaldefault 50
Page size. Defaults to 50; max 5000.
from_idquerybigintoptional
Return rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/mlb/team_news?team_id=1'
Responses
200team_news rows matching the declared filter set, wrapped in { team_news, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.application/json
503Coming soon — handler returns 503 until data is wired in.
Response Schema(10 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigintnullableAssociated game ID when news relates to a specific game.
e.g. — (all-null in sample)
opponent_team_id
bigintnullableOpponent team ID when news relates to an upcoming or completed game matchup.
e.g. — (all-null in sample)
team_id
bigintTeam ID that this news event pertains to.
e.g. 42
ai_processed
booleannullable—Whether this story was generated or enriched via LLM summarization.
e.g. true
category
stringnullable—game_preview, coaching, transaction, general
e.g. game_preview
news_time
timestamptz—Publication timestamp of the team story.
e.g. 2026-09-07T01:48:29.000Z
summary
string—Concise journalistic summary of the team news event.
e.g. The White Sox defeated the Minnesota Twins 10-1 behind a do…
title
string—Headline of the team news story.
e.g. White Sox Bullpen Dominates in 10-1 Win Over Twins
urgency
stringnullable—ROUTINE, MEDIUM, HIGH, BREAKING_GAME_TIME
e.g. ROUTINE
GET/api/v1/mlb/team_news/{id}
Parameters
idpathbigintrequired
Primary key (id) of the team_new row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/mlb/team_news/{pk_value}'
Responses
200Single team_new row.application/jsonshow example ▸
404Row not found.
503Coming soon — handler returns 503 until data is wired in.
Response Schema(10 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigintnullableAssociated game ID when news relates to a specific game.
e.g. — (all-null in sample)
opponent_team_id
bigintnullableOpponent team ID when news relates to an upcoming or completed game matchup.
e.g. — (all-null in sample)
team_id
bigintTeam ID that this news event pertains to.
e.g. 42
ai_processed
booleannullable—Whether this story was generated or enriched via LLM summarization.
e.g. true
category
stringnullable—game_preview, coaching, transaction, general
e.g. game_preview
news_time
timestamptz—Publication timestamp of the team story.
e.g. 2026-09-07T01:48:29.000Z
summary
string—Concise journalistic summary of the team news event.
e.g. The White Sox defeated the Minnesota Twins 10-1 behind a do…
title
string—Headline of the team news story.
e.g. White Sox Bullpen Dominates in 10-1 Win Over Twins
urgency
stringnullable—ROUTINE, MEDIUM, HIGH, BREAKING_GAME_TIME
e.g. ROUTINE