API Reference · v1

Statyx API documentation

Everything you need to pull normalized data and computed analytics for NFL, College Football, NBA, MLB, Soccer and WNBA. New here? Search every endpoint below, or open these docs in your AI assistant.

AI-first: prefer your own assistant? Open these docs, spec and all, in one click, or copy a ready-made prompt to paste anywhere.

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 tracking & 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:

ScopeGrants access to
reference:readTeams, players, schedules, standings, lineups
stats:readBox scores, advanced stats, defense-vs-position
hit-rates:readComputed hit-rate endpoints
odds:readPlayer/game props and the odds board
insights:readComputed projections, game sims and model outputs

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

Teams, schedules and player search; per-game box scores with full defensive lines; season passing, rushing and receiving plus advanced efficiency (EPA, CPOE, aDOT, air yards, YAC, success rate) and red-zone opportunity; team stats, standings, depth charts, injuries and defense-vs-position by QB / RB / WR / TE.

GET/v1/nfl/teamsreference:read
The 32 NFL teams with conference, division and abbreviations.
GET/v1/nfl/teams/{teamId}reference:read
A single NFL team by its Statyx team id.
GET/v1/nfl/schedulereference:read
Preseason, regular-season and postseason games with scores, venue and status.
seasonweekseason_typeteam
GET/v1/nfl/games/{gameId}reference:read
A single NFL game by its Statyx game id.
GET/v1/nfl/standingsreference:read
Computed standings: W-L-T, win %, points for/against and division/conference rank.
seasonconferencedivision
GET/v1/nfl/playersreference:read
Player directory: position, height, weight, college, experience.
teampositionsearchactive
GET/v1/nfl/players/{playerId}reference:read
A single NFL player by their Statyx player id.
GET/v1/nfl/players/{playerId}/statsstats:read
Per-game box: passing, rushing, receiving, defensive and kicking stats.
seasonseason_typesince
GET/v1/nfl/players/{playerId}/season-statsstats:read
Season totals plus advanced efficiency (EPA, success rate, CPOE, aDOT) and red-zone opportunity.
seasonseason_type
GET/v1/nfl/players/{playerId}/hit-rateshit-rates:read
Hit rate for any NFL market and line over L5/L10/L20/season.
marketlinesidewindowsseason
GET/v1/nfl/team-statsstats:read
Per-team per-game box-score totals: first downs, total/rushing/passing yards, turnovers, defensive TDs.
seasonweekteamgame_id
GET/v1/nfl/defense-vs-positionstats:read
Rushing & receiving allowed by each defense to RB/WR/TE/QB, split REG/POST.
seasonseason_typepositionteam
GET/v1/nfl/depth-chartsreference:read
Team depth charts: position, depth (1 = starter) and current injury status per player.
teamposition
GET/v1/nfl/injuriesreference:read
League-wide injury report: status, designation, narrative detail and report date.
teamstatus
GET/v1/nfl/players/{playerId}/advanced-statsstats:read
Advanced player tracking: rushing, passing and receiving efficiency (yards over expected, separation, air yards, time to throw).
stat_typeseasonweek
GET/v1/nfl/players/{playerId}/coveragestats:read
Coverage splits for a defender: plays, completions, yards, TD, INT, air yards and EPA by coverage bucket.
seasonseason_typerolebucket_kind
GET/v1/nfl/team-coveragestats:read
Team coverage splits: what a defense faces and allows by coverage bucket (plays, completions, yards, EPA).
seasonseason_typeteambucket_kind
GET/v1/nfl/fantasy-projections/weeklyinsights:read
Weekly fantasy projections with stable Statyx player/team ids and freshness status.
seasonweekpositionscoringteamplayer_id
GET/v1/nfl/fantasy-projections/seasoninsights:read
Full-season fantasy projections with stable Statyx player/team ids and freshness status.
seasonpositionscoringteamplayer_id
GET/v1/nfl/prop-projectionsinsights:read
Weekly Statyx projections with consensus_line when available, plus difference, outlook and confidence. Individual sportsbook prices are not returned.
seasonweekmarketpositionteamplayer_id

College Football endpoints

Conferences, teams, rosters, schedules, standings, rankings, play-by-play, game and season stats, and betting markets. Public responses use only stable Statyx conference, team, player, game and market ids.

GET/v1/cfb/conferencesreference:read
Conference directory with stable Statyx conference ids.
GET/v1/cfb/teamsreference:read
Search teams by conference, name or abbreviation.
conferencesearch
GET/v1/cfb/teams/{teamId}reference:read
A single team by stable Statyx team id.
GET/v1/cfb/playersreference:read
Search players by team, position, name or active status.
team_idpositionsearchactive
GET/v1/cfb/players/{playerId}reference:read
A single player by stable Statyx player id.
GET/v1/cfb/schedulereference:read
Schedule, lifecycle state, participating teams and scores.
seasonweekteam_iddatestatus
GET/v1/cfb/games/{gameId}reference:read
A single game by stable Statyx game id.
GET/v1/cfb/standingsreference:read
Conference standings and split records.
seasonconference_id
GET/v1/cfb/rankingsreference:read
Weekly poll rankings, votes, points, trend and record.
seasonweek
GET/v1/cfb/games/{gameId}/playsstats:read
Ordered play-by-play with scores, clock and scoring flags.
GET/v1/cfb/player-statsstats:read
Player game logs or season aggregates in a normalized stats object.
player_idteam_idgame_idseasonweekscope
GET/v1/cfb/team-statsstats:read
Team game logs or season aggregates in a normalized stats object.
team_idgame_idseasonweekscope
GET/v1/cfb/oddsodds:read
Current or opening game markets by game or season/week.
game_idseasonweeksportsbookopening
GET/v1/cfb/player-propsodds:read
Current or opening player prop markets in Statyx terminology.
game_idplayer_idprop_typesportsbookopening

Assets endpoints

Rights-approved player headshots and team logos, stored on Statyx-controlled infrastructure and mapped to stable Statyx entity ids. Provider provenance remains private.

GET/v1/assetsreference:read
Approved, active and unexpired media assets. Unlicensed source URLs are never returned.
sportentity_typeentity_idasset_type

NBA endpoints

Schedules, players and standings; per-game box scores plus tracking and hustle advanced stats (usage, PIE, offensive and defensive rating, deflections, contested shots, charges drawn, box outs, touches); play types and play-type defense, shot zones and zone defense, potential assists and on/off usage shock; player contracts, defense-vs-position by PG / SG / SF / PF / C and hit rates with combos like PRA.

GET/v1/nba/schedulereference:read
Games with scores and status.
seasonteamdate
GET/v1/nba/playersreference:read
Player directory with draft info.
teamsearchactive
GET/v1/nba/standingsreference:read
Conference/division records and ranks.
seasonconference
GET/v1/nba/players/{playerId}/game-statsstats:read
Per-game box score with shooting splits and plus/minus.
seasonsince
GET/v1/nba/players/{playerId}/advanced-statsstats:read
Tracking, hustle & advanced: TS%, usage, PIE, ratings, touches, contested shots, deflections, box-outs.
since
GET/v1/nba/players/{playerId}/hit-rateshit-rates:read
Hit rate for points, rebounds, assists, threes, PRA and other combos.
marketlinesidewindowsseason
GET/v1/nba/defense-vs-positionstats:read
Per-position stats allowed by each defense (fantasy pts, pts, reb, ast, …).
seasonteampos
GET/v1/nba/contractsreference:read
Current-season player contracts: cap hit, base salary, total cash and salary rank.
teamseason
GET/v1/nba/players/{playerId}/play-typesstats:read
Offensive play-type breakdown with points, attempts, makes and FG% per type.
season
GET/v1/nba/play-type-defensestats:read
Per-team points allowed per play type: possessions, PPP, FG% and percentile.
seasonseason_typeteam_idplay_type
GET/v1/nba/players/{playerId}/shot-zonesstats:read
FG% by court zone (restricted area, paint, mid-range, corner 3s, above-break 3).
seasonseason_typelast_n_games
GET/v1/nba/shot-zone-defensestats:read
Per-team opponent FG% allowed by court zone.
seasonseason_typeteam_idlast_n_games
GET/v1/nba/players/{playerId}/potential-assistsstats:read
Per-game potential assists (passes that would be assists if the shot fell).
seasonseason_type
GET/v1/nba/usage-shockstats:read
On/off teammate usage swing: how usage, scoring, rebounds and assists redistribute when a player is off the floor, with per-teammate with/without splits and deltas.
team_idplayer_id
GET/v1/nba/players/{playerId}/shooting-splitsstats:read
Pull-up and catch-and-shoot shooting splits: makes, attempts, FG%, 3PT, points and eFG% per shot type.
seasonseason_type
GET/v1/nba/players/{playerId}/drivesstats:read
Drive volume and efficiency: drives per game, points, assists, FG%, turnovers and league percentile bands.
seasonseason_type
GET/v1/nba/players/{playerId}/scoring-breakdownstats:read
Shot diet and assisted/unassisted split: share of points from fastbreak, paint, off turnovers, 2PT vs 3PT, each with league rank.
seasonseason_type
GET/v1/nba/team-assist-defensestats:read
Team defensive and assist profile: what a defense allows (assists, paint, fastbreak, off turnovers) plus pace, paint touches and passing creation, with ranks.
seasonseason_typeteam_id
GET/v1/nba/players/{playerId}/assist-profilestats:read
Assist-engine percentiles and playmaker archetype: potential/screen/secondary assists, passes, touches and conversion over last-10 / last-20 with percentiles.
season
GET/v1/nba/players/{playerId}/oddsodds:read
Player prop odds per market and sportsbook: line, over/under prices, offering book and every book quoting the market (JSONB). Points, Rebounds, Assists, Threes, PRA and combos.
stat_typesportsbookactive
GET/v1/nba/players/{playerId}/matchup-historystats:read
Per-game history vs opponents: stat line, combo totals (PRA, P+R, P+A, R+A, Stl+Blk), the posted lines per market and points over/under prices for backtesting.
seasonopponent_team_id

MLB endpoints

Teams, schedules, players and standings; batting and pitching box scores; season sabermetrics (OPS, WAR, ERA, WHIP, K/9); per-book player props, daily probable lineups, hit rates with combos, and historical closing odds and props.

GET/v1/mlb/teamsreference:read
Teams with league, division and logos.
GET/v1/mlb/schedulereference:read
Games with venue and status.
seasonteam_iddatestatus
GET/v1/mlb/playersreference:read
Player directory: bats/throws, age, debut.
team_idpositionsearchactive
GET/v1/mlb/standingsreference:read
W/L, GB, streak, runs for/against and splits.
seasonleaguedivision
GET/v1/mlb/players/{playerId}/game-statsstats:read
Per-game batting and pitching box lines.
seasonsince
GET/v1/mlb/players/{playerId}/season-statsstats:read
Season aggregates incl. WAR, OPS, WHIP, K/9 and quality starts.
season
GET/v1/mlb/games/{gameId}/propsodds:read
Per-book player prop lines for a game.
prop_typevendor
GET/v1/mlb/probable-lineupsreference:read
Projected batting orders, handedness and status.
dateteamgame_id
GET/v1/mlb/players/{playerId}/hit-rateshit-rates:read
Hit rate for hits, total bases, HR, RBIs, pitcher strikeouts and more.
marketlinesidewindowsseason
GET/v1/mlb/games/{gameId}/pitchesstats:read
Pitch-by-pitch: velocity, spin, movement, plate location and batted-ball (exit velocity, launch angle, barrel).
batter_idpitcher_id
GET/v1/mlb/games/{gameId}/plate-appearancesstats:read
At-bat outcomes with inning, base/out state, handedness and pitch count.
batter_idpitcher_id
GET/v1/mlb/games/{gameId}/playsstats:read
Ordered play-by-play with score, count, batted-ball coordinates and trajectory.
batter_idpitcher_id
GET/v1/mlb/batter-vs-pitcherstats:read
Career batter vs pitcher head-to-head slash line (AB, H, HR, AVG/OBP/SLG/OPS).
batter_idpitcher_id
GET/v1/mlb/pitcher-appearancesstats:read
Per-outing pitching lines (starter or reliever): IP, ER, K, BB, HR, holds and saves.
pitcher_idteamdateis_starter
GET/v1/mlb/injuriesreference:read
Injury report: status, expected return, type and note per player.
status
GET/v1/mlb/team-statsstats:read
Team season batting, pitching and fielding totals (AVG/OBP/SLG/OPS, ERA, WHIP, fielding).
seasonteam_idseason_type
GET/v1/mlb/ballparksstats:read
Ballparks with location and field orientation.
team_id
GET/v1/mlb/park-factorsstats:read
Per-venue run, HR and hit environment (park factors, 1.00 = neutral).
seasonteam_idvenue
GET/v1/mlb/bullpenstats:read
Bullpen fatigue and HR-risk board per team per slate: workload, available arms and reasons.
dateteam_id
GET/v1/mlb/reliever-vulnerabilitystats:read
Per-reliever HR and hard-contact vulnerability with vs-LHB / vs-RHB splits and an overall score.
dateteam_idpitcher_id
GET/v1/mlb/bullpen-pitch-typesstats:read
Damage a bullpen allows by pitch type and handedness split (usage, exit velocity, SLG/OPS, damage score).
dateteam_idsplitpitch_type
GET/v1/mlb/weatherstats:read
Hourly ballpark weather: temperature, humidity, wind and precipitation with a baseball wind label.
venueteam_iddate
GET/v1/mlb/projectionsinsights:read
Per-market player prop projections: raw and calibrated final projection, market-implied line, fair odds and model components.
dateplayer_idteam_idmarket
GET/v1/mlb/quant-picksinsights:read
Graded model picks with edge, fair odds, Kelly stake and settled result.
dateplayer_idmarketresult
GET/v1/mlb/quant-performanceinsights:read
Model track record: daily plays, wins/losses, hit rate, average edge, units, profit/loss and ROI by market.
datemarket
GET/v1/mlb/game-siminsights:read
Game simulation: win / total / run-line probabilities, projected runs and first-5, plus score and inning distributions.
dateteam_id
GET/v1/mlb/sim-battersinsights:read
Per-batter simulated line and prop probabilities (hits, total bases, HR, RBI, runs, SB).
dateplayer_idteam_id
GET/v1/mlb/sim-pitchersinsights:read
Per-pitcher simulated line and K / ER / hits-allowed market probabilities.
dateplayer_idteam_id
GET/v1/mlb/hr-modelinsights:read
Home-run model board: HR probability and score, driver components, grade, EV and settled result.
dateplayer_idgrade
GET/v1/mlb/probable-pitchersreference:read
Announced probable starting pitchers per game.
dateteampitcher_id

Soccer endpoints

Competitions, clubs, players and fixtures; per-match and season stats (goals, assists, shots, key passes, tackles); xG shot maps as rolling last-N windows, rolling team form, fixture proposition props and hit rates.

GET/v1/football/competitionsreference:read
Leagues with standings/stats flags and current season.
GET/v1/football/teamsreference:read
Clubs with colors and main competition.
country_idcompetition_idsearch
GET/v1/football/playersreference:read
Player directory: position, nationality, status.
club_idposition_idsearch
GET/v1/football/fixturesreference:read
Fixtures with scores, stage/round and venue.
competition_idteam_iddatestatus_group
GET/v1/football/players/{playerId}/game-statsstats:read
Per-match: goals, assists, shots, key passes, tackles, xG and xA.
competition_idseason_numsince
GET/v1/football/players/{playerId}/season-statsstats:read
Season aggregates: appearances, goals, assists, minutes, cards.
competition_idseason
GET/v1/football/players/{playerId}/shotmapstats:read
xG shot map: per-shot events for recent games.
last_num_games
GET/v1/football/teams/{teamId}/formstats:read
Rolling team form product.
num_games
GET/v1/football/games/{gameId}/propsodds:read
Proposition markets for a fixture.
GET/v1/football/players/{playerId}/hit-rateshit-rates:read
Hit rate for shots, goals, key passes, tackles and more.
marketlinesidewindowsseason

WNBA endpoints

Schedules, players and standings; game and season box scores; four-factors advanced splits, zone shot locations, player and game prop odds, defense-vs-position and hit rates.

GET/v1/wnba/schedulereference:read
Games with scores and status.
seasonteam
GET/v1/wnba/playersreference:read
Player directory.
teampositionsearch
GET/v1/wnba/standingsreference:read
Records, splits and playoff seed.
season
GET/v1/wnba/players/{playerId}/game-statsstats:read
Per-game box score.
seasonsince
GET/v1/wnba/players/{playerId}/season-statsstats:read
Season aggregates with shooting percentages.
season
GET/v1/wnba/players/{playerId}/advanced-statsstats:read
Advanced splits: misc, usage, scoring, advanced, four-factors.
seasonsince
GET/v1/wnba/players/{playerId}/shot-locationsstats:read
Zone-based shot locations.
GET/v1/wnba/players/{playerId}/oddsodds:read
Per-book player prop odds.
prop_typevendor
GET/v1/wnba/games/{gameId}/oddsodds:read
Game-level prop odds.
prop_typevendor
GET/v1/wnba/players/{playerId}/hit-rateshit-rates:read
Hit rate for points, rebounds, assists, PRA and combos.
marketlinesidewindowsseason
GET/v1/wnba/defense-vs-positionstats:read
Per-position stats allowed by each defense.
seasonteampos
GET/v1/wnba/injuriesreference:read
Injury report: status, expected return and note per player.
teamstatus
GET/v1/wnba/team-shot-locationsstats:read
Team FG% and volume by court zone (JSONB shot_zones blob).
seasonseason_typeteam_id
GET/v1/wnba/team-advanced-statsstats:read
Team season advanced splits (four factors and more; JSONB stats).
seasonseason_typeteam_idmeasure_type
GET/v1/wnba/team-totalsstats:read
Detailed pbpstats team box totals: shot location, shot quality, assisted share (JSONB stats).
seasonseason_typeteam_id
GET/v1/wnba/games/{gameId}/playsstats:read
Play-by-play for a game: ordered events with score, period, clock and team.

Odds board

A cross-sport, normalized best-price board: the best over/under price and book per prop across every book, with alternate-line ladders and deeplinks, for MLB, NBA and soccer.

GET/v1/odds/sportsodds:read
Which sports have a live board and how fresh each is.
GET/v1/odds/{sport}/boardodds:read
Normalized board: best over/under price and book per prop, with alternate lines.
marketgame_idplayer

Historical odds

Archived completed games with per-book closing lines and closing player props, every game and player carrying the same Statyx id as the live feeds. MLB and NBA only — the archive does not cover NFL, college football, WNBA or soccer, and sport accepts only mlb or nba.

GET/v1/history/gamesodds:read
Archived completed games, filterable by sport, team, season and date range.
sportteam_idseasonstart_dateend_date
GET/v1/history/games/{gameId}/closing-oddsodds:read
Per-book closing moneyline, spread and total for one archived game.
book
GET/v1/history/games/{gameId}/closing-propsodds:read
Per-book opening and closing player prop lines for one archived game.
player_idprop_typebook

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.

No endpoints matched. Try a sport name, a stat, or terms like hit rate, odds or advanced stats.

Pick an endpoint

Select any endpoint on the left to see the request format and a real response shape.