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 keep, with expected goals ranked by total or per 90 and a minimum number of appearances.
Code verified November 18, 2026. One call to get_leaders, 5 credits.
The call
Change stat to goals, assists, shots, cards or saves. Add per90: true to rank by the rate.
import requests
import pandas as pd
API_KEY = "YOUR_API_KEY"
resp = requests.post(
"https://mcp.strikerapi.com/v1/get_leaders",
headers={"x-api-key": API_KEY},
json={
"stat": "xg",
"season": 2025,
"min_games": 20,
"limit": 15,
},
timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]
leaders = pd.DataFrame(data["leaders"])
print(data["label"])
print(leaders[["rank", "name", "team", "games", "minutes", "value"]])
Replace YOUR_API_KEY with a key from your dashboard. Python needs requests and pandas (pip install requests pandas). JavaScript runs on Node 18 or newer, or in the browser.
Or use the official client: pip install strikerapi
What comes back
The data object of the response, trimmed to the first rows. Every field is real output from the run above.
{
"stat": "xg",
"label": "Expected goals (ours)",
"season": 2025,
"min_games": 20,
"leaders": [
{
"rank": 1,
"player_id": "253989",
"name": "Erling Haaland",
"position": "Forward",
"team": "MNC",
"games": 35,
"minutes": 2959,
"value": 23.12,
"per90": 0.7
},
{
"rank": 2,
"player_id": "301894",
"name": "Igor Thiago",
"position": "Center Right Forward",
"team": "BRE",
"games": 38,
"minutes": 3287,
"value": 19.1,
"per90": 0.52
},
"...13 more"
],
"count": 15,
"note": "xG covers located shots (from 2012-13; MLS 2008-09 and from 2012)."
}What to do next
- get_shot_map (10 credits). Pass a player id to see where that player's shots came from.
- get_player (5 credits). A player's per-season totals and per-90 rates.
The data this uses
Every row above comes from Premier League shot location and xG data. The location, end point, outcome and body part of every Premier League shot charted since 2012-13, with our expected goals. REST or MCP.
More guides
The same guide for other sports
- PuckAPI: How do I rank NHL goalies by goals saved above expected?
- FighterAPI: Who lands the most significant strikes per 15 minutes in the UFC?
- BirdieAPI: How do I get a golf tournament leaderboard in Python?
- FastballAPI: How do I get MLB home run leaders and stat leaders in Python?
- YorkerAPI: How do I get cricket leaderboards in Python?
Rather ask Claude? 19 free Claude skills call these endpoints for you.
Start with 500 free credits every month
No card. REST or MCP.