1
Feature
Archived
Apr 08, 2026 · uniquely438
Add "Status" to teams in leagues
Currently there is no way to filter to only pick up teams that are still in play. For example for the champions league '''curl -H "Authorization: Token YOUR_API_KEY" \ "https://sports.bzzoiro.com/api/teams/?league=7"''' returns 82 teams. Would be nice to have a status for each team (maybe an integer, 0= eliminated and 1= active) and use it as a filter to fetch only active teams and use less API calls
Resolution: Added in_competition filter to /api/teams/?league=X endpoint
Comments (3)
BSD Team
Admin
Apr 08, 2026 23:53
Done! You can now use the in_competition filter on the teams endpoint.
This returns only teams that still have upcoming matches in the league. For Champions League, it drops from 82 to just 8 teams (the quarterfinal sides).
You can also use in_competition=false to get only eliminated teams.
No status field needed on the team model — it works dynamically based on scheduled fixtures, so it is always up to date.
uniquely438
Apr 09, 2026 00:00
incredible how quick you are! Amazing! thanks a lot
uniquely438
Apr 09, 2026 01:12
can it be also included in the output, or only in the filter?