Matches Statistics
This endpoint allows you to retrieve the statistics from matches.
Types of the statistics: Penalty minutes, Penalties Accuracy, Shorthanded goals, Takeaways, Max goals in row, Giveaways, Faceoffs won, Shots, Hits, Blocked, Goals in powerplay, Goals.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. Example:lang=en
.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated every minute. Recommended Calls: Limit calls to 1 every minute.
Use Cases
Get statistics from a specific match_idhttps://hockey.sportdevs.com/matches-statistics?match_id=eq.{match_id}
Query Parameters
- match_id integer
Default value:
eq.4
The id of the match
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- match_id integer
The id of the match
Note: This is a Foreign Key to
matches-live.id
. - statistics jsonb
The statistics of the match
[
{
"match_id": 4,
"statistics": [
{
"type": "Blocked",
"period": "ALL",
"category": "Attacking",
"away_team": "15",
"home_team": "20"
},
{
"type": "Faceoffs won",
"period": "ALL",
"category": "Attacking",
"away_team": "32/67 (47%)",
"home_team": "35/67 (52%)"
},
{
"type": "Giveaways",
"period": "ALL",
"category": "Attacking",
"away_team": "15",
"home_team": "12"
},
{
"type": "Goals",
"period": "ALL",
"category": "Attacking",
"away_team": "1",
"home_team": "3"
},
{
"type": "Goals in powerplay",
"period": "ALL",
"category": "Attacking",
"away_team": "0/2 (0%)",
"home_team": "1/2 (50%)"
},
{
"type": "Hits",
"period": "ALL",
"category": "Attacking",
"away_team": "44",
"home_team": "43"
},
{
"type": "Penalty minutes",
"period": "ALL",
"category": "Attacking",
"away_team": "4",
"home_team": "4"
},
{
"type": "Shorthanded goals",
"period": "ALL",
"category": "Attacking",
"away_team": "0",
"home_team": "0"
},
{
"type": "Shots",
"period": "ALL",
"category": "Attacking",
"away_team": "32",
"home_team": "29"
},
{
"type": "Takeaways",
"period": "ALL",
"category": "Attacking",
"away_team": "11",
"home_team": "12"
}
]
}
]