Football predictions in Python
Pull win probabilities for upcoming and live matches in a few lines of Python, see where each number came from, and check the track record before you build on it.
Reviewed 2026-10-14
1. Get an API key
Start a 14-day trial at /register (card required, nothing charged until it ends), then copy your key from the dashboard. Keep it in an environment variable, not in your source code.
2. Predictions for live and upcoming matches
One call returns predictions for matches in play and about to start, with live momentum for matches in play. The response is {"count": ..., "results": [...]}, with one object per match.
import os
import requests
API = "https://api.predictiqpro.com"
HEADERS = {"Authorization": f"Token {os.environ['PREDICTIQ_KEY']}"}
r = requests.get(f"{API}/predictions/live", headers=HEADERS, timeout=15)
r.raise_for_status() # a missing or invalid key is refused here
data = r.json()
print(data["count"], "matches")3. Read the probabilities and where they came from
Each match has a probability for home, draw and away (prob_home, prob_draw, prob_away). Where bookmaker odds exist, the probability is the margin-free consensus across bookmakers; otherwise it comes from a statistical model. The basis field tells you which (market_consensus or statistical_model), and the model's own numbers are kept as model_prob_home, model_prob_draw and model_prob_away. Show the basis next to the number in your app: people trust a probability more when they can see where it came from.
for m in data["results"][:5]:
print(
m["fixture_id"], m["home_team"], "vs", m["away_team"],
"| basis:", m.get("basis"),
"| H/D/A:", m.get("prob_home"), m.get("prob_draw"), m.get("prob_away"),
)4. Full prediction for one match
Use a fixture id (the fixture_id from the previous step, or the id from /fixtures/) to get the full prediction for that match.
FIXTURE_ID = 123456 # replace with a real fixture id
r = requests.get(f"{API}/predictions/{FIXTURE_ID}", headers=HEADERS, timeout=15)
r.raise_for_status()
print(r.json())5. Compare against the bookmaker odds yourself
To see how a probability relates to the market, convert odds to implied probability (1 divided by the decimal odds) and remove the margin by dividing by the total. You can try this with the free odds calculator at /odds-calculator. The /odds/{fixture_id} endpoint (Developer plan) returns the margin-free consensus already calculated, so you can compare it with your own numbers.
odds = {"home": 2.10, "draw": 3.40, "away": 3.60} # example prices
raw = {k: 1 / v for k, v in odds.items()}
total = sum(raw.values())
fair = {k: round(v / total, 3) for k, v in raw.items()}
print(fair) # margin-free probabilities6. Check how accurate the numbers are
The accuracy report is public and needs no key, so you can check the track record before you build on it. It is also on the website at /accuracy. Predictions are probabilities, not guarantees.
r = requests.get(f"{API}/status/accuracy", timeout=15)
print(r.json())Related guides
Ready to build?
Full endpoint reference is in the docs; plans are on the pricing page.
Start 14-day trial