Players Shot Actions
This endpoint allows you to retrieve the shot actions from players. For the type argument you can search by: regularSeason, playoffs, overall and top16.
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 actions from a specific player_id, league_id, season_id and typehttps://basketball.sportdevs.com/players-shot-actions?player_id=eq.{player_id}&league_id=eq.{league_id}&season_id=eq.{season_id}&type=eq.{type}
Query Parameters
- player_id integer
Default value:
eq.68434
The id of the player
- league_id integer
Default value:
eq.1907
The id of the league
- season_id integer
Default value:
eq.7357
The id of the season
- type text
Default value:
eq.regularSeason
The type of the shot action
- 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 players-shot-actions
Note: This is a Primary Key.
- player_id integer
The id of the player
Note: This is a Foreign Key to
players.id
. - league_id integer
The id of the league
Note: This is a Foreign Key to
leagues.id
. - league_name text
The name of the league
- league_hash_image character varying
Possible values:
<= 64 characters
The name image of the league
- season_id integer
The id of the season
Note: This is a Foreign Key to
seasons.id
. - season_name text
The name of the season
- type text
The type of the shot action
- shots jsonb
The shots of the shot action
[
{
"id": 1,
"player_id": 68434,
"league_id": 1907,
"league_name": "Eurocup",
"league_hash_image": "008e96b70c4c6b1a99557e46afbcf3a8a9668f18424c77b3ad903db4fa761931",
"season_id": 7357,
"season_name": "Eurocup 23/24",
"type": "regularSeason",
"shots": [
{
"x": -214,
"y": 123,
"made": 1,
"missed": 0
},
{
"x": -210,
"y": 119,
"made": 0,
"missed": 1
},
{
"x": -199,
"y": 143,
"made": 1,
"missed": 0
},
{
"x": -175,
"y": 184,
"made": 0,
"missed": 1
},
{
"x": -164,
"y": 188,
"made": 0,
"missed": 1
},
{
"x": -160,
"y": 194,
"made": 1,
"missed": 0
},
{
"x": -156,
"y": 205,
"made": 0,
"missed": 1
},
{
"x": -151,
"y": 210,
"made": 1,
"missed": 0
},
{
"x": -140,
"y": 201,
"made": 0,
"missed": 1
},
{
"x": -138,
"y": -4,
"made": 0,
"missed": 1
},
{
"x": -138,
"y": 32,
"made": 1,
"missed": 0
},
{
"x": -130,
"y": 86,
"made": 1,
"missed": 0
},
{
"x": -106,
"y": 6,
"made": 0,
"missed": 1
},
{
"x": -76,
"y": 233,
"made": 1,
"missed": 0
},
{
"x": -69,
"y": 30,
"made": 1,
"missed": 0
},
{
"x": -56,
"y": 138,
"made": 1,
"missed": 0
},
{
"x": -54,
"y": 43,
"made": 0,
"missed": 1
},
{
"x": -50,
"y": 32,
"made": 1,
"missed": 0
},
{
"x": -45,
"y": 32,
"made": 1,
"missed": 0
},
{
"x": -13,
"y": 249,
"made": 0,
"missed": 1
},
{
"x": -4,
"y": 52,
"made": 1,
"missed": 0
},
{
"x": 50,
"y": 173,
"made": 0,
"missed": 1
},
{
"x": 56,
"y": 257,
"made": 0,
"missed": 1
},
{
"x": 62,
"y": 67,
"made": 0,
"missed": 1
},
{
"x": 65,
"y": 73,
"made": 1,
"missed": 0
},
{
"x": 82,
"y": 249,
"made": 1,
"missed": 0
},
{
"x": 110,
"y": 225,
"made": 0,
"missed": 1
},
{
"x": 119,
"y": 238,
"made": 0,
"missed": 1
},
{
"x": 136,
"y": 138,
"made": 1,
"missed": 0
},
{
"x": 167,
"y": 186,
"made": 1,
"missed": 0
},
{
"x": 194,
"y": 175,
"made": 1,
"missed": 0
},
{
"x": 197,
"y": -17,
"made": 0,
"missed": 1
},
{
"x": 238,
"y": 11,
"made": 1,
"missed": 0
}
]
}
]