Guides
Soccer data, one question at a time
Working Python, JavaScript and cURL for common soccer data questions, each run against the live API with the real response shown.
How do I make a Premier League xG shot map in Python?
Every located shot a club took in a season, with player, outcome, body part, expected goals and pitch coordinates, plus totals by zone.
get_shot_map · 10 credits
How do I build a Premier League expected goals table in pandas?
Per-match goals, expected goals, shots, possession and passing for all 20 clubs, for or against, in one call.
get_team_stats · 5 credits
Where can I get football Elo ratings by club in Python?
Our Elo rating for every club, ranked, as of any date you pass, with the method written out in the response.
get_ratings · 2 credits
Who leads the Premier League in expected goals, and how do I rank players in Python?
A season leaderboard on any stat we compute or ESPN keeps, with expected goals ranked by total or per 90 and a minimum number of appearances.
get_leaders · 5 credits
How do I get Premier League odds from every sportsbook with the results?
A day of matches with each sportsbook's three-way moneyline, goal handicap and total, opening and closing, next to the result.
get_odds · 5 credits