-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5f52d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where can you find the
idToStat
map in ESPN? - for reference, trying to add this to hockey5f52d7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@austinegri Unfortunately ESPN doesn't make it easy mapping the stat Id's to a readable name. You will need to look at the players stats from an API response and then try to map that stat id to the stat name you are seeing on ESPN's website.
Here is an example using a public league.
This url will get the player stats for each team in scoring period 6
GET https://fantasy.espn.com/apis/v3/games/fhl/seasons/2021/segments/0/leagues/77421173?scoringPeriodId=6&view=mMatchupScore&view=mScoreboard
The player stat data is located under this path
This will get you that single player stats for the scoringPeriod and will look something like this
You will have to try to map these numbers to the readable names ESPN shows on their website