Why v1.4.0?
This new release expands data access to the following tournaments:
- UEFA Champions League (UCL)
- UEFA Europa League (UEL)
- UEFA Europa Conference League (UECL)
- UEFA Nations League (UNL)
Follow the steps below to upgrade to the latest version.
If the datafc
package is already installed, you can update to the latest version by running the following command in the terminal:
--upgrade datafc pip install
If you haven’t installed datafc
before, use the following command:
pip install datafc
For more details about the package, you can visit its PyPI or GitHub pages.
New Features
The newly introduced tournament_type
and tournament_stage
parameters now allow access to UEFA tournament data. These parameters have been added to the match_data
and past_matches_data
functions, while all other functions remain unchanged.
Available Tournament Data
For the 2024/25 season, the following tournament stages are now accessible:
- For UCL, UEL, and UECL:
- First, second, and third qualification rounds
- Qualification Playoff round
- Matchdays 1 to 8 (up to Matchday 6 for UECL)
- Playoff round
- Round of 16
- Quarter-finals
- Semi-finals
- Final
- For UEFA Nations League (UNL):
- Matchdays 1 to 6
- First qualification round
- Quarter-finals
- Semi-finals
- Third-place match
- Final
Tournament Type
The tournament_type
parameter must be set to “uefa”.
Tournament Stages
For the 2024/25 season, assign week_number
and tournament_stage
as follows:
- For UCL, UEL, and UECL:
- First, second, and third qualification rounds
week_number
: 1, 2 ve 3tournament_stage
: “qualification_round”
- Qualification Playoff round
week_number
: 636tournament_stage
: “qualification_playoff”
- Group stage matchdays (1 to 8, UECL up to Matchday 6)
week_number
: 1, 2, 3, 4, 5, 6, 7 ve 8tournament_stage
: “group_stage_week”
- Playoff round
week_number
: 636tournament_stage
: “playoff_round”
- Round of 16
week_number
: 5tournament_stage
: “round_of_16”
- Quarter-finals
week_number
: 27tournament_stage
: “quarterfinals”
- Semi-finals
week_number
: 28tournament_stage
: “semifinals”
- Final
week_number
: 29tournament_stage
: “final”
- First, second, and third qualification rounds
- For UEFA Nations League (UNL):
- Group stage matchdays (1 to 6)
week_number
: 1, 2, 3, 4, 5 ve 6tournament_stage
: “group_stage_week”
- First qualification round
week_number
: 1tournament_stage
: “qualification_round”
- Quarter-finals
week_number
: 27tournament_stage
: “quarterfinals”
- Semi-finals
week_number
: 28tournament_stage
: “semifinals”
- Third-place match
week_number
: 50tournament_stage
: “match_for_3rd_place”
- Final
week_number
: 29tournament_stage
: “final”
- Group stage matchdays (1 to 6)
Practical Example
Let’s fetch the UEFA Champions League Round of 16 matches for the 2024/25 season:
from datafc.sofascore import match_data
= match_data(
match_df =7,
tournament_id=61644,
season_id=5,
week_number="uefa",
tournament_type="round_of_16"
tournament_stage )
Best regards.