FixturesEndpoint 19 of 116
Streaks
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 1 required · 0 optional
- Returns
Streaks
Pre-match streaks: each team’s current run (wins, unbeaten, over 2.5 goals, …) plus streaks drawn from their head-to-head meetings.
Worth knowing
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.
01Parameters
idpathRequiredfixture id issued by DataSportsAPI, a positive integer
02Request
The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.
curl -H "Authorization: Bearer dsa_live_…" \
"https://api.datasportsapi.com/v2/fixtures/{id}/streaks"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataStreaks
{ "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 } ] } }04Errors
Nothing specific to this endpoint: only the account-wide errors below apply.
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code