matchprior
Quickstart

Your first model forecast, in three steps.

Create a key, call /v1/predictions, and read the model’s probabilities. Check your sport’s current coverage first. The validation record shows eligible live forecasts and historical backtests as separate cohorts with sample counts and dates.

Get an API key

Choose a paid subscription on the pricing page. Activate the key after verified payment, then keep it on your server. Developer includes ratings and available rationale; Pro adds history and backtests. An illustrative key format is:

mp_live_8f3c2a9d4e7b1f60a5c8e3920d6471bb
Keep the key on your server. All service-data requests require current paid access. Only /v1/health is public. Never embed a live key in client-side or public code.

Make your first call

Request one prediction using your current paid key, authenticating with the X-API-Key header. The same call in cURL, JavaScript and Python:

first-call.sh
# Set MP_KEY in your server environment first.
curl --fail-with-body "https://api.matchprior.com/v1/predictions?limit=1" \
  -H "X-API-Key: $MP_KEY"
first-call.mjs
// Node 18+. Keep MP_KEY in your server environment.
const key = process.env.MP_KEY;
if (!key) throw new Error("Set MP_KEY first");
const response = await fetch(
  "https://api.matchprior.com/v1/predictions?limit=1",
  { headers: { "X-API-Key": key },
    signal: AbortSignal.timeout(30000) }
);
const body = await response.json();
if (!response.ok) {
  const actions = {
    401: "Check your API key",
    403: "Check your plan and sport scope",
    429: "Check /v1/usage and Retry-After",
    503: "Check service status and retry later"
  };
  throw new Error(actions[response.status] || "Request failed: " + response.status);
}
if (!body.data.length) {
  console.log("No predictions in the current window. Check /v1/coverage.");
} else {
  console.log(body.data[0].fixture, body.data[0].probs);
}
first_call.py
# Download matchprior.py from /sdk/; Python 3.8+, no dependencies.
import os
from matchprior import MatchPrior, MatchPriorError

client = MatchPrior(api_key=os.environ["MP_KEY"], timeout=30)
try:
    page = client.predictions(limit=1)
    if page["data"]:
        print(page["data"][0]["fixture"], page["data"][0]["probs"])
    else:
        print("No predictions in the current window. Check coverage.")
except MatchPriorError as error:
    actions = {401: "Check your API key",
               403: "Check your plan and sport scope",
               429: "Check usage and Retry-After",
               503: "Check service status and retry later"}
    raise SystemExit(actions.get(error.status, str(error)))

Read the response

Find a competition before adding its league code. Dates are UTC fixture dates; use the exact returned fixture ID, URL-encoded, for prediction details. The response below is illustrative, not a current fixture.

Every list endpoint returns a { data, page } envelope: data is the array you asked for, page carries the count and a forward page.nextCursor. The extended example below applies to Developer, Pro and Business: it includes full rationale and football score/goal fields. Free returns the core fields.

Lists cover the current fixture window up to 10 days ahead, refreshed every six hours. Check current coverage for supported leagues, current first/last fixture dates, next published fixture, source checks and snapshot status. Calendar metadata can include a confirmed fixture beyond the 10-day prediction window. The coverage reference explains league codes and outcome definitions. Verified NBA/WNBA/NBL/EL, NHL and NFL predictions include a settlement object on all plans; it describes the model target, not a market provider's settlement promise.

200 OK · /v1/predictions 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"
    },
    "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"],
      "expectedGoals": { "home": 1.7, "away": 1.1 }
    }
  }],
  "page": { "count": 1, "nextCursor": null }
}
Field Type What it means
probs { H, D, A } The model's outcome probabilities for home win / draw / away win. They sum to approximately 1. A 0.55 means the model assigns a 55% chance; it does not establish an observed success rate. Review the sport, period and sample in the validation record. Two-way sports omit the draw.
pick "H" | "D" | "A" The single highest-probability outcome. A summary of probs, not a recommendation to stake anything.
confidence number 0–1 The probability attached to pick — i.e. probs[pick].
over25 · btts number 0–1 Developer and above: P(total goals ≥ 3) and P(both teams score). Football-specific derived fields.
likelyScore { home, away } Developer and above: the single most likely correct-score line under the model.
fairOdds { H, D, A } Our own fair decimal odds — the reciprocal of each probability (1 / p). This is MatchPrior's own line, computed from our model, never a resold bookmaker price. The draw is omitted for 2-way (tennis) markets.
contrarian boolean true when the model picks against the market favourite. A flag for where the two disagree, nothing more.
rationale object Developer and above. Elo ratings and the ratingEdge, recent form, head-to-head and expected goals.
page.nextCursor string | null Pass back as ?since= to fetch the next page. null means all available snapshot rows for your filters have been returned.
An honest word on what this is — and tiers & limits. These are model probabilities for information and entertainment only. The public validation record separates eligible live forecasts from historical backtests, with measurement dates, sample counts and exclusions. Historical results do not guarantee future reliability. Every successful data GET to a /v1/* endpoint counts as one request; 304 Not Modified and /v1/health are free, as are /v1/coverage, /v1/usage and account pages. Sign in to your account to check your allowance and manage your plan. The Free tier is 250 req/mo on one sport with no card and no overage — it stops cleanly. Dev ($19/mo) includes all 11 supported model sports, Elo ratings, full rationale and sport-specific projected scores/over-under/BTTS, plus higher volume. Pro ($49/mo) adds backtests, history access and more volume; Business ($99/mo) adds redistribution rights where licensing permits. Paid extra usage requires explicit account opt-in and a spending cap; the default is US$0. The availability commitment never guarantees model accuracy. Full breakdown on the pricing page.
Where to next

Go deeper.

Inspect the validation record

Eligible live and historical cohorts show samples, dates and exclusions. Current ledger diagnostics include a same-cohort uniform baseline. The legacy accuracy series is separate; no bookmaker advantage is established.

Public: GET /v1/quality · Pro+: /v1/backtest

Fixtures & ratings

List upcoming fixtures the model covers, and the Elo leaderboard behind every rating.

GET /v1/fixtures · /v1/ratings

One fixture, plan-specific detail

Fetch by fixture id. Developer and above include full rationale and the sport-specific derived fields on both list and detail routes.

GET /v1/predictions/{fixtureId}

Prefer a client library? Zero-dependency official SDKs: Python · TypeScript · usage.

Model probabilities for information and entertainment only. No accuracy or profit guarantee.

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.

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.