get_head_to_head
Use when comparing two teams' history. Returns recent matchups with win/loss record. Can filter by season or get all-time. Costs 10 credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max games to return (default 20) | |
| team1 | Yes | First team abbreviation (e.g. BUF) | |
| team2 | Yes | Second team abbreviation (e.g. TOR) | |
| league | No | League. Defaults to nhl. One of: nhl, pwhl, ohl, whl, qmjhl, echl, ahl, ushl. | |
| season | No | Season ID, 8-digit (e.g. 20242025 for 2024-25). 2024-25 and 2024-2025 also accepted. Omit for all-time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| games | Yes | ||
| team1 | Yes | ||
| team2 | Yes | ||
| record | Yes | ||
| total_games | Yes |