Overview
Tracking data captures player movement and basketball actions through NBA’s SportVU camera system. This includes drives to the basket, touches and time of possession, passing metrics, speed and distance traveled, and hustle statistics like deflections and loose balls recovered.Data Files
Drives
Drive metrics (penetration, scoring, passing)
drives.csv
Touches/Possessions
Ball touches and time of possession
possessions.csv(renamed from Possessions endpoint)
Passing
Passing and assist creation metrics
passing.csv/passing_ps.csv
Hustle Stats
Deflections, loose balls, charges, screens, box outs
hustle.csv/hustle_ps.csv
Speed & Distance
Miles run, average speed (included in hustle.csv)
Paint/Elbow/Post Touches
Touches in specific court areas
paint.csv,elbow.csv,post.csv
Schema: Drives
File:drives.csvGenerated by:
new_tracking.pyRecords: ~35,000+ player-season records
Source: NBA.com tracking API (PtMeasureType=Drives)
Fields
- Player Info
- Game Stats
- Drive Metrics
- Playmaking on Drives
Sample Data
Schema: Touches & Possessions
File:possessions.csv (tracking/touches.csv in raw folders)Generated by:
new_tracking.pySource: NBA.com tracking API (PtMeasureType=Possessions)
- Touch Metrics
- Location Touches
Schema: Passing
File:passing.csv / passing_ps.csvGenerated by:
passing.py + new_tracking.pyRecords: ~100,000+ player-season records
Source: pbpstats.com API + NBA.com
Passing Fields (pbpstats.com)
Passing Fields (pbpstats.com)
NBA player ID
Player name
Total passes made
Total passes received
Potential assists (passes leading to shot attempts)
Actual assists
Potential assist rate
Assist to pass percentage
Points created via assists
Points per possession on assists
Percentage of assists leading to high-value shots
Three-point assists
Assists at rim
Turnovers from bad passes
Schema: Hustle Stats
File:hustle.csv / hustle_ps.csvGenerated by:
hustle.pySource: NBA.com hustle stats + speed/distance tracking
Hustle Metrics
- Deflections & Steals
- Loose Balls
- Screens & Box Outs
- Speed & Distance
Sample Data
Usage Examples
Elite Drivers Analysis
Playmaking on Drives
Hustle Leaders
Distance & Speed Analysis
Passing Creativity
Data Collection Scripts
new_tracking.py
Scrapes NBA.com tracking API for drives, touches, passing, etc.
hustle.py
Collects hustle stats and speed/distance data
passing.py
Fetches passing metrics from pbpstats.com
Notes
- Drives = Any touch where player dribbles penetrating toward basket
- Screen Assists = Screens that directly lead to made field goals
- Contested Shots = Shots where player is closest defender within 3.5 feet
- Speed measured in miles per hour (mph)
- Distance in both feet and miles