@stat-api/client
v0.0.1
Published
Official JavaScript/TypeScript client for stat-api.com — NBA, NFL, MLB, NHL, PGA, DFS and prediction-market sports data. Name reservation; v0.1.x ships soon.
Downloads
157
Maintainers
Readme
@stat-api/client
Official JavaScript/TypeScript client for stat-api.com — one API for NBA, NFL, MLB, NHL, PGA, DFS, and prediction-market sports data.
This version (0.0.1) is a name reservation. The generated client (v0.1.x) is in active development and ships soon. Importing this package throws by design.
What's coming
import { StatApi } from '@stat-api/client';
const api = new StatApi(); // reads STAT_API_KEY from the environment
const page = await api.nba.players.list({ is_active: true });
for await (const stat of api.nba.season_player_stats.iter({ season_id })) {
// auto-paging iterator over the full season
}- Typed per-table accessors for ~200 tables across 9 data domains
- Keyset auto-pagination, typed 401/402/429 errors, quota surfacing
- Zero runtime dependencies
- Sibling SDKs for Python, Go, Java, and C# — all generated from the same schema
Until then
- Docs & API reference: https://stat-api.com/docs
- Get an API key (free tier): https://stat-api.com
- GitHub: https://github.com/stat-api
License
MIT
