Matches Incidents
This endpoint allows you to retrieve the incidents from matches.
For incidents we have many types: goal, period, card, suspension, inGamePenalty, penaltyShootout.
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 incidents from a specific match_idhttps://handball.sportmicro.com/matches-incidents?match_id=eq.{match_id}
Query Parameters
- match_id integer
The id of the match
Example: eq.32 - offset string
Default value:
0Limiting and Pagination
Example: 0 - limit string
Default value:
50Limiting and Pagination
Example: 50 - lang string
Default value:
enMulti-language
Example: en
- 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.id. - incidents jsonb
The incidents of the match
[
{
"match_id": 32,
"incidents": [
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 10,
"home_score": 10,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 11,
"home_score": 14,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 13,
"home_score": 18,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 15,
"home_score": 20,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 17,
"home_score": 23,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 22,
"home_score": 25,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 24,
"home_score": 29,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 26,
"home_score": 34,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": false,
"away_score": 29,
"home_score": 35,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "penalty",
"is_home": true,
"away_score": 20,
"home_score": 25,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 1,
"home_score": 0,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 2,
"home_score": 1,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 3,
"home_score": 1,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 4,
"home_score": 1,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 5,
"home_score": 2,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 6,
"home_score": 4,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 7,
"home_score": 6,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 8,
"home_score": 7,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 9,
"home_score": 7,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 12,
"home_score": 16,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 14,
"home_score": 19,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 16,
"home_score": 22,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 18,
"home_score": 23,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 19,
"home_score": 24,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 20,
"home_score": 24,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 21,
"home_score": 25,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 23,
"home_score": 26,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 25,
"home_score": 30,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 27,
"home_score": 35,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": false,
"away_score": 28,
"home_score": 35,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 1,
"home_score": 1,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 4,
"home_score": 2,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 5,
"home_score": 3,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 5,
"home_score": 4,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 6,
"home_score": 5,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 6,
"home_score": 6,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 7,
"home_score": 7,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 9,
"home_score": 8,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 9,
"home_score": 9,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 9,
"home_score": 10,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 10,
"home_score": 11,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 10,
"home_score": 12,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 10,
"home_score": 13,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 10,
"home_score": 14,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 11,
"home_score": 15,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 11,
"home_score": 16,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 12,
"home_score": 17,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 12,
"home_score": 18,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 13,
"home_score": 19,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 14,
"home_score": 20,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 15,
"home_score": 21,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 15,
"home_score": 22,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 16,
"home_score": 23,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 18,
"home_score": 24,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 22,
"home_score": 26,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 23,
"home_score": 27,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 23,
"home_score": 28,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 23,
"home_score": 29,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 24,
"home_score": 30,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 25,
"home_score": 31,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 25,
"home_score": 32,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 25,
"home_score": 33,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 25,
"home_score": 34,
"reversed_period_time": 2
},
{
"time": -1,
"type": "goal",
"class": "regular",
"is_home": true,
"away_score": 26,
"home_score": 35,
"reversed_period_time": 2
},
{
"text": "FT",
"time": 60,
"type": "period",
"is_live": false,
"added_time": 999,
"away_score": 29,
"home_score": 35,
"reversed_period_time": 1,
"reversed_period_time_seconds": 0
}
]
}
]