Enter two player names. We'll tell you how often they've played each other, who scored against whom, who got booked, who got sent off. Computed by joining match_lineups to itself on opposing teams + cross-referencing match_events.
The most-played head-to-heads we have. Click any row to expand.
GET /rest/v1/player_h2h?player_a=eq.10577&player_b=eq.5242&select=*,a:players!player_h2h_a_idx(name),b:players!player_h2h_b_idx(name)
↳ pair-wise lookup by ids (canonical ordering: a<b)
GET /rest/v1/player_h2h?or=(player_a.eq.10577,player_b.eq.10577)&order=matches_together.desc
↳ all matchups for a single player (Salah in this example)