Matches Statistics
This endpoint allows you to retrieve the statistics from matches.
Types of the statistics: Timeouts, Max points in a row, Biggest lead, Blocks, Turnovers, 2 pointers, Offensive rebounds, Fouls, Defensive rebounds, Assists, Lead changes, Field goals, Free throws, Time spent in lead, 3 pointers, Steals, Rebounds.
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://basketball.sportdevs.com/matches-statistics?match_id=eq.{match_id}
Query Parameters
- match_id integer
Default value:
eq.1
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": 1,
"statistics": [
{
"type": "2 pointers",
"period": "ALL",
"category": "Scoring",
"away_team": "17/47 (36%)",
"home_team": "24/43 (56%)"
},
{
"type": "3 pointers",
"period": "ALL",
"category": "Scoring",
"away_team": "7/19 (37%)",
"home_team": "9/29 (31%)"
},
{
"type": "Assists",
"period": "ALL",
"category": "Other",
"away_team": "18",
"home_team": "15"
},
{
"type": "Biggest lead",
"period": "ALL",
"category": "Lead",
"away_team": "0",
"home_team": "26"
},
{
"type": "Blocks",
"period": "ALL",
"category": "Other",
"away_team": "2",
"home_team": "3"
},
{
"type": "Defensive rebounds",
"period": "ALL",
"category": "Other",
"away_team": "23",
"home_team": "32"
},
{
"type": "Field goals",
"period": "ALL",
"category": "Scoring",
"away_team": "24/66 (36%)",
"home_team": "33/72 (46%)"
},
{
"type": "Fouls",
"period": "ALL",
"category": "Other",
"away_team": "13",
"home_team": "13"
},
{
"type": "Free throws",
"period": "ALL",
"category": "Scoring",
"away_team": "6/9 (67%)",
"home_team": "8/10 (80%)"
},
{
"type": "Lead changes",
"period": "ALL",
"category": "Lead",
"away_team": "0",
"home_team": "1"
},
{
"type": "Max points in a row",
"period": "ALL",
"category": "Lead",
"away_team": "8",
"home_team": "21"
},
{
"type": "Offensive rebounds",
"period": "ALL",
"category": "Other",
"away_team": "8",
"home_team": "13"
},
{
"type": "Rebounds",
"period": "ALL",
"category": "Other",
"away_team": "31",
"home_team": "45"
},
{
"type": "Steals",
"period": "ALL",
"category": "Other",
"away_team": "5",
"home_team": "11"
},
{
"type": "Timeouts",
"period": "ALL",
"category": "Other",
"away_team": "5",
"home_team": "2"
},
{
"type": "Time spent in lead",
"period": "ALL",
"category": "Lead",
"away_team": "0:00",
"home_team": "39:41"
},
{
"type": "Turnovers",
"period": "ALL",
"category": "Other",
"away_team": "15",
"home_team": "12"
}
]
}
]