Dataset
Champions League xG and closing lines, match by match
Short answer: for the UEFA Champions League we hold shot-level expected goals and closing lines by book, both through the StrikerAPI. There is no file package for soccer yet, so the API is the way in. xG goes back to 2010 in patches and lines to 2017 in thin form, and a full set of both starts in 2020.
What this is, and what it is not
A Champions League match is short on data by league standards. A club plays eight to ten of them in a good season, against opponents it does not meet in a domestic league. A result tells you little, and a model needs the chances created to say more. That is why pairing xG with the market's closing line is useful here: the line is a summary of what the market thought of the two sides before kickoff, and xG is a summary of what happened on the pitch.
This page describes the two data sets and how to join them. It is not a download page. The data packages page lists soccer as available on request at hello@sportsdatahq.com, so there is no package id, no price to quote and no Dataset markup here. Everything below comes from live API calls on December 6, 2026.
This is market history, not advice. It shows what each book posted and what shots each side took.
What the API returns
Two tools matter. get_events returns the events of one match: kickoff, shots, goals, cards, substitutions, fouls, corners and offsides. Each shot carries a shot object with these fields:
| Field | Meaning |
|---|---|
| outcome, body_part, penalty | How it ended, which foot or head, and whether it was a penalty |
| xg | Our expected goals value for the shot |
| xg_point_in_time | The backtest-safe version, fitted only on earlier data |
| zone | A named area, such as penalty_area |
| x, y, end_x, end_y | Where it was taken and where it ended, on a pitch scaled 0 to 1 |
| distance_m, metres | Distance to goal in metres, and the offsets from the goal line and the centre |
get_odds returns one block per book for a match: the three-way moneyline at open and at close (home_ml_open, draw_ml_close and the rest), a handicap and a total with prices, close_prob with the implied home, draw and away probabilities and the overround, and captured_at. Both calls take league: "ucl". get_events costs 10 credits and get_odds 5 for one match, and list_games costs 2.
The match record carries stage, and the Champions League has stages that a league does not: the league phase, knockout rounds and the final. A shootout is recorded in the score, as shootout, alongside the 90-minute result. For the 2025 final the result is D, since the match ended 1 to 1 before penalties.
Coverage by season
We called the API for one mid-season match in each Champions League season and counted what came back. The count of matches in the season comes from list_games.
| Season | Matches listed | Books with lines | Books with an opening price | Shots with xG in that match |
|---|---|---|---|---|
| 2010 | 213 | 0 | 0 | 6 |
| 2013 | 213 | 0 | 0 | 16 |
| 2016 | 217 | 0 | 0 | 31 |
| 2017 | 219 | 1 | 0 | 19 |
| 2018 | 216 | 2 | 0 | 12 |
| 2019 | 210 | 0 | 0 | none, no events held |
| 2020 | 125 | 13 | 8 | 26 |
| 2021 | 125 | 19 | 8 | 23 |
| 2022 | 125 | 21 | 10 | 21 |
| 2023 | 125 | 21 | 20 | 10 |
| 2024 | 189 | 15 | 14 | 18 |
| 2025 | 189 | 14 | 13 | 27 |
The match counts include qualifying rounds in the early years, which is why 2010 to 2019 list more than 200 matches, and the 2024 jump to 189 reflects the new league phase. The xG column is the count for the one match we sampled, so it varies with the match and does not measure the season. The pattern is the useful part: xG-bearing shots exist for most seasons from 2010 on, with a hole in 2019, while lines are a 2020-and-later story.
A real sample
A 2025-26 semifinal between Bayern Munich and Paris Saint-Germain, May 6, 2026, match 401862895. It ended 1 to 1. Bayern is listed as the home side. In the data the club code for Bayern is MUN, not what you would guess, so look up codes with list_teams before you filter.
The API returned 13 books. These are the closing three-way probabilities from five of them, with book names replaced by codes. They are already adjusted so that home, draw and away sum to 1.
| book | home | draw | away | overround |
|---|---|---|---|---|
| book_1 | 0.579 | 0.181 | 0.240 | 0.030 |
| book_2 | 0.575 | 0.193 | 0.232 | 0.078 |
| book_4 | 0.594 | 0.184 | 0.222 | 0.036 |
| book_9 | 0.603 | 0.179 | 0.217 | 0.023 |
| book_13 | 0.574 | 0.194 | 0.232 | 0.077 |
Across all 13 books the mean fair probability was 0.590 home, 0.184 draw and 0.226 away, and the overround ran from 0.002 to 0.078. One book had no capture time. Its closing line was loaded after the start.
The shots from get_events for the same match: Bayern took 18 shots worth 1.96 xG, and Paris Saint-Germain took 15 worth 1.12. Each side scored once. Paris scored in the 3rd minute from a shot worth 0.21, and Bayern in the 90th from one worth 0.178.
Load it
This runs against the live API. Set STRIKERAPI_API_KEY first. It pulls the match's shots and closing probabilities, writes them to JSON, and has DuckDB aggregate both. We ran it for the match above.
import json
import os
import urllib.request
import duckdb
BASE = "https://mcp.strikerapi.com/v1"
def call(tool, body):
req = urllib.request.Request(
f"{BASE}/{tool}", data=json.dumps(body).encode(),
headers={"Content-Type": "application/json", "x-api-key": os.environ["STRIKERAPI_API_KEY"]},
)
with urllib.request.urlopen(req, timeout=60) as resp:
return json.load(resp)["data"]
GAME = "401862895"
events = call("get_events", {"game_id": GAME, "league": "ucl", "limit": 200})["events"]
shots = [
{"minute": e["minute"], "team": e["team"], "player": e["player"], "is_goal": e["is_goal"],
"xg": e["shot"]["xg"], "xg_pit": e["shot"]["xg_point_in_time"], "distance_m": e["shot"]["distance_m"]}
for e in events if e.get("shot")
]
books = call("get_odds", {"game_id": GAME, "league": "ucl"})["games"][0]["books"]
odds = [
{"book": f"book_{i}", "home": b["close_prob"]["home"], "draw": b["close_prob"]["draw"],
"away": b["close_prob"]["away"], "overround": b["close_prob"]["overround"], "captured_at": b["captured_at"]}
for i, b in enumerate(books, 1)
]
json.dump(shots, open("shots.json", "w"))
json.dump(odds, open("odds.json", "w"))
duckdb.sql("""
SELECT team, count(*) AS shots, sum(is_goal::INT) AS goals,
round(sum(xg), 2) AS xg, round(sum(xg_pit), 2) AS xg_point_in_time
FROM read_json('shots.json') GROUP BY team ORDER BY team
""").show()
duckdb.sql("""
SELECT count(*) AS books, round(avg(home), 3) AS home, round(avg(draw), 3) AS draw, round(avg(away), 3) AS away,
min(overround) AS min_overround, max(overround) AS max_overround,
count(*) FILTER (WHERE captured_at IS NULL) AS no_capture_time
FROM read_json('odds.json')
""").show()For a season, loop over list_games with league: "ucl", season and limit: 200, which is the cap, paging with offset. Save each match's shots to a Parquet file with COPY ... TO 'shots.parquet' and you have a table you can scan lazily.
Worked example: chances against the market
For the match above, the market's mean fair probabilities favored Bayern, at 0.590 for a home win. The shot data agrees with the direction: Bayern's 1.96 xG against Paris's 1.12 puts about 64 percent of the total xG on the home side. The match ended level, with each side scoring once from a shot worth less than a quarter of a goal.
That is one match, and it settles nothing. A single result is a draw from a wide distribution, and goals from 0.2 xG shots are exactly the kind of events a location model says are rare. What you can do with it at scale is check a pattern across hundreds of matches: whether the market's probability and the xG share move together, and where they diverge. The point of the example is the join. Both calls take the same game_id, so a match is one key across the two data sets.
The share of xG is a simple ratio, 1.96 divided by 3.08. It uses the plain xg field. If you are testing a model against past matches, use xg_point_in_time, which is 1.89 and 1.02 here, so that a later season's fit never leaks into an earlier match.
What we saw in a 25-match spot check
We took every 7th final match of 2025, 25 matches, and called both tools on each.
| Measure | Value |
|---|---|
| Matches with 14 books | 10 |
| Matches with 13 books | 14 |
| Matches with 12 books | 1 |
| Book rows in total | 334 |
| Rows with an opening moneyline | 308 |
| Rows with no capture time | 39 |
| Matches with xG-bearing shots | 25 |
| Overround, lowest to highest | -0.002 to 0.098 |
| Overround, mean | 0.042 |
One overround is negative, at -0.002. That is a book whose three prices imply less than 100 percent, which a real market should not hold for long, and it is probably a stale or mismatched price. Filter overrounds below zero before you average them.
What the columns mean in practice
- `close_prob` is fair, the moneyline is not. The probabilities are adjusted so home, draw and away sum to 1. The moneyline fields are the posted prices, with the margin in them.
- A null `captured_at` marks a closing line. It means the book's final pregame line was loaded after the start. Use it as the close, never as a price at a minute.
- The total can be a quarter line. A total of 4.5 in one book and 4 in another is not the same bet. Compare totals only after you check the step.
- `xg` is a location model. It knows where a shot was taken and from what part of the body. It does not see defenders, the pass or the keeper.
- Use `xg_point_in_time` for backtests. The plain value can be fitted on later seasons.
- Shots are not all events.
get_eventsreturns fouls, corners and substitutions too. Keep rows with ashotobject. - Stage matters. A knockout second leg is played with the first leg's score in mind, and a league-phase match is not. Add
stageas a feature, or split on it. - Shootouts sit outside the result. The
resultfield is the 90-minute outcome, so a final settled on penalties still reads D.
Reading the rows
Keep one rule for the close: the *_close fields from one book's block, and close_prob for the fair version. Count matches, not rows, because every match has many books. Join events to lines on game_id, and use starts_at in UTC for dates, since late kickoffs fall on the next calendar day in some time zones. Team codes are club codes, and they do not always spell the name, as Bayern's MUN shows.
When not to use this
- You want a downloadable file. There is no Champions League package; email hello@sportsdatahq.com to ask for soccer.
- You want lines before 2020. Coverage is thin to absent, and absent for most of 2010 to 2016.
- You need xG that sees the keeper and the defenders. This model is a location model by design.
- You need live lines. Odds are pregame only.
- You want player markets. The Champions League has shots, shots on target, assists and anytime goalscorer prices through
get_player_props, which is a different call from this page. - You want to resell the data. The licence allows internal and commercial use and publishing your own derived statistics, not redistribution of the raw data.
- You want advice. These are historical prices and a shot model.
Who uses this
People who model club soccer across competitions want a Champions League sample that is clean on both sides: what each team created and what the market expected. Others use the closing line as a baseline to test a rating model, or study how overround differs between a domestic league and a European night. These jobs read a season of matches at a time, and 500 free credits cover about thirty matches of both calls, so a full season needs a paid plan or patience.
Try it free
Test the StrikerAPI free, or email hello@sportsdatahq.com if you want soccer as a data package.
Live from the API
Free to embed on your own site, with no key needed. Get the embed code.
Get a free key Or download whole seasons as Parquet
Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.