STAT-API

NHL team_news API

team_newsnhl.team_news
News and updates about NHL teams — game previews, coaching 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/nhl/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/nhl/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.
opponent_team_id
bigintnullableOpponent team ID when news relates to an upcoming or completed game matchup.
team_id
bigintTeam ID that this news event pertains to.
ai_processed
booleannullable—Whether this story was generated or enriched via LLM summarization.
category
stringnullable—game_preview, coaching, transaction, general
news_time
timestamptz—Publication timestamp of the team story.
summary
string—Concise journalistic summary of the team news event.
title
string—Headline of the team news story.
urgency
stringnullable—ROUTINE, MEDIUM, HIGH, BREAKING_GAME_TIME
GET/api/v1/nhl/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/nhl/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.
opponent_team_id
bigintnullableOpponent team ID when news relates to an upcoming or completed game matchup.
team_id
bigintTeam ID that this news event pertains to.
ai_processed
booleannullable—Whether this story was generated or enriched via LLM summarization.
category
stringnullable—game_preview, coaching, transaction, general
news_time
timestamptz—Publication timestamp of the team story.
summary
string—Concise journalistic summary of the team news event.
title
string—Headline of the team news story.
urgency
stringnullable—ROUTINE, MEDIUM, HIGH, BREAKING_GAME_TIME