Fixtures
Momentum
GET/v2/fixtures/{id}/momentumPro + Business
Attack-momentum graph: one point per minute, positive = home pressure, negative = away. Tennis: games instead — one value per game (positive = the home player won it) with whether it was a break of serve.
points: football, basketball and ice hockey, covered leagues; games: tennis (points stays empty there, and games is empty in every other sport). Empty lists before kick-off or where there is no graph. A minute ending in .5 marks a period end (45.5 = half-time).
Parameters
id
our numeric id (positive integer)
Response
- data
Momentum
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/fixtures/{id}/momentum"
Example
{ "data": { "points": [ { "minute": 1, "value": -7 }, { "minute": 2, "value": 12 }, …, { "minute": 45.5, "value": 3 }, … ], "periodLengthMinutes": 45, "periodCount": 2, "overtimeLengthMinutes": 15, "overtimeCount": null, "games": [] } } // Tennis: { "data": { "points": [], "periodLengthMinutes": null, "periodCount": null, "overtimeLengthMinutes": null, "overtimeCount": null, "games": [ { "period": "period1", "game": 1, "value": -10, "breakOfServe": false }, { "period": "period1", "game": 2, "value": 34, "breakOfServe": true }, … ] } }