The NBA team stats resource includes all of the typical box score statistics you would find anywhere. In addition to the traditional box score stats, the NBA team resource also includes some SportsVU data for the team.
Since the NBA Team Stats resource returns SportsVU data, it is recommended that you check out the SportsVU Definitions page to get a break down of what all the different NBA metrics are.
Integer. The ID for the team. Team IDs can be found from the teams resource.
Integer. The ID for the opposing team. Team IDs can be found from the teams resource.
Integer. The internal ID of the game. Game IDs can be found from the games resource.
Integer. The date that the game was played on. Must be in MMDDYY format.
Integer. The season that the game was played in. Must be in YYYY format. If a game was played in 2015, but the season started in 2014 it will be listed under the 2014 season.
<?php $url = 'https://probasketballapi.com/stats/teams'; $api_key = '__YOUR__API__KEY__'; $query_string = 'api_key='.$api_key.'&team_id=1610612742&game_id=21400001'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $query_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); curl_close($ch); echo $result; ?>