get_gameweek_stats
Fetches and ranks every FPL player's stats for a chosen gameweek, defaulting to the current completed gameweek by points, with filters for position, team, and sort stat.
Instructions
Every player's stats for one gameweek, ranked (default: the latest gameweek with results, sorted by points). Live from the FPL API. Use it for 'top scorers last week', 'which defenders kept clean sheets in GW9' or 'who got the most bonus'. Filter by position and team.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team | No | Team name or short name, e.g. 'Arsenal', 'Man City' or 'MCI'. | |
| limit | No | Rows to return (default 15). | |
| sort_by | No | Stat to rank by, highest first (default total_points). | |
| gameweek | No | Gameweek (default: the latest with results). | |
| position | No |