fpl_h2h_league
Retrieve head-to-head league standings with win/draw/loss records and points. Input a league ID to get ranked teams, match records, and FPL points scored, enabling analysis of league performance.
Instructions
Head-to-head league standings with win/draw/loss records.
Returns: {league:{id, name, league_type, scoring:'h'}, standings:{has_next, page, results:[{id, entry, entry_name, player_name, rank, last_rank, total, matches_played, matches_won, matches_drawn, matches_lost, points_for}]}} — total is H2H league points (3 a win), points_for the FPL points scored. Ranking is on total, so a high scorer can sit mid-table.
Example: An H2H table {"leagueId": 1}
Auth: works without a key; FPL_SESSION_COOKIE unlocks more if set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leagueId | Yes | H2H league id (from fpl_manager's `leagues.h2h`). A classic-league id 404s here. Required — part of the URL path. | |
| page_standings | No | Standings page. |