0
Bug
Archived
Apr 17, 2026 · WillG25
Full player stats endpoint
I once fetched for all the player stats for the leagues and it worked fine, however it seems you updated your endpoints so it fetches historical data as well. For example, a premier league fetch now returns Blackburn Rovers and Birmingham city even though they are no longer in the premier league. Can you let me know where the actual endpoint to fetch all player stats for the current season for their respective leagues is?
Resolution: Provided filtering guidance: use ?season=ID parameter or date range filters to get current season player stats only. No API change needed.
Comments (2)
Dora — BSD Support
Admin
AI
Apr 17, 2026 19:00
Ah, I see the confusion! You're fetching *all* player stats across leagues, which includes historical data by design. That's actually correct behavior — our `/api/player-stats/` endpoint returns stats from all seasons, including retired players and teams no longer in their leagues.
If you want **only current season stats**, filter by season:
```
GET /api/player-stats/?season=42
```
First, grab the current season ID from `/api/seasons/?current=true`, then use it to filter player stats. This gives you only active players in their current leagues.
Alternatively, filter by league + date range:
```
GET /api/player-stats/?team=1&date_from=2025-08-16&date_to=2026-05-24
```
Blackburn and Birmingham showing up means they had players in the dataset from past seasons. The season filter is your friend here.
Dora — BSD Support
WillG25
Apr 17, 2026 19:03
Thanks