You are going to need the following tools:
Sportmonks API token
Code editor (Visual studio used in examples)
Postman (optional)
You can find a link to another article where we discuss the tools in-depth on our Developer Tools Guide.
What league and specifically what season interests you? For this guide, we’ll go with the 20/21 season of the Scottish Premiership (league id: 501, season id: 17141).
For seasonal standings, we simply have the endpoint: get standings by season id.
You only need to parse a season id. Simple and straightforward, just the way we like it.
We can see that the Rangers are in first place with 11 games played, nine won and two draws, and their number of accumulated points is 29. They are followed by 2nd place Celtic, with ten games played, 8 won, one draw and one loss, and 25 points. There is a lot more information regarding their standings that you can opt to use for your application.
Need standings based on a group? In our leagues & topscorers standings tutorial, we discuss all the possibilities.
Nothing is better than seeing your favorite team at the top of the standings. In this how-to guide, we’ll walk you through the steps of creating a standings page, as well as the standings for topscorers. We’ll show you how to request regular league standings, but also topscorer standings. We’ve divided these two into different sections:
We recommend you submit your requests with Postman since we have already prepared the request for you there! Hit the button below to import our Football API collection.
You are going to need the following tools:
Sportmonks' API token
Code editor (Visual studio used in examples)
Postman (optional)
You can find a link to another article where we discuss the tools in-depth on our Developer Tools Guide.
What league and specifically what season interests you? For this guide, we’ll go with the 20/21 season of the Scottish Premiership (league id: 501, season id: 17141).
Requesting top scorers can be done with the endpoint: get topscorers by season id.
However, we will slightly modify the request because 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 includesgoalscorers.player
andgoalscorers.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:
We can see that the Scottish Premiership’s top scorer is Kevin Nisbet from Hibernian with six goals including one penalty goal.
For more detailed information you can head to our leagues & topscorers tutorial.