King of the Stats Leaderboard

Created

2025

Tech

Python / PHP

phppythonmysqlpersonal project

background

King of the Stats Leaderboard is a live tracking system for NBA games. It tracks individual player stats for points, assists, and rebounds ranking how the players are performing in their collective stats across all games played that day. It was created as a personal project to learn how to use the NBA API and to create a live updating system, as well as to supply a leaderboard for sports bettors.

Since it's initial release, there's now a new version of the leaderboard that tracks 3 point shots made. Future updates will include tracking other sports like the NHL, NFL, and MLB.

development

King of the Stats Leaderboard was designed to be a simple lightweight system that could be updated in real-time. It was built using a short Python script that pulls data from the NBA API every 2 minutes and updates the stats in a MySQL database. The front end is a simple PHP page that pulls the data from the database and displays it in a table.


This project is NOT affiliated with the NBA or any of its partners. It is a personal project created for entertainment purposes only.