# \PlayersApi All URIs are relative to *https://statsapi.web.nhl.com/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_player**](PlayersApi.md#get_player) | **Get** /people/{id} | Get an NHL player. [**get_player_stats**](PlayersApi.md#get_player_stats) | **Get** /people/{id}/stats | Get specific statistics for an NHL player. ## get_player > crate::models::Players get_player(id) Get an NHL player. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **f32** | The ID of the player. | Required | ### Return type [**crate::models::Players**](Players.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_player_stats > crate::models::PlayerStats get_player_stats(id, stats, season) Get specific statistics for an NHL player. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **f32** | The ID of the player. | Required | **stats** | [**crate::models::EnumStatTypes**](.md) | Stats explanations: * `homeAndAway` - Provides a split between home and away games. * `byMonth` - Monthly split of stats. * `byDayOfWeek` - Split done by day of the week. * `goalsByGameSituation` - Shows number on when goals for a player happened like how many in the shootout, how many in each period, etc. * `onPaceRegularSeason` - This only works with the current in-progress season and shows projected totals based on current onPaceRegularSeason. * `regularSeasonStatRankings` - Returns where someone stands vs the rest of the league for a specific regularSeasonStatRankings * `statsSingleSeason` - Obtains single season statistics for a player. * `vsConference` - Conference stats split. * `vsDivision` - Division stats split. * `vsTeam` - Conference stats split. * `winLoss` - Very similar to the previous modifier except it provides the W/L/OT split instead of Home and Away. * `byDayOfWeekPlayoffs` * `byMonthPlayoffs` * `careerPlayoffs` * `careerRegularSeason` * `gameLog` * `goalsByGameSituationPlayoffs` * `homeAndAwayPlayoffs` * `playoffGameLog` * `playoffStatRankings` * `statsSingleSeasonPlayoffs` * `vsConferencePlayoffs` * `vsDivisionPlayoffs` * `vsTeamPlayoffs` * `winLossPlayoffs` * `yearByYear` * `yearByYearPlayoffs` * `yearByYearPlayoffsRank` * `yearByYearRank` | Required | **season** | **String** | Return a team's specific season. | | ### Return type [**crate::models::PlayerStats**](PlayerStats.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)