Fixtures
Head to head
GET/v2/fixtures/{id}/h2hAll plans
Head-to-head record between the two teams (from this fixture’s home/away perspective), as the source counts it: their recent meetings — usually about the last ten — and the fixture itself once it is finished. Every meeting, listed: /v2/fixtures/{id}/h2h/fixtures.
data is null when the two teams have no recorded duel — never a 0/0/0 record. managerDuel is the two managers’ own record against each other across every team they managed (null when they never met, and in sports without managers).
Parameters
id
our numeric id (positive integer)
Response
- data
H2H | null
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/fixtures/{id}/h2h"
Example
{ "data": { "homeWins": 3, "draws": 4, "awayWins": 3, "managerDuel": { "homeManager": { "id": 912044, "name": "Fabian Hurzeler", "slug": "fabian-hurzeler", "shortName": "F. Hurzeler", "image": "https://cdn.sportsapi.app/v2/managers/912044/photo" }, "awayManager": { "id": 912045, "name": "Pierre Sage", "slug": "pierre-sage", "shortName": "P. Sage", "image": null }, "homeWins": 1, "draws": 0, "awayWins": 0 } } }