ynnadkrap / balldontlie

NBA API
http://www.balldontlie.io
225 stars 19 forks source link

Returning averages for all players on a given team #25

Open treyg opened 4 years ago

treyg commented 4 years ago

This is more of a question, but I can't seem to find a direct way to this, so I think I might be overlooking something.

Is there a way to return only season averages for players only on a given team? Or would I have to just find all the player ids from the player endpoint first, then add them to the season averages endpoint?

Thanks!

ynnadkrap commented 4 years ago

You would have to do the latter, but it might be a little tricky because we don't track which players are currently active on a team.

treyg commented 4 years ago

You would have to do the latter, but it might be a little tricky because we don't track which players are currently active on a team.

That's what I figured. Maybe I'll see if I can find just a stat API first, then try to figure it out if not.

Thanks!