{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stat-api-com/json-schema/stat-api-com-nhlgames-schema.json",
  "title": "NHLGames",
  "description": "Every scheduled and played NHL game — preseason, the 82-game regular season, and the four-round Stanley Cup Playoffs through the Stanley Cup Final.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stat-api-com-nhl-api-openapi.yml#/components/schemas/NHLGames",
  "properties": {
    "arena_id": {
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "attendance": {
      "type": [
        "integer",
        "null"
      ]
    },
    "away_team_id": {
      "format": "int64",
      "type": "integer"
    },
    "away_team_score": {
      "type": [
        "integer",
        "null"
      ]
    },
    "away_team_score_overtime": {
      "type": [
        "integer",
        "null"
      ]
    },
    "away_team_score_period1": {
      "type": [
        "integer",
        "null"
      ]
    },
    "away_team_score_period2": {
      "type": [
        "integer",
        "null"
      ]
    },
    "away_team_score_period3": {
      "type": [
        "integer",
        "null"
      ]
    },
    "away_team_series_wins": {
      "type": [
        "integer",
        "null"
      ]
    },
    "channel": {
      "type": [
        "string",
        "null"
      ]
    },
    "day": {
      "description": "Calendar day as a YYYYMMDD integer (e.g. 20240915), US Eastern.",
      "type": "integer"
    },
    "game_time": {
      "description": "Scheduled puck drop (timezone-aware).",
      "format": "date-time",
      "type": "string"
    },
    "home_team_id": {
      "format": "int64",
      "type": "integer"
    },
    "home_team_score": {
      "type": [
        "integer",
        "null"
      ]
    },
    "home_team_score_overtime": {
      "type": [
        "integer",
        "null"
      ]
    },
    "home_team_score_period1": {
      "type": [
        "integer",
        "null"
      ]
    },
    "home_team_score_period2": {
      "type": [
        "integer",
        "null"
      ]
    },
    "home_team_score_period3": {
      "type": [
        "integer",
        "null"
      ]
    },
    "home_team_series_wins": {
      "type": [
        "integer",
        "null"
      ]
    },
    "id": {
      "description": "Primary Key",
      "format": "int64",
      "type": "integer"
    },
    "is_overtime": {
      "type": "boolean"
    },
    "is_shootout": {
      "type": "boolean"
    },
    "last_play": {
      "type": [
        "string",
        "null"
      ]
    },
    "league_game_id": {
      "description": "Official NHL game ID (issued by the league)",
      "type": [
        "integer",
        "null"
      ]
    },
    "league_id": {
      "description": "Official NHL game identifier",
      "type": [
        "string",
        "null"
      ]
    },
    "neutral_site": {
      "type": "boolean"
    },
    "overtime_periods": {
      "type": [
        "integer",
        "null"
      ]
    },
    "period": {
      "description": "Current period (1, 2, 3, OT, SO, Final)",
      "type": [
        "string",
        "null"
      ]
    },
    "playoff_round": {
      "description": "First Round, Second Round, Conference Finals, Stanley Cup Final",
      "type": [
        "string",
        "null"
      ]
    },
    "season_id": {
      "format": "int64",
      "type": "integer"
    },
    "season_type": {
      "description": "Canonical season phase (text). Was integer 1/2/3/4 before the 2026-06-29 normalization.",
      "type": "string"
    },
    "series_game_number": {
      "type": [
        "integer",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "time_remaining_minutes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "time_remaining_seconds": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "away_team_id",
    "home_team_id",
    "season_id",
    "day",
    "game_time",
    "is_overtime",
    "is_shootout",
    "neutral_site",
    "season_type",
    "status"
  ],
  "type": "object"
}