matchprior
Business football research feed. A separate publication scope, openfootball-research-v1, covers seven listed football competitions. Its retained results currently end on 20 September 2026; later scores are missing and kickoff times are unverified. It supplies limited-history research estimates, not current-form or complete-coverage forecasts. Read the exact scope, limits and paid-access rules.
API Reference · v1

The calibrated probability API, documented honestly.

A versioned, read-only REST API that returns the model's own calibrated win probabilities { H, D, A } with a transparent rationale (Elo, form, H2H, expected goals) across football, tennis, basketball, baseball, hockey and more — plus Elo ratings, a walk-forward backtest, and a live accuracy record.

Read the evidence with its cohort. These are model-derived outputs for information and entertainment only. The paid validation record, explained on the measurement page, is returned by /v1/quality and separates eligible live forecasts from historical backtests. Each sport has its own samples, dates and exclusions. The legacy /v1/accuracy series remains available for compatibility; it is not the qualified live cohort.
Fixture integrity — 27 October 2026. A provider name, RCD Espanyol de Barcelona, was resolving to Barcelona. The name-matching correction is deployed. The confirmed erroneous forecast SP1|2026-10-30|Villarreal|Barcelona is withheld from current responses; its probabilities have not been transferred to Espanyol. The earlier disputed SP1|2026-10-24|Santander|Barcelona is held for review because the original provider payload is unavailable. Original stored records are preserved, and these exact identities are excluded from eligible evaluation and further automatic grading. This narrow correction does not certify other fixture dates or complete league coverage. Inspect the incident metadata in /v1/coverage and service status.
Research timestamps and plan fields. Developer, Pro and Business include football btts, over25 and likelyScore where computed. Recorded provenance.modelVersion and provenance.featureCutoffAt are included in paid forecast responses where recorded. The cutoff is a model/input stamp; sourcePublicationTimesVerified is false, so it does not independently establish upstream availability or absence of look-ahead. Snapshot generatedAt in health/coverage is not each forecast's immutable first-publication time. Preserve these limits in longitudinal analysis.
Base URL
api.matchprior.com/v1
HTTPS only · JSON only
Auth
X-API-Key
Prediction/data routes; only public health needs no key
Machine-readable. Download the OpenAPI 3.1 spec and import it into Postman, Insomnia, or your code generator — typed clients in any language, in seconds.

Authentication

Pass your per-customer key in the X-API-Key request header. It is required on prediction and data endpoints. /v1/health is public. Coverage and every other service-data route require current paid access. Keys are issued from the dashboard; treat them like a password and never ship them in client-side code. All traffic must be HTTPS — plain HTTP is refused.

Your key looks like
mp_live_8Qd2f6Rb1Tn0Yk7Lx3Wp9Vc4Hs2Mg5
authenticated-request.sh cURL
# Prediction requests carry the header; /health is public; /coverage requires current paid access.
curl "https://api.matchprior.com/v1/predictions?sport=football&league=E0" \
  -H "X-API-Key: mp_live_8Qd2f6Rb1Tn0Yk7Lx3Wp9Vc4Hs2Mg5"
A missing or invalid key returns 401 with { "error": "missing or invalid X-API-Key" }. See errors.

Cursor pagination

List endpoints (/history, /predictions, /fixtures, /ratings) return a page envelope: a data array plus a page object. Pagination is forward-only with an opaque cursor — never compute or parse it yourself.

Read the cursor at page.nextCursor, not at the top level. A null cursor means you have read every available prediction in the snapshot for your filters. The current fixture window is up to 10 days ahead and refreshes every six hours.

FieldTypeMeaning
page.count integer Number of items in this page.
page.nextCursor string | null Pass it back as the since query param to fetch the next page. null means you have reached the end.
limit integer Page size, 1–200, default 50.
since string Opaque forward cursor from a prior page.nextCursor. Omit for the first page.
page-1.sh cURL
# First page
curl ".../v1/fixtures?sport=football&limit=50" \
  -H "X-API-Key: mp_live_…"

# → page.nextCursor: "ZjI6MTc4NjAwMDAwMDAwMA"
page-2.sh cURL
# Next page: feed nextCursor back as `since`
curl ".../v1/fixtures?sport=football&limit=50\
&since=ZjI6MTc4NjAwMDAwMDAwMA" \
  -H "X-API-Key: mp_live_…"

Live coverage & settlement

Check the public GET /v1/coverage for supported leagues, current fixture counts and the snapshot timestamp/window. Each row reports status, availableFixtures, first/last fixture dates, nextScheduledFixture, lastResultDate and configured sources. Per-league sourceChecks include source, check time, status and any failed dates; feedHealth is ok, degraded or not_measured when no source check is present. A league can remain operational through a validated independent fallback while failed source checks stay visible. Source details distinguish network acquisition from fresh cache use, retain the original cache time, and report malformed payloads and failed attempts. An empty result or HTTP success alone does not verify coverage completeness. Optional future-tournament discovery records each candidate and its HTTP status. A never-observed future candidate returning 404 is recorded as not yet found; it cannot establish successful acquisition. Once a feed has been observed published, a later 404 remains a source failure. Provider transport health resolves only the exact request that later succeeds or completes its documented fallback; raw failed-attempt counters remain visible. Expected probes without an actual successful HTTP response remain unmeasured. Fresh fixture caches cannot create a transport success timestamp. Zero means no fixtures are published in that snapshot; check the row's status and source information alongside service freshness before interpreting it as a seasonal gap.

Tennis league codes ATP and WTA cover singles fixtures after draws are published and players can be matched to the ratings model. Cricket code CRIC covers men's international ODI/T20I fixtures from the ESPN cricket scoreboard; BBL is the separate Big Bash League schedule. Calendar metadata can report the next published fixture beyond the 10-day prediction window, including a later-season BBL fixture. nextScheduledFixture: null means no next fixture was confirmed in the fetched schedule; it is not a calculated season-start date.

CompetitionOutcome definition
NBA, WNBA, NBL, EuroLeague (EL)Final winner, including overtime.
NHLFinal winner, including overtime and shootout.
NFLTwo-way probabilities conditional on a decisive final result, including overtime. Tied, void and cancelled games are excluded from decisive-result grading, never counted as away wins. No draw probability is estimated.

Predictions for these verified competitions include an additive settlement object on every plan: outcomeBasis, includesOvertime, includesShootout, tieTreatment, cancelledOrAbandoned and marketRules. It is omitted where the outcome basis has not been verified. For paper tracking, record the outcome definition with each prediction. A market provider's own settlement, postponement and void rules remain independent; these model definitions are not a guarantee that a particular moneyline market uses the same rules.

Response fields by plan

The signed-in account workspace reads current capabilities from the service. SDK 1.1.1 includes directly runnable JavaScript and Python, coverage, history, usage, timeouts and error handling. Inspect key-free API examples.

Developer, Pro and Business require current paid access. Developer includes available rationale and secondary model fields; Pro and Business add history and backtests. The separate football research feed requires the applicable paid Business entitlement and returns only its documented source-isolated fields.

Errors & status codes

Errors use standard HTTP status codes and a single-shape JSON body: { "error": "<human-readable message>" }. Always branch on the status code, not the message text.

StatusMeaningExample error
200OK — request succeeded.—
304Not Modified — your If-None-Match ETag still matches; body omitted.—
400Bad request — malformed JSON or invalid fields on account, activation or odds comparison routes. List limits are normalised to 1–200."Invalid JSON."
401Unauthorized — missing or invalid X-API-Key."missing or invalid X-API-Key"
403Plan or sport scope does not permit this request. Check account capabilities."GET /v1/history needs the Pro plan or above"
404Not found — no such fixture / resource."not found"
405 / 408 / 413 / 415Wrong HTTP method, body timeout, oversized body or unsupported content type on a POST route.Check the endpoint's request requirements.
429Rate limited — you exceeded your plan's quota."rate limit exceeded"
503Snapshot unavailable or warming up on data routes; stale or unavailable on health. Check status before retrying."warming up — no snapshot yet"
401 Unauthorized JSON
{ "error": "missing or invalid X-API-Key" }

Endpoint index

Prediction and analytics endpoints. Lead with /accuracy and /backtest — the published Brier-vs-market record is the point.

EndpointAuthReturns
GET /v1/healthpublicService + data freshness.
GET /v1/coveragepaid keyConfigured leagues + current modelled fixture counts.
GET /v1/predictionskeyPaged predictions for upcoming fixtures.
GET /v1/predictions/{id}keyOne prediction; full rationale on Developer and above.
GET /v1/forecast-changeskey; archives Pro+Retained forecast versions for an exact fixture, within sport scope.
POST /v1/odds/comparekeyCompare your own pre-match bookmaker prices with the latest model.
GET /v1/fixtureskeyPaged upcoming fixtures.
GET /v1/ratingskeyElo leaderboard per league.
GET /v1/accuracykeyLegacy cumulative counts and hit rate; optional sport/league scope.
GET /v1/backtestPro+Walk-forward backtest, keyed by sport.
GET /v1/historyPro+Paged original forecasts and published grades.
GET /v1/usagekey, unmeteredCurrent key scope and allowance.
GET /v1/contextAll plans within the key’s sport scope

Query published research statistics separately from predictions: AFL matches/ladders, NFL rosters and weekly player/team statistics, BBL/WBBL/IPL/WPL/CEC cricket summaries, retained tennis results, eight domestic football leagues, men’s/women’s international results and Retrosheet 2025 MLB regular-season game/team summaries (2,430 games; 7,290 context records). The women’s Charlotte Edwards Cup archive (source=cricsheet-cec, league=CEC) covers 124 matches from 2021–2024 and 2,940 match, innings and player-match records. Available datasets depend on successful source publication.

Filter by source, sport, league, domain, gender (male/female/mixed), team, player, from and to. Date filters use effective UTC dates where supplied and omit unknown dates. NFL weekly rows do not supply an exact date. A context competition code does not promise prediction coverage.

Context request — use a key with football scope
curl --get "https://api.matchprior.com/v1/context" \
  --data-urlencode "source=international-results-women" \
  --data-urlencode "from=2026-01-01" \
  --data-urlencode "limit=25" \
  -H "X-API-Key: $MP_KEY"

The response has datasets[].sample, per-dataset scope, source attribution/licences and a page object. Despite the legacy name, sample contains this requested page. Pass page.nextCursor as since; limit defaults to 25 and is capped at 100. Use the same filters throughout. A changed publication returns 409: restart pagination. If an index is unavailable, scope explicitly says preview/sample rather than complete.

Source validation separates bodyObservedAt, lastHttpSuccessAt, lastHttpFailureAt and nextAllowedCheckAt. Status is recent, overdue or unknown at measuredAt, using the source’s minRefreshMs. This records transport and data-format checks, not independent factual verification. Cached reuse never creates a new HTTP success time.

Current Squiggle, nflverse and OpenFootball data is checked at most every six hours; BBL, WBBL, IPL, WPL and international archives at most daily; CEC and Retrosheet weekly. Tennis context reflects retained results and does not establish a fresh upstream check. Updates are periodic, not instant, and source availability can delay them. Confirmed source removals withhold affected rows from current context while preserving earlier revisions. Unexpected large reductions and invalid changes are held for review.

Cricket dates retain the source calendar date, using the first listed date for an overnight match; they are not verified UTC start times. Cricket home and away follow source team order and do not identify the hosting team or home advantage. CEC preserves outcomeMethod, marginRuns and marginWickets where supplied, including three D/L outcomes. Revised targets are not published. A tie and a single-innings no-result match remain explicit; innings totals must not be used to infer settlement. Player summaries cover batting/bowling participation recorded in deliveries, rather than every named squad member.

Rows carry original observation, unknown/known publication and ingestion dates, revision and quality flags. modelUse: false means these additions do not change forecast probabilities or settlement. International-result scores include extra time and exclude shootouts; unverified clocks never become known kickoffs. Successful data requests use the existing request allowance. Read source scope and attribution before using or publishing fields. Context documentation reviewed 3 November 2026.

GET /v1/forecast-changesCurrent matches: all plans within sport scope

See how one fixture's published probabilities, scheduled start, context and model build changed. Pass its exact fixtureId from the predictions response and an optional limit from 1 to 64 (default 50). A successful request uses one request from your existing allowance. Archived fixtures require Pro or Business.

Forecast changes request
curl --get "https://api.matchprior.com/v1/forecast-changes" \
  --data-urlencode "fixtureId=EXACT_ID_FROM_PREDICTIONS" \
  -H "X-API-Key: $MP_KEY"

The chronological data list separates actual recordedAt from publication snapshotAt. Recording starts when this feature is enabled; it does not reconstruct earlier versions. The bounded archive retains up to 30 days and 64 changed versions per fixture. Check truncated, trackingStartedAt and publicationCovered before treating it as complete. Identical refreshes do not create additional versions. Changed-field labels identify differences, not their causes. Original locks and grades remain separate, and a missing fixture does not establish cancellation or a result.

In the account workspace, select Watch beside a match, then open its detail and Load forecast changes. Watchlists, review positions and saved filters stay on this browser for the key identifier; no API key is saved. Opening a watched match and loading its changes each use one request. There is no automatic polling.

GET /v1/historyPro and Business

Inspect original pre-match forecasts and their published grades from the append-only record. Filter by sport, league and inclusive UTC fixture dates using from and to. Pass limit (1–200) and the opaque since cursor to page the same query.

History request
curl "https://api.matchprior.com/v1/history?sport=tennis&from=2026-10-01&to=2026-10-25&limit=20" \
  -H "X-API-Key: $MP_KEY"

Each row includes fixtureId, sport, league, date, home, away, original probabilities, model fair odds, pick, confidence and lockedAt. A published grade adds result.actual, result.hit, result.brier and result.gradedAt. A missing result is unresolved and must not be counted as a loss. The envelope includes data, page and summary; summary covers the filtered graded cohort and is null if no grades exist.

Reuse fixture IDs exactly. Current prediction detail may return 404 after its fixture leaves the snapshot; history preserves the original record. History does not return raw bookmaker prices or per-row market metrics. Use the account workspace to inspect the same authorised data without putting your live key in browser storage.

GET /v1/health No API key required health

Service liveness and data freshness. Public so you can wire it straight into an uptime monitor. Returns 200 when fresh and 503 when the last refresh failed or the snapshot is stale.

Response — 200
200 OK · Health JSON
{
  "ok": true,
  "version": "1.0.0",
  "generatedAt": "2026-06-27T06:00:13Z",
  "ageMs": 5384000,
  "stale": false,
  "refreshMs": 21600000
}
FieldTypeDescription
okbooleanThe current snapshot is within its freshness window.
versionstringAPI build version.
generatedAtstring | nullUTC timestamp of the published snapshot.
ageMsinteger | nullAge of the current snapshot in ms.
stalebooleantrue when the snapshot is past its freshness window.
refreshMsintegerRefresh interval (21600000 ms = 6h).
GET /v1/predictions Requires X-API-Key predictions

A page of the model's current predictions for upcoming fixtures — calibrated probabilities, the pick, confidence and contrarian flag. Developer and above include full rationale and supported derived fields; see response fields by plan.

Query parameters
ParamTypeDescription
sportstringoptionalSport key — football, tennis, basketball, baseball, hockey, americanfootball, afl, rugbyleague, rugbyunion, netball, cricket.
leaguestringoptionalLeague code — e.g. E0, SP1, ATP, NBA, MLB, CRIC.
datestring<date>optionalSingle match day, yyyy-mm-dd.
limitintegeroptionalPage size 1–200. Default 50.
sincestringoptionalForward cursor — see pagination.
request.sh cURL
curl "https://api.matchprior.com/v1/predictions\
?sport=football&league=E0&date=2026-08-15&limit=1" \
  -H "X-API-Key: mp_live_…"
200 OK · PredictionPage JSON
{
  "data": [
    {
      "fixture": {
        "id": "E0|2026-08-15|Arsenal|Chelsea",
        "sport": "football",
        "league": "E0",
        "date": "2026-08-15",
        "time": "17:30",
        "home": "Arsenal",
        "away": "Chelsea",
        "startMs": 1786000000000
      },
      "probs": { "H": 0.55, "D": 0.25, "A": 0.20 },
      "fairOdds": { "H": 1.82, "D": 4.0, "A": 5.0 },
      "pick": "H",
      "confidence": 0.55,
      "over25": 0.54,
      "btts": 0.58,
      "likelyScore": { "home": 2, "away": 1 },
      "contrarian": false,
      "rationale": {
        "homeRating": 1788,
        "awayRating": 1742,
        "ratingEdge": 111,
        "homeForm": [ "W", "W", "D", "L", "W" ],
        "awayForm": [ "D", "W", "W", "L", "D" ],
        "homeGd": 0.8,
        "awayGd": 0.4,
        "h2h": { "played": 6, "homeWins": 3, "draws": 2, "awayWins": 1 },
        "expectedGoals": { "home": 1.7, "away": 1.1 }
      }
    }
  ],
  "page": { "count": 1, "nextCursor": null }
}
fairOdds is our own line, not a betting edge. It is simply the reciprocal of our calibrated probability (1 / p) — the price at which our model would call a pick even money. It is computed from our model, never copied from a bookmaker, and carries no promise of profit or of beating the market. The contrarian flag tells you only that the model's pick differs from the market favourite — a direction, not a price.
GET /v1/predictions/{fixtureId} Requires X-API-Key predictions

The single prediction for one fixture, with the same shape as an item in the list. Returns 404 if the fixture id is unknown or already in the past.

Path parameter
ParamTypeDescription
fixtureIdstringrequiredComposite id of the form {league}|{date}|{home}|{away}, e.g. E0|2026-08-15|Arsenal|Chelsea. URL-encode the pipes (%7C) in path position.
request.sh cURL
curl "https://api.matchprior.com/v1/predictions/\
E0%7C2026-08-15%7CArsenal%7CChelsea" \
  -H "X-API-Key: mp_live_…"
200 OK · Prediction JSON
{
  "fixture": { "id": "E0|2026-08-15|Arsenal|Chelsea", "sport": "football", /* … */ },
  "probs": { "H": 0.55, "D": 0.25, "A": 0.20 },
  "pick": "H",
  "confidence": 0.55,
  "fairOdds": { "H": 1.82, "D": 4.0, "A": 5.0 },
  "contrarian": false,
  "rationale": { "ratingEdge": 111, "expectedGoals": { "home": 1.7, "away": 1.1 } }
}
Selected fields
FieldTypeDescription
probs{ H, D, A }Calibrated outcome probabilities (sum ≈ 1).
pick"H" | "D" | "A"The model's highest-probability outcome.
confidencenumberProbability assigned to the pick (0–1).
over25 / bttsnumberDeveloper and above: P(total goals ≥ 3) and P(both teams score) — football.
fairOdds{ H, D, A }Our own fair decimal odds (1 / probability) — MatchPrior's line, not a resold bookmaker price. Draw omitted for 2-way (tennis) markets.
contrarianbooleanThe model picks against the market favourite.
spread / totalPointsnumberDeveloper and above: team-sport expected home margin and total, where produced by the model.
rationaleobjectDeveloper and above: Elo ratings, ratingEdge, form, goal difference, H2H, expected goals.
POST /v1/odds/compare Requires X-API-Key your bookmaker prices

Submit prices from a source you are permitted to use for this processing. MatchPrior compares them with its latest published probabilities. The API does not fetch a bookmaker feed, save your prices or share them with other customers. The response marks prices as customer_supplied; MatchPrior's existing prediction and fixture routes do not supply bookmaker prices.

Required fieldTypeDescription
fixtureIdstringCopy the exact ID from the current prediction list. Team or player name matching is not inferred.
bookmakerstringName of your quote's bookmaker or source. Customer supplied, not independently verified.
capturedAtUTC date-timeThe actual capture time, ending in Z, with seconds and optional 1–3 fractional digits. Maximum age 15 minutes; at most 60 seconds ahead of the server clock.
marketstringfootball_1x2_regulation or tennis_match_winner, as described below.
oddsobjectNumeric decimal odds greater than 1 and no greater than 10,000. Football requires H, D and A; tennis requires H and A, with D absent. H/A follow the fixture's home/away order.

Send Content-Type: application/json. The body limit is 8 KiB, with a 10-second body timeout. Compressed bodies and extra fields are rejected. A successful comparison uses one request from your existing allowance; invalid or unavailable comparisons do not. Current paid entitlement is required. Keep API keys in server-side code or your local environment.

Market and timing checks

Football compares home win, draw and away win over regulation time, including stoppage time, excluding extra time and penalties. It currently supports league codes E0, SP1, I1, D1, F1, BRA, NOR, SWE, FIN, IRL, E1, N1, P1, B1, E2, E3, SC0, T1 and G1. WC and USA fixtures are excluded. Tennis supports ATP/WTA match winner probabilities for a completed match. Bookmaker retirement, walkover, postponement and void rules still need checking against your quote.

The fixture must have a known future start time and a current prediction. The model snapshot must be no older than two refresh intervals, normally 12 hours. model.basis is latest_snapshot: this is the model available when you request the comparison, not a reconstructed model from the quote's capture time. comparison.quotePredatesModel flags a quote older than that model snapshot.

A quote outside the time window, or an unknown/started fixture time, returns 409. An unsupported market or competition returns 422; unavailable model data returns 503. An inaccessible fixture returns 404, including a fixture outside the key's permitted scope.

quote.json · illustrative prices, replace with your current quoteJSON
{
  "fixtureId": "COPY_AN_EXACT_CURRENT_FOOTBALL_FIXTURE_ID",
  "bookmaker": "Your permitted source",
  "capturedAt": "2026-10-26T10:00:00Z",
  "market": "football_1x2_regulation",
  "odds": { "H": 2.10, "D": 3.40, "A": 3.80 }
}
request.shcURL
curl "https://api.matchprior.com/v1/odds/compare" \
  -H "X-API-Key: $MATCHPRIOR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @quote.json
Response fields
FieldDescription
fixture, market, settlementPublic fixture facts and the comparison's outcome definition. No internal bookmaker feed is exposed.
modelLatest snapshot's basis, generatedAt, ageMs, probs, fairOdds and recorded provenance when available. Model fair odds are 1 / probability, rounded to two decimals.
quoteYour bookmaker name, capture time, age in milliseconds and submitted decimal odds, labelled customer_supplied. timestampVerified is false because the capture time is your declaration, not an independently verified provider update.
comparison.overroundSum of 1 / submitted decimal odds, minus 1. A margin measure for the complete set of submitted outcomes.
comparison.outcomesH/D/A for football or H/A for tennis. Each contains modelProbability, impliedProbability (1 / odds), normalisedImpliedProbability (proportionally normalised to sum to 1), probabilityDifference (model minus normalised implied probability), and expectedReturnPerUnit (model probability × odds − 1).
comparedAtServer UTC comparison time. Quote freshness is based on the capture time you supplied; the API does not verify that prices remain available.

Probability differences and expected returns are decimal fractions: 0.05 means 5 percentage points or a 5% modelled return per unit, respectively. Expected return is a calculation using the model, before commission, tax or other costs; it is not realised performance or a promise of profit.

Keep your own quote history

Download the standard-library Python example (Python 3.9+). Set MATCHPRIOR_API_KEY in your environment, save your quote as JSON and run:

Local comparison and optional private history
python compare_odds.py quote.json --history private-history.jsonl

Omit --history to avoid saving a file. When requested, the example appends your original quote and the returned model comparison to local JSONL without the API key. Choose a private folder and manage its access permissions, especially on Windows. The file stays on your computer. This record is useful for paper tracking; it does not establish execution, the closing price or what the model knew when an earlier quote was captured. The example makes no automatic retries, which avoids silently consuming another request.

GET /v1/fixtures Requires X-API-Key fixtures

A page of upcoming fixtures the model can predict — the bare schedule, without the probability layer. Tennis fixtures additionally carry surface, tournament and round.

Query parameters
ParamTypeDescription
sportstringoptionalSport key (see predictions).
leaguestringoptionalLeague code.
datestring<date>optionalSingle day, yyyy-mm-dd.
limitintegeroptionalPage size 1–200. Default 50.
sincestringoptionalForward cursor.
request.sh cURL
curl "https://api.matchprior.com/v1/fixtures\
?sport=tennis&league=ATP&limit=2" \
  -H "X-API-Key: mp_live_…"
200 OK · FixturePage JSON
{
  "data": [
    {
      "id": "ATP|2026-06-29|Alcaraz|Sinner",
      "sport": "tennis",
      "league": "ATP",
      "date": "2026-06-29",
      "time": "14:00",
      "home": "Alcaraz",
      "away": "Sinner",
      "startMs": 1782655200000,
      "surface": "Grass",
      "tournament": "Wimbledon",
      "round": "F",
      "neutral": true
    }
  ],
  "page": { "count": 1, "nextCursor": "dDoxNzgyNjU1MjAwMDAw" }
}
FieldTypeDescription
idstring{league}|{date}|{home}|{away}.
startMsintegerUTC kick-off epoch in ms.
surfacestringTennis court surface.
neutralbooleantrue = neutral venue (no home-field adjustment).
GET /v1/ratings Requires X-API-Key ratings

The Elo leaderboard for a league, highest rating first — the same ratings that feed every prediction's rationale.

Query parameters
ParamTypeDescription
sportstringoptionalSport key.
leaguestringoptionalLeague code, e.g. E0.
limitintegeroptionalPage size 1–200. Default 50.
request.sh cURL
curl "https://api.matchprior.com/v1/ratings\
?sport=football&league=E0&limit=3" \
  -H "X-API-Key: mp_live_…"
200 OK · ratings JSON
{
  "data": [
    {
      "team": "Manchester City",
      "league": "E0",
      "rating": 1841,
      "games": 38,
      "form": [ "W", "W", "W", "D", "W" ],
      "goalsFor": 89,
      "goalsAgainst": 33,
      "lastPlayed": "2026-05-24"
    },
    { "team": "Arsenal", "rating": 1788, /* … */ },
    { "team": "Liverpool", "rating": 1776, /* … */ }
  ],
  "page": { "count": 3, "nextCursor": null }
}
FieldTypeDescription
teamstringTeam / player name.
ratingnumberCurrent Elo rating.
gamesintegerGames included in the rating.
form("W"|"D"|"L")[]Most-recent-first results, from the team's perspective.
goalsFor / goalsAgainstnumberCumulative goals scored / conceded.
lastPlayedstring | nullDate of the most recent counted game.
GET /v1/accuracy Requires X-API-Key accuracy

The legacy cumulative accuracy record, retained for compatibility. It is separate from the qualified live cohort in /v1/quality. Without query parameters, the endpoint returns its existing mixed-sport record. It is not a complete-league or independently qualified research sample.

Sport and league filters. Pass an exact sport and/or league from /v1/coverage. For example, ?sport=football&league=E0 scopes the cumulative league counts and recent display rows. Unknown, repeated, blank, unsupported or mismatched filters return 400; a key cannot use filters to bypass its paid entitlement. Scoped responses include scope, cohort and explanatory notes.

Scoped graded, correct and hitRate use the existing cumulative league counters. Scoped brier and marketBrier are null: the legacy store has no per-league Brier sums. Global means and the limited recent display sample are not substituted. A known league without grades returns zero counts and a null hit rate. Recent rows are a filtered subset of the globally retained sample, not complete scoped history. Affected recent display rows are withheld, but legacy cumulative totals cannot be reconstructed by fixture and may retain affected historical data. Exact incident exclusions apply to qualified evaluation.

Scoped legacy requestcURL
curl "https://api.matchprior.com/v1/accuracy?sport=football&league=E0" \
  -H "X-API-Key: $MATCHPRIOR_API_KEY"
FieldTypeDescription
gradedintegerSettled fixtures the model was scored on.
correctintegerSettled fixtures the pick got right.
hitRatenumber | nullcorrect / graded; null when a scoped response has no grades.
briernumber | nullLegacy global mean only in the unfiltered response; null for a scoped response.
marketBriernumber | nullLegacy global market score where recorded in the unfiltered response; null for a scoped response.
byLeagueobjectPer-league { graded, correct }.
recentobject[]Retained recent display sample, narrowed to any requested sport/league. It is not complete cohort history; incident rows may be withheld.
Want the full reliability curve and per-bucket calibration? See the calibration page and the /v1/backtest endpoint.
GET /v1/backtest Requires X-API-Key backtest

Out-of-sample, walk-forward backtest reports over ingested history, returned as an object keyed by sport. Includes the reliability curve, calibration error, a home-team baseline, and the market-agree / market-disagree split that shows where the model is least reliable. Pass ?sport= to narrow to one report.

Query parameters
ParamTypeDescription
sportstringoptionalReturn only this sport's report. Omit for all sports.
request.sh cURL
curl "https://api.matchprior.com/v1/backtest\
?sport=football" \
  -H "X-API-Key: mp_live_…"
200 OK · { [sport]: BacktestReport } JSON
{
  "football": {
    "graded": 3120,
    "correct": 1841,
    "hitRate": 0.590,
    "brier": 0.491,
    "marketBrier": 0.453,
    "homeBaselineHitRate": 0.452,
    "calibrationError": 0.029,
    "reliability": [
      { "bucket": "0.4–0.5", "predicted": 0.45, "actual": 0.44, "n": 880 },
      { "bucket": "0.5–0.6", "predicted": 0.55, "actual": 0.56, "n": 1042 },
      { "bucket": "0.6–0.7", "predicted": 0.65, "actual": 0.63, "n": 734 }
    ],
    "byLeague": {
      "E0": { "graded": 760, "correct": 449, "hitRate": 0.591 }
    },
    "marketAgree":    { "n": 2480, "correct": 1602 },
    "marketDisagree": { "n": 640,  "correct": 239 },
    "monthly": [
      { "month": "2026-04", "n": 260, "hitRate": 0.585 }
    ],
    "missBreakdown": { "total": 1279, "draws": 611 }
  }
}
FieldTypeDescription
hitRate / briernumberOut-of-sample hit rate and Brier score.
marketBriernumber | nullMarket Brier over the same set — lower than the model's, as published.
homeBaselineHitRatenumberHit rate of naively always picking the home team — the bar the model must clear.
calibrationErrornumberMean gap between predicted confidence and realised hit rate.
reliabilityobject[]Per-confidence-bucket { predicted, actual, n } — the reliability curve.
marketAgree / marketDisagree{ n, correct }Hit counts split by whether the model agrees with the market favourite. Disagreement is the less reliable bucket.
monthly / bySurfaceobject[] / objectTime- and surface-sliced hit rates.
missBreakdown{ total, draws }How many misses were draws — the hardest outcome to call.
What the backtest is for. It exists to show calibration and honest limits — not returns. In this report the model agrees with the market on 2480 fixtures (hitting 64.6%) but on the 640 it disagrees most, it hits only 37.3%. Backtested performance is simulated and not indicative of future results.

Account and usage

Sign in to your API account using the key from your activation email. Check requests used, remaining allowance and the UTC reset date. Existing subscribers can manage their plan, invoices and payment details through Stripe after verifying their billing email. Plan changes keep the same key and start with the next paid billing cycle.

For your integration, GET /v1/usage accepts your usual X-API-Key header and returns account and usage. Usage includes limit, used, remaining, resetAt and period. It does not consume quota and remains available when your allowance is used.

curl https://api.matchprior.com/v1/usage -H "X-API-Key: YOUR_KEY"

Each key has its own allowance. Use the key linked to your current paid subscription. The monthly counter resets at 00:00 UTC on the first day of the month.

Rate limits

Quotas are per API key and per plan. Exceeding your quota returns 429 with { "error": "rate limit exceeded" }. Because the underlying snapshot only refreshes every 6 hours, responses are cacheable — honour the ETag / If-None-Match headers and you will rarely approach your cap.

HeaderMeaning
X-RateLimit-LimitRequests allowed in the current window.
X-RateLimit-RemainingRequests left in the current window.
X-RateLimit-ResetUnix epoch (seconds) when the window resets.
Retry-AfterSeconds to wait, returned alongside a 429.
Plan quotas and pricing live on the pricing page. The public /v1/health endpoint, public coverage, usage checks and account pages are exempt from per-key limits.

Object glossary

The core shapes shared across endpoints. Generate typed clients from the machine-readable contract at /openapi.yaml.

ObjectShapeUsed by
Probs{ H, D, A: number }predictions, accuracy
Outcome"H" | "D" | "A"predictions, accuracy
Fixture{ id, sport, league, date, home, away, … }fixtures, predictions
Rationale{ ratingEdge, form, h2h, expectedGoals, … }predictions
TeamRating{ team, rating, games, form, … }ratings
PageMeta{ count, nextCursor }all list endpoints
Error{ error: string }all non-2xx responses
Model probabilities and fair odds are MatchPrior's own outputs. The odds comparison route additionally returns the prices you submit, clearly labelled as customer supplied. Calculated expected return depends on those inputs and the model; it does not establish future profit. Nothing on this page is betting, investment or financial advice.

Build a forward-only record.

Use the runnable Python collector to keep the current forecasts you actually observed, with complete pagination and separate snapshot and observation times. Start with the sport your key permits.

Building an app or service? Follow the Business setup guide for the current package, publication scope, efficient collection and account management.

Request pacing and retries

Monthly allowances and short-term request limits are separate. Per API key: Developer at 5/second with a burst of 10; Pro at 5/second with a burst of 15; Business at 10/second with a burst of 20. A shared service limit also applies. These are admission limits, not guaranteed throughput.

HTTP 429 with reason: burst_limit means wait for Retry-After seconds, then retry with backoff and a small random delay. Rejected burst requests do not consume monthly quota. Unchanged 304 responses require current paid access and use burst capacity, but do not use the monthly allowance. Keep keys private, page results and reuse permitted cached responses.

Separate football research API

Paid Business routes: GET /v1/football-research/predictions?league=E1&limit=50&offset=0 and GET /v1/football-research/results?league=E1&from=2026-01-01&limit=50&offset=0. Both use X-API-Key, the existing monthly allowance and burst limits.

The response marker is openfootball-research-v1. Predictions include source-based fixture IDs, raw source team names, dates with unverified kickoff times, H/D/A probabilities, pick, confidence, model/input fingerprints, observation clocks, latest result date and history counts. Results are incomplete retained full-time source facts, not backfilled historical forecasts. Totals, BTTS, images, bookmaker prices and other sports are outside the initial feed.

Use league, date, limit and offset for predictions. Results accept league, from, through, limit and offset. The maximum page is 200 rows. Missing or invalid paid proof returns 401; an ineligible plan returns 403; source unavailability returns 503 with no mixed-feed fallback.

Scope and material limitations · Display and subscription-end terms.

Help shape MatchPrior

A missing field or a clearer example? Tell us what you were trying to do and what would help. Suggestions are optional. We review feedback in our support inbox and reply by email.

Suggest an improvement

Opens your email app so you can review and send. If it does not open, email [email protected] with the subject “MatchPrior feedback - API documentation”. Leave out API keys, passwords, payment details and private customer data. For access, billing or faults, contact support.

Put the data to work

Follow collection, price comparison and evaluation. Read the field-by-field usage and retention guide before publishing or retaining a mixed-source dataset.