Form scores
GET
/
Markdown copyOpen in the playground →
A team’s most recent matches, up to ten and oldest first, each with the source’s score for how good the result was: the points of a form graph in a single request.
A score above 0 marks a good result and below 0 a poor one, and the same result counts for more against a stronger opponent. When the source has no scores the array is empty. Matches before your plan’s history are left out, and meta.historyFrom then gives the first day included.
Parameters
idpathrequired
DataSportsAPI team id, a positive integer
Response
- data
TeamPerformanceEntry[]- meta
- count, and historyFrom if your plan caused older matches to be dropped
- errors
- 404
not_found— DataSportsAPI has never assigned this id
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/teams/{id}/performance"Example
{ "data": [ { "fixture": { "id": 202880, "status": { "type": "finished", … }, … }, "score": 1.05 }, { "fixture": { … }, "score": -0.8 }, … ],
"meta": { "count": 10 } }