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
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 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://football.sportdevs.com/matches-graphs?id=eq.{id}
Query Parameters
- id integer
Default value:
eq.1
The id of the graph
- 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
- 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": 45,
"period_count": 2,
"points": [
{
"value": -89,
"minute": 16
},
{
"value": -78,
"minute": 60
},
{
"value": -59,
"minute": 17
},
{
"value": -52,
"minute": 59
},
{
"value": -48,
"minute": 61
},
{
"value": -39,
"minute": 18
},
{
"value": -38,
"minute": 57
},
{
"value": -34,
"minute": 14
},
{
"value": -29,
"minute": 15
},
{
"value": -28,
"minute": 75
},
{
"value": -26,
"minute": 19
},
{
"value": -26,
"minute": 62
},
{
"value": -24,
"minute": 58
},
{
"value": -22,
"minute": 73
},
{
"value": -20,
"minute": 63
},
{
"value": -20,
"minute": 72
},
{
"value": -20,
"minute": 76
},
{
"value": -19,
"minute": 27
},
{
"value": -19,
"minute": 53
},
{
"value": -16,
"minute": 41
},
{
"value": -16,
"minute": 69
},
{
"value": -15,
"minute": 42
},
{
"value": -15,
"minute": 74
},
{
"value": -14,
"minute": 32
},
{
"value": -14,
"minute": 37
},
{
"value": -14,
"minute": 77
},
{
"value": -13,
"minute": 13
},
{
"value": -13,
"minute": 20
},
{
"value": -13,
"minute": 21
},
{
"value": -13,
"minute": 28
},
{
"value": -13,
"minute": 29
},
{
"value": -12,
"minute": 30
},
{
"value": -12,
"minute": 40
},
{
"value": -12,
"minute": 70
},
{
"value": -11,
"minute": 31
},
{
"value": -11,
"minute": 49
},
{
"value": -11,
"minute": 71
},
{
"value": -11,
"minute": 89
},
{
"value": -10,
"minute": 4
},
{
"value": -10,
"minute": 5
},
{
"value": -10,
"minute": 33
},
{
"value": -10,
"minute": 39
},
{
"value": -10,
"minute": 43
},
{
"value": -10,
"minute": 78
},
{
"value": -9,
"minute": 2
},
{
"value": -9,
"minute": 12
},
{
"value": -9,
"minute": 48
},
{
"value": -8,
"minute": 3
},
{
"value": -8,
"minute": 22
},
{
"value": -8,
"minute": 45
},
{
"value": -8,
"minute": 68
},
{
"value": -7,
"minute": 6
},
{
"value": -7,
"minute": 8
},
{
"value": -7,
"minute": 67
},
{
"value": -6,
"minute": 23
},
{
"value": -6,
"minute": 46
},
{
"value": -5,
"minute": 1
},
{
"value": -5,
"minute": 47
},
{
"value": -5,
"minute": 88
},
{
"value": -4,
"minute": 7
},
{
"value": -4,
"minute": 38
},
{
"value": -3,
"minute": 83
},
{
"value": 1,
"minute": 11
},
{
"value": 1,
"minute": 82
},
{
"value": 2,
"minute": 80
},
{
"value": 3,
"minute": 52
},
{
"value": 5,
"minute": 81
},
{
"value": 5,
"minute": 87
},
{
"value": 7,
"minute": 26
},
{
"value": 7,
"minute": 56
},
{
"value": 9,
"minute": 44
},
{
"value": 9,
"minute": 66
},
{
"value": 10,
"minute": 25
},
{
"value": 10,
"minute": 79
},
{
"value": 11,
"minute": 9
},
{
"value": 11,
"minute": 55
},
{
"value": 12,
"minute": 86
},
{
"value": 16,
"minute": 10
},
{
"value": 16,
"minute": 36
},
{
"value": 20,
"minute": 24
},
{
"value": 20,
"minute": 85
},
{
"value": 24,
"minute": 46
},
{
"value": 24,
"minute": 91
},
{
"value": 25,
"minute": 65
},
{
"value": 30,
"minute": 35
},
{
"value": 32,
"minute": 51
},
{
"value": 34,
"minute": 84
},
{
"value": 47,
"minute": 54
},
{
"value": 63,
"minute": 64
},
{
"value": 67,
"minute": 34
},
{
"value": 83,
"minute": 50
},
{
"value": 109,
"minute": 90
}
]
}
]