Matches Graphs
This endpoint allows you to retrieve the graphs from matches.
If the value field is a bigger number (> 0) that means that the home team had a big pressure that minute. And if the value field is a lower number (< 0) than it means that away team had a bigger pressure that minute. The matches-graph's id is placed in matches endpoint if it has the graph_id field.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
langattribute. 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 10 seconds during a live match.
Recommended Calls: Limit calls to 1 per 10 seconds during a live match.
Use Cases
Get graph based on the idhttps://basketball.sportdevs.com/matches-graphs?id=eq.{id}
Query Parameters
- id integer
Default value:
eq.1The id of the graph
- offset string
Default value:
0Limiting and Pagination
- limit string
Default value:
50Limiting and Pagination
- lang string
Default value:
enMulti-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- id integer
The id of the graph
Note: This is a Primary Key.
- period_time integer
The time period of the graph
- period_count integer
The periods of the graph
- points jsonb
The points of the graph
[
{
"id": 1,
"period_time": 10,
"period_count": 4,
"points": [
{
"value": 5,
"minute": 9
},
{
"value": 6,
"minute": 1
},
{
"value": 7,
"minute": 6
},
{
"value": 7,
"minute": 7
},
{
"value": 7,
"minute": 8
},
{
"value": 7,
"minute": 10
},
{
"value": 8,
"minute": 2
},
{
"value": 8,
"minute": 11
},
{
"value": 9,
"minute": 5
},
{
"value": 10,
"minute": 3
},
{
"value": 10,
"minute": 4
},
{
"value": 11,
"minute": 12
},
{
"value": 11,
"minute": 13
},
{
"value": 13,
"minute": 14
},
{
"value": 15,
"minute": 15
},
{
"value": 15,
"minute": 20
},
{
"value": 17,
"minute": 21
},
{
"value": 18,
"minute": 17
},
{
"value": 18,
"minute": 18
},
{
"value": 18,
"minute": 19
},
{
"value": 19,
"minute": 22
},
{
"value": 20,
"minute": 16
},
{
"value": 25,
"minute": 23
},
{
"value": 27,
"minute": 24
},
{
"value": 29,
"minute": 25
},
{
"value": 31,
"minute": 26
},
{
"value": 33,
"minute": 29
},
{
"value": 33,
"minute": 30
},
{
"value": 33,
"minute": 31
},
{
"value": 33,
"minute": 32
},
{
"value": 33,
"minute": 33
},
{
"value": 35,
"minute": 27
},
{
"value": 35,
"minute": 37
},
{
"value": 37,
"minute": 28
},
{
"value": 37,
"minute": 40
},
{
"value": 38,
"minute": 34
},
{
"value": 38,
"minute": 35
},
{
"value": 38,
"minute": 38
},
{
"value": 38,
"minute": 39
},
{
"value": 41,
"minute": 36
}
]
}
]