get_h2h
Head-to-head of two teams (soccer by default; any team sport with results: basketball, baseball, hockey, handball, volleyball, American football) over every meeting in our data (all competitions, no friendlies): won, drawn and lost from team_a's side (home_team_* fields = team_a), goals (the sport's score: points, runs, sets won), each side's biggest win, the last 5 meetings, with sentences (lang de, es, it, fr). history_from: our data starts there, so say 'since' that date. Tennis: get_player with vs. Facts only. Insights feature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | language of team, league and country names: de, es, it or fr (default English) | |
| sport | No | team sport (default soccer; see list_sports; tennis: get_player with vs) | |
| team_a | Yes | team code (or number) from find_teams or a match | |
| team_b | Yes | the other team's id |