Comments (3)
For the free_agents function you can add size as a parameter like so free_agents(size=100). Right now if you do not pass size in, it defaults to 50.
For box_player stats that might be possible I will have to check endpoint to see what data is given for the players
from espn-api.
Thanks for the size tip. I'm finding the Kona player endpoint ay be providing the projected and actual scores.
https://fantasy.espn.com/apis/v3/games/ffl/seasons/2019/segments/0/leagues/{league_id}?scoringPeriodId=1&view=kona_player_info
Taking my league's waiver wire, I looked up Rams D/ST and saw they had a projected 6.2 points and actual points being 11.
looking through the endpoint, I get this tidbit (took out a lot a bulk)
{
"appliedAverage": 7.583085239499999,
"appliedTotal": 121.32936383199998,
"externalId": "2018",
"id": "102018",
"proTeamId": 0,
"scoringPeriodId": 0,
"seasonId": 2018,
"statSourceId": 1,
"statSplitTypeId": 0,
"variance": {}
},
{
"appliedAverage": 6.68605639025,
"appliedTotal": 106.976902244,
"externalId": "2019",
"id": "102019",
"proTeamId": 0,
"scoringPeriodId": 0,
"seasonId": 2019,
"statSourceId": 1,
"statSplitTypeId": 0,
},
{
"appliedTotal": 6.244230292000001,
"externalId": "20191",
"id": "1120191",
"proTeamId": 0,
"scoringPeriodId": 1,
"seasonId": 2019,
"statSourceId": 1,
"statSplitTypeId": 1,
},
{
"appliedTotal": 11,
"externalId": "401127923",
"id": "01401127923",
"proTeamId": 14,
"scoringPeriodId": 1,
"seasonId": 2019,
"statSourceId": 0,
"statSplitTypeId": 1,
},
{
"appliedAverage": 9.75,
"appliedTotal": 156,
"externalId": "2018",
"id": "002018",
"proTeamId": 0,
"scoringPeriodId": 0,
"seasonId": 2018,
"statSourceId": 0,
"statSplitTypeId": 0,
"variance": {}
},
{
"appliedAverage": 0,
"appliedStats": {},
"appliedTotal": 0,
"externalId": "2019",
"id": "002019",
"proTeamId": 0,
"scoringPeriodId": 0,
"seasonId": 2019,
"statSourceId": 0,
"statSplitTypeId": 0,
"stats": {}
}
Notice both appliedTotals, 6.2 and 11 points.
I'm very unfamiliar with what the rest of these stats are so I can't be sure that whatever I'm seeing is accurate or what I think it is.
from espn-api.
Thanks for the data. Yeah I think if we want to add projected to free agents I will need to pass the current scoring period down so that I can filter out the other stats data
from espn-api.
Related Issues (20)
- NFL position mapping incorrect HOT 5
- Team Names not correct HOT 2
- Unable to access league data for 2018 season HOT 1
- Teams' names not updated HOT 1
- League current_week field returns 0 HOT 8
- meaning of statistics keys HOT 3
- Fix Team Data Change Working? HOT 1
- Add Owner info to Team
- Pulling League Data Errors in new season 23-24 HOT 1
- 'location' in data json doesn't exist anymore. Fix is provided HOT 2
- ESPN API Updated Key Names for Team Name HOT 1
- KeyError: 'location' in Fantasy BBall H2H Categories HOT 2
- Add back functionality to pull owner names HOT 4
- Getting "json.decoder.JSONDecodeError: Unterminated string" starting after NFL week 6 HOT 4
- Add accepted trade activity to fantasy basketball activity list HOT 3
- Player/Pick projected bid amount HOT 5
- slot_position only returning "PG" HOT 1
- Unable to get projected score of games of final completed week of season HOT 1
- Issue with Add full owner info to team commit HOT 2
- League.previousSeasons no longer an attribute? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espn-api.