Fixtures
Head-to-head fixtures
GET/v2/fixtures/{id}/h2h/fixturesAll plans
The two teams’ meetings as fixtures, oldest first by kick-off, without the fixture asked about — scheduled meetings included.
Every Fixture field, as on /v2/fixtures/{id} lists (the fixture-only fields such as referee are null). Meetings older than your plan’s history are left out, and meta.historyFrom says from which day. An empty array when the teams never met.
Parameters
id
our numeric id (positive integer)
Response
- data
Fixture[]- meta
- count, plus historyFrom when older meetings were left out for your plan
- errors
- 403 history_not_in_plan — the fixture kicked off before your plan’s history
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/fixtures/{id}/h2h/fixtures"
Example
{ "data": [ { "id": 456, "sport": "football", "startTime": "2015-09-19T14:00:00.000Z", "status": { "type": "finished", "phase": "finished", "code": 100, "description": "Ended", "period": null, "finish": "regular" }, "home": { "id": 3758, "name": "Arsenal", … }, "away": { "id": 17000, "name": "Nottingham Forest", … }, "homeScore": { "current": 2, … }, "awayScore": { "current": 0, … }, "winner": "home", … }, … ], "meta": { "count": 7 } }