Head to head
head_to_headRead-onlyIdempotent
Past meetings of two teams of the same sport on betrend: number of finished meetings, wins of each team and draws (by team, not home or away), total goals for football, the last 10 results and the next scheduled meeting. Includes the betrend.im head-to-head URL to cite.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport | No | Sport code; needed only when the teams are slugs. | |
| team_a | Yes | First team URL from search, or its slug together with sport. | |
| team_b | Yes | Second team URL from search, or its slug together with sport. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | betrend.im head-to-head page; null when the teams never met and have no meeting scheduled. | |
| as_of | Yes | When betrend produced this answer, UTC ISO 8601. | |
| draws | Yes | ||
| goals | Yes | Football only. | |
| notice | No | How to narrow the request when truncated. | |
| played | Yes | Finished meetings. | |
| team_a | Yes | ||
| team_b | Yes | ||
| has_more | No | Present and true when more items exist than returned; narrow the filters. | |
| truncated | No | Present and true when the longest list was cut to keep the answer under 20000 bytes. | |
| team_a_wins | Yes | ||
| team_b_wins | Yes | ||
| next_meeting | Yes | ||
| recent_meetings | Yes | Last 10 finished meetings, newest first. |