No sure if you are aware but the stats for NY Yankees player cody morris is missing completely. the stats object is missing the pitching information, etc.
24
:
bDay
:
"11/4/1996"
bat
:
"R"
cbsPlayerID
:
"2932960"
college
:
"South Carolina"
espnHeadshot
:
"https://a.espncdn.com/i/headshots/mlb/players/full/3960993.png"
espnID
:
"3960993"
espnLink
:
"https://www.espn.com/mlb/player/_/id/3960993"
fantasyProsLink
:
"https://www.fantasypros.com/mlb/players/cody-morris.php"
fantasyProsPlayerID
:
"44886"
height
:
"6-4"
injury
:
{description: ‘’, injDate: ‘’, designation: ‘’}
jerseyNum
:
"82"
lastGamePlayed
:
"20230830_CLE@MIN"
longName
:
"Cody Morris"
mlbHeadshot
:
"https://img.mlbstatic.com/mlb-photos/image/upload/d_people:generic:headshot:silo:current.png/r_max/w_180,q_auto:best/v1/people/663752/headshot/silo/current"
mlbID
:
"663752"
mlbIDFull
:
"cody-morris-663752"
mlbLink
:
"https://www.mlb.com/player/cody-morris-663752"
playerID
:
"663752"
pos
:
"P"
rotoWirePlayerID
:
"16617"
rotoWirePlayerIDFull
:
"cody-morris-16617"
sleeperBotID
:
"1652"
stats
:
{}
team
:
"NYY"
teamAbv
:
"NYY"
teamID
:
"19"
throw
:
"R"
weight
:
"205"
yahooLink
:
"https://sports.yahoo.com/mlb/players/12315"
yahooPlayerID
:
“12315”
[[Prototype]]
:
Object
Participez à la discussion - ajoutez un commentaire ci-dessous:
OK I figured out the issue. The getStats option for player information only returns current season stats. He has not played this season, which is why his stats map is empty.
However, I just added a parameter to the endpoint called “statsSeason” and if you use it with “2023”, then you will see his stats from last year.
Hope this helps!!
Hi, I’m seeing the same thing. I’ll take a look. Thanks for the report!