NBA API wrapper written in Zig.
I've already been using my own NBA API wrapper (written in Go) that powers the backend of rthoops.net for awhile now, but i wanted to release the core functionality as a CLI tool and decided to do it in Zig for fun and learning purposes.
- Zig 0.15.x (tested with 0.15.2)
curl -fsSL https://raw.githubusercontent.com/eexwhyzee/nbaz/main/install.sh | bashnbaz <command> [options]scoreboard --date YYYYMMDDboxscore --game-id GAME_IDplaybyplay --game-id GAME_IDshotchart --game-id GAME_IDrefs --game-id GAME_ID
- JSON (default)
- Table (supported for
scoreboard)
Use: --format json|table
# Daily scoreboard
nbaz scoreboard --date 20260201
# Scoreboard as a table
nbaz --format table scoreboard --date 20260201
# Boxscore for a game
nbaz boxscore --game-id 0022500703
# Play-by-play for a game
nbaz playbyplay --game-id 0022500703
# Shot chart
nbaz shotchart --game-id 0022500703
# Ref stats
nbaz refs --game-id 0022500703
MIT. See LICENSE.
# Build locally
zig build
# Run tests
zig build test