Matches Statistics
This endpoint allows you to retrieve the statistics from matches.
Types of the statistics: Try assists, Penalty goals, Lineouts, Carries, Conversions, Offloads, Tackles, Clean breaks, Red cards, Ball possession, Tries, Drop goals, Scrums, Turnovers won, Tackles missed, Penalties conceded, Passes, Yellow cards, Meters run, Turnovers.
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://rugby.sportdevs.com/matches-statistics?match_id=eq.{match_id}
Query Parameters
- match_id integer
Default value:
eq.2
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": 2,
"statistics": [
{
"type": "Ball possession",
"period": "1ST",
"category": "Possession",
"away_team": "50%",
"home_team": "50%"
},
{
"type": "Ball possession",
"period": "2ND",
"category": "Possession",
"away_team": "49%",
"home_team": "51%"
},
{
"type": "Ball possession",
"period": "ALL",
"category": "Possession",
"away_team": "50%",
"home_team": "50%"
},
{
"type": "Conversions",
"period": "1ST",
"category": "Scoring",
"away_team": "0",
"home_team": "1"
},
{
"type": "Conversions",
"period": "2ND",
"category": "Scoring",
"away_team": "2",
"home_team": "0"
},
{
"type": "Conversions",
"period": "ALL",
"category": "Scoring",
"away_team": "2",
"home_team": "1"
},
{
"type": "Penalties conceded",
"period": "1ST",
"category": "Penalty",
"away_team": "0",
"home_team": "3"
},
{
"type": "Penalties conceded",
"period": "2ND",
"category": "Penalty",
"away_team": "3",
"home_team": "0"
},
{
"type": "Penalties conceded",
"period": "ALL",
"category": "Penalty",
"away_team": "3",
"home_team": "3"
},
{
"type": "Scrums",
"period": "1ST",
"category": "Other",
"away_team": "1/1 (100%)",
"home_team": "3/3 (100%)"
},
{
"type": "Scrums",
"period": "2ND",
"category": "Other",
"away_team": "1/1 (100%)",
"home_team": "5/5 (100%)"
},
{
"type": "Scrums",
"period": "ALL",
"category": "Other",
"away_team": "2/2 (100%)",
"home_team": "8/8 (100%)"
},
{
"type": "Tries",
"period": "1ST",
"category": "Scoring",
"away_team": "2",
"home_team": "1"
},
{
"type": "Tries",
"period": "2ND",
"category": "Scoring",
"away_team": "2",
"home_team": "0"
},
{
"type": "Tries",
"period": "ALL",
"category": "Scoring",
"away_team": "4",
"home_team": "1"
}
]
}
]