Streaks
GET
/
View as MarkdownTry in Playground →
Pre-match streaks: each team’s current run (wins, unbeaten, over 2.5 goals, …) plus streaks drawn from their head-to-head meetings.
name is a display string in English, since the source offers no stable key for it. kind tells you how to interpret value: inARow ("5" → count 5 consecutive, outOf null), ofLast ("7/8" → count 7 out of the last outOf 8), average ("83" → an average of 83, with count and outOf null). The lists are empty if no streaks exist.
Parameters
idpathrequired
fixture id issued by DataSportsAPI, a positive integer
Response
- data
Streaks
Any /v2 call can also come back with one of the common errors.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/fixtures/{id}/streaks"Example
{ "data": {
"general": [ { "name": "Wins", "kind": "inARow", "value": "5", "count": 5, "outOf": null, "average": null, "side": "home", "continued": true },
{ "name": "More than 2.5 goals", "kind": "ofLast", "value": "7/8", "count": 7, "outOf": 8, "average": null, "side": "away", "continued": false }, … ],
"headToHead": [ { "name": "No draws", "kind": "inARow", "value": "6", "count": 6, "outOf": null, "average": null, "side": "both", "continued": true } ] } }