Retrieve game performance stats for a player
GET {{baseUrl}}/{{version}}/gameresults/player/{{user_id}}?from_date=2021-10-01&to_date=2021-10-02&limit=50&team_id=100&sorting=desc
This end point enable you to retrieve the Game performance stats for a given player. You can use the from_date
and to_date
and narrowing the results.
The fromdate and the todates are mapped to the events even_start
and event_end
fields respectively
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from_date | string | nullable | |
to_date | string | nullable | |
limit | number | nullable | |
team_id | number | nullable | |
sorting | string | nullable |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Returns the player game results for a period of time.","opposition_points":0,"response":{"current_page":1,"data":[{"res_id":195,"event_id":145,"user_id":1,"res_points":12,"res_personal_fouls":null,"res_assists":null,"res_steals":null,"res_blocks":null,"res_turnovers":null,"res_assist_turnover_ratio":null,"res_performance_index_rating":null,"res_offensive_rebounds":null,"res_defensive_rebounds":null,"res_rebounds_total":null,"res_fgm":5,"res_fga":10,"res_fg_percent":50,"res_ftm":1,"res_fta":4,"res_ft_percent":25,"res_3fgm":3,"res_3fga":7,"res_3fg_percent":43,"res_":null,"created_by":1,"updated_by":null,"deleted_by":null,"deleted_at":null,"created_at":"2022-02-09T12:06:16.000000Z","updated_at":"2022-02-09T12:06:16.000000Z","profile_first_name":"Francisco","profile_last_name":"Baptista","profile_avatar":"https://files.teamsportz.app/avatars/1_1636029808.jpeg","event_name":"Game vs West Warriors"}],"first_page_url":"https://api.teamsportz.pro/v1/gameresults/player/1?page=1","from":1,"last_page":1,"last_page_url":"https://api.teamsportz.pro/v1/gameresults/player/1?page=1","links":[{"url":null,"label":"pagination.previous","active":false},{"url":"https://api.teamsportz.pro/v1/gameresults/player/1?page=1","label":"1","active":true},{"url":null,"label":"pagination.next","active":false}],"next_page_url":null,"path":"https://api.teamsportz.pro/v1/gameresults/player/1","per_page":15,"prev_page_url":null,"to":1,"total":1}}