Teams
Goal distribution
GET/v2/teams/{id}/goal-distributionAll plans
When in the match a team scores and concedes over one league season: goals per 15-minute band, over all its matches, at home and away (football).
Three entries — overall, home, away — each with six bands (1–15 … 76–90; added time counts in its band). An empty list where the source has none.
Parameters
id
our numeric id (positive integer)
league
a league id (e.g. the team’s fixtures’ league)
season
a season id from /v2/leagues/{id}/seasons
Response
- data
GoalDistribution[]- meta
- league, season, count
- errors
- 403 history_not_in_plan — the season ended before your plan’s history404 not_found — season is not one of this league’s seasons
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/teams/{id}/goal-distribution?league=…&season=…"
Example
{ "data": [ { "scope": "overall", "fixtureCount": 9, "scored": 12, "conceded": 15, "bands": [ { "fromMinute": 1, "toMinute": 15, "scored": 3, "conceded": 2 }, { "fromMinute": 16, "toMinute": 30, "scored": 0, "conceded": 0 }, … ] }, { "scope": "home", … }, { "scope": "away", … } ], "meta": { "league": 200001, "season": 200386, "count": 3 } }