API V2 is deprecated. For the latest information on how to use EURO 2024 data please visit this page: https://www.sportmonks.com/blogs/how-to-get-euro-2024-data-with-the-sportmonks-football-api
Welcome to our how-to guide about building a EURO 2024 application with our football data. The EURO 2024 is one of the biggest and most popular football tournaments worldwide. It’s going to be an exciting tournament with top-tier countries like England, Spain, Germany, Portugal, France, and The Netherlands.
Please keep in mind the examples are delivered with the Euro2020 season ID until more is known about Euro 2024
In this how-to guide, we’re going to access the following information:
Full season schedule
(live) Standings
Team squads
Season topscorers
Team jerseys
Please note that you will need to have access to league European Championship (#1326) in order to display and access the data.
Let’s take a look at how you can gather the correct football data and build an EURO 2024 application.
Imagine you want to load the complete schedule of the European Championship and display this in a nice visual. You would need the complete schedule including knockout games which haven't yet been determined when the season starts.
So, how can you display the full season schedule yourself?
Our development team has added a property on both fixture and team responses called is_placeholder
. This property indicates if the resource is used to display dummy data. The false of this property will always be a boolean
value.
The is_placeholder
property will tell you that the data is not final or is used for placeholder purposes. The id of a fixture will remain the same when real data is merged to it.
You can use the season by id endpoint with the includes stages.fixtures.localTeam
and stages.fixtures.visitorTeam
to retrieve all the stages with the fixtures and the two teams involved:
We've added the official match numbers of the European Championship fixtures in the details
field. This also helps you draw a nice visual.
The EURO 2020 group stages and teams are announced. Are you interested in an overview of all the groups? You can best use our standings by season id endpoint for this:
This will return all the group standings with the teams involved. Are you only interested in one group? No problem, you can filter the standings by group_ids
:
You can also filter multiple group ids separated by a comma.
In our EURO 2024 all-in package, you will also have access to live standings.
Now you’ve retrieved the EURO 2024 season schedule and group standings, it might be interesting to display all the squads participating.
The easiest way to request this is to use our teams by season id endpoint with the includesquad.player
Of course, if you want the teams separately you can use the team squad by team and season id endpoint.
We also have all the team jerseys available for the participating teams. You can request them via:
It’s always interesting to see which players are the top, goal, card and assist scorers of a big tournament.
You can use the topscorers by season endpoint: get topscorers by season id.
Using above request will give a basic API response with only ids.
We want the player and team names and not just their player id. We can do this for all three top scorers, which are:
Goalscorers → players who have scored a goal
Assistscorers → players who gave assists
Cardscorers → players who have received yellow or red cards
We then plug the nested includes goalscorers.player and goalscorers.team to the request. So we could for example request everything:
It’s up to you how much data you want to receive. For our example, we are only interested in the goal-scoring top scorers. So we’ll use this URL:
The previous requests will give you all the top scorers of goals, cards and assist per stage. But what if you want the total amount of a season?
We have the aggregated topscorers endpoint for this. Please head over to our tutorial for more information.
You can also build a match and team page with the EURO 2024 data. We cover detailed match, team, player and season statistics. Please visit our how to build a match page with events and statistics for more info.
Do you have any questions? Just contact our team with any questions or concerns.