Player boxscore

getPlayerBoxscore

This request will find the first matching row and typically only used when passing in the player_boxscore_id or organization_id, game_id and player_id argument.

Request

GET

https://api.srating.io/v1/player_boxscore/getPlayerBoxscore?organization_id=f1c37c98-3b4c-11ef-94bc-2a93761010b8&game_id=0f0fb2e7-5dd9-11ef-9222-9667e47de71a&player_id=e27545f0-ad5a-11ed-9185-b6be2f39279c

POST

fetch('https://api.srating.io/v1', {
  'method': 'POST',
  'headers': {
    'Content-Type': 'application/json',
    'X-API-KEY': 'YOUR_API_KEY',
  },
  'body': JSON.stringify({
    'class': 'player_boxscore',
    'function': 'getPlayerBoxscore',
    'arguments': {
      'organization_id': 'f1c37c98-3b4c-11ef-94bc-2a93761010b8',
      'game_id': '0f0fb2e7-5dd9-11ef-9222-9667e47de71a',
      'player_id': 'e27545f0-ad5a-11ed-9185-b6be2f39279c',
    }
  }),
}).then(response => {
  return response.json();
}).then(json => {
  console.log(json);
  return json;
}).catch(error => {
  console.log(error);
});

Response

{
  "player_boxscore_id": "276da368-61ca-11ef-9222-9667e47de71a",
  "organization_id": "f1c37c98-3b4c-11ef-94bc-2a93761010b8",
  "division_id": "bf602dc4-3b4a-11ef-94bc-2a93761010b8",
  "game_id": "0f0fb2e7-5dd9-11ef-9222-9667e47de71a",
  "team_id": "87019264-8549-11ed-bf01-5296e1552828",
  "player_id": "e27545f0-ad5a-11ed-9185-b6be2f39279c",
  "season": 2023,
  "sport_player_boxscore_id": "276b4b36-61ca-11ef-9222-9667e47de71a",
  "final": 1,
  "deleted": 0,
  "basketball_player_boxscore_id": "276b4b36-61ca-11ef-9222-9667e47de71a",
  "first_name": "Fletcher",
  "last_name": "Loyer",
  "position": "G",
  "minutes_played": 28.56,
  "field_goal": 3,
  "field_goal_attempts": 10,
  "field_goal_percentage": 30,
  "two_point_field_goal": 3,
  "two_point_field_goal_attempts": 8,
  "two_point_field_goal_percentage": 37.5,
  "three_point_field_goal": 0,
  "three_point_field_goal_attempts": 2,
  "three_point_field_goal_percentage": 0,
  "free_throws": 0,
  "free_throw_attempts": 0,
  "free_throw_percentage": 0,
  "offensive_rebounds": 0,
  "defensive_rebounds": 4,
  "total_rebounds": 4,
  "assists": 3,
  "steals": 2,
  "blocks": 0,
  "turnovers": 0,
  "fouls": 1,
  "points": 6
}

On this page