Hockey Stats and Analysis Expert

Hockey Stats and Analysis Expert · Actions GPT

BloodLineAlpha NHL GPT API

  • GET /nhl-GPT/api/game-logGet game logs

    Retrieve game log data for a specific player, season, and game type.

Schéma original API
{
  "openapi": "3.1.1",
  "info": {
    "title": "BloodLineAlpha NHL GPT API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://bloodlinealpha.com",
      "description": "GPT Action Builder API Production Server"
    }
  ],
  "paths": {
    "/nhl-GPT/api/game-log": {
      "get": {
        "operationId": "get_NHL_Player_game_logs",
        "summary": "Get game logs",
        "description": "Retrieve game log data for a specific player, season, and game type.",
        "parameters": [
          {
            "name": "playerId",
            "in": "query",
            "required": true,
            "description": "The ID of the player.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "seasonId",
            "in": "query",
            "required": true,
            "description": "The ID of the season.",
            "schema": {
              "type": "string",
              "default": "20232024"
            }
          },
          {
            "name": "gameTypeId",
            "in": "query",
            "required": true,
            "description": "The ID of the game type. gameTypeId=2 is regular season, gameTypeId=3 is playoffs",
            "schema": {
              "type": "string",
              "default": "2"
            }
          },
          {
            "name": "properties",
            "in": "query",
            "required": false,
            "description": "Comma-separated list of properties to include in the response. Use when trying to find specific stat values. Returns all properties, if not used. Possible values are gameId, goal, assists, commonName, opponentCommonName, points, plusMinus, powerPlayGoals, powerPlayPoints, gameWinningGoals, otGoals, shots, shifts, shorthandedGoals, shorthandedPoints, pim, toi.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Limit the number of game logs returned. Order of game logs is from most recent to least recent. Can be used with the isAggregate query parameter.",
            "schema": {
              "type": "integer",
              "default": 82
            }
          },
          {
            "name": "isAggregate",
            "in": "query",
            "required": true,
            "description": "Summarizes values from many game logs into a gamelog. If true, this will aggregate game log values for the following properties goals, assists, points, plusMinus, powerPlayGoals, powerPlayPoints, gameWinningGoals, otGoals, shots, shifts, shorthandedGoals, shorthandedPoints, pim, toi. If false, the game logs will be returned without aggregation.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "isAscending",
            "in": "query",
            "required": true,
            "description": "Changes the order of the game logs, default behaviour is descending (most recent games).",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    }
  }
}

NHL Statistics API

  • GET /v1/standings/{date}Get NHL Teams standings by division and conference.

    Retrieves NHL team standings for the current day. Sorted by division and conference. Always use the current date in the format YYYY-MM-DD. Standings are found by using the leagueSequence, conferenceSequence, divisionSequence, and the points property values.

  • GET /v1/player/{playerId}/landingGets NHL players general landing page info.

    Retrieves NHL players general career information and data using their playerId which must first be found using the operationId: NHL_players. Find information such as name, birthday, height, weight, isactive, awards, jersey number, etc. Only use leagueAbbrev = "NHL"

Schéma original API
{
  "openapi": "3.1.1",
  "info": {
    "title": "NHL Statistics API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api-web.nhle.com",
      "description": "NHL Standings API Server",
      "variables": {
        "date": {
          "default": "2023-12-02"
        }
      }
    }
  ],
  "paths": {
    "/v1/standings/{date}": {
      "get": {
        "operationId": "NHL_teams_standings",
        "summary": "Get NHL Teams standings by division and conference.",
        "description": "Retrieves NHL team standings for the current day. Sorted by division and conference. Always use the current date in the format YYYY-MM-DD. Standings are found by using the leagueSequence, conferenceSequence, divisionSequence, and the points property values.",
        "parameters": [
          {
            "name": "date",
            "description": "Use the current date in the format YYYY-MM-DD. Ask for the current date in that format if unsure.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "example": "2023-12-02",
              "default": "2023-12-02"
            }
          }
        ]
      }
    },
    "/v1/player/{playerId}/landing": {
      "get": {
        "operationId": "NHL_Player_general_info",
        "summary": "Gets NHL players general landing page info.",
        "description": "Retrieves NHL players general career information and data using their playerId which must first be found using the operationId: NHL_players. Find information such as name, birthday, height, weight, isactive, awards, jersey number, etc. Only use leagueAbbrev = \"NHL\"",
        "parameters": [
          {
            "name": "playerId",
            "description": "This must be first obtained from the operationId: NHL_players and then used here.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}

NHL Statistics API

  • GET /stats/rest/en/skater/summary?isGame=false&start=0&factCayenneExp=gamesPlayed>=1Get NHL Players by Points, Goals, Assists, or points per game.

    Retrieves the NHL players and their playerId sorted by either points, goals, assists or pointsPerGame, for any season from current to 1917-1918. Search for top players or specific players by name. The playerId can be used for other querys.

  • GET /stats/rest/en/goalie/summary?isGame=false&start=0&factCayenneExp=gamesPlayed>=1Get a variety of NHL Goalies statistics.

    Retrieves the NHL Goalies and their playerId sorted by either by wins, losses, save percentage, goals against, goals against average, games played, shutouts, shots against, or saves. For seasons from current (2023-2024) to 1917-1918. Search for top goalies or by name.

  • GET /stats/rest/en/team/summary?&isGame=false&start=0&factCayenneExp=gamesPlayed>=1Get a variety of stats for NHL Teams.

    Retrieves the NHL team sorted by either points or wins for any season from current (2023-2024) to 1917-1918. Values can be aggregated (summed) or non-aggregated (summed).

  • GET /stats/rest/en/franchise?sort=fullName&include=lastSeason.id&include=firstSeason.idGet all NHL team's franchiseId and name.

    Retrieves the NHL team's franchiseId and name for any season from current (2023-2024) to 1917-1918. The franchiseId can be used for other querys and is = id returned.

Schéma original API
{
  "openapi": "3.1.1",
  "info": {
    "title": "NHL Statistics API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.nhle.com",
      "description": "NHL Statistics API Server"
    }
  ],
  "paths": {
    "/stats/rest/en/skater/summary?isGame=false&start=0&factCayenneExp=gamesPlayed>=1": {
      "get": {
        "operationId": "NHL_players_stats",
        "summary": "Get NHL Players by Points, Goals, Assists, or points per game.",
        "description": "Retrieves the NHL players and their playerId sorted by either points, goals, assists or pointsPerGame, for any season from current to 1917-1918. Search for top players or specific players by name. The playerId can be used for other querys.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "isAggregate",
            "in": "query",
            "description": "Will aggregate (sum) player stats into a single sum. Set true when you need to sum data for multiple seasons to find totals across multiple years. Set false when looking at a single season or when you want to find totals on a season by season basis, this will return non-aggregated (summed) totals.",
            "required": true,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "sort",
            "description": "Sort in an array of objects like so: [{property:value, direction:DESC}, {property value, direction:ASC}] where the property can be points, goals, assists, or pointsPerGame. You can add multiple sort properties to the array such as points and goals, to sort by points, then by goals. The last property is always: {\"property\":\"playerId\",\"direction\":\"ASC\"}",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "[{\"property\":\"points\",\"direction\":\"DESC\"},{\"property\":\"playerId\",\"direction\":\"ASC\"}]"
            }
          },
          {
            "name": "cayenneExp",
            "description": "gameTypeId=2 = regular season, gameTypeId=3 = playoffs, and omitting gameTypeId it will include both regular season and playoffs. Always set the seasonID, but change the years if necessary, example: seasonId<=20232024 and seasonId>=20232024. The current season is 20232024 and the first season year is 19171918. If searching for a specific player use skaterFullName likeIgnoreCase \"%name%\". If searching for a specific position add: positionCode=\"D\". Where D = defenseman, C = center, L = left wing, R = right wing, C = Center. If searching for players on a specific team use and include: franchiseId=23. Find the franchiseId using the operationId: NHL_team_franchiseIds endpoint.",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "gameTypeId=2 and seasonId<=20232024 and seasonId>=20232024 and skaterFullName likeIgnoreCase \"%Connor McDavid%\" and positionCode=\"D\""
            }
          }
        ]
      }
    },
    "/stats/rest/en/goalie/summary?isGame=false&start=0&factCayenneExp=gamesPlayed>=1": {
      "get": {
        "operationId": "NHL_goalies_stats",
        "summary": "Get a variety of NHL Goalies statistics.",
        "description": "Retrieves the NHL Goalies and their playerId sorted by either by wins, losses, save percentage, goals against, goals against average, games played, shutouts, shots against, or saves. For seasons from current (2023-2024) to 1917-1918. Search for top goalies or by name.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "isAggregate",
            "in": "query",
            "description": "Will aggregate (sum) goalies stats into a single sum. Set true when you need to sum data for multiple seasons to find totals across multiple years. Set false when looking at a single season or when you want to find totals on a season by season basis, this will return non-aggregated (summed) totals.",
            "required": true,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "sort",
            "description": "Sort in an array of objects like so: [{property:value, direction:DESC}, {property value, direction:ASC}] where the property can be wins, losses, savePct, goalsAgainst, goalsAgainstAverage, gamesPlayed, shutouts, shotsAgainst, or saves. You can add multiple sort properties to the array such as win and savePct, to sort by wins, then by save percentage. The last property is always: {\"property\":\"playerId\",\"direction\":\"ASC\"}",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "[{\"property\":\"wins\",\"direction\":\"DESC\"},{\"property\":\"playerId\",\"direction\":\"ASC\"}]"
            }
          },
          {
            "name": "cayenneExp",
            "description": "gameTypeId=2 = regular season, gameTypeId=3 = playoffs, and omitting gameTypeId it will include both regular season and playoffs. Always set the seasonID, but change the years if necessary, for eaxmple: seasonId<=20232024 and seasonId>=20232024. The current season is 20232024 and the lowest season year is 19171918. If searching for a specific player use skaterFullName likeIgnoreCase \"%name%\". If searching for players on a specific team use and include: franchiseId=23. Find the franchiseId using the operationId: NHL_team_franchiseIds endpoint.",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "gameTypeId=2 and seasonId<=20232024 and seasonId>=20232024 and skaterFullName likeIgnoreCase \"%Connor McDavid%\""
            }
          }
        ]
      }
    },
    "/stats/rest/en/team/summary?&isGame=false&start=0&factCayenneExp=gamesPlayed>=1": {
      "get": {
        "operationId": "NHL_teams_stats",
        "summary": "Get a variety of stats for NHL Teams.",
        "description": "Retrieves the NHL team sorted by either points or wins for any season from current (2023-2024) to 1917-1918. Values can be aggregated (summed) or non-aggregated (summed).",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "isAggregate",
            "in": "query",
            "description": "Will aggregate (sum) team stats into a single sum. Set true when you need to sum data for multiple seasons to find totals across multiple years. Set false when looking at a single season or when you want to find totals on a season by season basis, this will return non-aggregated (summed) totals.",
            "required": true,
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "sort",
            "description": "Sort in an array of objects like so: [{property:value, direction:DESC}, {property value, direction:ASC}] where the property can be points or wins. You can add multiple sort properties to the array such as points and wins, to sort by points, then by wins.The last property is always: {\"property\":\"franchiseId\",\"direction\":\"ASC\"}",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "[{\"property\":\"points\",\"direction\":\"DESC\"},{\"property\":\"franchiseId\",\"direction\":\"ASC\"}]"
            }
          },
          {
            "name": "cayenneExp",
            "description": "gameTypeId=2 is regular season, gameTypeId=3 is playoffs, and omitting gameTypeId will include both regular season and playoffs values. Always set the seasonID, but change the years if necessary, set it like so seasonId<=20232024 and seasonId>=20232024. The current season is 20232024 and the lowest season year you can go is 19171918. To find all time use seasonId<=20232024 and seasonId>=19171918. If searching for a specific team include: franchiseId=int (max 1 per query). To find the franchiseId use the operationId: NHL_team_franchiseIds endpoint. If a team is not specified, it will search for all teams.",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "gameTypeId=2 and seasonId<=20232024 and seasonId>=20232024 and franchiseId=23"
            }
          }
        ]
      }
    },
    "/stats/rest/en/franchise?sort=fullName&include=lastSeason.id&include=firstSeason.id": {
      "get": {
        "operationId": "NHL_team_franchiseIds",
        "summary": "Get all NHL team's franchiseId and name.",
        "description": "Retrieves the NHL team's franchiseId and name for any season from current (2023-2024) to 1917-1918. The franchiseId can be used for other querys and is = id returned."
      }
    }
  }
}