Injuries
This endpoint allows you to retrieve the injuries and missing matches.
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 for live matches and every 20 minutes for ongoing matches.
Recommended Calls: Limit calls to 1 per minute for live matches and every 20 minutes for ongoing matches.
Use Cases
Get the injuries from a specific player_idhttps://football.sportdevs.com/injuries?player_id=eq.{player_id}
Get the injuries from a specific match_idhttps://football.sportdevs.com/injuries?match_id=eq.{match_id}
Get the injuries from a specific season_idhttps://football.sportdevs.com/injuries?season_id=eq.{season_id}
Get the injuries from a specific tournament_idhttps://football.sportdevs.com/injuries?tournament_id=eq.{tournament_id}
Query Parameters
- player_id integer
Default value:
eq.21880
The id of the player
- match_id integer
Default value:
eq.28911
The id of the match
- season_id integer
Default value:
eq.7172
The id of the season
- tournament_id integer
Default value:
eq.269
The id of the tournament
- 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
- player_id integer
The id of the player
Note: This is a Foreign Key to
players.id
. - player_name text
The name of the player
- player_hash_image character varying
Possible values:
<= 64 characters
The hash image of the player
- type text
The type
- reason text
The reason
- match_id integer
The id of the match
Note: This is a Primary Key.
- season_id integer
The id of the season
Note: This is a Foreign Key to
seasons.id
. - tournament_id integer
The id of the tournament
Note: This is a Foreign Key to
seasons-by-tournament.tournament_id
. - start_timestamp timestamp with time zone
The start timestamp of the match
[
{
"player_id": 21880,
"player_name": "Jean-Kévin Augustin",
"player_hash_image": "26e2aa9a5b20b5246ae4dc103c055299d2f414c8c62a0df3ee663f0746006401",
"type": "missing",
"reason": "Injured",
"match_id": 28911,
"season_id": 7172,
"tournament_id": 269,
"start_timestamp": "2021-02-03T20:00:00+00:00"
}
]