API Reference · v1

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.

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

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

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.

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
Games with scores, venue and status.
seasonweekteam
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.
season
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
Next Gen Stats: rushing, passing and receiving efficiency (yards over expected, separation, air yards, time to throw).
stat_typeseasonweek

NBA endpoints

Box scores, tracking & hustle advanced stats, standings and defense-vs-position.

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.
season
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

MLB endpoints

Batting & pitching box scores, season sabermetrics, per-book props and probable lineups.

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.
season
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

Soccer endpoints

Competitions, fixtures, per-match & season stats, xG shot maps, team form and props.

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, match rating.
competition_idseason_num
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

Box & season stats, four-factors advanced splits, shot locations, odds and defense-vs-position.

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.
season
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.
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

Odds board

A cross-sport, normalized best-price board built from every book.

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

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.