World Cup 2022 Qatar
Good to have you here. The World Cup is the biggest sports events around the globe, so let's not waste a second and start building your dream application.
How to build your World Cup 2022 application with Sportmonks’ Football Data
Welcome to our how-to guide about building a World Cup 2022 application with our football data. The World Cup 2022 is the biggest and most popular football tournaments worldwide. It’s going to be an exciting tournament with top-tier countries like Brazil, Spain, Germany, Argentina, France, and England.
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 World Cup (#732) 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 World Cup 2022 Qatar application.
Season schedule
Imagine you want to load the complete schedule of the World Cup 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 GET Schedule by Season ID endpoint with the includes to retrieve all the stages with the fixtures and the teams involved:
Season standings
The World Cup 2022 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:
In our World Cup 2022 all-in package, you will also have access to live standings.
Team squads and jerseys
Now you’ve retrieved the World Cup 2022 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 GET Team by Season ID.
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 API 2.0 for now:
Topscorers
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 the 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
So how do we know which topscorer belongs to which type? We use the include type. So we could for example request everything:
The previous requests will give you all the top scorers of goals, cards and assist.
You can also build a match and team page with the World Cup 2022 data. We cover detailed match, team, player, and season statistics.
Do you have any questions? Just contact our team with any questions or concerns.
Last updated