Statyx API documentation
Everything you need to pull raw feeds and computed analytics for NFL, NBA, MLB, Soccer and WNBA. New here? Search every endpoint below, or open these docs in your AI assistant.
Introduction
The Statyx API is a read-only HTTPS/JSON API. The base URL for all requests is:
https://api.statyx.io/v1
Every response uses a consistent envelope: a data payload plus a meta object with echoed filters and pagination.
Advanced capabilities
Beyond raw feeds: the computed analytics behind the Statyx product, exposed as first-class endpoints. Everything is source-neutral and keyed by stable Statyx ids.
Computed hit-rates
Any market, line and side over L5 / L10 / L20 / season, matching the exact numbers behind the Statyx charts, for every sport.
NFL Next Gen & efficiency
EPA, success rate, CPOE, aDOT, yards-over-expected, separation, air yards, time-to-throw and red-zone opportunity.
NBA tracking & hustle
Advanced box, tracking and hustle stats, standings and per-game splits.
Defense-vs-position
What each defense allows by position (RB/WR/TE/QB and more), split regular vs post-season.
Normalized odds board
Best over/under price and book per prop across every book, with alternate-line ladders and fair pricing, in one cross-sport shape.
Depth charts & injuries
Live depth charts (starter → practice squad) and league-wide injury reports with status, designation and narrative.
Contracts & standings
Player contracts and computed standings: records, win %, points for/against and division/conference rank.
AI-first & source-neutral
Machine-readable OpenAPI 3.1 your agent can load, a stable /v1 contract, one consistent envelope, and stable Statyx ids across sports and sources.
Authentication
Pass your key in the x-api-key header on every request. Keys are stored hashed and scoped to your tier.
# Your first request curl https://api.statyx.io/v1/nba/players \ -H "x-api-key: sk_live_••••••••••••"
Responses & errors
List endpoints return { data, meta }. Errors always use one shape, with an HTTP status and a stable code:
// success { "data": [ … ], "meta": { "limit": 50, "offset": 0 } } // error { "error": { "code": "VALIDATION_ERROR", "message": "Invalid query", "details": { … } } }
Common codes: VALIDATION_ERROR (422), UNAUTHORIZED (401), FORBIDDEN (403, missing scope), RATE_LIMITED (429), NOT_FOUND (404).
Pagination
List endpoints accept limit and offset query parameters. The applied values are echoed back in meta so you can page deterministically.
GET /v1/nfl/players?limit=25&offset=50
Rate limits & scopes
Requests are rate-limited per key; every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. Each endpoint requires a scope, granted by your tier:
| Scope | Grants access to |
|---|---|
reference:read | Teams, players, schedules, standings, lineups |
stats:read | Box scores, advanced stats, defense-vs-position |
hit-rates:read | Computed hit-rate endpoints |
odds:read | Player/game props and the odds board |
Endpoint reference
Select any endpoint to open its request format and a real response shape on the right. Every shape is derived from the live view schema that backs the route, so it matches what the API actually returns.
NFL endpoints
Rosters, schedules, per-game box scores (incl. defensive lines) and team defense-vs-position.
NBA endpoints
Box scores, tracking & hustle advanced stats, standings and defense-vs-position.
MLB endpoints
Batting & pitching box scores, season sabermetrics, per-book props and probable lineups.
Soccer endpoints
Competitions, fixtures, per-match & season stats, xG shot maps, team form and props.
WNBA endpoints
Box & season stats, four-factors advanced splits, shot locations, odds and defense-vs-position.
Odds board
A cross-sport, normalized best-price board built from every book.
Hit rates
Every sport exposes a hit-rates endpoint that computes, for a player, how often a stat cleared a line over recent windows, matching the Statyx product charts exactly.
GET /v1/nba/players/115/hit-rates?market=points&line=27.5&side=over&windows=L5,L10,L20,season
Parameters: market (required), line (required), side (over/under, default over), windows (e.g. L5,L10,L20,season), season (optional filter). Each window returns games, hits, hit_rate, pct and average.
Pick an endpoint
Select any endpoint on the left to see the request format and a real response shape.