nickrobinson / fflpy

ESPN Fantasy Football API Client
Apache License 2.0
0 stars 0 forks source link

Only returns 50 players #2

Open cvanbeek13 opened 6 years ago

cvanbeek13 commented 6 years ago

Is it possible to return more than 50 players? I tried adding "&count=100" to the end but still only got 50. Otherwise, can you get the second page? "&page=2" didn't change anything either.

kcheath commented 6 years ago

Has anyone been able to figure this out?

kcheath commented 6 years ago

You can use the limit and the offset params to move to the next set of entries.
http://games.espn.com/ffl/api/v2/playerInfo?leagueId=(yourleaguenumber)&limit=50&offset=21 This gives you the last 39 players in the set. The offset starts at 0.