Matches Shotmap
This endpoint allows you to retrieve shot maps for an match.
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 per minute.
Use Cases
Get shot map from a specific player_idhttps://football.sportdevs.com/matches-shotmap?player_id=eq.{player_id}
Get shot map from a specific match_idhttps://football.sportdevs.com/matches-shotmap?match_id=eq.{match_id}
Get shot map from a specific player_id and match_idhttps://football.sportdevs.com/matches-shotmap?player_id=eq.{player_id}&match_id=eq.{match_id}
Query Parameters
- id integer
Default value:
eq.1
The id of the shotmaps
- match_id integer
Default value:
eq.12
The id of the match
- player_id integer
Default value:
eq.533
The id of the player
- 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 shotmaps
Note: This is a Primary Key.
- match_id integer
The id of the match
Note: This is a Foreign Key to
injuries.match_id
. - 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 name image of the player
- is_home_team boolean
If the player is playing at his home arena
- shot_type text
The type of the shot
- situation text
The situation
- player_coord_x numeric
The x coordinates of the player [0-100]
- player_coord_y numeric
The y coordinates of the player [0-100]
- player_coord_z numeric
The z coordinates of the player [0-100]
- body_part text
The left or right foot
- goal_mouth_location text
The location of the goal mouth
- goal_mouth_coord_x numeric
The x coordinates of the goal mouth [0-100]
- goal_mouth_coord_y numeric
The y coordinates of the goal mouth [0-100]
- goal_mouth_coord_z numeric
The z coordinates of the goal mouth [0-100]
- block_coord_x numeric
The x coordinates of the block [0-100]
- block_coord_y numeric
The y coordinates of the block [0-100]
- block_coord_z numeric
The z coordinates of the block [0-100]
- expected_goals numeric
Expected goals
- expected_goals_on_target numeric
Expected goals on target
- shot_time integer
Time
- added_shot_time integer
Added time because of this incident
- time_seconds integer
Time in seconds
- draw_start_coord_x numeric
The x coordinates of the start drawing
- draw_start_coord_y numeric
The y coordinates of the start drawing
- draw_block_coord_x numeric
The x coordinates of the block drawing
- draw_block_coord_y numeric
The y coordinates of the block drawing
- draw_end_coord_x numeric
The x coordinates of end drawing
- draw_end_coord_y numeric
The y coordinates of end drawing
- draw_goal_coord_x numeric
The x coordinates of goal drawing
- draw_goal_coord_y numeric
The y coordinates of goal drawing
- incident_type text
The incident type
[
{
"id": 1,
"match_id": 12,
"player_id": 533,
"player_name": "Benjamin Šeško",
"player_hash_image": "76a97169ebd61a8051ce22a497756e142952d9ccfe25bdd8c51009f178d89e87",
"is_home_team": false,
"shot_type": "miss",
"situation": "regular",
"player_coord_x": 15.8,
"player_coord_y": 40,
"player_coord_z": 0,
"body_part": "right-foot",
"goal_mouth_location": "close-left",
"goal_mouth_coord_x": 0,
"goal_mouth_coord_y": 56.6,
"goal_mouth_coord_z": 2.8,
"shot_time": 89,
"time_seconds": 5323,
"draw_start_coord_x": 40,
"draw_start_coord_y": 15.8,
"draw_end_coord_x": 43.4,
"draw_end_coord_y": 0,
"draw_goal_coord_x": 43.4,
"draw_goal_coord_y": 97.2,
"incident_type": "shot"
}
]