{"openapi":"3.1.0","info":{"title":"uanalyse football model API","version":"1","description":"Pre-match probabilities from the uanalyse football model: 1X2, goal and other totals, both teams to score and more, for over 100 competitions. Free tier: 100 calls per day per IP, of which 10 may be full match details (/matches/{id}). Probabilities are model estimates, not betting advice.","contact":{"url":"https://uanalyse.co.uk/contact"}},"servers":[{"url":"https://uanalyse.co.uk/api/v1"}],"paths":{"/fixtures":{"get":{"operationId":"listFixtures","summary":"Fixtures on a date with the model's 1X2 probabilities","parameters":[{"name":"date","in":"query","schema":{"type":"string","format":"date"},"description":"YYYY-MM-DD (UTC), within 7 days of today. Defaults to today."},{"name":"competition","in":"query","schema":{"type":"string"},"description":"Competition slug, e.g. english-premier-league, uefa-champions-league."}],"responses":{"200":{"description":"Fixtures","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"},"count":{"type":"integer"},"fixtures":{"type":"array","items":{"type":"object","properties":{"match_id":{"type":"string","description":"Opaque, stable id, e.g. m_3kJ9..."},"kickoff_utc":{"type":"string"},"competition":{"type":"string"},"competition_slug":{"type":"string"},"home_team":{"type":"string"},"away_team":{"type":"string"},"status":{"type":"string","enum":["scheduled","live","finished"]},"score":{"type":["object","null"],"properties":{"home":{"type":"integer"},"away":{"type":"integer"}}},"probabilities":{"oneOf":[{"type":"object","properties":{"home":{"type":"number","minimum":0,"maximum":1},"draw":{"type":"number","minimum":0,"maximum":1},"away":{"type":"number","minimum":0,"maximum":1}},"required":["home","draw","away"]},{"type":"null"}]},"probabilities_generated_at":{"type":["string","null"]},"url":{"type":"string"}}}}}}}}},"400":{"description":"Invalid date"},"429":{"description":"Free tier limit reached"}}}},"/matches/search":{"get":{"operationId":"searchMatches","summary":"Find fixtures by team names, optionally on one date","description":"Short forms work: 'man city' finds Manchester City. Without a date, searches today and the next 7 days.","parameters":[{"name":"team","in":"query","required":true,"schema":{"type":"string"},"description":"Team name, e.g. Arsenal"},{"name":"opponent","in":"query","schema":{"type":"string"},"description":"The other team, either side"},{"name":"date","in":"query","schema":{"type":"string","format":"date"},"description":"YYYY-MM-DD (UTC), within 7 days of today"}],"responses":{"200":{"description":"Matching fixtures, same shape as /fixtures items (max 20)"},"400":{"description":"Missing team or invalid date"},"429":{"description":"Free tier limit reached"}}}},"/matches/{id}":{"get":{"operationId":"getMatchProbabilities","summary":"All pre-match probabilities for one fixture","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^m_[A-Za-z0-9_-]{22}$"},"description":"match_id from /fixtures or /matches/search"}],"responses":{"200":{"description":"Probabilities","content":{"application/json":{"schema":{"type":"object","properties":{"match_id":{"type":"string"},"kickoff_utc":{"type":["string","null"]},"url":{"type":"string"},"probabilities":{"type":"object","properties":{"outcome":{"type":"object","properties":{"home":{"type":"number","minimum":0,"maximum":1},"draw":{"type":"number","minimum":0,"maximum":1},"away":{"type":"number","minimum":0,"maximum":1}},"required":["home","draw","away"]},"markets":{"type":"object","description":"both_teams_to_score, goalless_draw, home_team_to_score, away_team_to_score, home_team_scores_first, away_team_scores_first","additionalProperties":{"type":"number","minimum":0,"maximum":1}},"totals":{"type":"object","description":"Keyed by stat (goals, corners, shots, shots_on_target, fouls, offsides, yellow_cards, red_cards).","additionalProperties":{"type":"object","properties":{"distribution":{"type":"array","items":{"type":"object","properties":{"value":{"type":"integer"},"probability":{"type":"number","minimum":0,"maximum":1}}}},"below_range":{"type":"number","minimum":0,"maximum":1},"above_range":{"type":"number","minimum":0,"maximum":1},"lines":{"type":"object","description":"Keyed by line, e.g. \"2.5\"","additionalProperties":{"type":"object","properties":{"over":{"type":"number","minimum":0,"maximum":1},"under":{"type":"number","minimum":0,"maximum":1}}}}}}}}}}}}}},"404":{"description":"Unknown id, or no pre-match probabilities for it"},"429":{"description":"Free tier limit reached"}}}}}}