Welcome to sportapi
The unified sports data API for real-time scores, news, and stats. One contract across NBA, NFL, MLB, NHL, soccer and 100+ leagues — REST and WebSocket, consistent JSON schema.
What you can build
- Fantasy sports applications with live scoring
- Live scoreboards, widgets, and dashboards
- Content sites with auto-generated recaps and stat tables
- Sports betting products (on the licensed tier)
- Analytics platforms with full historical archives
- Push-notification systems for breaking news and live game events
Get started in 3 steps
1. Get an API key
Request access via the contact form. We provision your trial key within 1 business day.
2. Make your first request
Under 5 minutes from zero to live data. curl, Node, Python, or Go.
3. Explore the API
Every endpoint documented with code samples, parameters, and response schemas.
Popular guides
- Build a fantasy football app — full tutorial, ~45 minutes
- Live scoreboard widget — drop-in, embeddable, sub-second latency
- Injury alert notifications — push alerts via webhook
- Migrating from sportsdata.io — endpoint-by-endpoint map
API overview
Every API shares the same authentication, error format, pagination conventions, and rate-limit behavior. Pick a sport to dive in:
NBA
Live scores, play-by-play, box scores, players, standings.
NFL
Drives, plays, fantasy, depth charts, props, weather.
MLB
Pitch-by-pitch, Statcast, lineups, box scores, standings.
NHL
Shifts, plays, advanced analytics, lines, standings.
Soccer
Events, lineups, tables, transfers — 100+ leagues.
News
Real-time headlines, injuries, transfers, search.
WebSocket
Push delivery with subscription channels and reconnection.
Webhooks
Signed event delivery with retry and idempotency.