Dataset
Premier League match events with xG, exported to Parquet
Short answer: there is no ready-made Premier League Parquet package today. The data is in the API: every match's events, with shot locations and our expected goals on each located shot. You can page it into a file and convert it to Parquet in a few lines, shown below.
Is there a package?
No, and we would rather say so than send you to a checkout that does not exist. The self-serve data packages on the data packages page cover the NFL, NBA, NHL and college basketball (History, History + Odds and Complete tiers where offered), plus odds-only packs for MLB and college football. Soccer is not in that list yet.
What soccer has is the API, and the API is complete enough that a Parquet export is a small script. The StrikerAPI endpoints cover the Premier League by default, plus MLS, La Liga, Serie A, the Bundesliga, Ligue 1, the Champions League and several others through a league parameter. The examples below use the Premier League.
What the events endpoint returns
The get_events call returns a match's events in order: goals with the assister, own goals and penalties, shots with location, outcome, body part and our xG, cards, substitutions, fouls, corners, offsides and video review decisions. You choose a kind: goals, shots, cards, substitutions, set pieces, fouls, or all.
Two points about the data that matter before you build on it.
First, location. The pitch frame is a share of the pitch, not meters. For x, the distance from the goal line is given as a fraction of half the pitch length, so the penalty spot sits at 0.23, about 11 meters out. For y, 0.5 is the center line across the pitch. Shots also carry where they ended (end_x, end_y), and the response adds a metres block and a distance_m value so you do not have to convert.
Second, xG. It comes from a location model: the league's goal rate for shots from the same distance and angle, header or not, with penalties at the league's conversion rate. It does not see defenders, the pass or the keeper's position. Each shot also has xg_point_in_time, the same model fitted only on earlier seasons and scaled to the competition's earlier matches that season. Use that one for any backtest, so a future season never leaks into the number.
Coverage
Located shots with x, y and xG start in 2012-13 for the Premier League, and that first season is partial. Older matches carry goals, cards and substitutions only. Seasons are named by the year they start, so 2024 is 2024-25. Odds are a separate set of calls, kept as market history: what each sportsbook posted and when, never a recommendation.
Schema
Real fields from a live get_events response. The shot object is present on shot and goal events.
| Field | Meaning |
|---|---|
| seq | Order of the event inside the match |
| minute, added_minute | Match minute, and stoppage minute when there is one |
| period | Half |
| type | Event type, such as shot-off-target, shot-on-target, goal, foul or corner-awarded |
| team_id, team | Club id and abbreviation |
| player_id, player | The player on the event |
| player2_id, player2 | The second player, such as the passer who set up the shot |
| shot.outcome | missed, saved, goal and similar |
| shot.body_part | header, right_foot or left_foot |
| shot.penalty | true for a penalty |
| shot.xg, shot.xg_point_in_time | Our expected goals, and the backtest-safe version |
| shot.zone | Area label, such as penalty_area |
| shot.x, shot.y | Location in the pitch frame described above |
| shot.end_x, shot.end_y | Where the shot ended |
| shot.metres.from_goal_line, shot.metres.from_centre | Location in meters |
| shot.distance_m | Distance to goal in meters |
| is_goal, own_goal, shootout | Flags |
| text | A one-line description of the event |
A real sample
Five shots from match 704649 (Bournemouth 2, Leicester 0, May 25, 2025), from the live API on December 6, 2026.
| minute | team | player | outcome | body_part | x | y | distance_m | xg |
|---|---|---|---|---|---|---|---|---|
| 7 | LEI | Jordan Ayew | missed | header | 0.216 | 0.403 | 12.3 | 0.039 |
| 7 | LEI | Oliver Skipp | missed | right_foot | 0.228 | 0.487 | 10.9 | 0.180 |
| 8 | BOU | Evanilson | missed | left_foot | 0.168 | 0.352 | 12.9 | 0.131 |
| 12 | BOU | Justin Kluivert | missed | right_foot | 0.464 | 0.472 | 22.3 | 0.045 |
| 13 | BOU | David Brooks | saved | left_foot | 0.072 | 0.594 | 7.3 | 0.155 |
Summed over that match's shots, Bournemouth had 19 attempts worth 1.81 xG and Leicester had 3 worth 0.25. A result and a shot count tell you who won. The xG total tells you how the chances were spread.
Fetch events from the API
Set SDHQ_API_KEY from your account. This is the single-match call.
curl -s -X POST https://api.sportsdatahq.com/v1/soccer/get_events \
-H "Content-Type: application/json" -H "x-api-key: $SDHQ_API_KEY" \
-d '{"game_id": "704649", "kind": "shots", "limit": 5}'import json
import os
import urllib.request
payload = {"game_id": "704649", "kind": "shots", "limit": 5}
req = urllib.request.Request(
"https://api.sportsdatahq.com/v1/soccer/get_events",
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json", "x-api-key": os.environ["SDHQ_API_KEY"]},
)
with urllib.request.urlopen(req, timeout=30) as resp:
print("HTTP", resp.status)
for e in json.load(resp)["data"]["events"]:
s = e["shot"]
print(e["minute"], e["team"], e["player"], s["body_part"], s["xg"])Export your own Parquet file
This script lists matches, pages through each match's shots and writes one line of JSON per shot. It needs nothing beyond the Python standard library.
import json
import os
import urllib.request
def post(tool, payload):
req = urllib.request.Request(
f"https://api.sportsdatahq.com/v1/soccer/{tool}",
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json", "x-api-key": os.environ["SDHQ_API_KEY"]},
)
with urllib.request.urlopen(req, timeout=30) as resp:
return resp.status, json.load(resp)["data"]
status, data = post("list_games", {"season": 2024, "limit": 3})
rows = []
for game in data["games"]:
offset = 0
while True:
status, page = post("get_events", {"game_id": game["game_id"], "kind": "shots", "limit": 100, "offset": offset})
for e in page["events"]:
shot = e["shot"] or {}
rows.append({
"game_id": game["game_id"], "minute": e["minute"], "type": e["type"],
"team": e["team"], "player": e["player"], "outcome": shot.get("outcome"),
"body_part": shot.get("body_part"), "x": shot.get("x"), "y": shot.get("y"),
"xg": shot.get("xg"),
})
if page["count"] < 100:
break
offset = page["next_offset"]
with open("shots.ndjson", "w") as f:
for row in rows:
f.write(json.dumps(row) + "\n")Then convert and query with DuckDB:
import duckdb
duckdb.sql("COPY (SELECT * FROM read_json_auto('shots.ndjson')) TO 'shots.parquet' (FORMAT parquet)")
duckdb.sql("""
SELECT team, count(*) AS shots, round(sum(xg), 2) AS xg
FROM read_parquet('shots.parquet')
GROUP BY team
ORDER BY xg DESC
""").show()Or lazily with Polars:
import polars as pl
print(pl.scan_parquet("shots.parquet").group_by("team").agg(pl.col("xg").sum()).collect())Raise limit in list_games to export more matches. Each events call costs 10 credits, so a 380-match season is about 3,800 credits when every match fits one page. The hub plan includes 1,000 free credits a month. StrikerAPI, the soccer brand, has its own docs and 500 free credits.
Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.