apikey parameter.Pull team stats, play-by-play event logs and box scores for your program's games as JSON.
apikey parameter.None.All API requests use a unique API key tied to each program account.
Keep your key private. Anyone with the key can read your program's game data. An Admin can refresh the key from the Settings page at any time.
Returns TEAM stats for a specific game (the same numbers shown on the Game Summary page).
/dataapi/get-summary.php?game_id=GAME_ID&apikey=APIKEY
| NAME | DESCRIPTION |
|---|---|
game_id | The Hoopsalytics game ID. |
apikey | Your program's API key. |
Returns an event log (play-by-play) for a specific game.
/dataapi/play-by-play.php?game_id=GAME_ID&apikey=APIKEY
| NAME | DESCRIPTION |
|---|---|
game_id | The Hoopsalytics game ID. |
apikey | Your program's API key. |
(x, y) coordinates for location events are in inches. (0, 0) is the top left corner of the court.video_time and clock_time (estimated) are in 1/10ths of seconds.Returns totals for one or more games, for a specific team. No per-game or per-32 / per-40 calculations are performed.
/dataapi/show.php?team_id=TEAM_ID&games_list=GAMES&apikey=APIKEY
| NAME | DESCRIPTION |
|---|---|
team_id | The Hoopsalytics team ID. |
games_list | One or more game IDs, comma separated. |
apikey | Your program's API key. |
team_id → player_id → box score data.Need a different data feed, or have questions about the API?
Contact us