League Stats
GET
This endpoint allows you to get league stats by ID. By default it will return the current Season of the league
Description
Headers | application/json |
Endpoint Example | https://api.sportdatastreamapi.com/stats/?user=USERNAME&token=TOKEN&t=league&id=LEAGUE_ID |
Endpoint | https://api.sportdatastreamapi.com/stats/?user=null&token=null&t=league&id=1005 |
Paginated | No, this endpoint is not paginated |
Example Response
{
"data": [
{
"season_id": 406,
"league_id": 594,
"number_of_teams": 18,
"number_of_matches": 502,
"team_most_scored": {
"id": 111,
"total_goals": 81
},
"player_most_scored": {
"id": 19988,
"total_goals": 27
},
"substituted_in": {
"total": 862,
"avg_per_match": 1.72,
"avg_every_minutes": 52
},
"assists": {
"total": 587,
"avg_per_match": 1.17,
"avg_every_minutes": 77
},
"cards": {
"total": {
"total": 978,
"avg_per_match": 1.95,
"avg_every_minutes": 46
},
"yellow": {
"total": 932,
"avg_per_match": 1.86,
"avg_every_minutes": 48
},
"yellowred": {
"total": 28,
"avg_per_match": 0.06,
"avg_every_minutes": 1614
},
"red": {
"total": 18,
"avg_per_match": 0.04,
"avg_every_minutes": 2510
}
},
"goals": {
"overall": {
"total": 812,
"percentage_total_goals": 100,
"avg_per_match": 1.62,
"avg_every_minutes": 56
},
"home": {
"total": 426,
"percentage_total_goals": 52.46,
"avg_per_match": 0.85,
"avg_every_minutes": 106
},
"away": {
"total": 386,
"percentage_total_goals": 47.54,
"avg_per_match": 0.77,
"avg_every_minutes": 117
}
},
"clean_sheets": {
"overall": {
"total": 115,
"avg_total_goals": 22.91
},
"home": {
"total": 65,
"avg_total_goals": 12.95
},
"away": {
"total": 50,
"avg_total_goals": 9.96
}
},
"goals_scored_range": {
"0-15": {
"total": 115,
"percentage_total_goals": 14.16
},
"15-30": {
"total": 89,
"percentage_total_goals": 10.96
},
"30-45": {
"total": 135,
"percentage_total_goals": 16.63
},
"45-60": {
"total": 147,
"percentage_total_goals": 18.1
},
"60-75": {
"total": 131,
"percentage_total_goals": 16.13
},
"75-90": {
"total": 195,
"percentage_total_goals": 24.01
},
"90-120": {
"total": 0,
"percentage_total_goals": 0
}
},
"goal_line": {
"over": {
"0.5": {
"total": 478,
"percentage_total_matches": 95.22
},
"1.5": {
"total": 436,
"percentage_total_matches": 86.85
},
"2.5": {
"total": 334,
"percentage_total_matches": 66.53
},
"3.5": {
"total": 210,
"percentage_total_matches": 41.83
},
"4.5": {
"total": 102,
"percentage_total_matches": 20.32
},
"5.5": {
"total": 48,
"percentage_total_matches": 9.56
}
},
"under": {
"0.5": {
"total": 24,
"percentage_total_matches": 4.78
},
"1.5": {
"total": 24,
"percentage_total_matches": 13.15
},
"2.5": {
"total": 24,
"percentage_total_matches": 33.47
},
"3.5": {
"total": 24,
"percentage_total_matches": 58.17
},
"4.5": {
"total": 24,
"percentage_total_matches": 79.68
},
"5.5": {
"total": 24,
"percentage_total_matches": 90.44
}
}
}
}
],
}