Predixsport Performance API
The performance API from Predixsport — 1 operation(s) for performance.
The performance API from Predixsport — 1 operation(s) for performance.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/predixsport-com:predixsport-com-performance-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: predixsport-api Performance API
description: 'Public REST API for Predixsport AI sports prediction models. Probabilistic predictions and ratings for NBA, EuroLeague, football, ATP and WTA tennis, and the UEFA Champions League, powered by calibrated neural network and Poisson/Negative-Binomial regression models. EuroLeague adds per-player PIR projections and full calibrated spread/total distributions.
**Authentication**: pass `Authorization: Bearer psk_` on every request. Mint a key at https://predixsport.com/api-access.
**Rate limit**: free tier is **200 requests per calendar month** per user (shared across all your active keys). On exceeded quota the API returns `429 Too Many Requests` with `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix ts) and `X-RateLimit-Reset-Date` (YYYY-MM-DD) headers. Need more? See plans at https://predixsport.com/pricing.'
version: 0.2.0
tags:
- name: Performance
paths:
/v1/performance/{sport}:
get:
tags:
- Performance
summary: Aggregate model performance for a sport
description: 'Returns headline metrics for the requested sport''s match model. The ``source`` parameter is mutually exclusive — never a union, so a dashboard can never double-count the same match across two regimes:
• ``production`` — predictions that existed in our database BEFORE kick-off, graded afterwards: the as-published record, one season at a time (``season``, default the current one). The figures are the ones the website''s accuracy page and /performance hub show for that season, read from the same tables. The default, and the only source for nba, euroleague, football, tennis and wta.
• ``backtest`` — a chronological out-of-sample holdout of the deployed model, graded after the fact. Published for ``champions`` only, because that module has no as-published record yet. It is a weaker claim than ``production`` and is labelled as such in the response''s own ``source`` field.
• ``test`` (Phase 3.1) — the held-out test set of the currently deployed model. Not yet exposed.
**Read the response''s ``source`` field, never the request.** A sport that has no record under the requested source answers 404 with an explanation; it never substitutes another regime''s numbers.'
operationId: performance_for_sport_v1_performance__sport__get
parameters:
- name: sport
in: path
required: true
schema:
$ref: '#/components/schemas/SportEnum'
- name: source
in: query
required: false
schema:
enum:
- production
- test
- backtest
type: string
description: 'Mutually exclusive performance source. Defaults to production for every sport — champions has no production record yet and answers 404 there, pointing at ?source=backtest. The default is deliberately NOT switched per sport: a default that silently changes regime is how a backtest ends up labelled production.'
default: production
title: Source
description: 'Mutually exclusive performance source. Defaults to production for every sport — champions has no production record yet and answers 404 there, pointing at ?source=backtest. The default is deliberately NOT switched per sport: a default that silently changes regime is how a backtest ends up labelled production.'
- name: league
in: query
required: false
schema:
anyOf:
- $ref: '#/components/schemas/FootballLeagueEnum'
- type: 'null'
description: Football only — narrow to one league. Omit for cross-league aggregate.
title: League
description: Football only — narrow to one league. Omit for cross-league aggregate.
- name: season
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 10
- type: 'null'
description: 'Season in the sport''s own format: nba ''2026'' (= 2025-26), euroleague ''E2025'', tennis/wta ''2025'', football ''2025_2026''. Omit for the current season. Ignored for champions, whose backtest record carries its own per-season breakdown.'
title: Season
description: 'Season in the sport''s own format: nba ''2026'' (= 2025-26), euroleague ''E2025'', tennis/wta ''2025'', football ''2025_2026''. Omit for the current season. Ignored for champions, whose backtest record carries its own per-season breakdown.'
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/NBAPerformance'
- $ref: '#/components/schemas/EuroLeaguePerformance'
- $ref: '#/components/schemas/FootballPerformance'
- $ref: '#/components/schemas/TennisPerformance'
- $ref: '#/components/schemas/WTAPerformance'
- $ref: '#/components/schemas/ChampionsPerformance'
title: Response Performance For Sport V1 Performance Sport Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
WTAPerformance:
properties:
sport:
type: string
enum:
- wta
const: wta
title: Sport
default: wta
source:
type: string
enum:
- production
- test
title: Source
season:
anyOf:
- type: string
- type: 'null'
title: Season
description: Season the figures describe, in the sport's own format (nba '2027' = 2026-27, euroleague 'E2026', tennis/wta '2026', football '2026_2027'). Defaults to the current season, the one the website's accuracy page and /performance hub show.
sample_size:
type: integer
minimum: 0.0
title: Sample Size
description: Completed matches published before they started, in the season.
date_range:
$ref: '#/components/schemas/DateRange'
winner_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Winner Accuracy
description: Fraction of matches where the winner classifier picked the correct player.
total_games_mae:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Total Games Mae
description: Mean absolute error of the Poisson total-games regressor vs the observed game count.
type: object
required:
- source
- sample_size
- date_range
title: WTAPerformance
description: WTA (women's tennis) — same headline metrics as ATP tennis.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SeasonPerformance:
properties:
season:
type: string
title: Season
description: UEFA seasonYear — the season ENDING year. '2026' is the 2025-26 campaign.
n_matches:
type: integer
minimum: 0.0
title: N Matches
accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Accuracy
logloss:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Logloss
brier:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Brier
rps:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Rps
type: object
required:
- season
- n_matches
title: SeasonPerformance
description: One season's slice of a per-season performance record.
NBAPerformance:
properties:
sport:
type: string
enum:
- nba
const: nba
title: Sport
default: nba
source:
type: string
enum:
- production
- test
title: Source
season:
anyOf:
- type: string
- type: 'null'
title: Season
description: Season the figures describe, in the sport's own format (nba '2027' = 2026-27, euroleague 'E2026', tennis/wta '2026', football '2026_2027'). Defaults to the current season, the one the website's accuracy page and /performance hub show.
sample_size:
type: integer
minimum: 0.0
title: Sample Size
description: Completed matches published before they started, in the season.
date_range:
$ref: '#/components/schemas/DateRange'
winner_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Winner Accuracy
description: Fraction of matches where the winner classifier picked the correct side.
point_diff_mae:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Point Diff Mae
description: Mean absolute error of (predicted_point_diff − actual_point_diff).
total_points_mae:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Total Points Mae
description: Mean absolute error of (predicted_total_points − actual_total_points). Null when migration 007 columns not yet populated.
type: object
required:
- source
- sample_size
- date_range
title: NBAPerformance
TennisPerformance:
properties:
sport:
type: string
enum:
- tennis
const: tennis
title: Sport
default: tennis
source:
type: string
enum:
- production
- test
title: Source
season:
anyOf:
- type: string
- type: 'null'
title: Season
description: Season the figures describe, in the sport's own format (nba '2027' = 2026-27, euroleague 'E2026', tennis/wta '2026', football '2026_2027'). Defaults to the current season, the one the website's accuracy page and /performance hub show.
sample_size:
type: integer
minimum: 0.0
title: Sample Size
description: Completed matches published before they started, in the season.
date_range:
$ref: '#/components/schemas/DateRange'
winner_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Winner Accuracy
description: Fraction of matches where the winner classifier picked the correct player.
total_games_mae:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Total Games Mae
description: Mean absolute error of the Poisson total-games regressor vs the observed game count.
type: object
required:
- source
- sample_size
- date_range
title: TennisPerformance
ChampionsPerformance:
properties:
sport:
type: string
enum:
- champions
const: champions
title: Sport
default: champions
source:
type: string
enum:
- backtest
- production
title: Source
slice_name:
type: string
title: Slice Name
description: Evaluated slice. 'ucl_tournament' = Champions League proper, qualifying rounds excluded.
default: ucl_tournament
sample_size:
type: integer
minimum: 0.0
title: Sample Size
description: Number of completed matches graded.
date_range:
$ref: '#/components/schemas/DateRange'
seasons:
items:
$ref: '#/components/schemas/SeasonPerformance'
type: array
title: Seasons
description: Per-season breakdown. The pooled metrics above are the n-weighted recombination of these rows — never a second, independently stored total.
three_way_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Three Way Accuracy
description: Share of matches whose highest 1X2 probability was the outcome.
logloss:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Logloss
description: Mean -log p(outcome). Lower is better.
brier:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Brier
description: MULTICLASS sum-of-squares Brier over (home, draw, away) — the 0-2 scale, averaged over matches. NOT the 0-1 binary Brier the basketball endpoints report; do not plot them on one axis.
rps:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Rps
description: Ranked Probability Score over the ordered (home, draw, away) triple, the standard football 1X2 proper score. Lower is better.
ece_home:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Ece Home
description: Expected calibration error of P(home win) over 10 equal-width bins, pooled over the WHOLE sample. Read from the same calibration payload /v1/calibration/champions/champions_three_way_result serves — ECE is a bin-weighted absolute error and does not pool by averaging the per-season values, so the per-season ``ece_home`` figures are deliberately not recombined into this field.
model_note:
anyOf:
- type: string
- type: 'null'
title: Model Note
description: Provenance of the model vintage that produced these probabilities. Refits are manual in this module, so this is the only trace linking a published number to a reviewed model.
coverage_note:
anyOf:
- type: string
- type: 'null'
title: Coverage Note
description: Plain-language statement of what this record is and is not.
type: object
required:
- source
- sample_size
- date_range
title: ChampionsPerformance
description: 'UEFA Champions League 1X2 match-model record.
``source`` is authoritative and, today, is always ``backtest``. Read the
field, not the endpoint: these matches were graded AFTER they were played,
by a model refit on seasons through 2021 under a frozen protocol. That is
genuinely out-of-sample, and it is still not the same claim as "published
before kick-off". No champions prediction existed in our database before
these matches started, so ``?source=production`` answers 404 rather than
relabelling this record.'
DateRange:
properties:
earliest:
anyOf:
- type: string
format: date
- type: 'null'
title: Earliest
description: Earliest match date in the aggregated sample.
latest:
anyOf:
- type: string
format: date
- type: 'null'
title: Latest
description: Latest match date in the aggregated sample.
type: object
title: DateRange
FootballLeagueEnum:
type: string
enum:
- serie_a
- premier_league
- la_liga
- bundesliga
- ligue_1
- championship
- league_one
- league_two
- segunda_division
- ligue_2
- bundesliga_2
- serie_b
title: FootballLeagueEnum
FootballPerformance:
properties:
sport:
type: string
enum:
- football
const: football
title: Sport
default: football
source:
type: string
enum:
- production
- test
title: Source
season:
anyOf:
- type: string
- type: 'null'
title: Season
description: Season the figures describe, in the sport's own format (nba '2027' = 2026-27, euroleague 'E2026', tennis/wta '2026', football '2026_2027'). Defaults to the current season, the one the website's accuracy page and /performance hub show.
league:
anyOf:
- type: string
- type: 'null'
title: League
description: Customer-facing league code (e.g. 'serie_a') when the query narrowed to a single league; null for the cross-league aggregate.
leagues_included:
items:
type: string
type: array
title: Leagues Included
description: Leagues whose as-published record for the season is in the figures. A league-season graded only after the fact (2024_2025 top flights, 2025_2026 second divisions) has no production record and is left out, never substituted.
sample_size:
type: integer
minimum: 0.0
title: Sample Size
description: Completed matches published before they started, in the season.
date_range:
$ref: '#/components/schemas/DateRange'
three_way_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Three Way Accuracy
description: Accuracy of the home/draw/away (1X2) classifier.
over_under_2_5_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Over Under 2 5 Accuracy
description: Accuracy of the over/under 2.5 goals classifier.
btts_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Btts Accuracy
description: Accuracy of the both-teams-to-score classifier.
type: object
required:
- source
- sample_size
- date_range
title: FootballPerformance
EuroLeaguePerformance:
properties:
sport:
type: string
enum:
- euroleague
const: euroleague
title: Sport
default: euroleague
source:
type: string
enum:
- production
- test
title: Source
season:
anyOf:
- type: string
- type: 'null'
title: Season
description: Season the figures describe, in the sport's own format (nba '2027' = 2026-27, euroleague 'E2026', tennis/wta '2026', football '2026_2027'). Defaults to the current season, the one the website's accuracy page and /performance hub show.
sample_size:
type: integer
minimum: 0.0
title: Sample Size
description: Completed games published before tip-off, in the season.
date_range:
$ref: '#/components/schemas/DateRange'
winner_accuracy:
anyOf:
- type: number
maximum: 1.0
minimum: 0.0
- type: 'null'
title: Winner Accuracy
description: Fraction of games where the winner classifier picked the correct side.
point_diff_mae:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Point Diff Mae
description: Mean absolute error of (predicted_point_diff − actual_point_diff).
total_points_mae:
anyOf:
- type: number
minimum: 0.0
- type: 'null'
title: Total Points Mae
description: Mean absolute error of (predicted_total_points − actual_total_points).
type: object
required:
- source
- sample_size
- date_range
title: EuroLeaguePerformance
SportEnum:
type: string
enum:
- nba
- euroleague
- football
- tennis
- wta
- champions
title: SportEnum